]> git.proxmox.com Git - grub2.git/blob - ChangeLog
* conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
[grub2.git] / ChangeLog
1 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
4
5 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
6 2013-09-23 neil
7
8 * configure.ac: Do not enable -Wmissing-noreturn as its
9 usefulness is limited and creates problems on some OS notably with
10 code generated by bison.
11
12 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
13 2013-09-23 neil
14
15 * configure.ac: Do not explicitly enable -Waddress as it's not
16 supported by all gcc and when it is, it's already enabled by -Wall.
17
18 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
19
20 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
21 desactivated use of EDID at all.
22
23 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
24 2013-09-23 neil
25
26 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
27 video if no text is available.
28
29 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
30 2013-09-23 neil
31
32 * configure.ac: Substitute TARGET_RANLIB.
33
34 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
35 2013-09-23 neil
36
37 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
38
39 Based on patches from AROS.
40
41 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
42 2013-09-23 neil
43
44 * grub-core/Makefile.am: Override STRIP and RANLIB.
45 * configure.ac: compute TARGET_RANLIB.
46 * INSTALL: Document TARGET_RANLIB
47
48 Based on patches from AROS.
49
50 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
51
52 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
53 that floppies are unpartitioned.
54
55 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
56
57 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
58 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
59
60 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
61
62 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
63 less nice but more portable.
64 * grub-core/lib/posix_wrap/wchar.h: Likewise.
65
66 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
67
68 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
69 for cheat_fd.
70 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
71 functions.
72 (grub_cryptodisk_cheat_insert): Likewise.
73 (grub_cryptodisk_close): Likewise.
74
75 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
76
77 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
78 Use windows path for DEFAULT_DIRECTORY.
79
80 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
81
82 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
83 difference was likely just gcc version, not anything mingw-related.
84
85 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
86
87 Use Winapi on both cygwin and mingw32 to share more code between both.
88
89 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
90
91 * util/grub-install.in: Add --grub-editenv option.
92 * util/grub-install_header (grub_compress_file): Explicitly check for
93 plain file to avoid cp error.
94
95 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
96
97 * docs/grub.texi (Device syntax): Document new LVM UUID based device
98 names; fix LVM driver name (lvm, not lv).
99 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
100 names.
101
102 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
103
104 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
105 files rather than one file with loads of #if's.
106 * util/getroot.c: Likewise.
107
108 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
109
110 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
111
112 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
113
114 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
115 GNU/Hurd to the list of checked PRNG.
116
117 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
118
119 * configure.ac: On FreeBSD use -melf_*_fbsd format.
120
121 2013-09-21 Ales Nesrsta <starous@volny.cz>
122
123 * grub-core/bus/usb/ehci.c: Correceted EHCI QH handling (async./sync.)
124
125 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
126
127 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
128 * grub-core/disk/lvm.c: Add LVM UUIDs.
129 * util/getroot.c: Use LVM UUIDs whenever possible.
130
131 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
132
133 * docs/grub.texi (Networking commands): Add documentation for
134 network related commands.
135
136 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
137
138 * util/getroot.c (grub_util_open_dm): Check major rather than the name
139 to determine if device is handled by devmapper.
140 (convert_system_partition_to_system_disk): Likewise.
141 (get_dm_uuid): Don't check explicitly if device is mapped, it's
142 already done in grub_util_open_dm.
143
144 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
145
146 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
147 Clean up stack manipulation (sync_caches_armv*)
148
149 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
150
151 * util/lvm.c: Remove since unused. Remove remaining references.
152
153 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
154
155 Handle the case of partitioned LVM properly.
156
157 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
158 Stop on meeting LVM, mpath or DMRAID.
159 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
160 (read_device_map): Likewise.
161 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
162 device is full disk rather than erroring out on LVM and similar cases.
163
164 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
165
166 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
167
168 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
169
170 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
171 4K before the end.
172 Reported by: Leif Lindholm
173
174 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
175 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
176
177 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
178 codes.
179
180 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
181
182 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
183 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
184
185 2013-09-18 Douglas Ray <dougray@cpan.org>
186
187 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
188 as secure.
189
190 2013-09-18 Aleš Nesrsta <starous@volny.cz>
191
192 * docs/grub.texi: Fix broken link.
193
194 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
195
196 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
197 to break endless loop.
198
199 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
200
201 * util/grub-fstest.c: Fix several printf formats.
202 * util/grub-mkimage.c: Likewise.
203 * util/grub-mkimagexx.c: Likewise.
204 * util/grub-script-check.c: Likewise.
205
206 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
207
208 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
209 error.
210
211 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
212
213 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
214
215 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
216
217 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
218 removed in current versions cygwin_conv_*.
219
220 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
221
222 * configure.ac: Disable efiemu runtime on cygwin.
223
224 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
225
226 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
227 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
228
229 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
230
231 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
232 error message.
233
234 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
235
236 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
237 windows variant.
238 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
239 data.
240
241 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
242
243 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
244 when on x86 and not cygwin.
245 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
246 -Wl,-melf_x86_64.
247
248 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
249
250 * configure.ac: Set CPP to build one when checkoing for freetype for
251 build.
252
253 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
254
255 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
256 [!GRUB_BUILD]: Remove has_argument.
257
258 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
259
260 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
261 Replace with a dummy.
262
263 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
264
265 * configure.ac: Don't change host_os from mingw to cygwin.
266
267 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
268
269 * configure.ac: Change target_os from windows to cygwin.
270
271 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
272
273 Handle grub-pe2elf and grub-mkfont for cases when build != host.
274
275 * Makefile.am (build-grub-mkfont): Don't include gnulib.
276 (build-grub-gen-asciih): Likewise.
277 (build-grub-gen-widthspec): Likewise.
278 * Makefile.util.def (grub-pe2elf): Remove.
279 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
280 * configure.ac: Separate tests for build.
281 Move ./build-grub-pe2elf to grub-core.
282 Fix typo.
283 * grub-core/Makefile.am (build-grub-pe2elf): New target.
284 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
285 defined.
286 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
287 constants.
288 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
289 * util/grub-pe2elf.c: Simplify not to rely on getopt.
290 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
291
292 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
293
294 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
295 mingw32 as well based on grub_util_get_disk_size.
296 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
297 grub_util_get_fd_size.
298 (sync): Removed.
299 (fsync): Moved to ...
300 * grub-core/kern/emu/misc.c (fsync): ... here.
301
302 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
303
304 * include/grub/mm.h (grub_extend_alloc): Remove.
305 * grub-core/loader/i386/pc/plan9.c: Use own version of
306 grub_extend_alloc with appropriate types.
307
308 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
309
310 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
311
312 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
313
314 * util/getroot.c: Include sys/wait.h only when we need waitpid.
315
316 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
317
318 Fix dependencies on cygwin.
319
320 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
321 dependencies when used and defined.
322 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
323
324 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
325
326 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
327 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
328
329 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
330
331 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
332 implementation available to cause compile-time rather than runtime
333 error.
334
335 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
336
337 * util/grub-fstest.c: Don't check for symlinks on windows.
338
339 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
340
341 * INSTALL: Mention unavailability of man pages when cross-compiling.
342
343 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
344
345 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
346 and gcry_log_bug.
347 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
348
349 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
350
351 * INSTALL: Document cross-compilation.
352 * acinclude.m4: Determine whether nm support -P and --defined-only.
353 * configure.ac: Add TARGET_ to all variables pertaining to target
354 that don't have it yet.
355 * gentpl.py: Likewise.
356 * grub-core/Makefile.am: Likewise.
357 * grub-core/genmod.sh.in: Likewise.
358 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
359 as well.
360
361 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
362
363 * configure.ac: Remove -Wempty-body. It's not essential and needs
364 recent gcc.
365
366 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
367
368 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
369 * util/getroot.c: Likewise.
370
371 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
372
373 * grub-core/disk/ahci.c: Add needed explicit cast.
374 * grub-core/lib/backtrace.c: Likewise.
375 * grub-core/net/ip.c: Likewise.
376 * grub-core/net/tcp.c: Likewise.
377 * grub-core/net/udp.c: Likewise.
378
379 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
380
381 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
382
383 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
384
385 * util/import_gcry.py: Add final newline in visibility.h.
386
387 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
388
389 * conf/Makefile.common: Fix typo.
390
391 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
392
393 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
394
395 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
396
397 * Makefile.am (widthspec.h): Fix typo.
398 * util/grub-gen-widthspec.c: Likewise.
399
400 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
401
402 Move ascii.h and widthspec.h generation to a separate build-time-only
403 tool.
404
405 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
406
407 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
408 Always fill bootdisk info and improve check for NetBSD disklabel.
409
410 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
411
412 * conf/Makefile.extra-dist: Add util/bin2h.c.
413 Reported by: floppym.
414
415 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
416
417 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
418
419 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
420
421 * configure.ac: Disable unifont and starfield if no freetype was found.
422
423 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
424
425 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
426 on NetBSD and OpenBSD.
427
428 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
429
430 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
431
432 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
433
434 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
435 reduced. Inheritant options are processed during the theme loading.
436
437 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
438
439 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
440
441 2013-08-14 Avik Sil <aviksil@in.ibm.com>
442
443 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
444
445 2013-08-14 Avik Sil <aviksil@in.ibm.com>
446
447 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
448 using qemu.
449
450 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
451
452 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
453 remove-potcdate.sed.
454
455 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
456
457 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
458 unused attribute from pull argument.
459
460 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
461
462 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
463 memory leak.
464
465 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
466
467 * util/getroot.c (pull_lvm_by_command): add --separator option
468 to vgs call to disable padding of output to 10 characters.
469
470 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
471
472 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
473 here ...
474 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
475 here.
476
477 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
478
479 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
480 length.
481
482 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
483
484 Fix handling of build-time grub-bin2h and grub-mkfont when doing
485 full Canadian cross. Tested with build=x86_64, host=arm,
486 target=ppc-ieee1275.
487
488 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
489
490 * configure.ac: Error if no $BUILD_CC could be found.
491 Reported by: DevHC.
492
493 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
494
495 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
496 i386-multiboot.
497
498 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
499
500 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
501 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
502
503 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
504
505 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
506 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
507 falling back to the partition device, otherwise a later call to this
508 function may fail spuriously.
509 Reported by Axel Beckert. Fixes Debian bug #708614.
510
511 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
512
513 * autogen.sh: Replace find -not by the POSIX-compliant find !.
514
515 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
516
517 Prevent shadowing of stdlib's devname(3) on BSD.
518
519 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
520 and devlast to diskname and disklast, respectively.
521
522 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
523
524 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
525
526 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
527
528 * docs/grub.texi: Introduce terminal window position options:
529 terminal-left: terminal window's left position
530 terminal-top: terminal window's top position
531 terminal-width: terminal window's width
532 terminal-height: terminal window's height
533 terminal-border: terminal window's border width
534 * grub-core/gfxmenu/theme-loader.c: Likewise.
535 * include/grub/gfxmenu_view.h: Likewise.
536 * po/exlude.pot: Likewise.
537 * grub-core/gfxmenu/view.c: Likewise.
538 Also updated minimal window size.
539 Also terminal_sanity_check function has been introduced.
540 * grub-core/tests/checksums.h: Update (terminal window height
541 is adjusted now for low resolution screen)
542
543 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
544
545 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
546 position).
547
548 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
549
550 * po/exclude.pot: Add few recent exceptions.
551
552 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
553
554 * tests/grub_func_test.in: Add unicode.pf2.
555
556 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
557
558 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
559 standard rather than noral color, in line with other terminals.
560
561 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
562
563 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
564 analysis.
565
566 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
567
568 * grub-core/loader/arm/linux.c: Change printf to dprintf.
569
570 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
571
572 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
573 inappropriate printf.
574
575 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
576
577 * .bzrignore: Remove grub-core/lib/dtc-grub,
578 grub-core/Makefile.libfdt.def
579 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
580
581 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
582
583 * include/grub/video.h (grub_video_register): Keep double-linked as
584 well as single-linked invariants.
585 Reported by: qwertial.
586
587 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
588
589 * grub-core/commands/nativedisk.c (get_uuid): Handle
590 GRUB_DISK_DEVICE_UBOOTDISK_ID.
591
592 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
593
594 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
595 maximum of NW, N, NE heights instead of N's height and maximum of
596 NW, W, SW widths instead of W's width. (So the box will be always
597 correctly drawn)
598
599 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
600
601 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
602 Fix misuse of variable count.
603
604 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
605 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
606 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
607
608 New ports to arm-uboot and arm-efi.
609 Mostly by Leif Lindholm with some additions from
610 Francesco Lavra and cleanup by Vladimir Serbinenko.
611
612 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
613
614 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
615 and not before.
616 Reported by: Leon Drugi.
617
618 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
619
620 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
621 Reported by: Paulo Flabiano Smorigo.
622
623 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
624
625 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
626
627 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
628
629 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
630
631 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
632
633 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
634
635 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
636
637 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
638
639 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
640
641 * grub-core/net/bootp.c: Export net_* variables.
642 * grub-core/net/net.c: Likewise.
643
644 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
645
646 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
647
648 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
649
650 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
651
652 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
653
654 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
655
656 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
657
658 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
659
660 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
661
662 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
663 <= 0.
664
665 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
666
667 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
668 functions.
669
670 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
671
672 * grub-core/fs/zfs/zfs_lz4.c: New file.
673 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
674
675 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
676
677 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
678
679 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
680
681 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
682 (check_pool_label): Likewise.
683 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
684
685 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
686
687 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
688
689 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
690
691 * docs/grub.texi (Commands): Document postition parameters
692 for menuentry command.
693
694 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
695
696 * util/grub-mknetdir.in: Remove stray line from help output.
697
698 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
699
700 Remove early sm712 init as there is no reason for it (the "watchdog"
701 effect was due to wrong GPIO map).
702
703 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
704
705 * grub-core/commands/pcidump.c: Remove static variables.
706
707 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
708
709 * grub-core/commands/sleep.c: Refresh screen before sleeping.
710
711 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
712
713 * configure.ac: Move delimiter after the infos.
714
715 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
716
717 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
718
719 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
720
721 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
722 not filling whole 8x16 space.
723
724 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
725
726 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
727
728 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
729
730 * configure.ac: Indicate which liblzma is used if any.
731
732 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
733 2013-06-21 Craig Sanders <savannah@taz.net.au>
734
735 * util/grub-reboot.in: Document submenu usage.
736
737 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
738
739 * .bzrignore: Update with a number of new test-related files.
740
741 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
742
743 * util/grub-script-check.c: Fail on scripts containing no
744 commands, to guard against corrupted grub-mkconfig setups that
745 produce no useful output.
746 * tests/grub_script_no_commands.in: New test.
747 * Makefile.util.def (grub_script_no_commands): Add.
748 Reported by Hans Putter. Fixes Debian bug #713886.
749
750 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
751
752 * grub-core/disk/diskfilter.c: Forgot to remove comment
753 from previous commit.
754
755 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
756
757 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
758 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
759
760 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
761
762 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
763
764 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
765
766 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
767 rescan diskfilter devices until nothing new is found.
768
769 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
770
771 Fix casts when compiling coreboot-specific code for 64-bit EFI.
772
773 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
774
775 Don't try to detect cbfs on *-emu.
776
777 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
778
779 * grub-core/term/gfxterm.c: USe right background color when scrolling.
780
781 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
782
783 Add support for processed coreboot payload chainloading.
784
785 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
786
787 Enable coreboot information commands even when not loaded as
788 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
789
790 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
791
792 Support for cbfs. Also factor out the part which is common
793 for all archives to a separate module. This splits tar from cpio
794 as they are very different but keeps cpio, cpio_be, odc and newc
795 together since they're very similar.
796
797 2013-06-15 David Michael <fedora.dm0@gmail.com>
798
799 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
800 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
801
802 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
803
804 * tests/grub_script_eval.in: Really add the eval test.
805
806 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
807
808 Move flavour-specific parts out of common cpio.c file and
809 rename remaining to cpio_common.c
810
811 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
812
813 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
814 off new function grub_script_execute_new_scope. Change callers to use
815 either of them as appropriate.
816 * grub-core/commands/eval.c: New command eval.
817 * docs/grub.texi (Commands): Document it.
818
819 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
820
821 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
822 to fetch values when listing.
823
824 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
825
826 Fix make dist on non-pc.
827
828 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
829
830 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
831 without a device name.
832
833 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
834
835 Remove enable_executable_check as it's not needed anymore.
836 Reported by: dougray.
837
838 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
839
840 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
841 ambigouos RAID before discovering RAIDs on top of it.
842 Reported by: bodom.
843
844 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
845
846 Fix typo (failback vs fallback).
847
848 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
849
850 * util/grub.d/30_os-prober.in: Add support for probing EFI
851 System Partition (as of os-prober 1.58).
852
853 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
854
855 * configure.ac: Add yet another path to unifont. For parabola.
856
857 2013-05-30 Josh Triplett <josh@joshtriplett.org>
858
859 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
860 handling to copy the killed characters to the kill buffer as
861 UCS4 stored as grub_uint32_t rather than as 8-bit characters
862 stored as char. Eliminates UCS4 truncation and corruption
863 observed when killing characters with Ctrl-u and yanking them
864 back with Ctrl-y.
865
866 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
867
868 Detach optional parts of gfxterm and integrate in with coreboot init.
869
870 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
871
872 Move blit and fill dispatcher to appropriate files to decrease export
873 and relocation overhead.
874
875 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
876
877 * grub-core/font/font.c, include/grub/font.h: Inline simple font
878 functions.
879
880 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
881
882 * grub-core/Makefile.am: Fix compilation problem with some
883 automake versions.
884
885 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
886
887 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
888
889 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
890
891 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
892 automake versions.
893
894 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
895
896 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
897 SSDT.
898
899 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
900
901 * grub-core/partmap/dfly.c: New partition map.
902
903 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
904
905 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
906 checking.
907 Reported by: Francesco Lavra.
908
909 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
910
911 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
912 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
913 false conditions.
914 * conf/Makefile.common: define dist_grubconf_DATA
915
916 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
917
918 Progressively skip menu elements on small terminals rather
919 than crashing.
920
921 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
922
923 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
924 to avoid losing last column.
925
926 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
927
928 * po/exclude.pot: Add missing string "%C".
929
930 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
931
932 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
933 after the test.
934
935 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
936
937 * util/grub-install.in: Gettextize "Not found" message.
938
939 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
940
941 Fix distfiles list.
942 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
943
944 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
945
946 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
947 present.
948 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
949
950 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
951
952 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
953
954 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
955
956 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
957 attribute since structure is not necessarily aligned.
958
959 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
960
961 * docs/grub.texi (Device syntax): Clarify description of network
962 drives.
963
964 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
965
966 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
967 for vasprintf presence.
968
969 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
970
971 * util/grub-install.in: Handle efibootmgr presence check.
972 Reported by: Leif Lindholm.
973
974 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
975
976 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
977 new strings to translate.
978
979 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
980
981 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
982 yet another string (pun intended) to translate.
983
984 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
985
986 * po/POTFILES-shell.in: Autogenerate it.
987
988 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
989
990 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
991
992 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
993
994 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
995 misnomer.
996
997 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
998
999 * docs/grub.texi (Network): Add description of net_default_interface,
1000 net_default_ip and net_default_mac. Rewrite variables description
1001 to emphasize that they are per-interface.
1002
1003 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1004
1005 New test: cmdline and cat.
1006
1007 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1008
1009 * grub-core/commands/cat.c: Show UTF-8 characters.
1010
1011 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1012
1013 * conf/Makefile.common: Poison float and double on non-emu.
1014
1015 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1016
1017 * configure.ac: Don't disable extended registers on emu.
1018
1019 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1020
1021 * configure.ac: Don't use extended registers on x86_64.
1022 Reported by: Peter Jones.
1023
1024 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1025
1026 * grub-core/term/efi/console.c: Fix compile error.
1027
1028 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1029
1030 Compressed HFS+ support.
1031
1032 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1033
1034 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
1035 pixel".
1036
1037 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1038
1039 Menu color test.
1040
1041 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1042
1043 * grub-core/tests/setjmp_test.c: New test.
1044
1045 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1046
1047 New variables 'net_default_*' to determine MAC/IP of default interface.
1048
1049 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1050
1051 * tests/gettext_strings_test.in: A test to check for strings not
1052 marked for translation.
1053
1054 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1055
1056 * autogen.sh: Exclude unused libgcrypt files from translation.
1057
1058 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1059
1060 Simplify few strings.
1061
1062 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1063
1064 Mark few forgotten strings for translation.
1065
1066 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1067
1068 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
1069 rather than printf.
1070
1071 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1072
1073 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
1074 rather than printf.
1075 * grub-core/video/readers/tga.c: Likewise.
1076
1077 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1078
1079 * tests/priority_queue_unit_test.cc: New test.
1080
1081 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1082
1083 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
1084 than printf.
1085
1086 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
1087
1088 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
1089 variable for one time boot menu entry.
1090
1091 2013-05-05 Bean <bean123ch@gmail.com>
1092
1093 * grub-core/commands/testspeed.c: New command testspeed.
1094
1095 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1096
1097 Factor-out human-size printing.
1098
1099 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1100
1101 Agglomerate more mallocs to speed-up gfxterm.
1102
1103 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1104
1105 Speed-up gfxterm by slightly agglomerating mallocs.
1106
1107 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1108
1109 More video checks.
1110
1111 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1112
1113 Speed-up gfxterm by saving intermediate results in index+alpha
1114 format.
1115
1116 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1117
1118 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
1119 test.
1120
1121 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1122
1123 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
1124 line of timeout as it may contain the rest of long line.
1125
1126 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1127
1128 * grub-core/normal/main.c: Fix freed memory dereference.
1129
1130 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1131
1132 Fix several memory leaks.
1133
1134 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1135
1136 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
1137
1138 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1139
1140 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
1141
1142 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1143
1144 Fix test -a and -o precedence.
1145 Reported by: adrian15.
1146
1147 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1148
1149 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
1150
1151 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
1152
1153 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
1154 and add it as source to functional_test module.
1155
1156 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1157
1158 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
1159
1160 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1161
1162 New series of tests for gfxterm and gfxmenu.
1163
1164 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1165
1166 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
1167 the theme path relative to $prefix/themes.
1168
1169 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1170
1171 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
1172 Fix order bug.
1173 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
1174
1175 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1176
1177 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
1178 descriptor.
1179
1180 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1181
1182 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
1183 grub_gfxmenu_timeout_notifications.
1184 (grub_gfxmenu_view_destroy): Likewise.
1185
1186 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1187
1188 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
1189
1190 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1191
1192 Several fixes to ieee1275 and big-endian video.
1193
1194 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1195
1196 Add missing exports on mips.
1197
1198 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1199
1200 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
1201 if no unifont is found.
1202 Restore original keyboard.
1203
1204 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1205
1206 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
1207 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
1208
1209 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1210
1211 First automated video test (running videotest and comparing results)
1212
1213 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1214
1215 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
1216 instead of 2 to have full RGB/CMY test pattern.
1217
1218 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
1219
1220 Add few more tests.
1221
1222 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
1223
1224 * include/grub/arc/arc.h: Account for missing "other" peripheral on
1225 ARCS. All users updated.
1226
1227 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
1228
1229 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
1230
1231 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
1232
1233 * grub-core/partmap/amiga.c: Fix size of checksummed block.
1234
1235 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1236
1237 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
1238 Reported by: qwertial.
1239
1240 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
1241
1242 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
1243 with syntax "XXX deg"/"XXX °".
1244
1245 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1246
1247 Make PCI init in i386-qemu port more robust.
1248
1249 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
1250
1251 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
1252 cached view is reused.
1253 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
1254 open boot menus.
1255
1256 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1257
1258 Unify more code in grub-install_header.
1259
1260 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1261
1262 Add few new tests.
1263
1264 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1265
1266 Enforce disabling of firmware disk drivers when native drivers kick in.
1267
1268 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1269
1270 * grub-core/commands/nativedisk.c: Customize the list of modules on
1271 platform. Don't try to search for disks already using native drivers.
1272
1273 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1274
1275 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
1276 platforms.
1277
1278 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1279
1280 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
1281 handling of variables containing backslash.
1282
1283 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1284
1285 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
1286 dereference.
1287 Reported by: qwertial.
1288
1289 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1290
1291 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
1292
1293 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1294
1295 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
1296 dereference.
1297 Reported by: qwertial.
1298
1299 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1300
1301 * docs/grub.texi: Add a comment about usefullness of nativedisk.
1302
1303 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1304
1305 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
1306
1307 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1308
1309 New command `nativedisk'.
1310
1311 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1312
1313 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
1314 * grub-core/loader/i386/bsd.c: Likewise.
1315
1316 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1317
1318 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
1319
1320 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1321
1322 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
1323 grub_get_unaligned16 rather than shifts.
1324
1325 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1326
1327 * grub-core/kern/file.c: Use const char * rather than casting to
1328 non-const.
1329
1330 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1331
1332 * grub-core/commands/probe.c: Add missing grub_device_close.
1333
1334 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1335
1336 * INSTALL: Document linguas.sh.
1337
1338 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1339
1340 Remove POTFILES.in and regenerate it in autogen.sh.
1341
1342 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1343
1344 Move --directory/--override-directorry to grub-install_header and unify.
1345
1346 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1347
1348 * grub-core/term/morse.c: Macroify dih and dah.
1349
1350 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1351
1352 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
1353
1354 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1355
1356 * grub-core/term/ns8250.c: Systematically probe ports by writing
1357 to SR before using them.
1358
1359 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1360
1361 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
1362 disks.
1363 (check_sas): Get sas_adress info.
1364
1365 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1366
1367 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
1368 ports.
1369
1370 2013-04-27 Leon Drugi <eyak>
1371
1372 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
1373 BSS clearing.
1374
1375 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1376
1377 Core compression test.
1378
1379 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1380
1381 Implement grub_machine_get_bootlocation for ARC.
1382
1383 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1384
1385 Improve AHCI detection and command issuing.
1386
1387 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1388
1389 Fix pseries test.
1390
1391 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1392
1393 Make 'make check' work on emu.
1394
1395 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1396
1397 Replace libcurses with our own vt100 handling for the ease of testing
1398 and decreasing prerequisites.
1399
1400 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1401
1402 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
1403
1404 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1405
1406 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
1407 compile when not needed.
1408
1409 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1410
1411 * tests/pseries_test.in: New test.
1412
1413 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1414
1415 Add test to check that different boot mediums work.
1416
1417 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1418
1419 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
1420 ofw limited ISO support.
1421
1422 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1423
1424 * configure.ac: Fix loongson conditional.
1425
1426 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1427
1428 Enable mipsel-arc.
1429
1430 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1431
1432 Add serial on ARC platform.
1433
1434 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1435
1436 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
1437 commit.
1438
1439 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1440
1441 * tests/partmap_test.in: Add missing double semicolon.
1442
1443 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1444
1445 * util/grub-mkrescue.in: Fix loongson filename.
1446
1447 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1448
1449 * util/grub-mkrescue.in: Move all files that don't have a location
1450 set in stone under /boot/grub. Use ISO hard links rather than copies
1451 to save some space.
1452
1453 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1454
1455 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
1456 bogus SLOF values.
1457
1458 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1459
1460 Make check work on mips-arc.
1461
1462 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1463
1464 * util/grub-mkrescue.in: Alias sashARCS as sash.
1465
1466 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1467
1468 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
1469 it's serial.
1470
1471 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1472
1473 * util/grub-install.in: Fix target fo qemu_mips.
1474 Fix extension on EFI.
1475
1476 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1477
1478 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
1479 in front of chosen entry to mark it even if highlighting is lost.
1480
1481 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1482
1483 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
1484 gfxpayload=keep if cbfb is active.
1485
1486 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1487
1488 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
1489
1490 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1491
1492 Add missing video ids to coreboot and ieee1275 video.
1493
1494 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1495
1496 * util/grub-mkrescue.in: Add mips-arc support.
1497
1498 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1499
1500 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
1501
1502 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
1503
1504 Move mips-arc link address. Previous link address was chosen
1505 in belief that RAM on SGI platforms grows down while in fact it
1506 grows up from an unusual base.
1507
1508 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
1509
1510 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
1511 Fix a type which prevented CD-ROM and floppy boot.
1512
1513 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
1514
1515 Support coreboot framebuffer.
1516
1517 * grub-core/video/i386/coreboot/cbfb.c: New file.
1518
1519 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1520
1521 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
1522 detecting too small regions.
1523
1524 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1525
1526 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
1527
1528 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
1529
1530 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
1531 Remove dprintf.
1532 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
1533
1534 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1535
1536 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
1537 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
1538 * grub-core/loader/powerpc/ieee1275/linux.c
1539 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
1540
1541 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1542
1543 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
1544 Look for /boot-rom as well as /rom/boot-rom.
1545
1546 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1547
1548 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
1549 handling when creating text_layer failed.
1550 * grub-core/video/video.c (grub_video_create_render_target):
1551 Set result to 0 on error.
1552 (grub_video_delete_render_target): Do not dereference NULL.
1553
1554 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1555
1556 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
1557 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
1558 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
1559 (grub_linux_load64): Mask out 2 high bits.
1560
1561 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
1562
1563 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
1564 more place.
1565
1566 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
1567
1568 Add support for pseries and other bootinfo machines to grub-mkrescue.
1569
1570 Tested by: Paulo Flabiano Smorigo.
1571
1572 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1573
1574 * util/grub-mkrescue.in: Add GPT for EFI boot.
1575
1576 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1577
1578 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
1579 It improves performance in qemu.
1580
1581 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
1582
1583 * build-aux/snippet: Add missing gnulib files.
1584
1585 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
1586
1587 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
1588
1589 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
1590
1591 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
1592
1593 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
1594 2013-04-15 Peter Jones <pjones@redhat.com>
1595
1596 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
1597 sectors.
1598 Based on patch by Peter Jones.
1599
1600 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
1601
1602 Fix DMRAID partition handling.
1603
1604 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
1605
1606 * tests/grub_cmd_date.in: Skip on sparc64.
1607
1608 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
1609
1610 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
1611 firmware error messages.
1612
1613 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
1614
1615 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
1616 source and destination differ.
1617
1618 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
1619
1620 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
1621 detection.
1622
1623 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1624
1625 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
1626 match config-util.h to avoid warnings and increase compatibility.
1627
1628 2013-04-14 Szymon Janc <szymon@janc.net.pl>
1629 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1630
1631 Add option to compress files on install/image creation.
1632
1633 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1634
1635 * docs/grub-dev.texi: Rearrange menu to match the section order.
1636 Reported by: Bryan Hundven.
1637
1638 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1639
1640 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
1641
1642 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1643
1644 Move GRUB out of system area when using xorriso 1.2.9 or later.
1645
1646 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1647
1648 * tests/grub_cmd_date.in: Add missing exit 1.
1649
1650 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1651
1652 * tests/partmap_test.in: Skip on sparc64.
1653
1654 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1655
1656 Support grub-shell on sparc64.
1657
1658 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1659
1660 Support mkrescue on sparc64.
1661
1662 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1663
1664 Allow IEEE1275 ports on path even if it wasn't detected automatically.
1665 Needed on OpenBIOS due to incomplete device tree.
1666
1667 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1668
1669 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
1670 would be otherwise excluded.
1671
1672 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
1673
1674 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
1675 Inline name defines used only once.
1676
1677 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
1678
1679 Fix memory leaks in ofnet.
1680 Reported by: Francesco Lavra.
1681
1682 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1683
1684 * docs/man/grub-glue-efi.h2m: Add missing file.
1685
1686 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1687
1688 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
1689
1690 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1691
1692 Better support Apple Intel Macs on CD.
1693
1694 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1695
1696 Replace stpcpy with grub_stpcpy in tools.
1697
1698 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1699
1700 Handle Japanese special keys.
1701 Reported by: Hiroyuki YAMAMORI.
1702 Codes supplied by: Hiroyuki YAMAMORI.
1703
1704 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1705
1706 * util/grub-mkimage.c: Document memdisk implying --prefix.
1707
1708 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1709
1710 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
1711 much we can do about it anyway.
1712
1713 2013-04-12 Aleš Nesrsta <starous@volny.cz>
1714
1715 Fix handling of split transfers.
1716
1717 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1718
1719 * grub-core/net/http.c: Fix bad free.
1720
1721 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1722
1723 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
1724 than buffer size.
1725
1726 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1727
1728 Disable partmap check on i386-ieee1275 due to openfirmware issues.
1729
1730 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1731
1732 * tests/util/grub-shell.in: Fix it on powerpc.
1733
1734 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1735
1736 Turn off QEMU ACPI-way since new releases don't have shutdown port
1737 anymore.
1738
1739 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1740
1741 * docs/grub.texi: Update coreboot status info.
1742
1743 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1744
1745 * tests/grub_cmd_date.in: New test for datetime.
1746
1747 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
1748
1749 * tests/partmap_test.in: Fix missing qemudisk setting.
1750
1751 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1752
1753 Support i386-ieee1275 grub-mkrescue and make check on it.
1754
1755 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1756
1757 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
1758 feature for it.
1759
1760 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1761
1762 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
1763 GRUB_CMDLINE_XEN_DEFAULT.
1764 Reported by: Marc Warne (GigaTux) <gigatux>
1765
1766 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1767
1768 Import new gnulib.
1769
1770 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1771
1772 Use ACPI shutdown intests as traditional port was removed.
1773
1774 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
1775
1776 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
1777 distinction.
1778
1779 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
1780
1781 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
1782 Fix few warining messages and leaks while on it.
1783
1784 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
1785
1786 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
1787 links under grub-core/lib/libgcrypt-grub/mpi.
1788
1789 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1790
1791 Fix ia64-efi image generation on big-endian machines. Deduplicate
1792 some code while on it.
1793 Reported by: Leif Lindholm.
1794
1795 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
1796
1797 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
1798 as extra_dist.
1799
1800 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
1801
1802 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
1803
1804 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
1805
1806 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
1807 texinfo-5.1.
1808
1809 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
1810
1811 * grub-core/normal/term.c: Few more fixes for menu entry editor
1812 rendering.
1813 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
1814
1815 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
1816
1817 * grub-core/normal/term.c: Few more fixes for menu entry editor
1818 rendering.
1819 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
1820
1821 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
1822
1823 * conf/Makefile.extra-dist (EXTRA_DIST): Add
1824 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
1825
1826 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
1827
1828 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
1829 instead of hardcoding grub.mo.
1830
1831 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
1832
1833 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
1834
1835 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1836
1837 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
1838 grub-core/disk/geli.c.
1839
1840 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1841
1842 * util/grub-mkfont.c: Prefer enum to #define.
1843
1844 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1845
1846 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
1847
1848 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1849
1850 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
1851
1852 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1853
1854 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
1855
1856 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1857
1858 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
1859
1860 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1861
1862 * include/grub/bsdlabel.h: Use enums.
1863
1864 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
1865
1866 Move GRUB_CHAR_BIT to types.h.
1867
1868 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
1869
1870 * docs/grub.texi: Document more user commands.
1871
1872 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
1873
1874 * docs/grub.texi: Document menuentry --id option.
1875
1876 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
1877
1878 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
1879
1880 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1881
1882 Unify file copying setup across different install scripts. Add
1883 options for performing partial install.
1884
1885 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1886 2013-04-04 Peter Jones <pjones@redhat.com>
1887
1888 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
1889
1890 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1891
1892 Use TSC as a possible time source on i386-ieee1275.
1893
1894 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1895
1896 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
1897 Init err.
1898
1899 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1900
1901 * util/grub-setup.c (setup): Handle some corner cases.
1902
1903 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
1904
1905 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
1906
1907 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1908
1909 * grub-core/commands/verify.c: Save verified file to avoid it being
1910 tampered with after verification was done.
1911
1912 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1913
1914 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
1915 reported width by one to compensate for curesor algorithm problem.
1916
1917 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1918
1919 Fix screen corruption in menu entry editor and simplify the code
1920 flow while on it.
1921
1922 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
1923
1924 * util/grub-mount.c (fuse_init): Return error if fuse_main
1925 failed.
1926
1927 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
1928
1929 * include/grub/elf.h: Add missing ARM relocation codes and fix
1930 existing ones.
1931
1932 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
1933
1934 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
1935
1936 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
1937 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
1938
1939 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
1940 into account when calculating radius.
1941
1942 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
1943
1944 * grub-core/gfxmenu/view.c: Fix off-by-one error.
1945
1946 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
1947
1948 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
1949
1950 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
1951
1952 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
1953 missing closing bracket.
1954
1955 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
1956
1957 * INSTALL: Mention xorriso requirement.
1958
1959 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
1960
1961 * grub-core/commands/verify.c: Fix hash algorithms values for
1962 the first three hashes - they start with 1, not with 0.
1963
1964 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1965
1966 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
1967 Try terminating EFI services several times due to quirks in some
1968 implementations.
1969
1970 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
1971
1972 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
1973 skipping Event, Device, Processor, PowerRes, ThermalZone, and
1974 BankField extended opcodes.
1975 (get_sleep_type): Add minimal scope handling (just enough to
1976 handle setting the scope to the root path).
1977 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
1978 * include/grub/acpi.h: Add enumeration values for Event, Device,
1979 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
1980
1981 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
1982
1983 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
1984 memory leak.
1985
1986 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
1987
1988 * grub-core/disk/ahci.c: Give more time for AHCI request.
1989
1990 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
1991
1992 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
1993 command.
1994
1995 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
1996
1997 Replace the region at 0 from coreboot tables to available in BSD
1998 memory map.
1999
2000 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2001
2002 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
2003 non-BIOS platforms.
2004
2005 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2006
2007 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
2008 platforms.
2009
2010 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2011
2012 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
2013 handling of multi-device filesystems.
2014
2015 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2016
2017 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
2018 platforms.
2019
2020 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2021
2022 Add new 'proc' filesystem framework and put luks_script into it.
2023
2024 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2025
2026 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
2027 and qemu.
2028
2029 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
2030
2031 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
2032
2033 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
2034
2035 Add ability to generate newc additions on runtime.
2036
2037 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
2038
2039 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
2040 description.
2041
2042 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
2043
2044 * po/POTFILES.in: Regenerate.
2045
2046 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2047
2048 * grub-core/commands/verify.c (hashes): Add several hashes
2049 from the spec.
2050
2051 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2052
2053 Slight improve in USB-related boot-time checkpoints.
2054
2055 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2056
2057 * grub-core/commands/boottime.c: Fix copyright header.
2058
2059 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2060
2061 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
2062 coreboot tables content. Support for cbmemc.
2063
2064 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2065
2066 Fix a conflict between ports structures with 2 controllers of
2067 same kind.
2068
2069 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2070
2071 * include/grub/boottime.h: Add missing file.
2072
2073 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2074
2075 Initialize USB ports in parallel to speed-up boot.
2076
2077 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2078
2079 Fix USB devices not being detected when requested
2080 due to delayed attach.
2081
2082 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2083
2084 Implement boot time analysis framework.
2085
2086 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2087
2088 Remove get_endpoint_descriptor and change all functions needing
2089 descriptor to just receive it as argument rather than endpoint
2090 address.
2091
2092 2013-03-19 Aleš Nesrsta <starous@volny.cz>
2093
2094 Better estimate the maximum USB transfer size.
2095
2096 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2097
2098 Resend a packet if we got the wrong buffer in status.
2099
2100 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2101
2102 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
2103 multiplication rather than division.
2104
2105 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2106
2107 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
2108 than divisions.
2109
2110 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2111
2112 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
2113 operations to have intended shifts and not divisions.
2114
2115 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2116
2117 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
2118 intended shifts rather than division.
2119
2120 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2121
2122 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
2123 computation for some years before epoch. Avode confusing division
2124 while on it.
2125
2126 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2127
2128 * grub-core/video/i386/pc/vbe.c
2129 (grub_video_vbe_print_adapter_specific_info): Replace division by
2130 shifts.
2131
2132 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2133
2134 Adjust types in gdb module to have intended unsigned shifts rather than
2135 signed divisions.
2136
2137 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2138
2139 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
2140 maximum size is 4G - 1 on hfs
2141
2142 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2143
2144 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
2145
2146 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2147
2148 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
2149 function.
2150
2151 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
2152
2153 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
2154 causing gcc error with gcc 4.7.1.
2155
2156 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
2157
2158 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
2159 dereference null pointer. While the code is technically correct, gcc
2160 may eliminate a null check if pointer is already dereferenced.
2161
2162 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
2163
2164 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
2165 OOM check.
2166 * grub-core/normal/term.c (read_terminal_list): Likewise.
2167
2168 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
2169
2170 Lift up core size limits on some platforms. Fix potential memory
2171 corruption with big core on small memory systems. Document remaining
2172 limits.
2173
2174 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2175
2176 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
2177 gotoxy to 0,0.
2178
2179 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2180
2181 Remove all trampoline support. Add -Wtrampolines when
2182 present. Remove symbols used for trampolines to make
2183 link fail if trampolines are present.
2184
2185 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2186
2187 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
2188 append out of its parent.
2189
2190 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2191
2192 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
2193 parent.
2194
2195 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2196
2197 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
2198 all vars to a macro. All users updated.
2199
2200 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2201
2202 * grub-core/disk/ieee1275/nand.c: Fix compilation on
2203 i386-ieee1275.
2204
2205 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2206
2207 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
2208
2209 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2210
2211 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
2212
2213 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2214
2215 Move to more hookless approach in IEEE1275 devices handling.
2216
2217 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2218
2219 * grub-core/kern/term.c (grub_term_normal_color),
2220 (grub_term_highlight_color): Add back lost defaults.
2221
2222 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2223
2224 Make elfload not use hooks. Opt for flags and iterators instead.
2225
2226 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2227
2228 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
2229 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
2230
2231 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2232
2233 * grub-core/script/execute.c (gettext_append): Remove nested functions.
2234
2235 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2236
2237 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
2238 hook pass-through parameter. All users updated and unnested.
2239
2240 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2241
2242 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
2243 out of its parent.
2244
2245 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2246
2247 * grub-core/fs/hfs.c: Remove nested functions.
2248
2249 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2250
2251 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
2252 the context through.
2253 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
2254
2255 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2256
2257 * util/grub-editenv.c (list_variables): Move print_var out of its
2258 parent.
2259
2260 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2261
2262 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
2263 function.
2264
2265 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2266
2267 * grub-core/gentrigtables.c: Make tables const.
2268
2269 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2270
2271 Remove nested functions from videoinfo iterators.
2272
2273 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2274
2275 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
2276 for 64-bit platforms.
2277
2278 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2279
2280 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
2281 a FOR_CHILDREN macro.
2282
2283 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2284
2285 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
2286 platform from firmware path.
2287
2288 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2289
2290 Enable linux16 on non-BIOS systems for i.a. memtest.
2291
2292 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
2293 correctly.
2294 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
2295
2296 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2297
2298 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
2299 Fix end of table condition.
2300
2301 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2302
2303 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
2304 out of its parent.
2305
2306 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2307
2308 * grub-core/fs/jfs.c: Remove nested functions.
2309
2310 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2311
2312 * grub-core/fs/minix.c: Remove nested functions.
2313
2314 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2315
2316 * grub-core/fs/iso9660.c: Remove nested functions.
2317
2318 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2319
2320 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
2321 of parent function.
2322
2323 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2324
2325 * util/grub-fstest.c: Remove nested functions.
2326
2327 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
2328
2329 * grub-core/loader/machoXX.c: Remove nested functions.
2330
2331 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
2332
2333 Remove nested functions from disk and file read hooks.
2334
2335 * include/grub/disk.h (grub_disk_read_hook_t): New type.
2336 (struct grub_disk): Add read_hook_data member.
2337 * include/grub/file.h (struct grub_file): Likewise.
2338 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
2339 argument.
2340
2341 Update all callers.
2342
2343 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
2344
2345 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
2346 Fix off by one error in enumerating extended partitions.
2347
2348 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
2349
2350 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
2351 memory leak if device name is not found.
2352
2353 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
2354
2355 * grub-core/normal/menu_entry.c (update_screen): remove
2356 unused variable `off' which caused scroll down arrow to be always shown.
2357
2358 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
2359
2360 * grub-core/normal/menu_entry.c (insert_string): fix off by one
2361 access to unallocated memory.
2362
2363 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
2364
2365 * Makefile.util.def: Add partmap/msdos.c to common library.
2366 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
2367 * grub-core/disk/ldm.c: Check for existence of
2368 GRUB_PC_PARTITION_TYPE_LDM.
2369
2370 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
2371
2372 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
2373 sizes and display sector size.
2374
2375 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
2376
2377 Implement new command cmosdump.
2378
2379 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2380
2381 Support Openfirmware disks with non-512B sectors.
2382
2383 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
2384 size of the disk.
2385 * (grub_ofdisk_get_block_size): New function.
2386 * (grub_ofdisk_prepare): Use the correct block size.
2387 * (grub_ofdisk_read): Likewise.
2388 * (grub_ofdisk_write): Likewise.
2389 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
2390 New proto.
2391
2392 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2393
2394 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
2395
2396 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
2397
2398 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
2399 on first error.
2400
2401 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2402
2403 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
2404 freeing it.
2405
2406 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2407
2408 Implement USBDebug (full USB stack variant).
2409
2410 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2411
2412 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
2413 unless they have unexpected values.
2414
2415 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2416
2417 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
2418 grub_print_error.
2419
2420 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2421
2422 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
2423 zero-out of port structure.
2424
2425 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
2426
2427 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
2428 of extended attributes.
2429
2430 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
2431
2432 * util/grub-install.in: change misleading comment about
2433 device.map creation
2434
2435 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2436
2437 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
2438 when menu highlight color isn't set.
2439
2440 2013-01-27 C. Masloch <pushbx@38.de>
2441
2442 Improve FreeDOS direct loading support compatibility.
2443
2444 * include/grub/i386/relocator.h (grub_relocator16_state):
2445 New member ebp.
2446 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
2447 variable.
2448 (grub_relocator16_boot): Handle %ebp.
2449 * grub-core/lib/i386/relocator16.S: Likewise.
2450 * grub-core/loader/i386/pc/freedos.c:
2451 Load BPB to pass kernel which partition to load from.
2452 Check that kernel file is not too large.
2453 Set register dl to BIOS unit number as well.
2454
2455 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
2456
2457 * util/grub-reboot.in (usage): Document the need for
2458 GRUB_DEFAULT=saved.
2459 * util/grub-set-default.in (usage): Likewise.
2460 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
2461
2462 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2463
2464 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
2465 than defining WORDS_BIGENDIAN manually.
2466
2467 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2468
2469 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
2470 invariants.
2471
2472 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
2473
2474 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
2475 nested.
2476 (blit_comb: add_device_width): Likewise.
2477
2478 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
2479
2480 Remove nested functions from USB iterators.
2481
2482 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
2483 (grub_usb_controller_iterate_hook_t): Likewise.
2484 (grub_usb_iterate): Add hook_data argument.
2485 (grub_usb_controller_iterate): Likewise.
2486 (struct grub_usb_controller_dev.iterate): Likewise.
2487
2488 Update all implementations and callers.
2489
2490 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2491
2492 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
2493 margin when not needed.
2494
2495 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2496
2497 Make color variables global instead of it being per-terminal.
2498
2499 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2500
2501 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
2502 asterisk.
2503
2504 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
2505
2506 Fix powerpc and sparc64 build failures caused by un-nesting memory
2507 map iterators.
2508
2509 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
2510
2511 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
2512 parameter declarations.
2513
2514 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2515
2516 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
2517
2518 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
2519
2520 Improve spkmomdem reliability by adding a separator between bytes.
2521
2522 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
2523
2524 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
2525 an Acer registration utility with several sightings in the wild.
2526 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
2527
2528 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
2529
2530 Remove nested functions from filesystem directory iterators.
2531
2532 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
2533 (struct grub_fs.dir): Add hook_data argument.
2534
2535 Update all implementations and callers.
2536
2537 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
2538
2539 * docs/grub.texi (Multi-boot manual config): Fix typo for
2540 "recommended".
2541
2542 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
2543
2544 * util/grub-mkimage.c (main): Postpone freeing arguments.output
2545 until after its use in generate_image.
2546
2547 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
2548
2549 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
2550 initrd size to addr_min, since the initrd will be allocated after
2551 this address.
2552
2553 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
2554
2555 * conf/Makefile.common: Fix autogen rules to pass definition
2556 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
2557
2558 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
2559
2560 * include/grub/elf.h: Update ARM definitions based on binutils.
2561
2562 2013-01-20 Aleš Nesrsta <starous@volny.cz>
2563
2564 Split long USB transfers into short ones.
2565
2566 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
2567
2568 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
2569 is interrupted by ESC.
2570
2571 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
2572
2573 * util/grub-script-check.c (main): Uniform the error message.
2574
2575 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
2576
2577 Remove nested functions from ELF iterators.
2578
2579 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
2580
2581 Remove nested functions from device iterators.
2582
2583 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
2584 (grub_arc_iterate_devs): Add hook_data argument.
2585 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
2586 (struct grub_ata_dev.iterate): Add hook_data argument.
2587 * include/grub/device.h (grub_device_iterate_hook_t): New type.
2588 (grub_device_iterate): Add hook_data argument.
2589 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
2590 (struct grub_disk_dev.iterate): Add hook_data argument.
2591 (grub_disk_dev_iterate): Likewise.
2592 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
2593 Likewise.
2594 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
2595 Likewise.
2596 * include/grub/partition.h (grub_partition_iterate_hook_t): New
2597 type.
2598 (struct grub_partition_map.iterate): Add hook_data argument.
2599 (grub_partition_iterate): Likewise.
2600 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
2601 (struct grub_scsi_dev.iterate): Add hook_data argument.
2602
2603 Update all callers.
2604
2605 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
2606
2607 Fix typos for "developer" and "development".
2608
2609 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
2610
2611 Add license header to spkmodem-recv.c.
2612
2613 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
2614
2615 Rewrite spkmodem to use PIT for timing. Double the speed.
2616
2617 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
2618
2619 Add new command pcidump.
2620
2621 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
2622
2623 New terminal outputs using serial: morse and spkmodem.
2624
2625 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
2626
2627 Improve bidi handling in entry editor.
2628
2629 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
2630
2631 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
2632 argument to prevent name collision.
2633
2634 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
2635
2636 Remove nested functions from script reading and parsing.
2637
2638 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
2639 getline_data argument, passed to getline.
2640 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
2641 getline_data argument, passed to grub_parser_split_cmdline.
2642 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
2643 lexerstate->getline_data to lexerstate->getline.
2644 (grub_script_lexer_init): Add getline_data argument, saved in
2645 lexerstate->getline_data.
2646 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
2647 argument, passed to grub_script_parse.
2648 * grub-core/script/script.c (grub_script_parse): Add getline_data
2649 argument, passed to grub_script_lexer_init.
2650 * include/grub/parser.h (grub_parser_split_cmdline): Update
2651 prototype. Update all callers to pass appropriate getline data.
2652 (struct grub_parser.parse_line): Likewise.
2653 (grub_rescue_parse_line): Likewise.
2654 * include/grub/reader.h (grub_reader_getline_t): Add void *
2655 argument.
2656 * include/grub/script_sh.h (struct grub_lexer_param): Add
2657 getline_data member.
2658 (grub_script_parse): Update prototype. Update all callers to pass
2659 appropriate getline data.
2660 (grub_script_lexer_init): Likewise.
2661 (grub_normal_parse_line): Likewise.
2662
2663 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
2664 data argument.
2665 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
2666 static instead of nested. Rename to ...
2667 (grub_parser_execute_getline): ... this.
2668 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
2669 data argument.
2670 * grub-core/normal/main.c (read_config_file: getline): Make static
2671 instead of nested. Rename to ...
2672 (read_config_file_getline): ... this.
2673 (grub_normal_read_line): Add unused data argument.
2674 * grub-core/script/execute.c (grub_script_execute_sourcecode:
2675 getline): Make static instead of nested. Rename to ...
2676 (grub_script_execute_sourcecode_getline): ... this.
2677 * util/grub-script-check.c (main: get_config_line): Make static
2678 instead of nested.
2679
2680 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
2681
2682 Remove nested functions from memory map iterators.
2683
2684 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
2685 argument, passed to hook.
2686 * grub-core/kern/i386/coreboot/mmap.c
2687 (grub_linuxbios_table_iterate): Likewise.
2688 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
2689 instead of nested.
2690 (grub_machine_mmap_iterate): Add hook_data argument.
2691 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
2692 Add hook_data argument, passed to hook.
2693 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
2694 Likewise.
2695 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
2696 Likewise.
2697 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
2698 Likewise.
2699 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
2700 Likewise.
2701 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
2702 Likewise.
2703 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
2704 Likewise.
2705 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
2706 (grub_machine_mmap_iterate): Likewise.
2707 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
2708 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
2709 prototype.
2710 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
2711 Remove NESTED_FUNC_ATTR from here and from all users.
2712 (grub_mmap_iterate): Update prototype.
2713 (grub_efi_mmap_iterate): Update prototype. Update all callers to
2714 pass appropriate hook data.
2715 (grub_machine_mmap_iterate): Likewise.
2716
2717 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
2718 static instead of nested.
2719 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
2720 Rename to ...
2721 (lsmmap_hook): ... this.
2722 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
2723 Likewise.
2724 (grub_efiemu_mmap_fill: fill_hook): Likewise.
2725 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
2726 heap_init): Likewise.
2727 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
2728 Rename to ...
2729 (mmap_iterate_hook): ... this.
2730 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
2731 Likewise.
2732 * grub-core/lib/ieee1275/relocator.c
2733 (grub_relocator_firmware_get_max_events: count): Likewise.
2734 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
2735 to ...
2736 (grub_relocator_firmware_fill_events_iter): ... this.
2737 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
2738 hook): Likewise. Rename to ...
2739 (grub_relocator_alloc_chunk_align_iter): ... this.
2740 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
2741 Rename to ...
2742 (generate_e820_mmap_iter): ... this.
2743 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
2744 Rename to ...
2745 (count_hook): ... this.
2746 (grub_linux_boot: hook): Likewise. Rename to ...
2747 (grub_linux_boot_mmap_find): ... this.
2748 (grub_linux_boot: hook_fill): Likewise. Rename to ...
2749 (grub_linux_boot_mmap_fill): ... this.
2750 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
2751 hook): Likewise. Rename to ...
2752 (grub_fill_multiboot_mmap_iter): ... this.
2753 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
2754 hook): Likewise. Rename to ...
2755 (count_hook): ... this.
2756 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
2757 hook): Likewise. Rename to ...
2758 (grub_fill_multiboot_mmap_iter): ... this.
2759 * grub-core/loader/powerpc/ieee1275/linux.c
2760 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
2761 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
2762 Likewise. Rename to ...
2763 (alloc_phys_choose): ... this.
2764 (determine_phys_base: get_physbase): Likewise.
2765 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
2766 find_hook): Likewise.
2767 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
2768 (malloc_hook: count_hook): Likewise.
2769 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
2770 Likewise. Rename to ...
2771 (lower_hook): ... this.
2772 (grub_mmap_get_upper: hook): Likewise. Rename to ...
2773 (upper_hook): ... this.
2774 (grub_mmap_get_post64: hook): Likewise. Rename to ...
2775 (post64_hook): ... this.
2776 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
2777 Likewise. Rename to ...
2778 (lower_hook): ... this.
2779 (grub_mmap_get_upper: hook): Likewise. Rename to ...
2780 (upper_hook): ... this.
2781 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
2782 (grub_mmap_iterate: fill_hook): Likewise.
2783 (fill_mask): Pass addr and mask within a single struct.
2784 (grub_cmd_badram: hook): Make static instead of nested. Rename
2785 to ...
2786 (badram_iter): ... this.
2787 (grub_cmd_cutmem: hook): Likewise. Rename to ...
2788 (cutmem_iter): ... this.
2789
2790 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2791
2792 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
2793 delimit path in strings using quotes.
2794 * util/getroot.c (grub_guess_root_devices): Likewise.
2795 (grub_make_system_path_relative_to_its_root): Likewise.
2796 * util/grub-probe.c (probe): Likewise.
2797 * util/ieee1275/ofpath.c (find_obppath): Likewise.
2798 (xrealpath): Likewise.
2799
2800 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2801
2802 Fix compilation with older compilers.
2803
2804 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
2805 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
2806 declarations.
2807 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
2808 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
2809 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
2810 identifier with b.
2811 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
2812 * include/grub/crypto.h: Add type defines.
2813 * util/import_gcrypth.sed: Remove duplicate type defines.
2814
2815 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
2816
2817 New command list_trusted.
2818
2819 * grub-core/commands/verify.c (grub_cmd_list): New function.
2820
2821 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
2822
2823 * util/grub-mkimage.c (generate_image): Fix "size of public key"
2824 info message.
2825
2826 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
2827
2828 Remove nested functions from PCI iterators.
2829
2830 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
2831 passed to hook. Update all callers to pass appropriate hook data.
2832 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
2833 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
2834 Remove NESTED_FUNC_ATTR from here and from all users.
2835 (grub_pci_iterate): Update prototype.
2836 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
2837 instead of nested. Rename to ...
2838 (grub_cs5536_find_iter): ... this.
2839 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
2840 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
2841 Likewise.
2842 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
2843 Likewise.
2844 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
2845 Likewise.
2846 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
2847 Likewise.
2848 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
2849 * grub-core/video/radeon_fuloong2e.c
2850 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
2851 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
2852 find_card): Likewise.
2853 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
2854 Likewise.
2855
2856 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2857
2858 * grub-core/commands/verify.c: Mark messages for translating.
2859
2860 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2861
2862 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
2863 fatal.
2864
2865 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2866
2867 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
2868 fatal.
2869
2870 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
2871
2872 * autogen.sh: Do not try to delete nonexistant files.
2873 * util/import_gcrypth.sed: Add some missing header removals.
2874
2875 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
2876
2877 Clean up dangling references to grub-setup.
2878 Fixes Ubuntu bug #1082045.
2879
2880 * docs/grub.texi (Images): Refer generally to grub-install rather
2881 than directly to grub-setup.
2882 (Installing GRUB using grub-install): Remove direct reference to
2883 grub-setup.
2884 (Device map) Likewise.
2885 (Invoking grub-install): Likewise.
2886 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
2887 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
2888 * util/grub-install.in (usage): Likewise.
2889
2890 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
2891 Apply to grub-bios-setup and grub-sparc64-setup rather than to
2892 grub-setup.
2893 * configure.ac: Remove grub_setup output variable.
2894
2895 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
2896 to grub-bios-setup.
2897 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
2898 grub-setup to grub-sparc64-setup.
2899
2900 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
2901
2902 Import gcrypt public-key cryptography and implement signature checking.
2903
2904 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2905
2906 * grub-core/fs/ntfs.c: Ue more appropriate types.
2907 * grub-core/fs/ntfscomp.c: Likewise.
2908 * include/grub/ntfs.h: Likewise.
2909
2910 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2911
2912 Support Apple FAT binaries on non-Apple platforms.
2913
2914 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
2915 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
2916 Likewise.
2917 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
2918 Apple FAT binaries.
2919
2920 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
2921
2922 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
2923 sector devices.
2924
2925 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
2926
2927 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
2928 explicitly zeroing elements.
2929 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
2930 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
2931 of elements in a structure already allocated using grub_zalloc.
2932 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
2933
2934 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
2935
2936 * docs/grub.texi (grub_cpu): New subsection.
2937 (grub_platform): Likewise.
2938
2939 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
2940
2941 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
2942
2943 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2944
2945 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
2946 divisions.
2947
2948 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2949
2950 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
2951 * grub-core/fs/ntfscomp.c: Likewise.
2952 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
2953 (grub_ntfs_comp): Likewise.
2954
2955 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2956
2957 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
2958 Rename to ...
2959 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
2960 of groups_per_block. All users updated.
2961
2962 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2963
2964 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
2965 grub_error properly.
2966 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
2967 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
2968
2969 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2970
2971 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
2972 always in /boot/zfs.
2973 Reported by: Yuta Satoh.
2974
2975 2013-01-03 Yuta Satoh <nigoro>
2976
2977 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
2978 ${grub_probe}
2979
2980 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2981
2982 * configure.ac: Extend -Wno-trampolines to host.
2983
2984 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2985
2986 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
2987 entry->len = 0.
2988
2989 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
2990
2991 * docs/grub.texi (Invoking grub-mkrelpath): New section.
2992 (Invoking grub-script-check): Likewise.
2993
2994 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
2995
2996 * docs/grub.texi (Invoking grub-mount): New section.
2997 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
2998
2999 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
3000
3001 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
3002 test failures, so that a failing unit test correctly causes 'make
3003 check' to fail.
3004
3005 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
3006
3007 Fix failing printf test.
3008
3009 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
3010 '$' in the correct order when collecting type information.
3011
3012 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
3013
3014 * docs/grub.texi (configfile): Explain environment variable
3015 handling.
3016 (source): New section.
3017 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
3018
3019 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
3020
3021 Remove several trivially-unnecessary uses of nested functions.
3022
3023 * grub-core/commands/i386/pc/sendkey.c
3024 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
3025 instead of nested.
3026 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
3027 Rename to ...
3028 (legacy_file_getline): ... this.
3029 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
3030 Likewise.
3031 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
3032 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
3033 to ...
3034 (probe_dummy_iter): ... this.
3035 * grub-core/kern/i386/coreboot/mmap.c
3036 (grub_linuxbios_table_iterate: check_signature): Likewise.
3037 * grub-core/kern/parser.c (grub_parser_split_cmdline:
3038 check_varstate): Likewise. Mark inline.
3039 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
3040 an additional parameter.
3041 (find_long: fnd_long): Likewise. Pass two additional parameters.
3042 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
3043 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
3044 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
3045 Likewise. Rename to ...
3046 (grub_cmos_find_port_iter): ... this.
3047 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
3048 Rename to ...
3049 (find_rtc_iter): ... this.
3050
3051 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
3052 function directly into the function body, since it is only called
3053 once.
3054
3055 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
3056
3057 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
3058 __attribute__ ((unused)).
3059 * grub-core/video/bochs.c (find_card): Likewise.
3060 * grub-core/video/cirrus.c (find_card): Likewise.
3061 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
3062 * grub-core/video/sis315pro.c (find_card): Likewise.
3063 * grub-core/video/sm712.c (find_card): Likewise.
3064
3065 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
3066
3067 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
3068 Fixes Savannah bug #37821.
3069
3070 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
3071
3072 Apply program name transformations at build-time rather than at
3073 run-time. Fixes Debian bug #696465.
3074
3075 * acinclude.m4 (grub_TRANSFORM): New macro.
3076 * configure.ac: Create output variables with transformed names for
3077 most programs.
3078 * util/bash-completion.d/grub-completion.bash.in: Use
3079 pre-transformed variables for program names.
3080 * util/grub-install.in: Likewise.
3081 * util/grub-kbdcomp.in: Likewise.
3082 * util/grub-mkconfig.in: Likewise.
3083 * util/grub-mkconfig_lib.in: Likewise.
3084 * util/grub-mknetdir.in: Likewise.
3085 * util/grub-mkrescue.in: Likewise.
3086 * util/grub-mkstandalone.in: Likewise.
3087 * util/grub-reboot.in: Likewise.
3088 * util/grub-set-default.in: Likewise.
3089 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3090 * tests/util/grub-shell-tester.in: Remove unused assignment.
3091 * tests/util/grub-shell.in: Likewise.
3092 * util/grub.d/00_header.in: Likewise.
3093
3094 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
3095
3096 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
3097
3098 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
3099 HAVE_RAW_DECL_GETS.
3100 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
3101
3102 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
3103
3104 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
3105 Reported by: Eriks Latosheks <foresterlv>.
3106
3107 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3108
3109 * docs/grub.texi (Network): Update instructions on generating netboot
3110 image.
3111
3112 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3113
3114 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
3115 around device name if necessarry.
3116
3117 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3118
3119 * util/grub-install.in: Follow the symbolic link parameter added
3120 to the file command.
3121
3122 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
3123
3124 * util/grub-install.in: Remove stale TODO.
3125
3126 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3127
3128 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
3129 dynamic allocation for the bootpath buffer.
3130
3131 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
3132
3133 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
3134 window too small.
3135
3136 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3137
3138 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
3139 argument rather than font name. All users updated.
3140 (grub_gfxterm_set_window): Likewise.
3141
3142 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
3143
3144 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
3145 from working.
3146
3147 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3148
3149 * util/getroot.c (convert_system_partition_to_system_disk): Support
3150 nbd disks.
3151
3152 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3153
3154 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
3155 infinite loop on corrupted FS.
3156
3157 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
3158
3159 Fix big-endian mtime.
3160
3161 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
3162 together sec and usec.
3163 (grub_ufs_dir): Use correct byteswapping for UFS time.
3164
3165 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
3166
3167 Support big-endian UFS1.
3168
3169 * Makefile.util.def (libgrubmods): Add ufs_be.c
3170 * grub-core/Makefile.core.def (ufs1_be): New module.
3171 * grub-core/fs/ufs_be.c: New file.
3172 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
3173 the file.
3174
3175 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
3176
3177 * include/grub/types.h: Fix functionality unaffecting typo in
3178 GRUB_TARGET_WORDSIZE conditional macro.
3179
3180 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3181
3182 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
3183
3184 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
3185
3186 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
3187 that /netbsd appears first (when it exists).
3188
3189 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
3190
3191 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
3192 Fixes Savannah bug #37558.
3193
3194 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
3195
3196 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
3197 description of extract_entries_configfile.
3198
3199 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
3200
3201 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
3202 preferred_address.
3203 (grub_cmd_linux): Likewise.
3204 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
3205 preferred_lifetime. Update all users.
3206
3207 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
3208
3209 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
3210 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
3211
3212 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
3213
3214 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
3215 errors from grub-probe to /dev/null, not stdout.
3216
3217 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
3218
3219 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
3220 sector 1.
3221
3222 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
3223
3224 * util/grub-install.in: Make the error message if $source_dir
3225 doesn't exist more useful.
3226
3227 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
3228
3229 Fix grub-emu build on FreeBSD.
3230
3231 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
3232 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
3233 headers on Linux.
3234 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
3235 implementation is currently Linux-specific.
3236 * util/getroot.c (exec_pipe): Define only on Linux or when either
3237 libzfs or libnvpair is unavailable.
3238 (find_root_devices_from_poolname): Remove unused path variable.
3239
3240 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
3241
3242 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
3243 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
3244 should fit before end == 63.
3245
3246 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
3247
3248 * util/grub-setup.c (write_rootdev): Remove unused core_img
3249 parameter. Update all callers.
3250 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
3251 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
3252 GRUB_SETUP_BIOS.
3253
3254 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
3255
3256 * util/grub-mkconfig_lib.in (grub_tab): New variable.
3257 (grub_add_tab): New function.
3258 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
3259 * util/grub.d/10_illumos.in: Likewise.
3260 * util/grub.d/10_kfreebsd.in: Likewise.
3261 * util/grub.d/10_linux.in: Likewise.
3262 * util/grub.d/10_netbsd.in: Likewise.
3263 * util/grub.d/10_windows.in: Likewise.
3264 * util/grub.d/10_xnu.in: Likewise.
3265 * util/grub.d/20_linux_xen.in: Likewise.
3266 * util/grub.d/30_os-prober.in: Likewise.
3267
3268 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
3269
3270 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3271 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
3272 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
3273 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
3274 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
3275 ieee1275-nocursor.
3276 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
3277 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
3278
3279 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
3280
3281 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
3282 le-conversion.
3283 Reported by: BURETTE, Bernard.
3284
3285 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
3286
3287 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
3288 from comment.
3289
3290 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
3291
3292 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
3293 IEEE1275 machines. Fixes powerpc-emu compilation.
3294 * include/grub/terminfo.h: Likewise.
3295
3296 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3297
3298 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
3299 a const pointer.
3300 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
3301 const pointer.
3302 (efiemu_set_variable): Make vendor_guid a const pointer.
3303
3304 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3305
3306 Don't require grub-mkconfig_lib to generate manpages for programs.
3307
3308 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
3309 dependencies, don't add grub-mkconfig_lib.
3310 (program): Pass empty adddeps.
3311 (script): Pass grub-mkconfig_lib as adddeps.
3312
3313 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
3314
3315 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
3316 * util/getroot.c (grub_find_device): Likewise.
3317 (get_mdadm_uuid): Likewise.
3318 (grub_util_is_imsm): Likewise.
3319 (grub_util_pull_device): Likewise.
3320 * util/grub-probe.c (probe): Likewise.
3321
3322 2012-09-10 Benoit Gschwind <gschwind>
3323
3324 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
3325 (devs): Add devpath_8.
3326
3327 2012-09-08 Peter Jones <pjones@redhat.com>
3328
3329 * grub-core/Makefile.core.def (efifwsetup): New module.
3330 * grub-core/commands/efi/efifwsetup.c: New file.
3331 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
3332 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
3333 New define.
3334 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
3335
3336 2012-09-05 Jiri Slaby <jslaby@suse.cz>
3337
3338 * configure.ac: Add SuSe path.
3339
3340 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
3341
3342 * NEWS: Fix typo.
3343
3344 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
3345
3346 * util/import_gcry.py: Sort cipher_files, to make build system
3347 generation more deterministic.
3348
3349 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3350
3351 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
3352 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
3353 (grub_set_datetime): Likewise.
3354
3355 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3356
3357 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
3358 warnings.
3359
3360 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3361
3362 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
3363
3364 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3365
3366 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
3367
3368 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3369
3370 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
3371 required for checkouts from bzr, but it may be useful for users or
3372 distributors wishing to update translations against a tarball
3373 distribution, and it can be helpful for the tarball to be a superset
3374 of what's in bzr.
3375
3376 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3377
3378 * Makefile.am (EXTRA_DIST): Add
3379 grub-core/tests/boot/linux.init-mips.S,
3380 grub-core/tests/boot/linux.init-ppc.S, and
3381 grub-core/tests/boot/linux-ppc.cfg.
3382
3383 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3384
3385 * grub-core/mmap/mips/loongson: Remove empty directory.
3386
3387 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3388
3389 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
3390 gone.
3391
3392 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3393
3394 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
3395 grub-sparc64-setup.
3396
3397 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
3398
3399 * configure.ac: Strengthen the test for working -nostdinc -isystem.
3400
3401 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
3402
3403 * po/POTFILES.in: Regenerated.
3404
3405 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
3406
3407 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
3408 (NetBSD): New subsection.
3409
3410 2012-07-22 Ales Nesrsta <starous@volny.cz>
3411
3412 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
3413 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
3414
3415 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3416
3417 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
3418 * util/grub.d/10_hurd.in: Add missing quoting.
3419 * util/grub.d/10_illumos.in: Likewise.
3420 * util/grub.d/10_kfreebsd.in: Likewise.
3421 * util/grub.d/10_linux.in: Likewise.
3422 * util/grub.d/20_linux_xen.in: Likewise.
3423
3424 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3425
3426 New command `lsefi'.
3427
3428 * grub-core/Makefile.core.def (lsefi): New module.
3429 * grub-core/commands/efi/lsefi.c: New file.
3430 * include/grub/efi/api.h: Add more GUIDs.
3431
3432 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3433
3434 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
3435 (grub_bsd_elf32_hook): Likewise.
3436 (grub_bsd_elf64_size_hook): Likewise.
3437 (grub_bsd_elf64_hook): Likewise.
3438 (grub_bsd_load_elf): Likewise.
3439
3440 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3441
3442 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
3443 if hash function is unavailable.
3444 (dec_stream_header): Likewise.
3445
3446 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3447
3448 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
3449 filter state.
3450
3451 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3452
3453 Fix coreboot compilation.
3454
3455 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
3456 (grub_vga_text_init_real): ... this.
3457 (grub_vga_text_fini): Rename to ...
3458 (grub_vga_text_fini_real): ... this.
3459
3460 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
3461
3462 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
3463
3464 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3465
3466 * grub-core/lib/legacy_parse.c: Support clear and testload.
3467
3468 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3469
3470 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
3471
3472 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3473
3474 * grub-core/fs/ext2.c: Experimental support for 64-bit.
3475
3476 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3477
3478 * grub-core/net/tftp.c (ack): Fix endianness problem.
3479 (tftp_receive): Likewise.
3480 Reported by: Michael Davidsaver.
3481
3482 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3483
3484 * gentpl.py: Make mans depend on grub-mkconfig_lib.
3485
3486 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3487
3488 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
3489 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
3490 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
3491
3492 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
3493
3494 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
3495 efi_mmap_size.
3496 Reported by: Stuart Hayes.
3497
3498 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
3499
3500 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
3501
3502 * grub-core/Makefile.core.def (mda_text): New module.
3503 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
3504 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
3505 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
3506 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
3507 here.
3508 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
3509 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
3510 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
3511 here.
3512 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
3513 to ..
3514 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
3515 ... here
3516 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
3517 here.
3518 * grub-core/term/i386/vga_common.c: Removed.
3519 * include/grub/i386/vga_common.h: Likewise.
3520 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
3521 (grub_vga_cr_bw_read): Likewise.
3522 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
3523 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
3524 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
3525 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
3526 grub_vga_cr_read/grub_vga_cr_write.
3527 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
3528
3529 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3530
3531 * configure.ac: Bump version to 2.00.
3532 * grub-core/normal/main.c (features): Add feature_200_final.
3533
3534 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3535 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
3536
3537 * NEWS: Fix unclarity and language mistakes.
3538
3539 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3540
3541 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
3542 additional size to 3 pages.
3543 Reported by: Stuart Hayes.
3544
3545 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3546
3547 * NEWS: Add 2.00 entry.
3548
3549 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3550
3551 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
3552 put explicit "/" for empty path.
3553 (wildcard_expand): Improve dprintf.
3554
3555 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
3556
3557 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
3558 it's equal to currnode. This can happen with "" symlink.
3559
3560 2012-06-27 Yves Blusseau <blusseau@zetam.org>
3561
3562 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
3563 echo shell command by printf command.
3564
3565 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3566
3567 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
3568 the value returned by firmware is the maximal position, not diumension.
3569 (grub_terminfo_output_state): Use a more sane fallback.
3570
3571 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3572
3573 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
3574
3575 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3576
3577 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
3578 frequency to 150 MHz.
3579
3580 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3581
3582 Apple fixes.
3583
3584 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
3585 __APPLE_
3586 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
3587 definition.
3588 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
3589
3590 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3591
3592 Handle slash in HFS label.
3593
3594 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
3595 (grub_hfs_dir): Tanslate slash.
3596 (grub_hfs_label): Don't translate slash.
3597
3598 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3599
3600 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
3601 network protocol listing since it introduces problematic dependency on
3602 net module.
3603
3604 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3605
3606 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
3607
3608 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3609
3610 Init video early on yeeloong to avoid being rebooted by watchdog.
3611
3612 * grub-core/Makefile.am (gensm712): New target.
3613 (sm712_start.S): Likewise.
3614 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
3615 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
3616 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
3617 description.
3618 * include/grub/vga.h: Move registry definitions to...
3619 * include/grub/vgaregs.h: ... here.
3620
3621 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
3622
3623 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
3624 signedness.
3625
3626 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3627
3628 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
3629 platforms with firmware disk drivers in the core.
3630
3631 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3632
3633 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
3634 informative verbose message.
3635 (read_lv): Handle 64-bit segment size.
3636
3637 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3638
3639 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
3640
3641 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3642
3643 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
3644 character but still remove trainling spaces.
3645 (grub_fat_label): Ignore archive flag.
3646
3647 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3648
3649 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
3650 cast between linux_kernel_header and linux_kernel_params.
3651
3652 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3653
3654 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
3655 type for size.
3656 (grub_raid6_recover_func_t): Likewise.
3657 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
3658 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
3659
3660 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
3661
3662 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
3663
3664 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
3665
3666 Fix overflow.
3667
3668 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
3669 [__NetBSD__]: Add explicit cast before bitshift.
3670
3671 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3672
3673 * configure.ac: Bump to 2.00~rc1.
3674
3675 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3676
3677 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
3678 half of $a0.
3679
3680 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3681 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
3682
3683 * docs/grub.texi: Fix search syntax.
3684 (Multi-boot manual config): Put msdos rather than GPT example.
3685 Grammar corrections.
3686
3687 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
3688
3689 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
3690
3691 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3692
3693 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
3694
3695 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3696
3697 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
3698 message on double free. Put the value of magic in case of mismatch.
3699
3700 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3701
3702 Speed-up video on yeeloong.
3703
3704 * grub-core/video/sm712.c (framebuffer): Remove render_target and
3705 add cached_ptr.
3706 (grub_video_sm712_video_fini): Unmap cached_ptr.
3707 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
3708 (grub_video_sm712_set_active_render_target): Removed.
3709 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
3710 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
3711 sync caches.
3712
3713 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3714
3715 Avoid flushing the same line multiple times on loongson.
3716
3717 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
3718 Step in 32 bytes and not 1 byte.
3719 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
3720 Likewise.
3721
3722 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3723
3724 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
3725 subvolumes.
3726
3727 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3728
3729 Implement flow control for http.
3730
3731 * grub-core/net/http.c (parse_line): Handle response 206.
3732 (http_receive): Stall if too many packets are in the queue.
3733 (http_establish): Fix range header.
3734 (http_seek): Fix double free.
3735 (http_close): Likewise.
3736 (http_packets_pulled): New function.
3737 (grub_http_protocol): Set http_seek
3738 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
3739 (ack_real): Set window depending on i_stall.
3740 (grub_net_send_tcp_packet): Likewise.
3741 (grub_net_tcp_stall): New function.
3742 (grub_net_tcp_unstall): Likewise.
3743 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
3744 (grub_net_tcp_unstall): Likewise.
3745
3746 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3747
3748 * grub-core/net/tftp.c: Decrease stall to 50 packets.
3749
3750 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3751
3752 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
3753
3754 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3755
3756 * tests/util/grub-shell.in: Fix a typo.
3757
3758 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3759
3760 Implement flow control for tftp.
3761
3762 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
3763 packets but stop only if stop condition is satisfied.
3764 (grub_net_fs_read_real): Call packets_pulled after real read. Use
3765 `stall' instead of `eof' as stop condition.
3766 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
3767 (http_err): Likewise.
3768 * grub-core/net/tftp.c (ack): Replace the first argument with data
3769 instead of socket.
3770 (tftp_receive): Stall if too many packets are in wait queue.
3771 (tftp_packets_pulled): New function.
3772 (grub_tftp_protocol): Set packets_pulled.
3773 * include/grub/net.h (grub_net_packets): New field count.
3774 (grub_net_put_packet): Increment count.
3775 (grub_net_remove_packet): Likewise.
3776 (grub_net_app_protocol): New field `packets_pulled'.
3777 (grub_net): New field `stall'.
3778
3779 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
3780
3781 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
3782 sync part to handle them.
3783
3784 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3785
3786 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
3787 * grub-core/net/drivers/ieee1275/ofnet.c
3788 (grub_ieee1275_net_config_real): Likewise.
3789
3790 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3791
3792 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
3793 the direct route for server/gateway.
3794
3795 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3796
3797 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
3798 IP address to server name since we may not hame the DNS.
3799
3800 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3801
3802 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
3803 freeing random buffer on failure.
3804 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
3805
3806 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3807
3808 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
3809
3810 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3811
3812 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
3813 reserved bytes.
3814 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
3815 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
3816 Handle malloc error correctly.
3817
3818 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3819
3820 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
3821 blocks.
3822
3823 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
3824
3825 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
3826 increment.
3827
3828 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3829
3830 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
3831 none is explicitly specified.
3832
3833 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3834
3835 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
3836 while reallocating.
3837
3838 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3839
3840 Respect netmask from bootp/dhcp.
3841
3842 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
3843 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
3844 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
3845 into ...
3846 (grub_net_add_ipv4_local): ... this.
3847 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
3848 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
3849 (grub_net_add_ipv4_local): New proto.
3850
3851 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3852
3853 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
3854 determining EFI memory map size.
3855
3856 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3857
3858 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
3859
3860 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3861
3862 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
3863 when looking for partition separator.
3864
3865 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3866
3867 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
3868 Escape commas.
3869
3870 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3871
3872 Restructure FAT driver to avoid hook in label reading as it hits a
3873 GCC bug.
3874
3875 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
3876 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
3877 (grub_fat_iterate_dir): Split into ...
3878 (grub_fat_iterate_init): ... this, ...
3879 (grub_fat_iterate_fini): ... this, ...
3880 (grub_fat_iterate_dir_next): ... and this. All users updated.
3881
3882 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
3883
3884 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
3885 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
3886 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3887 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
3888 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
3889 New fields last_key and last_key_time.
3890 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
3891 extended key-esc into extended key-extended key.
3892
3893 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3894
3895 Avoid unnecessary memcpy of whole video buffer.
3896
3897 * grub-core/video/fb/video_fb.c (dirty): New struct.
3898 (framebuffer): Add members current_dirty and previous_dirty.
3899 (dirty): New function.
3900 (grub_video_fb_fill_rect): Update dirty.
3901 (common_blitter): Likewise.
3902 (grub_video_fb_scroll): Likewise.
3903 (doublebuf_blit_update_screen): Copy only dirty part.
3904 (doublebuf_pageflipping_update_screen): Likewise.
3905 (grub_video_fb_doublebuf_blit_init): Init dirty.
3906 (doublebuf_pageflipping_init): Likewise.
3907 (grub_video_fb_setup): Likewise.
3908
3909 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3910
3911 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
3912 poll rate.
3913
3914 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3915
3916 Fix wildcard regexp dot and other special characters handling.
3917 Reported by: Robert Mabee.
3918
3919 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
3920 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
3921 (split_path): Trigger expansion on '?'.
3922 (unescape): New function.
3923 (wildcard_expand): Unescape parts copied without globbing.
3924 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
3925 (grub_script_arglist_to_argv): Don't unescape expansions.
3926
3927 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3928
3929 * include/grub/net.h (grub_net_card): New member txbufsize.
3930 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
3931 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
3932 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
3933 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
3934 txbufsize.
3935 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
3936 compatible property to check for macs. Set
3937 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
3938 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
3939 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
3940 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
3941 (send_card_buffer): Use txbuf.
3942 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
3943 nested function out of the parent while on it.
3944
3945 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3946
3947 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
3948 presence check.
3949 (grub_ieee1275_net_config_real): Fix config pointer.
3950
3951 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3952
3953 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
3954 filename parsing to non-block devices.
3955
3956 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
3957
3958 * grub-core/kern/device.c (grub_device_open): Remove dead code.
3959
3960 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3961
3962 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
3963 All users updated.
3964
3965 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3966
3967 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
3968 UUID search command even if hints probing failed.
3969
3970 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3971
3972 * po/POTFILES.in: Regenerated.
3973
3974 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
3975
3976 Speed-up video on fuloong.
3977
3978 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
3979 New function.
3980 (grub_pci_device_unmap_range): Handle non-cached address.
3981 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
3982 add direct_ptr.
3983 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
3984 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
3985 (grub_video_sis315pro_set_active_render_target): Removed.
3986 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
3987 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
3988 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
3989 sync caches.
3990 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
3991 New proto.
3992
3993 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3994
3995 * docs/grub.texi (Multi-boot manual config): New section.
3996
3997 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3998
3999 Avoid slow read-back from VRAM.
4000
4001 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
4002 Move from here ...
4003 * grub-core/video/fb/video_fb.c
4004 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
4005 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
4006 (front_target): Remove front_target. Add pages.
4007 (grub_video_fb_init): Skip setting front_pages.
4008 (grub_video_fb_fini): Likewise.
4009 (doublebuf_blit_update_screen): Use pages.
4010 (grub_video_fb_doublebuf_blit_init): Likewise.
4011 (doublebuf_pageflipping_init): Allocate offscreen buffer.
4012 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
4013 (grub_video_fb_setup): Prefer doublebuffing.
4014
4015 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4016
4017 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
4018 gzio.
4019
4020 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4021
4022 Add loongson tests.
4023
4024 * tests/util/grub-shell.in: Handle loongson.
4025 * tests/partmap_test.in: Add loongson to the list of platform using ATA
4026 drivers.
4027 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
4028 Reboot instead of shutdown if REBOOT is defined.
4029
4030 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4031
4032 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
4033 sized ports since unlike on real hardware qemu supports only 32-bit
4034 regs.
4035
4036 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4037
4038 * Makefile.util.def (grub-mkrescue): Enable on loongson.
4039 * util/grub-mkrescue.in: Handle loongson.
4040
4041 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
4042
4043 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
4044 Set is_part appropriately.
4045 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
4046 names. Canonicalize partition without full disk.
4047
4048 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4049
4050 Revert usb-quiesce since it's wrong.
4051
4052 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
4053 (grub_ofdisk_init): Don't do quiesce.
4054
4055 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4056
4057 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
4058 PowerMac workaround to Xserves as well.
4059 Information supplied by: Benjamin Herrenschmidt.
4060
4061 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4062
4063 Don't assume that beginning address is also the entry point on ppc.
4064
4065 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
4066 (grub_linux_boot): Use linux_entry.
4067 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
4068 (grub_linux_load64): Likewise.
4069
4070 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4071
4072 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
4073
4074 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4075
4076 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
4077 needlessly lose the console.
4078
4079 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4080
4081 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
4082 space.
4083
4084 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
4085
4086 Remove non-functional EFI grub_get_rtc. Put a better fatal message
4087 than current grub_get_rtc() not implemented when booted with
4088 coreboot without TSC.
4089
4090 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
4091 Add machine/time.h to kernel headers on loongson.
4092 * grub-core/Makefile.core.def (kernel): Remove
4093 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
4094 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
4095 (grub_get_rtc): Likewise.
4096 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
4097 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
4098 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
4099 * grub-core/kern/i386/tsc.c (grub_tsc_init)
4100 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
4101 rather than installing known non-working time source.
4102 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
4103 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
4104 * include/grub/time.h: Don't include machine/time.h.
4105 * include/grub/efi/time.h: Removed.
4106 * include/grub/i386/efi/time.h: Likewise.
4107 * include/grub/i386/ieee1275/time.h: Likewise.
4108 * include/grub/powerpc/ieee1275/time.h: Likewise.
4109 * include/grub/sparc64/ieee1275/time.h: Likewise.
4110 * include/grub/x86_64/efi/time.h: Likewise.
4111
4112 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
4113
4114 Remove dot on i and j when combining with above diacritics.
4115
4116 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
4117 value.
4118 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
4119 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
4120 with dotless variants when any combining above is present.
4121
4122 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4123
4124 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
4125 text and not binary.
4126
4127 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4128
4129 Stop polling as soon as we have the packet we were waiting for.
4130
4131 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
4132 All users updated.
4133 * grub-core/net/arp.c (have_pending): New var.
4134 (pending_req): Likewise.
4135 (grub_net_arp_send_request): Fill pending_req and use have_pending as
4136 stop indicator.
4137 (grub_net_arp_receive): Set have_pending.
4138 * grub-core/net/dns.c (recv_data): New field stop.
4139 (recv_hook): Set stop.
4140 (grub_net_dns_lookup): Init stop and use as stop condition.
4141 * grub-core/net/http.c (http_establish): Use headers_recv as stop
4142 condition.
4143 * grub-core/net/net.c (grub_net_poll_cards): New argument
4144 stop_condition. Stop when it goes true.
4145 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
4146 indicator.
4147 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
4148
4149 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4150
4151 Keep TX and RX buffers on EFI rather than always allocate new ones.
4152
4153 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
4154 card. All users updated.
4155 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
4156 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
4157 (get_card_packet): Likewise.
4158 (grub_efinet_findcards): Init new fields.
4159
4160 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4161
4162 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
4163 compilation error on sparc64.
4164
4165 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4166
4167 Use ITC on IA64 rather than broken routine based on daytime.
4168
4169 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
4170 ia64.
4171 (grub_get_rtc) [__ia64__]: Likewise.
4172 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
4173 (get_itc): New function.
4174 (grub_rtc_get_time_ms): Likewise.
4175 (grub_machine_init): Calibrate ITC.
4176 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
4177 Keep only on non-ia64. Don't export since it's broken and used only
4178 if TSC is unavailable.
4179
4180 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4181
4182 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
4183 even if it's used.
4184 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
4185 Skip if parent is unused.
4186
4187 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4188
4189 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
4190
4191 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4192
4193 Fix wildcard escaping.
4194
4195 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
4196 * grub-core/script/execute.c (wildcard_escape): .. to here.
4197 Don't escape dot.
4198 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
4199 * grub-core/script/execute.c (wildcard_unescape): .. to here.
4200 Don't escape dot.
4201 * grub-core/script/execute.c (gettext_append): Always escape.
4202 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
4203 * grub-core/script/yylex.l: Don't cut away the escaping.
4204 * tests/grub_script_echo1.in: Add tests with wildcard.
4205
4206 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4207
4208 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
4209 (ftdi_hw_configure): Likewise.
4210 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
4211 define.
4212 (real_config): Handle 1.5 stop bits.
4213 (pl2303_hw_configure): Likewise.
4214
4215 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4216
4217 * Makefile.am: Add ppc linux bootcheck.
4218 * grub-core/tests/boot/linux-ppc.cfg: New file.
4219 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
4220
4221 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4222
4223 * tests/grub_script_expansion.in: Skip network protocols.
4224
4225 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4226
4227 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
4228
4229 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4230
4231 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
4232 --rom-directory.
4233 Add -graft-points.
4234
4235 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4236
4237 ESCC serial driver for conducting sautomated tests in qemu.
4238 Not tested on real hardware.
4239
4240 * include/grub/serial.h (grub_serial_port): New field escc_desc.
4241 * grub-core/term/ieee1275/escc.c: New file.
4242 * grub-core/Makefile.core.def (escc): New module.
4243
4244 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4245
4246 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
4247 invalid on error.
4248 (serial_hw_fetch): Don't read invalid handle.
4249 (serial_hw_put): Don't write into invalid handle.
4250
4251 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4252
4253 Add a 1.5 stop bits value.
4254
4255 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
4256 * include/grub/serial.h (grub_serial_stop_bits_t): Add
4257 GRUB_SERIAL_STOP_BITS_1_5.
4258
4259 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4260
4261 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
4262 value rather than let it uninited.
4263
4264 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4265
4266 * grub-core/commands/wildcard.c (+check_file): New function.
4267 (wildcard_expand): Don't expand to non-existing files, expand with
4268 suffix and not attempt to expand if not needed.
4269
4270 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4271
4272 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
4273 out of partitions containing other partitions.
4274
4275 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4276
4277 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
4278 on some qemu versions with GRUB.
4279
4280 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
4281 define.
4282 (grub_openbsd_bootarg_pcibios): New struct.
4283 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
4284 Add PCIINFO.
4285
4286 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4287
4288 * tests/util/grub-shell.in: Trim firmware output on EFI.
4289
4290 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4291
4292 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
4293 and coreboot since it's already in kernel.
4294
4295 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4296
4297 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
4298 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
4299 to here. New return value start. All users updated.
4300 Recursively scan linear mappings.
4301 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
4302 proto.
4303 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
4304 Use grub_util_get_dm_node_linear_info.
4305 * util/getroot.c (convert_system_partition_to_system_disk): Use
4306 grub_util_info rather than grub_dprintf.
4307 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
4308
4309 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4310
4311 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
4312
4313 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
4314 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
4315
4316 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4317
4318 * include/grub/types.h (grub_set_unaligned64): New function.
4319 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
4320 (setup): Likewise.
4321
4322 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4323
4324 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
4325 (grub_ofdisk_fini): Quiesce USB devices.
4326
4327 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4328
4329 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
4330 caches.
4331
4332 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4333
4334 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
4335
4336 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4337
4338 * grub-core/disk/pata.c (grub_pata_pio_read)
4339 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
4340 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
4341
4342 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4343
4344 Extend automated tests to qemu-mips.
4345
4346 * Makefile.am: reorganise tests and enable qemu-mips.
4347 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
4348 * grub-core/tests/boot/linux.init-mips.S: New file.
4349 * tests/partmap_test.in: Handle ata0 disks.
4350 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
4351 non-pc i386.
4352
4353 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4354
4355 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
4356 ia64.
4357 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
4358 quotes while on it.
4359
4360 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4361
4362 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
4363 (grub_halt): Likewise.
4364 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
4365
4366 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4367
4368 * grub-core/term/serial.c (grub_serial_register)
4369 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
4370 the behaviour in line with x86 platforms.
4371
4372 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4373
4374 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
4375 (grub_ata_strncpy): Likewise.
4376 (grub_ata_identify): Add missing byteswaps.
4377
4378 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4379
4380 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
4381 byte-swap.
4382 (screen_read_char): Likewise.
4383 (grub_vga_text_cls): Likewise.
4384
4385 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4386
4387 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
4388 filenames.
4389 (make_file_path): Likewise.
4390
4391 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4392
4393 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
4394 machines.
4395 Tested by: Paulo Flabiano Smorigo.
4396 Crucial information about API supplied by: Coleen <Last name unknown>.
4397 Reviewed by: Coleen <Last name unknown>.
4398
4399 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4400
4401 * util/grub-mkimage.c: Disable -Wcast-align.
4402
4403 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4404
4405 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
4406 as they are fatal.
4407
4408 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4409
4410 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
4411
4412 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4413
4414 * util/grub-probe.c (escape_of_path): Fix double free.
4415
4416 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4417
4418 * grub-core/commands/videoinfo.c (hook): Show pitch.
4419
4420 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4421
4422 * util/grub.d/20_linux_xen.in: Skip xen-syms.
4423
4424 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4425
4426 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
4427 (probe): Add ieee1275 to OFW devices.
4428
4429 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4430
4431 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
4432
4433 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4434
4435 Handle IBM OFW path.
4436
4437 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
4438 available.
4439 (of_path_of_scsi): Handle vdevice.
4440
4441 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
4442
4443 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
4444 Allocate in multiples of 16 to avoid adding a few bytes free region the
4445 windows bugs upon.
4446
4447 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
4448
4449 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
4450 Allocate in multiples of 16 to avoid adding a few bytes free region the
4451 windows bugs upon.
4452 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
4453
4454 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
4455
4456 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
4457 resolutions.
4458 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
4459 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
4460
4461 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
4462
4463 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
4464
4465 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
4466
4467 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
4468 resulted in \\ at the end of the line.
4469
4470 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
4471
4472 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
4473 (grub_parser_cmdline_state): Likewise.
4474 (grub_parser_split_cmdline): Likewise.
4475
4476 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
4477
4478 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
4479 /dev/root and /dev/dm-*.
4480
4481 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
4482
4483 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
4484 fix partially stale display.
4485
4486 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
4487
4488 * grub-core/normal/menu_entry.c (backward_char): Use right line for
4489 substraction.
4490
4491 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
4492
4493 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
4494 Fix MBR remapping workaround.
4495 (grub_util_biosdisk_read) [__linux__]: Likewise.
4496
4497 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
4498
4499 * util/grub-install.in: Check for ieee1275 and not ieee1276.
4500
4501 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
4502
4503 * configure.ac: Bump to beta6.
4504
4505 2012-05-31 Christer Weinigel <christer@weinigel.se>
4506
4507 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
4508
4509 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
4510
4511 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
4512 (grub_cmd_linux): Likewise.
4513
4514 2012-05-31 Christer Weinigel <christer@weinigel.se>
4515
4516 Fix EHCI low-speed.
4517
4518 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
4519 (GRUB_EHCI_MULT_TWO): Likewise.
4520 (GRUB_EHCI_MULT_THREE): Likewise.
4521 (GRUB_EHCI_CMASK_MASK): New enum value.
4522 (GRUB_EHCI_SMASK_MASK): Likewise.
4523 (GRUB_EHCI_CMASK_OFF): Likewise.
4524 (GRUB_EHCI_SMASK_OFF): Likewise.
4525 (grub_ehci_pci_iter): Enable periodic schedule.
4526 (grub_ehci_parse_notrun): Likewise.
4527 (grub_ehci_restore_hw): Likewise.
4528 (grub_ehci_setup_qh): Set flags for low speed transfers.
4529 (grub_ehci_find_qh): Use periodic list for low speed.
4530 (grub_ehci_setup_transfer): Check periodic queue as well.
4531 (grub_ehci_check_transfer): Likewise.
4532 (grub_ehci_cancel_transfer): Cancel periodic transfer.
4533
4534 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4535
4536 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
4537 parameter is used.
4538
4539 2012-05-31 Peter Jones <pjones@redhat.com>
4540
4541 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
4542 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
4543 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
4544
4545 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
4546
4547 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
4548 uninited variable. Allocate at least setup_sects.
4549
4550 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4551
4552 Fix handling of EFI with big memory maps.
4553
4554 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
4555 (real_mode_mem): Likewise.
4556 (real_mode_target): Likewise.
4557 (real_mode_pages): Likewise.
4558 (prot_mode_pages): Likewise.
4559 (linux_params): New var.
4560 (linux_cmdline): Likewise.
4561 (free_pages): Don't set real mode variables.
4562 (allocate_pages): Don't allocate real mode memory.
4563 (grub_e820_add_region): Remove the limit.
4564 (grub_linux_boot): Allocate and copy real mode memory.
4565 (grub_linux_unload): Free linux_cmdline.
4566 (grub_cmd_linux): Use temporary storage for parameters.
4567 (grub_cmd_initrd): Likewise.
4568 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
4569 (linux_kernel_params): Make it 1K big.
4570
4571 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4572
4573 * Makefile.util.def: Remove -Wno-format.
4574 * grub-core/Makefile.core.def: Likewise.
4575
4576 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4577
4578 * tests/cmp_unit_test.c: Add missing failure message.
4579 * tests/example_unit_test.c: Likewise.
4580 * tests/printf_unit_test.c: Likewise.
4581
4582 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
4583
4584 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
4585 relaxation of protective MBR requirements.
4586
4587 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
4588
4589 * configure.ac: Add condition for COND_HOST_XNU.
4590 * Makefile.util.def (10_xnu): New script.
4591 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
4592
4593 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
4594
4595 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
4596 objconv bug.
4597
4598 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
4599
4600 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
4601 Binary on other platforms stays identical.
4602
4603 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4604
4605 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
4606 Apple.
4607
4608 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4609
4610 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
4611
4612 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4613
4614 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
4615 rather than defining size_t ourselves to avoid conflict.
4616
4617 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4618
4619 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
4620 initialisation to avoid __bzero reference.
4621
4622 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4623
4624 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
4625 version.
4626 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
4627 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
4628 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
4629 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
4630 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
4631
4632 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4633
4634 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
4635 * grub-core/kern/misc.c: Likewise.
4636 * grub-core/loader/i386/xnu.c: Likewise.
4637 * include/grub/i386/tsc.h: Likewise.
4638 * include/grub/symbol.h: Likewise.
4639
4640 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4641
4642 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
4643 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
4644 on older compiler.
4645
4646 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4647
4648 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
4649 Implement Apple flavour.
4650 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
4651
4652 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4653
4654 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
4655 (memmove) [__APPLE__]: Likewise.
4656 (memcpy) [__APPLE__]: Likewise.
4657 (memset) [__APPLE__]: Likewise.
4658 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
4659 (memmove) [__APPLE__]: Likewise.
4660 (memcpy) [__APPLE__]: Likewise.
4661 (memset) [__APPLE__]: Likewise.
4662
4663 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
4664
4665 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
4666 dependency discard.
4667
4668 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4669
4670 * grub-core/normal/main.c (read_config_file): Provide config_file and
4671 config_directory.
4672 * util/grub.d/41_custom.in: Use config_directoy when available.
4673
4674 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4675
4676 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
4677 (grub_bfs_dir): Likewise.
4678
4679 2012-05-27 Peter Jones <pjones@redhat.com>
4680
4681 The old code gives arguments to a printf function which can't work
4682 correctly, and the compiler complains.
4683
4684 * grub-core/tests/example_functional_test.c (example_test): Add
4685 missing text.
4686 * grub-core/tests/lib/test.c (add_failure): Rewrite.
4687 * include/grub/test.h (grub_test_assert_helper): New declaration.
4688 (grub_test_assert): Use grub_test_assert_helper.
4689
4690 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4691
4692 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
4693 (exfctest): ... this to avoid overlong filenames.
4694 All users updated.
4695
4696 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4697
4698 Handle "." and ".." on squashfs.
4699
4700 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
4701 Make inode numbers into stack.
4702 (grub_squash_read_symlink): Use stack.
4703 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
4704 (make_root_node): Fill stack.
4705 (grub_squash_open): Use stack.
4706
4707 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4708
4709 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
4710 freeing.
4711
4712 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4713
4714 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
4715 stderr on test calls.
4716
4717 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4718
4719 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
4720
4721 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4722
4723 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
4724
4725 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4726
4727 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
4728 "..".
4729
4730 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4731
4732 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
4733 (grub_hfsplus_iterate_dir): Add "." and "..".
4734
4735 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4736
4737 * grub-core/fs/cpio.c (canonicalize): Handle "..".
4738 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
4739
4740 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4741
4742 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
4743 (find_path): Handle "." and "..".
4744
4745 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
4746
4747 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
4748 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
4749 (grub_affs_iterate_dir): Handle hardlinks.
4750
4751 2012-05-26 Matthew Garrett <mjg@redhat.com>
4752
4753 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
4754 (grub_efi_console_fini): Likewise.
4755 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
4756 (grub_video_gop_fill_mode_info): Rename to ...
4757 (grub_video_gop_fill_real_mode_info): ... this.
4758 (grub_video_gop_fill_mode_info): New function.
4759 (grub_video_gop_setup): Setup double framebuffer.
4760 (grub_video_gop_get_info_and_fini): Use original framebuffer.
4761 Free offscreen.
4762 (grub_video_gop_swap_buffers): Copy framebuffer.
4763 (grub_video_gop_fini): Free offscreen buffer.
4764 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
4765 New enum.
4766 (grub_efi_gop_blt_pixel): New struct.
4767
4768 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
4769
4770 * gentpl.py: Remove error disabling for objconv.
4771
4772 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
4773
4774 * configure.ac: Remove -Wunitialized as it's not available on older
4775 compilers.
4776
4777 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
4778
4779 Fix extent overflow comparator.
4780
4781 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
4782 (grub_hfsplus_read_block): Set type.
4783 (grub_hfsplus_cmp_extkey): Compare type.
4784
4785 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
4786
4787 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
4788
4789 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
4790
4791 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
4792 than 0.
4793
4794 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
4795
4796 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
4797 (dejavu_bold_14.pf2): New target.
4798
4799 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
4800
4801 * configure.ac: Fix djvu font detection.
4802
4803 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
4804
4805 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
4806 ext* instead of ext2.
4807
4808 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
4809
4810 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
4811 name with \0.
4812
4813 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
4814
4815 * docs/grub-dev.texi: Remove dot from .png.
4816
4817 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
4818
4819 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
4820 protective entry in any slot.
4821 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
4822 if protective entry is found in any slot.
4823
4824 Protective entry in non-first slot make no sense but is a widespread
4825 brain damage.
4826
4827 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
4828
4829 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
4830
4831 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
4832
4833 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
4834 with old reiserfs.
4835 (grub_reiserfs_open): Don't free root.
4836
4837 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
4838
4839 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
4840 after freeing for safety.
4841
4842 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4843
4844 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
4845 Reported by: Jordan Uggla.
4846
4847 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
4848
4849 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
4850 actual implementation. Specifically, clarify that the grub menu will
4851 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
4852 passed.
4853
4854 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
4855
4856 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
4857 of r0.
4858
4859 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4860
4861 Remove unjustified hard dependency of normal.mod on gfxterm.
4862
4863 * include/grub/term.h (grub_term_output): New member fullscreen.
4864 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
4865 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
4866 (grub_gfxterm): Set .fullscreen.
4867 * grub-core/normal/menu.c (menu_init): Use fullscreen.
4868 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
4869
4870 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4871
4872 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
4873 mentioning possible problems with non-ASCII (non-compliant) ISOs.
4874 Mention case-insensitive AFFS, SFS and JFS.
4875
4876 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4877
4878 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
4879
4880 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4881
4882 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
4883 a bad FS.
4884
4885 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4886
4887 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
4888 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
4889
4890 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4891
4892 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
4893 (grub_jfs_mount): Fill caseins.
4894 (grub_jfs_find_file): Respect caseins.
4895
4896 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4897
4898 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
4899 through UTF-16.
4900
4901 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
4902
4903 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
4904 New argument origpath. All users updated.
4905
4906 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4907
4908 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
4909 (read_attr): Ensure that we read start of possibly compressed block.
4910
4911 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
4912
4913 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
4914 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
4915 All users updated.
4916
4917 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4918
4919 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
4920 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
4921 (dejavu.pf2): Replace with ...
4922 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
4923 this.
4924
4925 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4926
4927 * util/grub.d/20_linux_xen.in: Add missing line.
4928
4929 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
4930
4931 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
4932 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
4933 (grub_utf16_to_utf8): Likewise.
4934
4935 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4936
4937 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
4938 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
4939 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
4940 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
4941 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
4942 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
4943
4944 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4945
4946 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
4947 a bad FS.
4948
4949 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
4950
4951 * grub-core/fs/udf.c (read_string): Bail out on size=0.
4952 (grub_udf_read_symlink): Handle read_string failure.
4953
4954 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4955
4956 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
4957 comment.
4958
4959 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4960
4961 Fix handling of UDF symlinks.
4962
4963 * grub-core/fs/udf.c (read_string): New argument outbuf.
4964 All users updated.
4965 (grub_ufs_read_symlink): Rename to ...
4966 (grub_udf_read_symlink): ... this. All users updated.
4967 Handle symlinks with more than one component.
4968
4969 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4970
4971 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
4972 symlinks. Replace leading colon with a slash.
4973
4974 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4975
4976 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
4977 filename.
4978
4979 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4980
4981 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
4982 match in inner node.
4983
4984 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4985
4986 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
4987 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
4988 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
4989 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
4990 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
4991 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
4992 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
4993 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
4994 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
4995
4996 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
4997
4998 Use grub-probe and not cmp to check that disk is empty.
4999
5000 * util/grub-install.in: Use grub-probe for zero-check.
5001 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
5002 (probe): Handle PRINT_ZERO_CHECK.
5003 (argp_parser): Handle -t zero_check.
5004
5005 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5006
5007 Flush block cache on adding disk to device map.
5008
5009 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
5010 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
5011 adding.
5012 (read_device_map): Likewise.
5013 (open_device): Flush on opening.
5014
5015 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5016
5017 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
5018 (handle_symlink): Fix off-by-one error.
5019 Canonicalize the target.
5020 (grub_cpio_dir): Canonicalize the name.
5021 Fix memory leak.
5022 Set directory.
5023 (grub_cpio_open): Canonicalize the name.
5024
5025 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5026
5027 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
5028 handling.
5029
5030 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5031
5032 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
5033 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
5034
5035 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5036
5037 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
5038 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
5039 All users updated.
5040
5041 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5042
5043 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
5044 counterpart.
5045
5046 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5047
5048 Fix UFS1 big file support.
5049
5050 * grub-core/fs/ufs.c (INODE): Removed.
5051 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
5052 64-bit.
5053 (INODE_MODE): Simplify.
5054 (grub_ufs_inode): Use uint64_t for size and not int64_t.
5055 (grub_ufs_lookup_symlink): Don't use INODE.
5056
5057 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5058
5059 Fix minixfs with non-power-of-two blocks since it's supported by minix.
5060
5061 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
5062 (grub_minix_data): Replace log_block_size with block_size.
5063 (grub_minix_read_file): Use block_size but avoid 64-bit division.
5064 (grub_minix_mount): Fill block_size.
5065
5066 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5067
5068 * configure.ac: Bump to beta5.
5069
5070 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5071
5072 Fix wrapped HFS+ handling.
5073
5074 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
5075 blocks_start. All users updated.
5076 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
5077 wrapping offset.
5078 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
5079
5080 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5081
5082 Fix long symlinks on reiserfs.
5083
5084 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
5085 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
5086 (grub_reiserfs_iterate_dir): Save size for non-directories.
5087 (grub_reiserfs_open): Don't reread stat block as we already know the
5088 size.
5089 (grub_reiserfs_read): Split into...
5090 (grub_reiserfs_read_real): ... and ...
5091 (grub_reiserfs_read): ...this.
5092
5093 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5094
5095 Fix non-indexed JFS.
5096
5097 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
5098 (grub_jfs_data): New field namecomponentlen.
5099 (grub_jfs_mount): Fill namecomponentlen.
5100 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
5101
5102 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5103
5104 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
5105 * tests/grub_script_echo1.in: Add tests.
5106
5107 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5108
5109 * util/grub-install.in: Ignore empty devicetree directory.
5110
5111 2012-05-08 Bean <bean123ch@gmail.com>
5112
5113 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
5114 All users updated.
5115 (free_rsm): Free header as well.
5116 (free_old_fragments): Fix memory leak.
5117 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
5118 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
5119 (destroy_pq): Likewise.
5120 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
5121
5122 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5123
5124 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
5125 resulting hash as a precaution.
5126
5127 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5128
5129 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
5130 '_' in variable names.
5131 * grub-core/net/net.c (grub_net_network_level_interface_register):
5132 Likewise.
5133
5134 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5135
5136 Fix AFFS with non-512B blocks.
5137
5138 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
5139 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
5140 (grub_affs_data): Replace blocksize with log_blocksize.
5141 (grub_affs_read_block): Fix non-512B blocks.
5142 (grub_affs_read_symlink): Likewise.
5143 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
5144 (grub_affs_read): Fix non-512B blocks.
5145 (grub_affs_label): Likewise.
5146 (grub_affs_mtime): Likewise.
5147 (grub_affs_mount): Fix block detection routine.
5148
5149 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5150
5151 Add filesystem mtime to AFFS.
5152
5153 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
5154 (aftime2ctime): New function.
5155 (grub_affs_dir): Use aftime2ctime.
5156 (grub_affs_label): Fix return value.
5157 (grub_affs_mtime): New function.
5158 (grub_affs_fs): Add mtime.
5159
5160 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5161
5162 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
5163 UTF-8.
5164
5165 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5166
5167 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
5168 UTF-8.
5169
5170 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5171
5172 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
5173
5174 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5175
5176 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
5177 flags.
5178 (FLAGS_CASE_SENSITIVE): New enum value.
5179 (cache_entry): New struct.
5180 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
5181 cache_size and cache.
5182 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
5183 Add log_blocksize and fshelp_flags.
5184 (grub_sfs_read_extent): Handle non-512 blocks.
5185 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
5186 (grub_sfs_read_file): Handle non-512 blocks.
5187 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
5188 fshelp_flags.
5189 (grub_sfs_read_symlink): Handle non-512 blocks.
5190 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
5191 (grub_sfs_dir): Free cache.
5192 (grub_sfs_close): Likewise.
5193
5194 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
5195
5196 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
5197 filesystems.
5198
5199 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
5200
5201 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
5202
5203 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
5204
5205 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
5206
5207 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
5208
5209 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
5210 (grub_sfs_read_extent): Likewise.
5211 (grub_sfs_read_block): Likewise.
5212 (grub_sfs_mount): Likewise.
5213 (grub_sfs_iterate_dir): Likewise.
5214 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
5215 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
5216
5217 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5218
5219 Fix errors on compressed NTFS with 512B clusters.
5220
5221 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
5222 types.
5223 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
5224 not 0.
5225 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
5226 Relax check for inline extents.
5227 (ntfscomp): Return correct -1 on error and not 0.
5228
5229 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5230
5231 * util/grub-install.in: Fix handling of prefix containing spaces.
5232
5233 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5234
5235 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
5236 (grub_squash_read_data): Fix offset byte-swapping.
5237
5238 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5239
5240 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
5241 per common usage and preffered in several parts of code.
5242 (grub_memcmp): Likewise.
5243 (grub_strncmp): Likewise.
5244 * include/grub/misc.h (grub_strcasecmp): Likewise.
5245 (grub_strncasecmp): Likewise.
5246 * Makefile.util.def (cmp_test): New test.
5247 (grub_script_strcmp): Likewise.
5248 * tests/cmp_unit_test.c: New file.
5249 * tests/grub_script_strcmp.in: Likewise.
5250 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
5251
5252 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5253
5254 * include/grub/pci.h: Move enums into no-asm part.
5255
5256 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5257
5258 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
5259
5260 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5261
5262 * util/getroot.c (find_hurd_root_device): Try to make error message
5263 and comments to translators clearer.
5264
5265 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5266
5267 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
5268
5269 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5270
5271 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
5272 btrfs.
5273
5274 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5275
5276 * docs/grub.cfg: Update.
5277
5278 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5279
5280 * docs/grub.texi (PXE): Remove not present variables.
5281
5282 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5283
5284 * grub-core/net/net.c (defserver_set_env): New function.
5285 (defserver_get_env): Likewise.
5286 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
5287
5288 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5289
5290 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
5291 entries.
5292
5293 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5294
5295 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
5296 * grub-core/kern/emu/hostdisk.c: Likewise.
5297
5298 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5299
5300 Handle hurd userspace partitions.
5301
5302 * util/getroot.c (find_hurd_root_device): New function.
5303 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
5304
5305 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5306
5307 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
5308 names.
5309 Reported by: Bastian Blank.
5310
5311 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5312
5313 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
5314 crossing page boundary.
5315
5316 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5317
5318 Fix B-tree search in BFS, especially in presence of non-ASCII
5319 characters.
5320
5321 * grub-core/fs/bfs.c (bfs_strcmp): New function.
5322 (find_in_b_tree): Use standard bsearch + btree algorithm.
5323
5324 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5325
5326 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
5327 and so on.
5328
5329 2012-05-03 Matthew Garrett <mjg@redhat.com>
5330 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5331
5332 Suspend broadcom cards in order to stop their DMA.
5333
5334 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
5335 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
5336 (pci): Don't build on x86 EFI.
5337 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
5338 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
5339 New function.
5340 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
5341 stop_broadcom if running on EFI.
5342 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
5343 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
5344 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
5345 (grub_pci_find_capability): New proto.
5346
5347 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5348
5349 * docs/grub.texi: Remove dot from the extension as it apparently
5350 doesn't work with some makeinfo versions.
5351
5352 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5353
5354 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
5355 with GRUB expectance.
5356
5357 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5358
5359 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
5360
5361 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5362
5363 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
5364 zero after directory block since last entry may be not 0-terminated if
5365 it ends on block boundary. Use continue instead of if spanning whole
5366 loop.
5367
5368 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5369
5370 Support 4K sectors UDF inline files.
5371
5372 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
5373 (grub_udf_extended_file_entry): Likewise.
5374 (grub_fshelp_node): Name the anonymous union. Put block at the end.
5375 All users updated.
5376 (get_fshelp_size): New function.
5377 (grub_udf_read_icb): Read whole block.
5378 (grub_udf_iterate_dir): Likewise.
5379 (grub_udf_dir): Likewise.
5380 (grub_udf_open): Likewise.
5381
5382 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5383
5384 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
5385
5386 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5387
5388 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
5389 inline symlinks in addition to workaround.
5390
5391 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5392
5393 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
5394
5395 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5396
5397 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
5398
5399 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5400
5401 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
5402
5403 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5404
5405 Fix reiserfs big seek times.
5406
5407 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
5408 exact. All users updated.
5409 (grub_reiserfs_read): Use nearest btree search for seeking.
5410 Fix return value on error.
5411
5412 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5413
5414 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
5415 entries.
5416 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
5417 * docs/grub.texi: Update menuentry description.
5418
5419 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5420
5421 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
5422 crash when embedding onto filesystem.
5423
5424 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5425
5426 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
5427 name.
5428
5429 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5430
5431 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
5432
5433 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5434
5435 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
5436 commit.
5437
5438 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5439 2012-05-01 Bean <bean123ch@gmail.com>
5440
5441 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
5442
5443 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5444
5445 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
5446 Special behaviour for len = 0 to read whole file isn't used anywhere and
5447 can cause buffer ovewrflows in several places.
5448
5449 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5450
5451 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
5452
5453 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5454
5455 Handle RAIDZ on non-512B sectors.
5456
5457 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
5458 max_children_ashift.
5459 (fill_vdev_info_real): Fill max_children_ashift.
5460 (read_device): Use max_children_ashift.
5461
5462 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5463
5464 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
5465
5466 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5467
5468 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
5469 disk names.
5470 * docs/grub.texi: Update device.map parts.
5471
5472 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5473
5474 Don't scan into non-diskfilter devices having diskfilter names.
5475
5476 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
5477 (scan_disk): New argument accept_diskfilter. Fix recursion depth
5478 handling.
5479 (scan_disk_hook): New function.
5480
5481 2012-04-29 Bean <bean123ch@gmail.com>
5482
5483 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
5484 allocation.
5485
5486 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
5487
5488 * configure.ac: Detect starfield theme font path
5489 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
5490
5491 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5492
5493 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
5494 geometry on serial consoles.
5495
5496 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5497
5498 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
5499 because of network consoles.
5500
5501 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5502
5503 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
5504 handling.
5505
5506 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5507
5508 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
5509 falls on Q syndrom.
5510
5511 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
5512
5513 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
5514 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
5515
5516 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5517
5518 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
5519 Allocate at lest 8192 for temporary buffer as required for lzo.
5520
5521 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5522
5523 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
5524 to cluster_bits, since it's already added in.
5525 (grub_fat_read_data): Likewise.
5526
5527 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5528
5529 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
5530 as long as cluster size is multiple of 512 bytes.
5531
5532 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
5533
5534 * util/grub-mkrescue.in: Fix locale directory.
5535
5536 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
5537
5538 * grub-core/kern/emu/hostdisk.c (map): Make static.
5539
5540 2012-04-23 Bean <bean123ch@gmail.com>
5541
5542 * util/grub-fstest.c (fstest): Add missing break.
5543
5544 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
5545
5546 Fix hurd build.
5547
5548 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
5549 not define nr variable.
5550 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
5551 find_root_devices_from_poolname, find_root_devices_from_libzfs,
5552 grub_find_device): Do not define.
5553
5554 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
5555
5556 Fix kfreebsd compile and behaviour.
5557
5558 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
5559 format-security.
5560 * util/getroot.c: Fix wait.h include.
5561 (grub_guess_root_devices): Error if grub_find_device fails.
5562 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
5563 (grub_util_get_dev_abstraction): Likewise.
5564 (grub_util_pull_device): Likewise.
5565 (grub_util_get_grub_dev): Likewise.
5566 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
5567
5568 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
5569
5570 Fix and unify wholedisk detection.
5571
5572 * util/getroot.c (convert_system_partition_to_system_disk): New argument
5573 is_part. All users updated.
5574 (device_is_wholedisk): Removed.
5575 (grub_util_biosdisk_get_grub_dev): Use is_part.
5576
5577 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5578
5579 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
5580 mode.
5581
5582 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5583
5584 * configure.ac: Bump to beta4.
5585
5586 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5587
5588 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
5589 --fs-uuid --set UUID syntax.
5590
5591 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5592
5593 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
5594 disunification.
5595
5596 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5597
5598 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
5599
5600 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
5601
5602 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
5603
5604 2012-04-18 Mike Gilbert <floppym@gentoo.org>
5605
5606 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
5607
5608 2012-04-18 Bean <bean123ch@gmail.com>
5609
5610 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
5611 place.
5612
5613 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5614
5615 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
5616 users updated.
5617 (grub_util_biosdisk_read): Handle Linux partitions not exactly
5618 corresponding to GRUB partitions.
5619 (grub_util_biosdisk_write): Likewise.
5620
5621 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5622
5623 Scan mdraid before LVM.
5624
5625 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
5626 (grub_diskfilter_register_front): ... this.
5627 (grub_diskfilter_register_back): New function.
5628 All users of grub_diskfilter_register updated.
5629
5630 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5631
5632 * util/grub-install.in: Fix an automatic target detection bug.
5633
5634 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
5635
5636 * util/grub-install.in: New option --efi-directory.
5637
5638 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
5639
5640 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
5641 boot services if we have no other choice.
5642
5643 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
5644
5645 * util/grub-mknetdir.in: Rename --override-directory to --directory and
5646 document it.
5647 * tests/util/grub-shell.in: Update to --directory.
5648
5649 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
5650
5651 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
5652
5653 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
5654
5655 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
5656 (grub_minix_read_file): Likewise.
5657 (grub_minix_read_inode): Likewise.
5658 (grub_minix_find_file): Likewise.
5659 (grub_minix_dir): Likewise.
5660
5661 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
5662
5663 * util/grub-setup.c (setup): Fix partition handling and blocklist
5664 check.
5665
5666 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
5667
5668 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
5669 redundant buggy overlap check.
5670
5671 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5672
5673 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
5674 and grub-mknetdir.
5675
5676 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5677
5678 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
5679 kh.loadflags on pre-2.00 kernels.
5680
5681 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
5682
5683 Terminate UNDI and PXE before launching the payload to avoid problems
5684 with DMA.
5685
5686 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
5687 (grub_loader_flags): ... this. All users updated.
5688 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
5689 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
5690 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
5691 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
5692 function.
5693 (grub_pxe_restore): Likewise.
5694 (fini_hnd): New var.
5695 (GRUB_MOD_INIT): Register shutdown hook.
5696 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
5697 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
5698 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
5699 (grub_loader_set): Rename second argument to flags.
5700
5701 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5702
5703 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
5704 written bytes.
5705 (grub_get_num_of_utf8_bytes): New function.
5706 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
5707 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
5708 executing it.
5709 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
5710 (grub_ucs4_to_utf8): Change return type.
5711
5712 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5713
5714 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
5715 warning.
5716 * grub-core/fs/bfs.c (hop_level): Likewise.
5717 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
5718
5719 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5720
5721 * grub-core/lib/adler32.c: Recode due to license unclearness.
5722
5723 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5724
5725 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
5726 (test_header): Likewise.
5727
5728 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5729
5730 Fix --help formatting.
5731
5732 * util/grub-mkconfig_lib.in (print_option_help): New function.
5733 (grub_fmt): Likewise.
5734 * util/grub-install.in: Use print_option_help and grub_fmt.
5735 * util/grub-kbdcomp.in: Likewise.
5736 * util/grub-mkconfig.in: Likewise.
5737 * util/grub-mknetdir.in: Likewise.
5738 * util/grub-mkrescue.in: Likewise.
5739 * util/grub-mkstandalone.in: Likewise.
5740 * util/grub-reboot.in: Likewise.
5741 * util/grub-set-default.in: Likewise.
5742 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5743
5744 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
5745
5746 * linguas.sh: Remove autogenerated *.po.
5747
5748 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5749
5750 * po/README: Move language fetcing to ...
5751 * linguas.sh: ... here.
5752 * po/README: Point to linguas.sh.
5753
5754 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5755
5756 * po/README: Exclude ko.po due to disclaimer problems.
5757
5758 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5759
5760 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
5761 len = 0.
5762 (grub_gettext_translate_real): Handle 0th string.
5763 (grub_gettext_translate): Ensure that "" isn't translated.
5764
5765 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5766
5767 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
5768 TRANSLATORS comment.
5769 (grub_diskfilter_print_partmap): Propagate changing of error into
5770 warning.
5771
5772 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
5773
5774 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
5775 to uint64_t to prevent overflow.
5776 (grub_diskfilter_lv): Increase start_extent and extent_count
5777 to uint64_t to prevent overflow.
5778
5779 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5780
5781 * configure.ac: Increase version.
5782
5783 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5784
5785 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
5786
5787 * po/Rules-translit: New file.
5788 * po/arabic.sed: Likewise.
5789 * po/cyrillic.sed: Likewise.
5790 * po/greek.sed: Likewise.
5791 * po/hebrew.sed: Likewise.
5792 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
5793 * po/Makefile.in.in: Add extra_dist4.
5794
5795 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5796
5797 Handle big-endian minixfs (fixes minixfs tests on bigendian).
5798
5799 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
5800 modify names. Introduce MODE_BIGENDIAN.
5801 * grub-core/fs/minix_be.c: New file.
5802 * grub-core/fs/minix2_be.c: Likewise
5803 * grub-core/fs/minix3_be.c: Likewise.
5804 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
5805 minix3_be.
5806 * grub-core/Makefile.core.def (minix_be): New module.
5807 (minix2_be): Likewise.
5808 (minix3_be): Likewise.
5809
5810 2012-04-01 Felix <email@hamburg.de>
5811
5812 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
5813 (devs): Add MBP 2011.
5814
5815 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5816
5817 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
5818
5819 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5820
5821 * grub-core/normal/cmdline.c (print_completion): New field
5822 prompt_len.
5823 (grub_cmdline_get): Handle width properly.
5824
5825 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
5826
5827 * grub-core/commands/lsacpi.c (options): Add missing terminator.
5828
5829 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5830
5831 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
5832 after 29th of February.
5833
5834 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5835
5836 Fix exfat endianness handling.
5837
5838 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
5839 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
5840 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
5841 Byte-swap utf16 when necessary.
5842 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
5843
5844 2012-03-31 Anton Blanchard <anton@samba.org>
5845 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5846
5847 Fix btrfs endianness handling.
5848
5849 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
5850 (lower_bound): Make root uint64_t. Use root in le.
5851 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
5852 (find_path): Fix template key init.
5853 (grub_btrfs_dir): Fix mtime byteswap.
5854 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
5855
5856 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5857
5858 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
5859 recursion_depth. Break infinite resursions. All users updated.
5860
5861 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
5862
5863 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
5864 after free.
5865 Reported by: Peter Jones.
5866
5867 2012-03-31 Anton Blanchard <anton@samba.org>
5868
5869 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
5870 8 bit values.
5871
5872 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
5873
5874 * util/grub-install.in: Fix nvram call for PreP.
5875
5876 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
5877
5878 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
5879 the error when some elements are missing into a warning.
5880
5881 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
5882
5883 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
5884
5885 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
5886
5887 * docs/grub.texi (Invoking grub-probe): New section.
5888 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
5889
5890 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
5891
5892 Fix tab and wide character handling in editor and menu.
5893
5894 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
5895 agglomerate control characters with combining marks.
5896 (bidi_line_wrap): Allow break on tab.
5897 (grub_unicode_get_comb_start): New function.
5898 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
5899 and tab correctly.
5900 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
5901 with a space.
5902 * grub-core/normal/term.c (print_ucs4_terminal): New argument
5903 fixed_tab_size. All users updated.
5904 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
5905 (grub_term_getcharwidth): Handle \t.
5906 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
5907 and copy.
5908
5909 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5910
5911 Handle big-endian mdraid.
5912
5913 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
5914 * grub-core/Makefile.core.def (mdraid09_be): New module.
5915 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
5916 rather than grub_le_to_cpu* and grub_cpu_to_le*.
5917 * grub-core/disk/mdraid_linux_be.c: New file.
5918
5919 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
5920
5921 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
5922
5923 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5924
5925 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
5926 missing quotes which caused confusion among translators.
5927
5928 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5929
5930 * util/grub-mkconfig_lib.in: Fix typo.
5931
5932 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5933
5934 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
5935 spaces.
5936 * tests/grub_script_leading_whitespace.in: New file.
5937 * Makefile.util.def (grub_script_leading_whitespace): New test.
5938
5939 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5940
5941 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
5942 to work.
5943
5944 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5945
5946 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
5947 starts with control character.
5948
5949 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5950
5951 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
5952 overflow.
5953 (grub_gdb_outbuf): Likewise.
5954
5955 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
5956
5957 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
5958 zero terminator. Fixes a crash.
5959
5960 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5961
5962 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
5963 beyond 4 GiB.
5964 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
5965 images independently of preffered adderss field.
5966
5967 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5968
5969 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
5970 * grub-core/commands/regexp.c: Likewise.
5971 * grub-core/loader/i386/linux.c: Likewise.
5972 * grub-core/partmap/msdos.c: Likewise.
5973 * grub-core/script/execute.c: Likewise.
5974 * grub-core/term/gfxterm.c: Likewise.
5975
5976 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5977
5978 Add variable parsing in $"..." and fix several mismatches with bash.
5979
5980 * Makefile.util.def (grub_script_gettext): New test.
5981 * grub-core/script/execute.c (parse_string): New function.
5982 (gettext_append): Likewise.
5983 (grub_script_arglist_to_argv): Use gettext_append.
5984 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
5985 * tests/grub_script_gettext.in: New file.
5986
5987 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5988
5989 Fix handling of leading spaces in scripts.
5990
5991 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
5992 spaces.
5993 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
5994 other than skipping \r. All users updated.
5995 * tests/grub_script_echo1.in: Add space-related tests.
5996 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
5997
5998 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5999
6000 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
6001
6002 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6003
6004 * configure.ac: Bump up the version to beta2.
6005
6006 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6007
6008 Fix gettext reload bugs (e.g. inability to disable gettext
6009 once enabled).
6010
6011 * grub-core/gettext/gettext.c: Encapsulate all static variables in
6012 main_context and secondary_context. All functions updated.
6013 (grub_gettext_translate): Rename to ...
6014 (grub_gettext_translate_real): ... this. Return NULL on failed
6015 translate.
6016 (grub_gettext_translate): Handle secondary context.
6017 (grub_gettext_delete_list): Close file and zero-out the context.
6018 (grub_mofile_open): Don't call grub_gettext_delete_list.
6019 Don't close file.
6020 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
6021 if locale="" to avoid pointless error message.
6022 (grub_gettext_env_write_lang): Update lang even if load fails.
6023 Handle secondary context.
6024 (grub_gettext_reread_prefix): New function.
6025 (read_main): Likewise.
6026 (read_secondary): Likewise.
6027 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
6028 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
6029 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
6030 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
6031
6032 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6033
6034 * configure.ac: Decrease warning level to avoid spurious warnings and
6035 to be able to compile with GCC 4.2.
6036 * Makefile.util.def: Remove -Wno-error=logical-op.
6037
6038 2012-03-10 William Bittner <william.bittner@gmail.com>
6039
6040 * util/import_unicode.py: Add missing brackets around string for
6041 python 3 support.
6042
6043 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6044
6045 Fix efi chainloader on network root.
6046
6047 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
6048 network devices.
6049 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
6050 New function.
6051
6052 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6053
6054 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
6055 unused show_text member.
6056 * docs/grub.texi: Document "text" property.
6057
6058 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6059
6060 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
6061 in dprintf.
6062
6063 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6064
6065 Fix IMSM handling on Fedora.
6066
6067 * util/getroot.c (grub_util_is_imsm): New function.
6068 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
6069
6070 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6071
6072 * Makefile.am: Strip gold section.
6073 * conf/Makefile.common: Likewise.
6074 * gentpl.py: Likewise.
6075 * grub-core/Makefile.core.def: Likewise.
6076 * grub-core/genmod.sh.in: Likewise.
6077
6078 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6079
6080 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
6081 * util/grub.d/20_linux_xen.in: Likewise.
6082 Based on Debian patch.
6083
6084 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6085
6086 * util/grub.d/10_linux.in: Fix syntax error resulting in
6087 Richard Laager's patch.
6088 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
6089
6090 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6091
6092 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
6093 dependencies.
6094
6095 2012-03-10 Richard Laager <rlaager@wiktel.com>
6096
6097 * util/grub.d/10_linux.in: Fix ZFS root passing.
6098
6099 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6100
6101 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
6102 * grub-core/commands/xnu_uuid.c: Likewise.
6103 * grub-core/loader/efi/appleloader.c: Likewise.
6104 * grub-core/script/execute.c: Likewise.
6105 * grub-core/script/main.c: Likewise.
6106 * util/grub-mkfont.c: Likewise.
6107
6108 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6109
6110 * util/grub-mkfont.c (options): Use more appropriate "select" that
6111 "set" for face index.
6112
6113 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6114
6115 * util/grub-editenv.c (options): Gettextize command summaries.
6116
6117 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6118
6119 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
6120 "out of memory" error messagge.
6121
6122 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6123
6124 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
6125 of diskfilter for diskfilter on diskfilter support.
6126
6127 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6128
6129 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
6130
6131 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6132
6133 * util/grub-install.in: Check for themes/starfield/theme.txt and not
6134 themes/starfield.
6135
6136 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6137
6138 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
6139
6140 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6141
6142 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
6143
6144 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6145
6146 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
6147 of error message.
6148
6149 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
6150
6151 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
6152
6153 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
6154
6155 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
6156 message.
6157 * util/grub-install.in: Fix and gettextize error message.
6158
6159 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6160
6161 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
6162 Gettextize.
6163 * util/grub-mount.c (options): Likewise.
6164
6165 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6166
6167 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
6168 gettextize.
6169 * grub-core/commands/search_wrap.c (options): Likewise.
6170
6171 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6172
6173 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
6174
6175 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6176
6177 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
6178 size calculation.
6179 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
6180 none is known.
6181
6182 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6183
6184 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
6185 "temporary" since it's used in identifier and is limited in space.
6186
6187 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6188
6189 * po/POTFILES.in: Regenerate. Include *.h since they contain
6190 translatable strings as well.
6191
6192 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6193
6194 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
6195 byte-swap on big-endian.
6196 Reported by: Lennart Sorensen
6197
6198 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
6199
6200 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
6201 (allocate_pages): Improve dprintf.
6202 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
6203 code32_start. Fill code32_start and kernel_alignment in params.
6204 (grub_cmd_initrd): Use prot_init_space.
6205
6206 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6207
6208 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
6209
6210 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6211
6212 * util/grub-install.in: Add missing dot at the end of sentence.
6213
6214 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6215
6216 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
6217 * grub-core/commands/videotest.c: Likewise.
6218 * grub-core/loader/i386/linux.c: Likewise.
6219
6220 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6221
6222 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
6223 sentence.
6224 Reported by: Milo Casagrande.
6225
6226 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6227
6228 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
6229 * grub-core/commands/gptsync.c: Likewise.
6230 * grub-core/commands/hashsum.c: Likewise.
6231 * grub-core/commands/i386/pc/sendkey.c: Likewise.
6232 * grub-core/commands/legacycfg.c: Likewise.
6233 * grub-core/io/gzio.c: Likewise.
6234 * grub-core/net/net.c: Likewise.
6235 * grub-core/term/gfxterm.c: Likewise.
6236 * grub-core/term/terminfo.c: Likewise.
6237 * grub-core/tests/test_blockarg.c: Likewise.
6238 * grub-core/video/video.c: Likewise.
6239 * util/grub-install.in: Likewise.
6240 * util/grub-mkfont.c: Likewise.
6241
6242 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6243
6244 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
6245
6246 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6247
6248 * grub-core/commands/search_wrap.c (options): Fix a typo.
6249 Reported by: David Prévot.
6250
6251 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6252
6253 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
6254 description.
6255
6256 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6257
6258 * util/grub-script-check.c (main): Fix a syntax error message which was
6259 unclear.
6260
6261 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6262
6263 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
6264
6265 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6266
6267 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
6268 messages.
6269
6270 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6271
6272 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
6273 without argument.
6274 * util/grub-mount.c (options): Likewise.
6275
6276 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6277
6278 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
6279
6280 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6281
6282 * grub-core/net/http.c: Add TRANSLATORS comments.
6283 * grub-core/normal/cmdline.c: Likewise.
6284 * grub-core/normal/misc.c: Likewise.
6285 * grub-core/partmap/msdos.c: Likewise.
6286 * grub-core/parttool/msdospart.c: Likewise.
6287 * grub-core/script/execute.c: Likewise.
6288 * grub-core/script/main.c: Likewise.
6289 * grub-core/term/terminfo.c: Likewise.
6290 * grub-core/video/bitmap.c: Likewise.
6291 * util/grub-install.in: Likewise.
6292 * util/grub-mkimage.c: Likewise.
6293 * util/grub-mklayout.c: Likewise.
6294 * util/grub-setup.c: Likewise.
6295
6296 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6297
6298 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
6299 with similar messages in grub-fstest.
6300
6301 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6302
6303 * util/grub-install.in: Unify "option requires an argument" message
6304 with similar messages in other files.
6305 * util/grub-mkconfig.in: Likewise.
6306
6307 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6308
6309 * util/grub-set-default.in: Replace printf with gettext_printf (the
6310 string in in question is already translated from grub-reboot)
6311
6312 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6313
6314 * configure.ac: Bump up the version to beta1.
6315
6316 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6317
6318 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
6319 case when min_align = 0.
6320
6321 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6322
6323 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
6324 and fix a case when line_start overflows.
6325
6326 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6327
6328 * util/grub-reboot.in (usage): Mention id posibility.
6329 * util/grub-set-default.in (usage): Likewise.
6330
6331 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6332
6333 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
6334 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
6335 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
6336 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
6337 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
6338 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6339 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6340
6341 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6342
6343 * grub-core/commands/menuentry.c (options): Remove
6344 GRUB_ARG_OPTION_REPEATABLE.
6345 Reported by: Andreas Vogel
6346
6347 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
6348
6349 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
6350
6351 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
6352
6353 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
6354 error.
6355
6356 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6357
6358 Use sort -V by the idea of Georgi Georgiev.
6359
6360 * util/grub-mkconfig_lib.in (version_sort): New function.
6361 (version_test_numeric): Use version_sort.
6362
6363 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6364
6365 Use submenus in grub-mkconfig.
6366
6367 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
6368 * util/grub-mkconfig_lib.in (grub_quote): New function.
6369 (gettext_printf): Use gettext and not gettext_quoted to fix several
6370 messages.
6371 * util/grub.d/10_hurd.in: Use submenus.
6372 * util/grub.d/10_kfreebsd.in: Likewise.
6373 * util/grub.d/10_linux.in: Likewise.
6374 * util/grub.d/10_netbsd.in: Likewise.
6375 * util/grub.d/20_linux_xen.in: Likewise.
6376 * util/grub.d/30_os-prober.in: Likewise.
6377 * util/grub.d/10_illumos.in: Add missing quoting.
6378 * util/grub.d/10_windows.in: Likewise.
6379
6380 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6381
6382 Fix menu title instability bug.
6383
6384 * grub-core/commands/menuentry.c (options): New option --id.
6385 (grub_normal_add_menu_entry): New argument id. All users updated.
6386 (grub_cmd_menuentry): Handle --id.
6387 (grub_menu_init): Accept unknown arguments.
6388 * grub-core/normal/main.c (features): Add feature_menuentry_id and
6389 feature_menuentry_options.
6390 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
6391 saved_entry.
6392 (get_entry_number): Match with id as well.
6393 * include/grub/menu.h (grub_menu_entry): New member id.
6394 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
6395 * util/grub.d/00_header.in: Define menuentry_id_option.
6396 * util/grub.d/10_hurd.in: Define id.
6397 * util/grub.d/10_illumos.in: Likewise.
6398 * util/grub.d/10_kfreebsd.in: Likewise.
6399 * util/grub.d/10_linux.in: Likewise.
6400 * util/grub.d/10_netbsd.in: Likewise.
6401 * util/grub.d/10_windows.in: Likewise.
6402 * util/grub.d/20_linux_xen.in: Likewise.
6403 * util/grub.d/30_os-prober.in: Likewise.
6404
6405 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6406
6407 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
6408 "scope" with "body".
6409
6410 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6411
6412 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
6413 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
6414 prot_size and prot_file_size.
6415
6416 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6417
6418 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
6419 All users updated. If easily=1 require raid-5/-6 to be full.
6420 (is_node_readable): Likewise.
6421 (scan_devices): Scan incomplete but readable LVs at the end.
6422 (grub_diskfilter_memberlist): Pull missing devices.
6423 (insert_array): Skip scanning until device is complete or scan is
6424 done otherwise.
6425 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
6426 check.
6427 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
6428 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
6429
6430 2012-03-03 Matthew Garrett <mjg@redhat.com>
6431 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6432
6433 Avoid EFI boot services when loading Linux.
6434
6435 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
6436 avoid_efi_bootservices. All users updated.
6437 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
6438 argument avoid_efi_bootservices. All users updated.
6439 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
6440 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
6441 align, min_align, relocatable, prefered_address. All users updated.
6442 Allocate avoiding boot services if kernel is relocatable.
6443 (grub_cmd_linux): Check if kernel is relocatable.
6444 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
6445 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
6446 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
6447 avoid_efi_boot_services.
6448 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
6449 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
6450 (linux_kernel_params): Likewise.
6451
6452 2012-03-03 Matthew Garrett <mjg@redhat.com>
6453 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6454
6455 Use EDID on EFI.
6456
6457 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
6458 datasize_out.
6459 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
6460 modes. Set gop_handle.
6461 (grub_video_gop_get_edid): New function.
6462 (grub_gop_get_preferred_mode): Likewise.
6463 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
6464 (grub_video_efi_gop_adapter): Set .get_edid.
6465 * include/grub/efi/edid.h: New file.
6466 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
6467
6468 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6469
6470 * util/grub-install.in: Load efivars unconditionally.
6471
6472 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6473
6474 * po/Rules-piglatin: Change suffix from .po-update-en to
6475 .po-update-en-piglatin.
6476
6477 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6478
6479 Add a pig farm.
6480
6481 * po/piglatin.sed: New file.
6482 * po/en@piglatin.header: Likewise.
6483 * po/Rules-piglatin: Likewise.
6484 * po/README: Add en@piglatin to autogenerated languages.
6485
6486 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6487
6488 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
6489 "Command for ...".
6490 * grub-core/commands/hdparm.c (options): Use "Display" rather than
6491 "Check" since we don't check anything.
6492 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
6493 is 64-bit one.
6494 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
6495 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
6496 (grub_md_sha512_real): Likewise.
6497
6498 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6499
6500 * grub-core/commands/gptsync.c: Fix typographic quoting.
6501 * grub-core/commands/ieee1275/suspend.c: Likewise.
6502 * grub-core/commands/parttool.c: Likewise.
6503 * grub-core/commands/search_wrap.c: Likewise.
6504 * grub-core/commands/videoinfo.c: Likewise.
6505 * grub-core/gfxmenu/gui_label.c: Likewise.
6506 * grub-core/hello/hello.c: Likewise.
6507 * grub-core/kern/emu/main.c: Likewise.
6508 * grub-core/net/net.c: Likewise.
6509 * grub-core/normal/menu.c: Likewise.
6510 * grub-core/normal/menu_text.c: Likewise.
6511 * grub-core/normal/misc.c: Likewise.
6512 * util/grub-editenv.c: Likewise.
6513 * util/grub-install.in: Likewise.
6514 * util/grub-kbdcomp.in: Likewise.
6515 * util/grub-mkconfig.in: Likewise.
6516 * util/grub-mknetdir.in: Likewise.
6517 * util/grub-mkrescue.in: Likewise.
6518 * util/grub-mkstandalone.in: Likewise.
6519 * util/grub-reboot.in: Likewise.
6520 * util/grub-set-default.in: Likewise.
6521 * util/grub-setup.c: Likewise.
6522 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6523
6524 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6525
6526 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
6527 * grub-core/commands/keystatus.c: Likewise.
6528 * grub-core/commands/loadenv.c: Likewise.
6529 * grub-core/commands/probe.c: Likewise.
6530 * grub-core/commands/regexp.c: Likewise.
6531 * grub-core/commands/true.c: Likewise.
6532 * grub-core/commands/videoinfo.c: Likewise.
6533 * grub-core/disk/cryptodisk.c: Likewise.
6534 * grub-core/disk/ldm.c: Likewise.
6535 * grub-core/disk/loopback.c: Likewise.
6536 * grub-core/disk/luks.c: Likewise.
6537 * grub-core/fs/zfs/zfsinfo.c: Likewise.
6538 * grub-core/kern/disk.c: Likewise.
6539 * grub-core/kern/emu/hostdisk.c: Likewise.
6540
6541 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6542
6543 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
6544 * util/grub-install.in: Add missing quote in the comment.
6545
6546 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6547
6548 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
6549 * grub-core/commands/lsmmap.c: Likewise.
6550 * grub-core/commands/minicmd.c: Likewise.
6551 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
6552 * grub-core/commands/regexp.c: Likewise.
6553 * grub-core/gdb/gdb.c: Likewise.
6554 * grub-core/term/gfxterm.c: Likewise.
6555 * util/grub-mkconfig.in: Likewise.
6556 * util/grub-mkfont.c: Likewise.
6557 * util/grub-mklayout.c: Likewise.
6558 * util/grub-mknetdir.in: Likewise.
6559 * util/grub-mkrescue.in: Likewise.
6560 * util/grub.d/30_os-prober.in: Likewise.
6561
6562 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6563
6564 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
6565 with "Direct color" and "Packed" with "Packed pixel".
6566 (grub_cmd_videoinfo): Simplify legend.
6567
6568 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6569
6570 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
6571 absolutely unclear error message.
6572
6573 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6574
6575 * util/grub-mkstandalone.in: Remove confusing leftover print.
6576
6577 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6578
6579 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
6580 comments.
6581 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
6582 (GRUB_MOD_INIT): Likewise.
6583 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
6584 VGA mode.
6585 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
6586 comments.
6587 * util/grub-install.in (usage): Likewise.
6588 Spell ID in whole letters.
6589 Add missing ending dot.
6590 Quote variables.
6591 * util/grub-reboot.in: Fix capitalisation.
6592 * util/grub-set-default.in: Likewise.
6593
6594 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6595
6596 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
6597 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
6598 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
6599 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
6600 Disable -Werror for -Wdeprecated-declarations.
6601 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
6602 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
6603 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
6604 (grub_util_get_grub_dev): Make luks handling dependent on
6605 HAVE_DEVICE_MAPPER and not __linux__.
6606 (get_win32_path): Fix format security.
6607 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
6608 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
6609 Don't try grub_find_zpool_from_dir.
6610 (grub_make_system_path_relative_to_its_root) [!__linux__]:
6611 #ifdef-out paresdir.
6612
6613 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6614
6615 * util/grub-pe2elf.c (usage): Add missing noreturn.
6616 (write_section_data): Rename name to shname to avoid shadowing.
6617 (write_symbol_table): Rename name to symname to avoid shadowing.
6618 Fix write_reloc_section call.
6619
6620 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6621
6622 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
6623 to ensure that it's after the last byte of .text.
6624
6625 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6626
6627 * util/ieee1275/ofpath.c (my_isdigit): New function.
6628 (trailing_digits): Use my_isdigit.
6629 (strip_trailing_digits): Likewise.
6630
6631 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6632
6633 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
6634 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
6635
6636 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6637
6638 * grub-core/kern/i386/pc/startup.S: Define __start.
6639
6640 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6641
6642 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
6643 strip already transforms he format.
6644
6645 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
6646
6647 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
6648
6649 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6650
6651 * util/grub-install.in: Add missing gettext init.
6652 * util/grub-kbdcomp.in: Likewise.
6653 * util/grub-mkconfig.in: Likewise.
6654 * util/grub-mknetdir.in: Likewise.
6655 * util/grub-mkrescue.in: Likewise.
6656 * util/grub-mkstandalone.in: Likewise.
6657 * util/grub-reboot.in: Likewise.
6658 * util/grub-set-default.in: Likewise.
6659 * util/grub.d/00_header.in: Likewise.
6660 * util/grub.d/10_hurd.in: Likewise.
6661 * util/grub.d/10_windows.in: Likewise.
6662 * util/grub.d/30_os-prober.in: Likewise.
6663 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6664
6665 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6666
6667 * po/Rules-swiss: Fix header comment.
6668
6669 2012-02-29 Andreas Vogel <anvoit>
6670
6671 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
6672 resulted in leak of arguments.
6673
6674 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6675
6676 * grub-core/boot/i386/pc/startup_raw.S: Use separate
6677 reed_solomon_size const definition instead of computing it since
6678 Apple assembler doesn't support the later.
6679
6680 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6681
6682 * gentpl.py (kernel): Rewrite Apple part.
6683
6684 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6685
6686 * include/grub/kernel.h (FOR_MODULES): Check module magic.
6687
6688 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6689
6690 * util/grub-mkimagexx.c (locate_sections): Support non-standard
6691 ELF section gap.
6692 (load_image): Likewise.
6693
6694 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6695
6696 * configure.ac: Fix a typo in previous commit.
6697
6698 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6699
6700 Don't add -Wl,-N on Apple platform.
6701
6702 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
6703 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
6704
6705 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6706
6707 * grub-core/Makefile.core.def (lzma_decompress): Use
6708 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
6709
6710 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6711
6712 * grub-core/genmod.sh.in: Rewrite the Apple part.
6713
6714 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6715
6716 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
6717 comparison.
6718
6719 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6720
6721 * acinclude.m4 (grub_CHECK_PIC): New test.
6722 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
6723
6724 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6725
6726 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
6727 to avoid the warning.
6728
6729 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6730
6731 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
6732 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
6733 after. All users updated.
6734
6735 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6736
6737 Use the common size routine in hostfs so we can read disks as well.
6738
6739 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
6740 (grub_util_get_fd_size): ... this. Return size in bytes.
6741 All users updated.
6742 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
6743 grub_util_get_fd_size.
6744
6745 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6746
6747 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
6748 Add blocksize retrieval.
6749
6750 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6751
6752 * configure.ac: Restore CFLAGS after efiemu check.
6753
6754 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6755
6756 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
6757 Apple bug.
6758
6759 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6760
6761 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
6762
6763 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6764
6765 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
6766 (grub_cmd_halt): Likewise.
6767
6768 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6769
6770 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
6771 for local arithmetics.
6772 Break %sp init into 2 instructions.
6773 Add 0 byte at the end.
6774
6775 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6776
6777 * grub-core/disk/diskfilter.c (read_segment): Initialise err
6778 before loops.
6779
6780 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6781
6782 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
6783 for context.
6784
6785 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6786
6787 * grub-core/disk/ldm.c (make_vg): Init part.name.
6788 (grub_ldm_detect): Silence spurious warning.
6789 (grub_util_is_ldm): Likewise.
6790
6791 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6792
6793 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
6794 sane value to avoid a spurious warning.
6795
6796 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6797
6798 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
6799 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
6800
6801 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6802
6803 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
6804 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
6805
6806 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6807
6808 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
6809 hardcoding the relevant info.
6810
6811 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6812
6813 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
6814 missing const qualifiers.
6815 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
6816
6817 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6818
6819 * util/getroot.c [__APPLE__]: Add missing includes.
6820 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
6821
6822 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6823
6824 * util/grub-mkimage.c (generate_image): Silence spurious warning.
6825
6826 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6827
6828 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
6829 avoid conflicts.
6830
6831 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6832
6833 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
6834
6835 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6836
6837 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
6838 and grub_file_close call.
6839
6840 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6841
6842 Add LZSS Mach-O support (needed for new xnu kernelcache).
6843
6844 * grub-core/Makefile.core.def (xnu): Add file lzss.c
6845 * grub-core/loader/lzss.c: New file.
6846 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
6847 on Mach-O open failure.
6848 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
6849 Don't free cmdsXX in uncompressedXX is set.
6850 (grub_macho_file): Init new fields.
6851 New argument is_64bit. All users updated.
6852 Handle compressed. Error out if no suitable architecture is found.
6853 Don't close file.
6854 (grub_macho_open): New argument is_64bit. All users updated.
6855 * grub-core/loader/macho32.c: Add defines for new fields.
6856 * grub-core/loader/macho64.c: Likewise.
6857 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
6858 (grub_macho_parse): Handle compressed.
6859 Defer actual processing if compressed.
6860 (grub_macho_cmds_iterate): Decompress if compressed. New argument
6861 "filename". All users updated.
6862 (grub_macho_size): New argument "filename". All users updated.
6863 (grub_macho_get_entry_point): Likewise.
6864 (grub_macho_load): Handle compressed.
6865 * include/grub/macho.h (grub_macho_lzss_header): New struct.
6866 (GRUB_MACHO_LZSS_OFFSET): New define.
6867 (grub_decompress_lzss): New proto.
6868 * include/grub/machoload.h (grub_macho_file): New fields to handle
6869 compressed.
6870 (grub_macho_contains_macho64): Remove proto.
6871 (grub_macho_contains_macho32): Likewise.
6872 * util/grub.d/30_os-prober.in: Use kernel cache if available.
6873
6874 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
6875
6876 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
6877
6878 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6879
6880 Fix make dist.
6881
6882 * Makefile.am (starfield_theme_files): New var.
6883 (starfield_DATA): Use starfield_theme_files.
6884 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
6885 Add bootcheck-related files.
6886 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
6887 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
6888 and font_char_metrics.txt.
6889 * grub-core/Makefile.core.def (kernel): Update extra_dist.
6890 (setjmp): Add lib/ia64/longjmp.S.
6891 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
6892 * po/POTFILES.in: Regenerate.
6893 * po/Rules-swiss: use DISTFILES.common.extra2 and not
6894 DISTFILES.common.extra1.
6895 * util/devicemap.c: Removed.
6896 * grub-core/lib/i386/relocator_backward.S: Likewise.
6897 * util/import_gcry.py: Remove unused files. Add extra_dist for
6898 ChangeLog.
6899
6900 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6901
6902 * grub-core/gettext/gettext.c (grub_mofile_open): Call
6903 grub_gettext_delete_list before changing grub_gettext_max to avoid
6904 running out of array bounds.
6905
6906 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6907
6908 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
6909 grub_vga_text_init/grub_vga_text_fini.
6910
6911 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
6912
6913 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
6914
6915 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6916
6917 * configure.ac: Bump to 2.00~beta0.
6918
6919 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6920
6921 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
6922 missing initialisation.
6923
6924 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6925
6926 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
6927
6928 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6929
6930 Support v2 xnu boot arguments.
6931
6932 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
6933 New argument fsbfreq_out.
6934 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
6935 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
6936 be used.
6937 * grub-core/loader/machoXX.c (grub_macho_load): New argument
6938 darwin_version.
6939 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
6940 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
6941 (grub_xnu_boot_params): Rename to ...
6942 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
6943 (grub_xnu_boot_params_v2): New struct.
6944
6945 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6946
6947 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
6948 zeroing of CRC field before computing CRC.
6949
6950 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6951
6952 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
6953 Change order of allocations to decrease fragmentation.
6954
6955 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6956
6957 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
6958
6959 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
6960
6961 Use write-combining MTRR to speed up video with buggy BIOSes.
6962
6963 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
6964 (cpuid): New define.
6965 (rdmsr): Likewise.
6966 (wrmsr): Likewise.
6967 (mtrr_base): Likewise.
6968 (mtrr_mask): Likewise.
6969 (grub_vbe_enable_mtrr_entry): New function.
6970 (grub_vbe_enable_mtrr): Likewise.
6971 (grub_vbe_disable_mtrr): Likewise.
6972 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
6973 control off to BIOS.
6974 (grub_video_vbe_init): Fill mtrr.
6975 (grub_video_vbe_fini): Disable mtrr.
6976 (grub_video_vbe_get_info_and_fini): Likewise.
6977 (grub_video_vbe_setup): Enable mtrr.
6978
6979 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
6980
6981 * include/grub/partition.h (grub_partition_map): Change prototype of
6982 embed to take a maximum value for nsectors.
6983 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
6984 * include/grub/fs.h (grub_fs): Likewise.
6985 * grub-core/partmap/msdos.c (embed_signatures): New array.
6986 (pc_partition_map_embed): Check for and avoid sectors matching any
6987 of the signatures in embed_signatures, up to max_nsectors.
6988 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
6989 returned sector map to max_nsectors.
6990 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
6991 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
6992 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
6993 * util/grub-setup.c (setup): Allow for the embedding area being
6994 split into multiple blocklists. Tell dest_partmap->embed the
6995 maximum number of sectors we care about.
6996
6997 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6998
6999 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
7000 Specify blocklist_install and reserver_first_sector for all fs.
7001 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
7002 blocklists.
7003
7004 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7005
7006 * util/grub-install.in: Clarify strings.
7007 Fix source dir check.
7008
7009 2012-02-27 Richard Laager <rlaager@wiktel.com>
7010
7011 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
7012 "zfs" and "fuse.zfs" as synonyms.
7013
7014 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7015
7016 * configure.ac: Put platform and target_cpu substitutions back since
7017 they are used for directories.
7018
7019 2012-02-27 Richard Laager <rlaager@wiktel.com>
7020 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7021
7022 * util/grub.d/10_linux.in: Add ZFS-related arguments.
7023 * util/grub.d/20_linux_xen.in: Likewise.
7024
7025 2012-02-27 Richard Laager <rlaager@wiktel.com>
7026
7027 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
7028 with full paths.
7029
7030 2012-02-27 Richard Laager <rlaager@wiktel.com>
7031
7032 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
7033 unescape.
7034
7035 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7036
7037 Don't use insecure popen in getroot.
7038
7039 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
7040 (exec_pipe): ... here.
7041 (find_root_devices_from_poolname): Use exec_pipe.
7042
7043 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7044
7045 Remove platform and target_cpu replacement.
7046
7047 * configure.ac: Remove platform and target_cpu substitutions.
7048 * tests/util/grub-shell.in: Use modinfo.
7049 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
7050 explicitly.
7051
7052 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7053
7054 Autodetect platform in grub-install but allow override.
7055
7056 * util/grub-install.in: Autodetect platform. Support --target and
7057 --directory. Read platform from modinfo.sh.
7058
7059 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7060
7061 Support btrfs multi-volume probe.
7062
7063 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
7064 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
7065 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
7066 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
7067 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
7068 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
7069 grub_find_root_devices_from_btrfs if on btrfs.
7070
7071 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7072
7073 Remove any awareness of *.c util files about target.
7074
7075 * Makefile.util.def (grub-setup): Split to ...
7076 (grub-bios-setup): ... and this.
7077 (grub-sparc64-setup): ... and this.
7078 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
7079 * docs/man/grub-setup.h2m: Split into ...
7080 * docs/man/grub-sparc64-setup.h2m: ... this.
7081 * docs/man/grub-bios-setup.h2m: ... and this.
7082 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
7083 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
7084 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
7085 (grub_target_addr_t): Remove.
7086 (grub_target_size_t): Remove.
7087 (grub_target_ssize_t): Remove.
7088 * util/grub-install.in: Use new grub-*-setup.
7089 * util/grub-mkimagexx.c (Elf_Word): New define.
7090 (Elf_Half): Likewise.
7091 (Elf_Section): Likewise.
7092 (ELF_ST_TYPE): Likewise.
7093 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
7094 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
7095
7096 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7097
7098 Replace grub_target_addr with more appropriate types.
7099
7100 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
7101 grub_target_addr with grub_addr.
7102 * grub-core/commands/iorw.c (grub_cmd_read): Replace
7103 grub_target_addr with grub_port.
7104 (grub_cmd_write): Likewise.
7105 * grub-core/commands/memrw.c (grub_cmd_read): Replace
7106 grub_target_addr with grub_addr.
7107 (grub_cmd_write): Likewise.
7108 * grub-core/video/efi_uga.c (find_line_len): Likewise.
7109
7110 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7111
7112 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
7113 const qualifier for vendor_guid.
7114
7115 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7116
7117 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
7118 const qualifier.
7119 (efiemu_memequal): Likewise.
7120 (find_variable): Likewise.
7121
7122 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7123
7124 Fix missing console prototype on qemu-mips.
7125
7126 * include/grub/mips/qemu_mips/console.h: New file.
7127
7128 2012-02-27 Matthew Garrett <mjg@redhat.com>
7129 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7130
7131 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
7132 * include/grub/efi/efi.h: Likewise.
7133 * include/grub/efi/api.h: Add guid for EFI-specified variables.
7134 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
7135 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
7136 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
7137 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
7138 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
7139
7140 2012-02-27 Matthew Garrett <mjg@redhat.com>
7141
7142 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
7143
7144 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7145
7146 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
7147 error.
7148
7149 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7150
7151 * configure.ac: Remove inappropriate use of program_transform_name
7152 on grubdir and bootdir but allow explicit specification of those
7153 variables.
7154
7155 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7156
7157 * util/grub-mknetdir.in (grub_prefix): Removed.
7158 (subdir): Use @bootdirname@ and @grubdirname@.
7159
7160 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7161
7162 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
7163
7164 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7165
7166 * po/POTFILES.in: Regenerated.
7167
7168 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7169
7170 Remove improper use of program_transform_name on pkglibrootdir.
7171
7172 * configure.ac (pkglibrootdir): Removed.
7173 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
7174 * util/grub-mkimage.c: Likewise.
7175
7176 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7177
7178 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
7179 warning.
7180
7181 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7182
7183 * util/grub-install.in: Use file identifier if no UUID is available
7184 or user explicitly prompted for it.
7185
7186 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
7187
7188 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
7189 (freebsd_get_zfs): New function.
7190 (grub_freebsd_boot): Pass zfs UUID.
7191 (grub_cmd_freebsd): Set zfs UUID.
7192
7193 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7194
7195 * conf/Makefile.common (platformdir): Base on pkglibdir and not
7196 pkglibrootdir.
7197
7198 2012-02-27 Mike Gilbert <floppym@gentoo.org>
7199
7200 Add configure flag to control libzfs integration.
7201
7202 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
7203
7204 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7205
7206 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
7207 device.
7208 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
7209 small devices.
7210
7211 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7212
7213 Remove grub_{modname}_init and grub_{modname}_fini. They should never
7214 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
7215 be used on non-modules.
7216
7217 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
7218 Rename to grub_boot_init.
7219 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
7220 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
7221 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
7222 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
7223 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
7224 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
7225 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
7226 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
7227 includes.
7228 (grub_machine_init): Remove empty inits.
7229 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
7230 includes.
7231 (grub_machine_init): Remove empty inits.
7232 * grub-core/term/arc/console.c: Remove explicit proto.
7233 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
7234 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
7235 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7236 grub_at_keyboard_fini.
7237 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
7238 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
7239 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7240 grub_gfxterm_fini.
7241 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
7242 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
7243 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7244 grub_vgatext_fini.
7245 * grub-core/term/ieee1275/console.c: Remove explicit proto.
7246 * grub-core/term/serial.c (GRUB_MOD_INIT)
7247 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
7248 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7249 grub_serial_fini.
7250 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
7251 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
7252 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7253 grub_terminfo_fini.
7254 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
7255 (GRUB_MOD_FINI): Likewise.
7256 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
7257 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
7258 (GRUB_MOD_FINI) [LOONGSON]: Rename to
7259 grub_video_radeon_fuloong2e_fini.
7260 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
7261 [LOONGSON]: Rename to grub_video_sis315pro_init.
7262 (GRUB_MOD_FINI) [LOONGSON]: Rename to
7263 grub_video_sis315pro_fini.
7264 * grub-core/video/sm712.c (GRUB_MOD_INIT)
7265 [LOONGSON]: Rename to grub_video_sm712_init.
7266 (GRUB_MOD_FINI) [LOONGSON]: Rename to
7267 grub_video_sm712_fini.
7268 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
7269 (grub_at_keyboard_fini): Likewise.
7270 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
7271 Don't declare grub_{modname}_init.
7272 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
7273 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
7274 New proto.
7275 (grub_keylayouts_fini) [!EMU]: Likewise.
7276 * include/grub/serial.h (grub_serial_init) [!EMU]:
7277 New proto.
7278 (grub_serial_fini) [!EMU]: Likewise.
7279 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
7280 New proto.
7281 (grub_terminfo_fini) [!EMU]: Likewise.
7282 * include/grub/video.h (grub_font_init) [!EMU]:
7283 New proto.
7284 (grub_font_fini) [!EMU]: Likewise.
7285 (grub_gfxterm_init) [!EMU]: Likewise.
7286 (grub_gfxterm_fini) [!EMU]: Likewise.
7287 (grub_video_sm712_init) [!EMU]: Likewise.
7288 (grub_video_sm712_fini) [!EMU]: Likewise.
7289 (grub_video_sis315pro_init) [!EMU]: Likewise.
7290 (grub_video_sis315pro_fini) [!EMU]: Likewise.
7291 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
7292 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
7293
7294 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7295
7296 Make nand a prefix for nand devices.
7297
7298 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
7299
7300 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7301
7302 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
7303 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
7304
7305 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7306
7307 * include/grub/env.h (grub_env_find): Remove prototype.
7308 * grub-core/kern/env.c (grub_env_find): Make static.
7309 (grub_env_set): Remove useless set.
7310
7311 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7312
7313 * grub-core/kern/i386/realmode.S: Remove useless align.
7314
7315 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7316
7317 * include/grub/dl.h (grub_dl_load_file): Don't export.
7318
7319 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7320
7321 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
7322 grub_dprintf.
7323
7324 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7325
7326 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
7327 grub_errors.
7328 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
7329 not reloading whole superblock but only the part which is really needed.
7330 Remove useless grub_errors.
7331 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
7332 grub_errors.
7333
7334 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7335
7336 Don't export grub_get_rtc.
7337
7338 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
7339 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
7340
7341 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7342
7343 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
7344
7345 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7346
7347 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
7348 argument since it can be deduced from diskfilter. All users updated.
7349
7350 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7351
7352 Remove prio_list.
7353
7354 * include/grub/list.h (grub_prio_list): Removed.
7355 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
7356 GRUB_COMMAND_PRIO_MASK.
7357 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
7358 GRUB_COMMAND_FLAG_ACTIVE.
7359 (grub_prio_list_insert): Removed.
7360 (grub_prio_list_remove): Likewise.
7361 (GRUB_AS_PRIO_LIST): Likewise.
7362 (GRUB_AS_PRIO_LIST_P): Likewise.
7363 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
7364 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
7365 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
7366 * grub-core/kern/command.c (grub_register_command_prio): Inline
7367 the prio_list code.
7368 (grub_unregister_command): Likewise.
7369
7370 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7371
7372 Fix interrupt mixup from previous commit.
7373
7374 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
7375 (grub_realidt): New var.
7376 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
7377 Load idt.
7378 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
7379 New declaration.
7380 (grub_relocator16_boot): Set grub_relocator16_idt.
7381 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
7382 (LOCAL(realidt)): ... this.
7383 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
7384 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
7385 (grub_realidt): New variable.
7386
7387 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7388
7389 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
7390 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
7391 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
7392 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
7393 Gettextize.
7394 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
7395 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
7396 * po/POTFILES.in: Regenerate.
7397
7398 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7399
7400 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
7401 errors.
7402
7403 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7404
7405 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
7406 \0.
7407 (add_length): Likewise.
7408
7409 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7410 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
7411
7412 GDB serial and backtrace support.
7413
7414 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
7415 (prot_to_real): Likewise.
7416 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
7417 * grub-core/Makefile.core.def (backtrace): New module.
7418 (gdb): Likewise.
7419 * grub-core/gdb/cstub.c: New file.
7420 * grub-core/gdb/gdb.c: Likewise.
7421 * grub-core/gdb/i386/idt.c: Likewise.
7422 * grub-core/gdb/i386/machdep.S: Likewise.
7423 * grub-core/gdb/i386/signal.c: Likewise.
7424 * grub-core/lib/i386/backtrace.c: Likewise.
7425 * grub-core/lib/backtrace.c: Likewise.
7426 * include/grub/backtrace.h: Likewise.
7427 * include/grub/gdb.h: Likewise.
7428 * include/grub/i386/gdb.h: Likewise.
7429
7430 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7431
7432 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
7433 New function.
7434 (add_length): Likewise.
7435 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
7436 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
7437 proto.
7438 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
7439 __argp_get_display_len.
7440
7441 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7442
7443 $"..." support in scripts.
7444
7445 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
7446 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
7447 * grub-core/script/yylex.l: Likewise.
7448 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
7449 value.
7450
7451 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7452
7453 * gentpl.py: Remove obsolete pkglib_DATA handling.
7454
7455 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7456
7457 Don't transform PACKAGE_TARNAME following a discussion on autoconf
7458 mailing list.
7459
7460 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
7461 * util/grub-kbdcomp.in: Likewise.
7462 * util/grub-mkconfig.in: Likewise.
7463 * util/grub-mkconfig_lib.in: Likewise.
7464 * util/grub-mknetdir.in: Likewise.
7465 * util/grub-mkrescue.in: Likewise.
7466 * util/grub-mkstandalone.in: Likewise.
7467 * util/grub-reboot.in: Likewise.
7468 * util/grub-set-default.in: Likewise.
7469 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7470
7471 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7472
7473 Remove GRUB_PREFIX.
7474
7475 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
7476 * util/grub.d/00_header.in: Compute prefix in the only place it's still
7477 used for backward compatibility.
7478
7479 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7480
7481 Add new all_video module.
7482
7483 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
7484 * grub-core/Makefile.core.def (all_video): New module.
7485 * grub-core/genmoddep.awk: Generate dependency of all_video from
7486 video.lst.
7487 * grub-core/lib/fake_module.c: New file.
7488 * grub-core/normal/main.c (features): Add feature_all_video_module.
7489 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
7490 don't do explicit search again.
7491 insmod all_video in load_video if available.
7492
7493 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7494
7495 Another round of string clarification and adding TRANSLATORS comments.
7496
7497 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7498
7499 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
7500
7501 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7502
7503 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
7504 to grub_ssize_t.
7505 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
7506 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
7507
7508 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7509
7510 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
7511 trailing newline implicitly. All users updated.
7512
7513 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7514
7515 Implement serial on IEEE1275 and EFI.
7516
7517 * docs/grub.texi (Platform-specific limitations): Fix the columen video
7518 on emu. Mention arc and emu as the only platforms without serial
7519 support.
7520 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
7521 ieee1275 platforms.
7522 * grub-core/term/efi/serial.c: New file.
7523 * grub-core/term/ieee1275/serial.c: Likewise.
7524 * grub-core/term/serial.c (grub_serial_find): Disable direct port
7525 specification if no ns8250 driver is available.
7526 (grub_cmd_serial): Likewise.
7527 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
7528 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
7529 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
7530 (grub_efi_parity_type_t): New type.
7531 (grub_efi_stop_bits_t): Likewise.
7532 (grub_efi_serial_io_interface): New struct.
7533 * include/grub/serial.h (grub_serial_port): Make 'broken' field
7534 available for all interfaces.
7535 Add EFI and IEEE1275 fields.
7536 (grub_ofserial_init): New proto.
7537 (grub_efiserial_init): Likeiwse.
7538 * util/grub.d/00_header.in: Don't check for the presence of serial
7539 module.
7540
7541 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7542
7543 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
7544 name as if it was an alias.
7545
7546 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7547
7548 * grub-core/commands/lsacpi.c (options): Fix typo.
7549
7550 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7551
7552 Convert grub-emu to argp.
7553
7554 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
7555 emu.
7556 * util/argp_common.c: Rename to ...
7557 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
7558 Add missing includes.
7559 * grub-core/kern/emu/main.c: Convert to argp.
7560 * po/POTFILES.in: Regenerate.
7561 * util/grub-install.in (usage): Make first letter lowcase in messages
7562 for uniformity.
7563 * util/grub-setup.c (options): Likewise.
7564
7565 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7566
7567 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
7568 Put back accidently commented-out code.
7569
7570 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7571
7572 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
7573 loop check using Brent algorithm.
7574 (grub_hfsplus_btree_search): Likewise.
7575
7576 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7577
7578 * util/grub-install.in: Fix usage of wrong device for PreP install.
7579
7580 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7581
7582 * conf/Makefile.common (CFLAGS_GNULIB): Add
7583 -Wno-unsafe-loop-optimizations.
7584 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
7585 on tools.
7586 * grub-core/commands/legacycfg.c: Add pragma to skip
7587 -Wunsafe-loop-optimizations.
7588 (check_password_md5_real): Fix loop counter type.
7589 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
7590 reading.
7591 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
7592 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
7593 loop condition.
7594 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
7595 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
7596 * grub-core/net/net.c (grub_net_route_address): Add safety loop
7597 condition.
7598 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
7599 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
7600 avoid possible infinite loops.
7601 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
7602 and -Wunsafe-loop-optimizations.
7603 * grub-core/script/yylex.l: Likewise.
7604 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
7605 (print_glyphs): Avoid infinite loops.
7606 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
7607
7608 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
7609
7610 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
7611 to avoid infinite loop.
7612 (disp_acpi_rsdt_table): Likewise.
7613
7614 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7615
7616 * grub-core/font/font.c (grub_font_load): Add support for default
7617 path for fonts ($prefix/fonts).
7618 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
7619 for checking if string is a path.
7620 * grub-core/normal/main.c (features): Add feature_default_font_path.
7621 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
7622 * util/grub.d/00_header.in: Use default directory if possible.
7623 * util/grub-install.in: Install unicode.pf2.
7624
7625 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7626
7627 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
7628 * po/Rules-swiss: New file.
7629 * po/swiss.sed: Likewise.
7630
7631 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
7632
7633 * grub-core/fs/btrfs.c (find_device): Fix typos.
7634 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
7635 * util/grub-mkrelpath.c (argp_parser): Likewise.
7636 Reported by: Yuri Chornoivan.
7637
7638 2012-02-23 Dalet Omega <daletomega@gmail.com>
7639
7640 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
7641 for usual informative messages.
7642
7643 2012-02-23 Dalet Omega <daletomega@gmail.com>
7644
7645 Starfield theme.
7646
7647 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
7648 * conf/Makefile.common: Define starfielddir.
7649 * configure.ac: Configure starfield.
7650 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
7651 * themes/starfield/README: Likewise.
7652 * themes/starfield/blob_w.png: Likewise.
7653 * themes/starfield/boot_menu_c.png: Likewise.
7654 * themes/starfield/boot_menu_e.png: Likewise.
7655 * themes/starfield/boot_menu_n.png: Likewise.
7656 * themes/starfield/boot_menu_ne.png: Likewise.
7657 * themes/starfield/boot_menu_nw.png: Likewise.
7658 * themes/starfield/boot_menu_s.png: Likewise.
7659 * themes/starfield/boot_menu_se.png: Likewise.
7660 * themes/starfield/boot_menu_sw.png: Likewise.
7661 * themes/starfield/boot_menu_w.png: Likewise.
7662 * themes/starfield/slider_c.png: Likewise.
7663 * themes/starfield/slider_n.png: Likewise.
7664 * themes/starfield/slider_s.png: Likewise.
7665 * themes/starfield/src/blob_nw.xcf: Likewise.
7666 * themes/starfield/src/bootmenu/: Likewise.
7667 * themes/starfield/src/bootmenu/center.xcf: Likewise.
7668 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
7669 * themes/starfield/src/bootmenu/side.xcf: Likewise.
7670 * themes/starfield/src/slider_c.xcf: Likewise.
7671 * themes/starfield/src/slider_n.xcf: Likewise.
7672 * themes/starfield/src/slider_s.xcf: Likewise.
7673 * themes/starfield/src/terminalbox/: Likewise.
7674 * themes/starfield/src/terminalbox/center.xcf: Likewise.
7675 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
7676 * themes/starfield/src/terminalbox/side.xcf: Likewise.
7677 * themes/starfield/starfield.png: Likewise.
7678 * themes/starfield/terminal_box_c.png: Likewise.
7679 * themes/starfield/terminal_box_e.png: Likewise.
7680 * themes/starfield/terminal_box_n.png: Likewise.
7681 * themes/starfield/terminal_box_ne.png: Likewise.
7682 * themes/starfield/terminal_box_nw.png: Likewise.
7683 * themes/starfield/terminal_box_s.png: Likewise.
7684 * themes/starfield/terminal_box_se.png: Likewise.
7685 * themes/starfield/terminal_box_sw.png: Likewise.
7686 * themes/starfield/terminal_box_w.png: Likewise.
7687 * themes/starfield/theme.txt: Likewise.
7688
7689 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
7690
7691 * util/grub.d/00_header.in: Add missing export theme.
7692
7693 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7694
7695 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
7696 already included.
7697 Reported by: Eren D.
7698
7699 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7700
7701 * conf/Makefile.common (grubdatadir): Removed.
7702 (Makefile.am): Move eveything grubdata to pkgdata.
7703
7704 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7705
7706 * grub-core/commands/acpihalt.c (get_sleep_type):
7707 Remove unused variable.
7708
7709 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7710
7711 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
7712 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
7713 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
7714 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
7715 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
7716 i18n with gettext no-op.
7717 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
7718 GRUB_ACPI_OPCODE_STRING_CONST.
7719 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
7720 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
7721
7722 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7723
7724 * po/POTFILES.in: Regenerate.
7725
7726 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7727
7728 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
7729 -Wno-error=missing-noreturn.
7730
7731 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7732
7733 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
7734 condition to avoid possibly infinite loops.
7735 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
7736 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
7737
7738 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7739
7740 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
7741 condition to avoid possibly infinite loops.
7742
7743 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7744
7745 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
7746 on show_error.
7747
7748 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7749
7750 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
7751
7752 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7753
7754 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
7755
7756 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7757
7758 * util/bin2h.c (usage): Add missing attribute noreturn.
7759
7760 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7761
7762 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
7763 if the size isn't divisible by 512.
7764
7765 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7766
7767 Make list_push and list_remove functions rather than inline functions
7768 to decrease size and avoid aliasing violations.
7769
7770 * include/grub/list.h (grub_list_push): Move to ...
7771 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
7772 * include/grub/list.h (grub_list_remove): Move to ...
7773 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
7774
7775 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
7776
7777 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
7778 and -Wunused-result.
7779
7780 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
7781
7782 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
7783 Reported by: Seth Goldberg
7784
7785 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
7786
7787 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
7788
7789 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
7790
7791 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
7792 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
7793 command line.
7794 * docs/grub.texi (Simple configuration): Document
7795 GRUB_CMDLINE_GNUMACH.
7796
7797 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
7798
7799 * conf/Makefile.common (platform_SCRIPTS): New variable.
7800 (platform_PROGRAMS): Likewise.
7801 * gentpl.py: Mark *,module and *.image for install.
7802 * grub-core/gdb_grub.in: Add a notice of expected environment.
7803 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
7804 (gmodule.pl): Likewise.
7805
7806 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
7807
7808 Replace grub_checkkey with grub_getkey_noblock.
7809
7810 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
7811 (grub_getkey_noblock): ... this. All users updated.
7812
7813 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
7814
7815 * grub-core/kern/emu/console.c: Move to ...
7816 * grub-core/term/emu/console.c: ...here.
7817 (grub_ncurses_getkey): Fix return value if no key is detected.
7818
7819 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7820
7821 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
7822 (grub_unit_test_fini): Likewise.
7823 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
7824
7825 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7826
7827 * include/grub/test.h (GRUB_UNIT_TEST)
7828
7829 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7830
7831 * grub-core/script/execute.c (grub_script_break): Clarify logic.
7832 Better error handling.
7833 (grub_script_return): Likewise.
7834 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
7835
7836 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7837
7838 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
7839 rimplicit redifinition.
7840
7841 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7842
7843 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
7844 GRUB.
7845
7846 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7847
7848 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
7849 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
7850 prompt here.
7851
7852 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7853
7854 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
7855 as GRUB_ERR_BUG. Don't malloc if no device is available.
7856
7857 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7858
7859 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
7860 Mark calling with invalid term as GRUB_ERR_BUG.
7861
7862 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7863
7864 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
7865 packets rather than raising an error.
7866
7867 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7868
7869 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
7870 in if.
7871
7872 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7873
7874 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
7875 diagnostic to dprintf.
7876 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7877
7878 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7879
7880 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
7881 device name.
7882
7883 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7884
7885 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
7886 (grub_ntfs_iterate_dir): Likewise.
7887
7888 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7889
7890 Efiemu stylistic fixes and gettext.
7891
7892 * grub-core/efiemu/i386/loadcore32.c
7893 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
7894 * grub-core/efiemu/i386/loadcore64.c
7895 (grub_arch_efiemu_relocate_symbols64): Likewise.
7896 * grub-core/efiemu/i386/pc/cfgtables.c
7897 (grub_machine_efiemu_init_tables): Likewise.
7898 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
7899 (grub_efiemu_loadcore_initXX): Add a filename argument.
7900 All users updated.
7901 Improved error message.
7902 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
7903 Add a filename argument.
7904 All users updated.
7905 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
7906 Reclassify double relocation as GRUB_ERR_BUG.
7907
7908 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7909
7910 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
7911 handling.
7912
7913 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7914
7915 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
7916 on partition.
7917
7918 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7919
7920 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
7921
7922 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
7923
7924 Improve string. Gettextize.
7925
7926 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7927
7928 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
7929 utils.
7930 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
7931
7932 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7933
7934 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
7935 [GRUB_UTIL]: New function.
7936 (insert_array) [GRUB_UTIL]: Store partmaps.
7937 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
7938 partmaps.
7939 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
7940 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
7941 (probe_abstraction): Print diskfilter and not raid.
7942 Reported by: Lennart Sorensen
7943
7944 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7945
7946 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
7947 * util/grub-mkimagexx.c (MASK3): New define.
7948 (add_value_to_slot_20b): Use MASK3.
7949 (add_value_to_slot_21): Likewise.
7950 (relocate_addresses): Fix format specification.
7951 (load_image): Explicitly init symtab_section.
7952
7953 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7954
7955 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
7956 (grub_util_biosdisk_get_grub_dev): Fix format specification.
7957
7958 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7959
7960 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
7961 on powerpc.
7962 Reported by: Lennart Sorensen
7963
7964 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7965
7966 * gentpl.py: Add missing license header.
7967 * docs/grub.texi: Update copyright year.
7968
7969 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
7970
7971 Source grub-mkconfig_lib from the build directory at build time.
7972 Suggested by: Vladimir Serbinenko.
7973
7974 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
7975 * util/grub-install.in: Define pkgdatadir if not already set, and source
7976 grub-mkconfig_lib from there.
7977 * util/grub-kbdcomp.in: Likewise.
7978 * util/grub-mkconfig.in: Likewise.
7979 * util/grub-mknetdir.in: Likewise.
7980 * util/grub-mkrescue.in: Likewise.
7981 * util/grub-mkstandalone.in: Likewise.
7982 * util/grub-reboot.in: Likewise.
7983 * util/grub-set-default.in: Likewise.
7984 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7985
7986 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7987
7988 Increase warning level.
7989
7990 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
7991 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
7992 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
7993 (TARGET_CFLAGS): Likewise.
7994 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
7995 * grub-core/Makefile.core.def (decompressor_xz): Add
7996 -Wno-unreachable-code.
7997 (normal): Add -Wno-redundant-decls.
7998 (xzio): Add -Wno-unreachable-code.
7999 (lzopio): Add -Wno-redundant-decls -Wno-error.
8000 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
8001 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
8002 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
8003 * grub-core/kern/dl.c: Add exception to -Wcast-align.
8004 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
8005 * grub-core/kern/i386/coreboot/init.c: Add exception to
8006 -Wsuggest-attribute=noreturn.
8007 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
8008 * grub-core/kern/ia64/dl_helper.c: Likewise.
8009 * grub-core/kern/mips/dl.c: Likewise.
8010 * grub-core/kern/sparc64/dl.c: Likewise.
8011 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
8012 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
8013 (memcmp): Likewise.
8014 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
8015 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
8016 * grub-core/loader/mips/linux.c: Likewise.
8017 * grub-core/loader/multiboot_elfxx.c: Likewise.
8018 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
8019 * grub-core/video/sm712.c: Add exception to -Wcast-align.
8020 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
8021 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
8022 fixme.
8023 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
8024 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
8025 Fix prototype.
8026
8027 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8028
8029 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
8030 address.
8031
8032 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8033
8034 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
8035 Avoid improper use of strings.
8036 (grub_cmd_legacy_initrdnounzip): Likewise.
8037
8038 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8039
8040 * include/grub/emu/misc.h (grub_util_warn): Add missing format
8041 attribute.
8042 (grub_util_info): Likewise.
8043 (grub_util_error): Likewise.
8044
8045 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8046
8047 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
8048 * util/grub-fstest.c (fstest): Likewise.
8049
8050 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8051
8052 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
8053 (grub_md_sha512_real): Likewise.
8054 (grub_util_get_geli_uuid): Likewise.
8055 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
8056 (grub_util_biosdisk_open): Fix format specification.
8057 Respect format security.
8058 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
8059 (xrealloc): Likewise.
8060 (xasprintf): Likewise.
8061
8062 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8063
8064 * util/import_gcry.py: Include grub/crypto.h in init.c.
8065
8066 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8067
8068 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
8069 (generate_image): Make prefix a const char *.
8070 Fix format specifications. Respect format security.
8071 Avoid void * arithmetics.
8072 Avoid shadowing.
8073 (argp_parser): Remove unused variable. Respect format security.
8074 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
8075 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
8076 (count_funcs): Remove unused variable.
8077 (relocate_addresses): Fix format specification.
8078 Disable x86-64 with elf32. Remove unused variables.
8079 (add_fixup_entry): Avoid shadowing.
8080 (make_reloc_section): Fix format specification.
8081 Use assert.
8082 (locate_sections): Fix format specifications.
8083 (load_image): Avoid shadowing.
8084
8085 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8086
8087 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
8088 Fix format specifications. Respect format security.
8089 Don't translate already translated grub_errmsg.
8090 (argp_parser): Remove unused variable
8091
8092 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8093
8094 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
8095
8096 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8097
8098 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
8099 (main): Likewise. Use xmalloc. Respect format security.
8100
8101 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8102
8103 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
8104 a const char *.
8105 (argp_parser): Remove unused variable.
8106
8107 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8108
8109 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
8110 (add_pixel): Make static.
8111 (add_font): Likewise.
8112 (write_string_section): Make name and str a const char *.
8113 (write_be16_section): Make name a const char *.
8114 (print_glyphs): Make static.
8115 (write_font_ascii_bitmap): Likewise.
8116 (write_font_width_spec): Likewise.
8117 (write_font_pf2): Likewise.
8118 (argp_parser): Remove unused variable.
8119 Respect format security.
8120 (main): Avoid shadowing. Respect format security.
8121
8122 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8123
8124 * util/grub-editenv.c (argp_parser): Make static.
8125 (create_envblk_file): Use xmalloc.
8126 (open_envblk_file): Likewise.
8127 Resepect format security.
8128 (set_variables): Respect format security.
8129
8130 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8131
8132 * util/getroot.c (grub_find_device): Respect format security.
8133 (get_mdadm_uuid): Remove unused variable.
8134 (grub_util_pull_device): Dont call gettext on already translated
8135 grub_errmsg.
8136 (find_system_device): Remove unused variable.
8137 (grub_util_get_grub_dev): Likewise.
8138 (grub_make_system_path_relative_to_its_root): Respect format security.
8139
8140 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8141
8142 * util/grub-fstest.c (execute_command): Make first argument
8143 a const char *.
8144 (read_file): Avoid shadowing.
8145 Reuse underlying error message if device open fails.
8146 (cmd_cmp): Respect format security.
8147 (root): Make const char *.
8148 (fstest): Remove args argument and use global copy.
8149 Respect format security.
8150 (argp_parser): Make static.
8151 (main): Make default_root const char *.
8152
8153 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8154
8155 * util/grub-mount.c (root): Make const char *.
8156 (execute_command): Make first argument a const char *.
8157 (fuse_init): Respect format security.
8158 (argp_parser): Make static. Remove unused variable.
8159 (main): Make default_root a const char *.
8160 Respect format security.
8161
8162 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8163
8164 * util/grub-probe.c (probe): Don't call gettext on already translated
8165 grub_errmsg.
8166 Remove unused variables.
8167 (argp_parser): Remove unused variable.
8168
8169 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8170
8171 * util/grub-script-check.c (argp_parser): Remove unused variable.
8172 (main): Rename read to curread to avoid shadowing.
8173
8174 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8175
8176 * util/misc.c (grub_util_write_image_at): Fix format specification.
8177 (grub_util_write_image): Likewise.
8178 (grub_script_execute_argument_to_string): Removed (unused).
8179 (grub_script_execute_menuentry): Likewise.
8180 (grub_putchar): Likewise.
8181
8182 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8183
8184 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
8185 (FUNCTION) [GRUB_UTIL]: Likewise.
8186 (VARIABLE) [GRUB_UTIL]: Likewise.
8187
8188 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8189
8190 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
8191 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
8192
8193 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8194
8195 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
8196 buffer.
8197
8198 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8199
8200 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
8201 (LzmaEnc_SaveState): Removed (unused).
8202 (LzmaEnc_RestoreState): Likewise.
8203 (LzmaEnc_InitPriceTables): Made static.
8204 (LzmaEnc_Construct): Likewise.
8205 (LzmaEnc_FreeLits): Likewise.
8206 (LzmaEnc_Destruct): Likewise.
8207 (LzmaEnc_Init): Likewise.
8208 (LzmaEnc_InitPrices): Likewise.
8209 (LzmaEnc_Finish): Likewise.
8210 (LzmaEnc_PrepareForLzma2): Removed (unused).
8211 (LzmaEnc_MemPrepare): Likewise.
8212 (LzmaEnc_GetNumAvailableBytes): Likewise.
8213 (LzmaEnc_GetCurBuf): Likewise.
8214 (LzmaEnc_CodeOneMemBlock): Likewise.
8215
8216 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8217
8218 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
8219 (grub_util_ldm_embed): Likewise.
8220
8221 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8222
8223 * util/grub-editenv.c (print_var): Rename name to varname to
8224 avoid shadowing.
8225 (main): Rename index to curindex to avoid shadowing.
8226 Make filename a const char *.
8227
8228 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8229
8230 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
8231 to arg_getline to avoid shadowing.
8232
8233 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8234
8235 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
8236 disk_ to avoid shadowing.
8237
8238 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8239
8240 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
8241 curindex to avoid shadowing.
8242 Make static.
8243 (MatchFinder_GetNumAvailableBytes): Make static.
8244
8245 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8246
8247 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
8248 avoid shadowing.
8249
8250 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8251
8252 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
8253 argument from encrypt to do_encrypt to avoid shadowing.
8254
8255 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8256
8257 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
8258 incorrect nesting of #if's.
8259
8260 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8261
8262 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
8263 checks which are always false on some platforms.
8264 (grub_cmd_lsacpi): Likewise.
8265 * grub-core/kern/misc.c (grub_strtoul): Likewise.
8266 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
8267 Likewise.
8268
8269 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8270
8271 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
8272 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
8273
8274 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8275
8276 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
8277 re_dfa_t to avoid breaking alignment invariants.
8278 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
8279 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
8280
8281 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8282
8283 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
8284 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
8285
8286 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8287
8288 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
8289 Fix declaration.
8290
8291 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8292
8293 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
8294 conserve alignment invariants.
8295 (grub_ehci_ehcc_read16): Likewise.
8296 (grub_ehci_oper_read32): Likewise.
8297 (grub_ehci_oper_write32): Likewise.
8298 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
8299 Conserve alignment invariants.
8300
8301 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8302
8303 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
8304 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
8305 declarations.
8306
8307 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8308
8309 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
8310 Remove unused variable.
8311
8312 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8313
8314 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
8315 Remove set in if.
8316
8317 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8318
8319 * include/grub/net.h: Remove double declarations.
8320
8321 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8322
8323 Remove "payload" command in ia64 Linux loader since I couldn't
8324 find any evidence of it being used for anything.
8325 Replace "relocate" command with an environment variable
8326
8327 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
8328 fields.
8329 (ia64_boot_payload): Removed.
8330 (last_payload): Likewise.
8331 (RELOCATE_OFF): Likewise.
8332 (RELOCATE_ON): Likewise.
8333 (RELOCATE_FORCE): Likewise.
8334 (relocate): Likewise.
8335 (free_pages): Don't free payloads.
8336 (grub_load_elf64): Use common error messages.
8337 Use "linux_relocate" variable.
8338 Increase the space after boot_params.
8339 (grub_cmd_payload): Removed.
8340 (grub_cmd_relocate): Likewise.
8341 (grub_cmd_fpswa): Improve messages.
8342 (cmd_payload): Removed.
8343 (cmd_relocate): Likewise.
8344 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
8345 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
8346
8347 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8348
8349 Convert UHCI to DMA framework.
8350
8351 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
8352 (grub_uhci_pci_iter): Fill new members
8353 (grub_alloc_td): Use P2V and V2P functions.
8354 (grub_free_queue): Likewise.
8355 (grub_alloc_qh): Likewise.
8356 (grub_uhci_setup_transfer): Likewise.
8357 (grub_uhci_check_transfer): Likewise.
8358
8359 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8360
8361 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
8362 Remove assignment in if while on it.
8363
8364 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8365
8366 * util/grub-mkstandalone.in: Fix modules directory.
8367
8368 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8369
8370 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
8371 on i386-pc target.
8372 (argp_parser): Accept "auto" as compression specification.
8373
8374 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8375
8376 Fix `help' with unloaded modules.
8377
8378 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
8379 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
8380 (grub_dyncmd_dispatcher): Small stylistic fix.
8381 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
8382 explicit help is requested.
8383
8384 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8385
8386 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
8387 Explicitly init restart while on it.
8388
8389 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8390
8391 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
8392 uninited variable.
8393
8394 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8395
8396 * util/grub-mknetdir.in: Use . rather than source for POSIX
8397 compatibility.
8398
8399 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8400
8401 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
8402
8403 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8404
8405 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
8406 variable.
8407
8408 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8409
8410 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
8411 without quotes.
8412
8413 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8414
8415 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
8416
8417 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8418
8419 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
8420 iteration of partitions.
8421
8422 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8423
8424 Improve gettext support. Stylistic fixes and error handling fixes while
8425 on it.
8426
8427 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8428
8429 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
8430 part. Instead setup the correct stack in RM.
8431 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
8432 for stack.
8433 * include/grub/i386/relocator_private.h: New file.
8434
8435 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
8436
8437 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
8438 argument.
8439 * util/grub-fstest.c (options): Add missing DEVICE part.
8440
8441 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
8442
8443 Clarify and unify messages.
8444
8445 * grub-core/commands/hashsum.c (options): Unify messages.
8446 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
8447 literal-only message as translatable.
8448 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
8449 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
8450 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
8451 commands.
8452 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
8453 key, not the key used to unlock. Clarify what it's used for.
8454 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
8455 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
8456 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
8457 * util/grub-editenv.c (options): Unify "verbose" message.
8458 * util/grub-fstest.c (read_file): Unify error message.
8459 (fstest): Add quotes around commands.
8460 (options): Unify "verbose" message.
8461 * util/grub-install.in: Add quotes around variable name.
8462 * util/grub-kbdcomp.in: Unify error message.
8463 * util/grub-mkfont.c (main): Likewise.
8464 * util/grub-mkrescue.in: Likewise.
8465 * util/grub-mklayout.c (options): Unify "verbose" message.
8466 * util/grub-mkstandalone.in: Unify help and verbose messages.
8467 * util/grub-mount.c (options): Unify "verbose" message.
8468 * util/grub-probe.c (options): Likewise.
8469 * util/grub-script-check.c (options): Likewise.
8470 * util/grub-setup.c (setup): Unify no-terminator message.
8471 (options): Use DEVICE and not DEV.
8472 Unify "verbose" message.
8473 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
8474
8475 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
8476
8477 Improve and unify messages.
8478
8479 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
8480 name. All users updated.
8481 Print filename in error.
8482 (read_device_map): Print filename in error.
8483 * util/getroot.c (grub_guess_root_devices): Print filename in error.
8484 (grub_util_get_os_disk): Likewise.
8485 (grub_util_biosdisk_get_grub_dev): Likewise.
8486 (grub_util_check_block_device): Likewise.
8487 (grub_util_check_char_device): Likewise.
8488 (grub_make_system_path_relative_to_its_root): Likewise.
8489 * util/grub-editenv.c (create_envblk_file): Likewise.
8490 (open_envblk_file): Likewise.
8491 (write_envblk): Likewise.
8492 * util/grub-fstest.c (cmd_cp): Likewise.
8493 (cmd_cat): Likewise.
8494 (cmd_cmp): Likewise.
8495 * util/grub-menulst2cfg.c (main): Likewise.
8496 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
8497 (write_font_width_spec): Likewise.
8498 (write_font_pf2): Likewise.
8499 * util/grub-mkimage.c (generate_image): New argument outname.
8500 All users updated.
8501 Remove unreacheable message.
8502 (options): Unify messages.
8503 (help_filter): Likewise.
8504 * util/grub-mklayout.c (usage): Removed (unused).
8505 (main): Print filename in error.
8506 * util/grub-mkrescue.in: Fix wrong quoting.
8507 * util/grub-setup.c (setup): Print filename in error.
8508 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
8509 (check_sas): Likewise.
8510 * util/misc.c (grub_util_get_fp_size): Removed.
8511 (grub_util_get_image_size): Print filename in error.
8512 (grub_util_read_at): Removed.
8513 (grub_util_read_image): Print filename in error.
8514 (grub_util_load_image): Likewise.
8515 (grub_util_write_image_at): New argument filename. All users updated.
8516 Print filename in error.
8517 (grub_util_write_image): New argument filename. All users updated.
8518 Print filename in error.
8519 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
8520 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
8521
8522 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
8523
8524 * grub-core/Makefile.core.def (pxechain): New module.
8525 * grub-core/loader/i386/pc/pxechainloader.c: New file.
8526 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
8527 function.
8528 (grub_pc_net_config_real): Use grub_pxe_get_cached.
8529 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
8530
8531 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
8532
8533 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
8534 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
8535 * include/grub/err.h (grub_error_saved): New struct.
8536 (grub_errmsg): Make array size explicit.
8537 * include/grub/misc.h (grub_error_save): New function.
8538 (grub_error_load): Likewise.
8539 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
8540 (grub_error_push): Update `errno' member name.
8541 (grub_error_pop): Likewise
8542 * grub-core/net/tftp.c (tftp_data): New member save_err.
8543 (tftp_receive): Save error.
8544 (tftp_open): Restore error.
8545
8546 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
8547
8548 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
8549 to real mode down to execute A20-related code in protected mode as
8550 intended.
8551
8552 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8553
8554 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
8555 NULL when the argument `level' has an unexpected value.
8556
8557 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
8558
8559 Move platform-dependent files from $prefix to $prefix/$platform.
8560
8561 * config.h.in (GRUB_TARGET_CPU): New definition.
8562 (GRUB_PLATFORM): Likewise.
8563 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
8564 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
8565 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
8566 * grub-core/kern/dl.c (grub_dl_load): Likewise.
8567 * grub-core/normal/autofs.c (read_fs_list): Likewise.
8568 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
8569 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
8570 * grub-core/normal/term.c (read_terminal_list): Likewise.
8571 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
8572 $prefix/locale.
8573 (grub_gettext_init_ext): Likewise.
8574 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
8575 grub_platform.
8576 * util/grub-install.in: Update directories.
8577 * util/grub-mknetdir.in: Likewise.
8578 * util/grub-mkrescue.in: Likewise.
8579
8580 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
8581
8582 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
8583 grub_error framework. All users updated.
8584
8585 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
8586
8587 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
8588 lists (by always binsearching), improve caching (cache strings
8589 used for binsearch, not only results), improve
8590 maintainability (by using more structured binary search) and correct
8591 error handling.
8592
8593 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
8594
8595 * grub-core/script/execute.c (grub_script_return): Fix warning.
8596
8597 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
8598
8599 * grub-core/script/execute.c (grub_script_return): Fix potential
8600 NULL-dereference.
8601 Reported by: Jim Meyering.
8602
8603 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8604
8605 * po/POTFILES.in: Regenerate.
8606 * util/grub-install.in: Gettextize the strings missed in first pass.
8607
8608 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8609
8610 * Makefile.util.def (grub-mkdevicemap): Removed.
8611 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
8612 * include/grub/util/deviceiter.h: Removed.
8613 * util/deviceiter.c: Likewise.
8614 * util/getroot.c (grub_util_get_os_disk): New function.
8615 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
8616 replacement for EFI.
8617 * util/grub-mkdevicemap.c: Removed.
8618 * util/grub-probe.c (probe): Handle PRINT_DISK.
8619 (argp_parser): Handle -t disk.
8620
8621 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8622
8623 * util/grub-mkfont.c: Migrate to argp.
8624 * util/grub-mklayout.c: Likewise.
8625 * util/grub-mkpasswd-pbkdf2.c: Likewise.
8626 * util/grub-mkrelpath.c: Likewise.
8627 * util/grub-probe.c: Likewise.
8628 * util/grub-script-check.c: Likewise.
8629
8630 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8631
8632 * util/grub-reboot.in: Add missing datarootdir.
8633 Add missing newline.
8634 * util/grub-set-default.in: Add missing datarootdir.
8635 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
8636 * util/grub-mkrescue.in: Likewise.
8637
8638 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8639
8640 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
8641
8642 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8643
8644 * util/grub-kbdcomp.in: Add decent help and gettextize.
8645 * docs/man/grub-kbdcomp.h2m: New file.
8646
8647 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8648
8649 Migrate grub-mkimage.c to argp.
8650
8651 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
8652 (grub-setup): Likewise.
8653 * util/grub-setup.c (print_version): Move to ...
8654 * util/argp_common.c (print_version): ... here.
8655 * util/grub-setup.c (argp_program_version_hook): Move to ...
8656 * util/argp_common.c (argp_program_version_hook): ... here.
8657 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
8658 safety.
8659 * util/grub-mkimage.c (main): Migrate to argp.
8660
8661 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8662
8663 * util/grub-mkrescue.in: Use same message as
8664 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
8665 for better translations.
8666
8667 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8668
8669 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
8670 options with generic grub-mkrescue.in with the goal of future
8671 merge.
8672
8673 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8674
8675 * grub-core/kern/mm.c: Add missing include of i18n.h
8676 * grub-core/lib/relocator.c: Likewise.
8677
8678 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8679
8680 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
8681 error.
8682 (allocate_pages): Check return value.
8683 Replace fatal with error.
8684 (grub_linux_boot): Replace printf with dprintf.
8685 Check find_mmap_size return value.
8686 Replace fatal with error.
8687 Don't call grub_machine_fini.
8688 (grub_load_elf64): Replace printf with dprintf.
8689 (grub_cmd_linux): Likewise.
8690 (grub_cmd_initrd): Likewise.
8691 (grub_cmd_payload): Likewise.
8692
8693 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8694
8695 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
8696 message.
8697 * grub-core/video/radeon_fuloong2e.c
8698 (grub_video_radeon_fuloong2e_setup): Likewise.
8699 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
8700 * grub-core/video/video.c (grub_video_set_mode): Don't override
8701 standard out of memory message.
8702
8703 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
8704
8705 NetBSD disk wedge support.
8706
8707 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
8708 [__NetBSD__]: Handle NetBSD disk wedges.
8709 * util/getroot.c (convert_system_partition_to_system_disk)
8710 [__NetBSD__]: Likewise.
8711
8712 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
8713
8714 * util/grub-mkconfig.in: Use umask rather than chmod to create
8715 grub.cfg.new to avoid insecure grub.cfg.
8716
8717 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8718
8719 * grub-core/commands/ls.c: Gettextize.
8720 * grub-core/commands/setpci.c: Likewise.
8721 * grub-core/commands/videotest.c: Likewise.
8722 * grub-core/disk/geli.c: Likewise.
8723 * grub-core/kern/mm.c: Likewise.
8724 * grub-core/lib/relocator.c: Likewise.
8725 * grub-core/loader/efi/appleloader.c: Likewise.
8726 * grub-core/loader/i386/xnu.c: Likewise.
8727 * grub-core/loader/ia64/efi/linux.c: Likewise.
8728 * grub-core/loader/xnu.c: Likewise.
8729 * grub-core/net/dns.c: Likewise.
8730 * grub-core/net/net.c: Likewise.
8731 * grub-core/script/lexer.c: Likewise.
8732 * grub-core/script/parser.y: Likewise.
8733 * grub-core/script/yylex.l: Likewise.
8734 * util/getroot.c: Likewise.
8735 * util/grub-setup.c: Likewise.
8736
8737 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8738
8739 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
8740 number.
8741
8742 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8743
8744 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
8745
8746 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8747
8748 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
8749 macro.
8750 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
8751 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
8752
8753 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8754
8755 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
8756 * util/grub-install.in: Gettextize.
8757 * util/grub-mkconfig.in: Likewise.
8758 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
8759 if not available.
8760 (grub_warn): Gettextize.
8761 * util/grub-mknetdir.in: Gettextize.
8762 * util/grub-mkrescue.in: Likewise.
8763 * util/grub-mkstandalone.in: Likewise.
8764 * util/grub-reboot.in: Likewise.
8765 * util/grub-set-default.in: Likewise.
8766 * util/grub.d/00_header.in: Likewise.
8767 * util/grub.d/10_hurd.in: Likewise.
8768 * util/grub.d/10_kfreebsd.in: Likewise.
8769 * util/grub.d/10_linux.in: Likewise.
8770 * util/grub.d/10_netbsd.in: Likewise.
8771 * util/grub.d/10_windows.in: Likewise.
8772 * util/grub.d/20_linux_xen.in: Likewise.
8773 * util/grub.d/30_os-prober.in: Likewise.
8774 * po/POTFILES-shell.in: Regenerate.
8775
8776 2012-02-03 Richard Laager <rlaager@wiktel.com>
8777
8778 * util/grub-mkimage.c (main): Fix format-security warning.
8779 * util/grub-mkrelpath.c (main): Likewise.
8780 * util/grub-probe.c (main): Likewise.
8781
8782 2012-02-03 Richard Laager <rlaager@wiktel.com>
8783
8784 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
8785 failure.
8786 Put back lost PRINT_DRIVE.
8787
8788 2012-02-03 Richard Laager <rlaager@wiktel.com>
8789
8790 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
8791 (grub_guess_root_devices): Replace strlen with sizeof.
8792 Avoid crash.
8793 (find_root_devices_from_poolname): Remove unused variable.
8794 Handle raidzN.
8795
8796 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
8797
8798 Support install on multi-device filesystems.
8799
8800 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
8801 (grub_guess_root_devices): ...this. Return char **. All users updated.
8802 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
8803 Removed.
8804 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
8805 (find_root_devices_from_poolname): ... here.
8806 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
8807 Support zfs-fuse.
8808 (grub_guess_root_device): Rename to ...
8809 (grub_guess_root_devices): ... this. Return char **. All users updated.
8810 * util/grub-install.in: Handle multi-device filesystems.
8811 * util/grub-probe.c (probe). Make device_names a char **. Add delim
8812 argument. All users updated.
8813 Handle multi-device filesystems.
8814 Use 'delim' as separator.
8815 Remove device check to allow filesystems on file.
8816 (main): Support -0 argument. Handle multi-device.
8817 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
8818 Fix a cross-device check while on it.
8819 (arguments): Remove root_dev.
8820 (argp_parser): Remove -r.
8821 (main): Remove root_dev.
8822
8823 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
8824
8825 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
8826
8827 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
8828
8829 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
8830 symbol.
8831 Reported by: NODA, Kai <nodakai>.
8832
8833 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
8834
8835 Fix ehci on amd64.
8836
8837 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
8838 pointers.
8839 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
8840 (grub_ehci_setup_qh): Likewise.
8841 (grub_ehci_find_qh): Likewise.
8842 (grub_ehci_transaction): Likewise.
8843 (grub_ehci_setup_transfer): Likewise.
8844 (grub_ehci_check_transfer): Likewise.
8845 (grub_ehci_portstatus): Likewise.
8846 (grub_ehci_detect_dev): Likewise.
8847 (grub_ehci_transfer_controller_data): New field td_last_phys.
8848 (grub_ehci_setup_transfer): Fill td_last_phys.
8849 (grub_ehci_check_transfer): Use td_last_phys.
8850
8851 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
8852
8853 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
8854 if no submenu is present.
8855
8856 2012-02-01 Aleš Nesrsta <starous@volny.cz>
8857
8858 CBI support.
8859
8860 * include/grub/usb.h (grub_usbms_protocol_t): New values
8861 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
8862 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
8863 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
8864 (grub_usbms_dev): Add subclass, protocol and intrpt.
8865 Remove in_maxsz and out_maxsz.
8866 (grub_usbms_reset): Rename to ...
8867 (grub_usbms_bo_reset): .. this.
8868 (grub_usbms_cbi_cmd): New function.
8869 (grub_usbms_cbi_reset): Likewise.
8870 (grub_usbms_reset): Likewise.
8871 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
8872 (grub_usbms_transfer): Rename to ...
8873 (grub_usbms_transfer_bo): ... this.
8874 (grub_usbms_transfer_cbi): Likewise.
8875 (grub_usbms_transfer): Likewise.
8876
8877 2012-02-01 Aleš Nesrsta <starous@volny.cz>
8878 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
8879
8880 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
8881 the support for the CS5536 modification thereos and few bugfixes.
8882
8883 * grub-core/Makefile.core.def (ehci): New module.
8884 * grub-core/bus/usb/ehci.c: New file.
8885 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
8886 port and hubaddr. All users updated.
8887 Save port and hubaddr into dev structure.
8888 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
8889 define.
8890 * include/grub/pci.h (grub_dma_phys2virt): New function.
8891 (grub_dma_virt2phys): Likewise.
8892 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
8893
8894 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8895
8896 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
8897 check as some mkfs implementations omit it.
8898
8899 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8900
8901 * docs/grub.texi (Unicode): Mention identifier and space limitations.
8902
8903 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8904
8905 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
8906 Add new member volname2.
8907 (grub_jfs_label): Use volname2 if available.
8908
8909 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8910
8911 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
8912 over last_mounted as seen in image generated by mkfs.nilfs2.
8913 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
8914
8915 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8916
8917 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
8918 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
8919 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
8920
8921 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8922
8923 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
8924 over the sector.
8925
8926 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8927
8928 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
8929 subvolume name (by removing a bogus and useless check).
8930
8931 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
8932
8933 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
8934 sizeof while on it.
8935
8936 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8937
8938 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
8939 (grub_scsi_read_capacity10): ... this.
8940 (grub_scsi_read_capacity16): New function.
8941 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
8942 0xffffffff.
8943 Fix off-by-one error.
8944 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
8945 64-bit unsigned.
8946 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
8947 (grub_scsi_read_capacity10): ... this.
8948 (grub_scsi_read_capacity_data): Rename to ...
8949 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
8950 (grub_scsi_read_capacity16): New struct.
8951 (grub_scsi_read_capacity16_data): Likewise.
8952 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
8953 grub_scsi_cmd_read_capacity10.
8954 New command grub_scsi_cmd_read_capacity16.
8955
8956 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8957
8958 SCSI >2TiB support.
8959
8960 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
8961 (grub_scsi_write16): Likewise.
8962 (grub_scsi_read): Use read16 when necessary.
8963 (grub_scsi_write): Likewise.
8964 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
8965 (grub_scsi_write16): Likewise.
8966 (grub_scsi_cmd_t): Add READ16 and WRITE16.
8967
8968 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8969
8970 SCSI write support (for usbms mainly).
8971
8972 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
8973 a const pointer.
8974 (grub_scsi_write): Implement.
8975 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
8976
8977 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8978
8979 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
8980 variable.
8981
8982 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8983
8984 * grub-core/lib/posix_wrap/string.h (memchr): New function.
8985
8986 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8987
8988 * po/POTFILES.in: Regenerate.
8989
8990 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8991
8992 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
8993 with grub_printf to avoid unnecessary fatal failure.
8994
8995 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8996
8997 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
8998 (INT_MAX): Likewise.
8999 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
9000 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
9001 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
9002 (strcpy): Likewise.
9003 (strstr): Likewise.
9004 (strchr): Likewise.
9005 (strncpy): Likewise.
9006 (strcat): Likewise.
9007 (strncat): Likewise.
9008 (strcoll): Likewise.
9009 * include/grub/types.h (GRUB_SHRT_MAX): New define.
9010 (GRUB_INT_MAX): Likewise.
9011
9012 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9013
9014 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
9015 unexpected error.
9016 (optimize_utf8): Likewise.
9017 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
9018
9019 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9020
9021 * grub-core/boot/i386/pc/lnxboot.S: Use
9022 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
9023 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
9024 location.
9025 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
9026 definition.
9027 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
9028
9029 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9030
9031 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
9032 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
9033 now to avoid double free.
9034 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
9035 hostdisk.
9036 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
9037 * util/grub-probe.c (escape_of_path): Always return a new copy.
9038 (print_full_name): Escape path.
9039 (probe): Don't call grub_util_devname_to_ofpath on NULL.
9040 Fix hints on abstractions.
9041
9042 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9043
9044 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
9045 Don't add "root" line if no compatibility hont is available.
9046 Suggested by: Seth Goldberg.
9047
9048 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9049
9050 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
9051 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
9052 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
9053 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
9054
9055 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9056
9057 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
9058
9059 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9060
9061 * util/grub-pe2elf.c (ehdr): Make static.
9062 (shdr): Likewise.
9063 (num_sections): Likewise.
9064 (offset): Likewise.
9065
9066 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9067
9068 Eliminate ofpath limits and possible overflows.
9069
9070 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
9071 (OF_PATH_MAX): Removed.
9072 (MAX_DISK_CAT): New const.
9073 (find_obppath): Use allocated rather than preallocated buffer.
9074 Return result. Argument of_path removed. All users updated.
9075 Add missing fdstat.
9076 (xrealpath): New function.
9077 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
9078 Allocate rather than use preallocated buffer. All users updated.
9079 (__of_path_common): Use allocated rather than preallocatecd buffer.
9080 Return result. Argument of_path removed. All users updated.
9081 (vendor_is_ATA): Read only needed part form the file.
9082 (check_sas): Allocate depending on contents rather than fixed.
9083 (main) [STANDALONE]: Handle NULL result.
9084
9085 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9086
9087 * grub-core/normal/completion.c (iterate_dev): Close the disk.
9088
9089 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9090
9091 Cryptodisk write support.
9092
9093 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
9094 (grub_cryptodisk_decrypt): Moved logic to ...
9095 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
9096 (grub_cryptodisk_write): Implement.
9097 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
9098 (grub_util_fd_write): ... this. Make global.
9099 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
9100
9101 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9102
9103 * include/grub/list.h (grub_list_remove): Don't crash if element is
9104 removed twice.
9105
9106 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9107
9108 Rename ofconsole to console.
9109
9110 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
9111 as sysnonym to console.
9112 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
9113 * grub-core/term/ieee1275/console.c: ... this. All users updated.
9114 Rename grub_ofconsole_ to grub_console_. All users updated
9115 (grub_console_term_output): Rename "ofconsole" to "console".
9116 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
9117 as "console".
9118
9119 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9120
9121 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
9122 handling.
9123 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
9124 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
9125 GRUB_DISK_DEVICE_FILE_ID.
9126
9127 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9128
9129 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
9130 and improve performance.
9131
9132 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9133
9134 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
9135 missing ieee1275/ prefix on whole disk.
9136
9137 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9138
9139 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
9140 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
9141
9142 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9143
9144 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
9145
9146 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9147
9148 Merge common RAID and LVM logic to an abstract diskfilter.
9149 Add LDM support using the same framework.
9150
9151 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
9152 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
9153 (libgrubmods): Remove grub-core/disk/raid.c and
9154 grub-core/partmap/gpt.c.
9155 * grub-core/Makefile.core.def (ldm): New module.
9156 (raid): Renamed to diskfilter. All users updated.
9157 * grub-core/disk/raid.c: Moved to ...
9158 * grub-core/disk/diskfilter.c: ... here.
9159 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
9160 (lv_num): New var.
9161 (find_array): Renamed to ...
9162 (find_lv): ... this. Support multi-LV. Skip nameless LVs
9163 (grub_is_array_readable): Renamed to ...
9164 (grub_is_lv_readable): ... this. Support multinode hierarchy.
9165 (insert_array): New argument id.
9166 (is_node_readable): New function.
9167 (scan_device): Rename to ...
9168 (scan_disk): .. this. Restrict to one disk.
9169 (scan_devices): New function.
9170 (grub_diskfilter_iterate): Support multi-LV.
9171 Skip invisible and nameless LVs.
9172 (grub_diskfilter_memberlist): Support multi-LV.
9173 (grub_diskfilter_read_node): New function.
9174 (grub_raid_read): Most of logic moved to ...
9175 (read_segment): ... here
9176 (read_lv): New function.
9177 (grub_diskfilter_get_vg_by_uuid): New function.
9178 (grub_diskfilter_make_raid): Likewise.
9179 * grub-core/disk/ldm.c: New file.
9180 * grub-core/disk/lvm.c (vg_list): Removed.
9181 (lv_count): Likewise.
9182 (scan_depth): Likewise.
9183 (is_lv_readable): Likewise.
9184 (grub_lvm_getvalue): Advance pointer past the number.
9185 (find_lv): Removed.
9186 (do_lvm_scan): Refactored into ...
9187 (grub_lvm_detect): ... this. Support raid.
9188 (grub_lvm_iterate): Removed.
9189 (grub_lvm_memberlist): Likewise.
9190 (grub_lvm_open): Likewise.
9191 (grub_lvm_close): Likewise.
9192 (read_lv): Likewise.
9193 (read_node): Likewise.
9194 (is_node_readable): Likewise.
9195 (is_lv_readable): Likewise.
9196 (grub_lvm_read): Likewise.
9197 (grub_lvm_write): Likewise.
9198 (grub_lvm_dev): Use diskfilter
9199 (GRUB_MOD_INIT): Likewise.
9200 (GRUB_MOD_FINI): Likewise.
9201 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
9202 new interface.
9203 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
9204 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
9205 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
9206 grub_diskfilter_read_node.
9207 Fix a bug with xor.
9208 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
9209 grub_diskfilter_read_node.
9210 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
9211 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
9212 (grub_disk_dev_iterate): Move from here...
9213 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
9214 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9215 Make global.
9216 (grub_hostdisk_find_partition_start): Likewise.
9217 (grub_hostdisk_os_dev_to_grub_drive): New function.
9218 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
9219 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
9220 * util/getroot.c (make_device_name): ... here.
9221 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9222 Move to ...
9223 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
9224 * grub-core/kern/emu/hostdisk.c
9225 (convert_system_partition_to_system_disk): Move to ...
9226 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
9227 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
9228 * util/getroot.c (device_is_wholedisk): ... here.
9229 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
9230 * util/getroot.c (find_system_device): ... here.
9231 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
9232 Move to ...
9233 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
9234 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
9235 Move to ...
9236 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
9237 Handle LDM.
9238 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
9239 Move to ...
9240 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
9241 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
9242 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
9243 DISKFILTER.
9244 * include/grub/raid.h: Renamed to ...
9245 * include/grub/diskfilter.h: ... this.
9246 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
9247 (GRUB_RAID_LAYOUT_*): Make into array.
9248 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
9249 (grub_diskfilter_vg): New struct.
9250 (grub_diskfilter_pv_id): Likewise.
9251 (grub_raid_member): Removed.
9252 (grub_raid_array): Likewise.
9253 (grub_diskfilter_pv): New struct.
9254 (grub_diskfilter_lv): Likewise.
9255 (grub_diskfilter_segment): Likewise.
9256 (grub_diskfilter_node): Likewise.
9257 (grub_diskfilter_get_vg_by_uuid): New proto.
9258 (grub_raid_register): Inline.
9259 (grub_diskfilter_unregister): Likewise.
9260 (grub_diskfilter_make_raid): New proto.
9261 (grub_diskfilter_vg_register): Likewise.
9262 (grub_diskfilter_read_node): Likewise.
9263 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
9264 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
9265 (grub_util_is_ldm): Likewise.
9266 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
9267 (grub_hostdisk_find_partition_start): Likewise.
9268 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
9269 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
9270 New definition.
9271 (grub_gpt_partition_map_iterate): New proto.
9272 * include/grub/lvm.h (grub_lvm_vg): Removed.
9273 (grub_lvm_pv): Likewise.
9274 (grub_lvm_lv): Likewise.
9275 (grub_lvm_segment): Likewise.
9276 (grub_lvm_node): Likewise.
9277 * util/getroot.c [...]
9278 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
9279 (probe_abstraction): Likewise.
9280 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
9281 (main): Remove dead logic.
9282
9283 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
9284
9285 Simplify root device discover and don't fail when trying to open
9286 incorrect devices.
9287
9288 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
9289 function.
9290 (get_diskname_from_path): Likewise.
9291 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
9292 of iterating.
9293
9294 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
9295
9296 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
9297
9298 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
9299
9300 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
9301 pastthe end.
9302
9303 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
9304
9305 * util/grub-install.in: Add missing \.
9306 Reported by: gentoofan
9307
9308 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
9309
9310 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
9311 (direct_read): Use correct compressed size.
9312 (grub_squash_read_data): Likewise.
9313
9314 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
9315
9316 * docs/grub.texi (Platform limitations): New section.
9317 (Platform-specific operations): Likewise.
9318 * docs/grub-dev.texi (Porting): Likewise.
9319
9320 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9321
9322 IEEE1275 disk write support.
9323
9324 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
9325 const void *.
9326 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
9327 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
9328 and seek loginc to ...
9329 (grub_ofdisk_prepare): ... here.
9330 (grub_ofdisk_write): Implement.
9331
9332 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9333
9334 ARC disk write support.
9335
9336 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
9337 (reopen): New argument writable. All users updated.
9338 Handle required access mode.
9339 (grub_arcdisk_write): Implement.
9340 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
9341 (grub_arc_firmware_vector): Make buffer to write a const buffer.
9342
9343 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9344
9345 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
9346 (read_sblock): Don't attempt to read superblocks outside the disk size.
9347
9348 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9349
9350 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
9351 first superblock to find the second one when possible.
9352
9353 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9354
9355 * util/grub-install.in: Fix an ARC bug.
9356 Print a warning if no platform-specific setup is available.
9357
9358 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9359
9360 Use static allocation rather than scratch pointer in reed_solomon.
9361 It decreases its size significantly and avoids a variable in .text.
9362
9363 * grub-core/lib/reed_solomon.c (scratch): Removed.
9364 (chosenstat): New const or static array.
9365 (sigma): Likewise.
9366 (errpot): Likewise.
9367 (errpos): Likewise.
9368 (sy): Likewise.
9369 (mstat): Likewise.
9370 (errvals): Likewise.
9371 (eqstat): Likewise.
9372 (pol_evaluate): Replace x with log_x argument. All users updated.
9373 (syndroms): Removed.
9374 (gauss_solve): Use statically allocated arrays.
9375 (rs_recover): Likewise.
9376 Calculate syndroms directly.
9377 (decode_block): Use statically allocated arrays.
9378 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
9379 (main) [TEST]: Allow -DTEST -DSTANDALONE.
9380
9381 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9382
9383 Eliminate fixed limit on reed solomon decoder length.
9384
9385 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
9386 rather than hardcoding the address.
9387 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
9388 no_reed_solomon_length.
9389 Move gate_a20 to no-reed-solomon part.
9390 Don't force a particular size of no reed-solomon part.
9391 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
9392 Removed.
9393 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
9394 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
9395
9396 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9397
9398 * grub-core/commands/wildcard.c (match_files): Handle filenames
9399 without explicit device.
9400 (wildcard_expand): Don't add explicit device if not already present.
9401 * tests/grub_script_echo1.in: Add a new expansion test.
9402
9403 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9404
9405 Replace single-linked with double-linked lists. It results in more
9406 compact and more efficient code.
9407
9408 * grub-core/kern/list.c (grub_list_push): Moved from here ...
9409 * include/grub/list.h (grub_list_push): ... to here. Set prev.
9410 (grub_list_remove): Moved from here ...
9411 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
9412 (grub_prio_list_insert): Set prev.
9413 * include/grub/list.h (grub_list): Add prev. All users updated.
9414
9415 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9416
9417 Handle newer autotools. Add some missing quotes while on it.
9418
9419 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
9420 (pkglib_DATA): Move grub-mkconfig_lib from here ...
9421 (pkgdata_DATA): ... here.
9422 * Makefile.util.def (update-grub_lib): Removed.
9423 * conf/Makefile.common (pkglib_DATA): Removed.
9424 (pkglib_SCRIPTS): Likewise.
9425 (pkgdata_DATA): New variable.
9426 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
9427 needed.
9428 Add missing quotes.
9429 Remove unused variable while on it.
9430 * tests/util/grub-shell.in: Likewise.
9431 * util/grub-install.in: Likewise.
9432 * util/grub-mkconfig.in: Likewise.
9433 * util/grub-mknetdir.in: Likewise.
9434 * util/grub-mkrescue.in: Likewise.
9435 * util/grub-mkstandalone.in: Likewise.
9436 * util/grub.d/00_header.in: Likewise.
9437 * util/grub.d/10_hurd.in: Likewise.
9438 * util/grub.d/10_illumos.in: Likewise.
9439 * util/grub.d/10_kfreebsd.in: Likewise.
9440 * util/grub.d/10_linux.in: Likewise.
9441 * util/grub.d/10_netbsd.in: Likewise.
9442 * util/grub.d/10_windows.in: Likewise.
9443 * util/grub.d/20_linux_xen.in: Likewise.
9444 * util/grub.d/30_os-prober.in: Likewise.
9445 * util/update-grub_lib.in: Removed.
9446
9447 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
9448
9449 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
9450 a workaround for intel problem.
9451
9452 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
9453 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
9454 2012-01-23 pfsmorigo
9455
9456 * util/grub-install.in: Support dd'in into PreP partition.
9457 * util/grub-probe.c (probe): Support discovering partition type.
9458 (main): Support -t msdos_parttype.
9459
9460 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
9461
9462 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
9463 infinite recursion using counter.
9464 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
9465 init to skip it if the magic check fails.
9466 (dec_stream_header): Init s->crc32.
9467
9468 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9469 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
9470 2012-01-22 Richard Laager <rlaager@wiktel.com>
9471
9472 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
9473 All users updated.
9474 (find_bestub): Determine correct size.
9475 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
9476 (scan_disk): Align the size down.
9477 Call check pool before find_bestub to have ashift.
9478
9479 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9480
9481 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
9482 dprintf in no-malloc zone.
9483
9484 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
9485
9486 * configure.ac: Add back in test for limits.h.
9487
9488 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9489
9490 Support 4K-sector NTFS.
9491
9492 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
9493 (grub_ntfs_data): Remove blocksize.
9494 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
9495 Remove data argument. All users updated.
9496
9497 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9498
9499 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
9500 being in .text to avoid dprel references.
9501 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
9502 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
9503 (grub_arch_highmemsize): Likewise.
9504 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
9505 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
9506 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
9507
9508 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
9509
9510 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
9511
9512 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
9513 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
9514
9515 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
9516
9517 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
9518 GRUB_UTIL.
9519 (grub_set_datetime_cmos): Likewise.
9520
9521 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
9522
9523 Make XZ compression parameters dependent on target and not host CPU.
9524
9525 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
9526 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
9527
9528 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
9529
9530 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
9531 set but not used variable.
9532
9533 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9534
9535 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
9536 created when no uuid support is compiled into mkfs.reiser.
9537
9538 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9539
9540 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
9541 (utf8_to_macroman): Do the opposite.
9542 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
9543
9544 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9545
9546 * configure.ac: Refise build qemu_mips w/o unifont.
9547
9548 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9549
9550 Eliminate grub_min/grub_max prone to overflow usage.
9551
9552 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
9553 (poll_nonroot_hub): Likewise.
9554 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
9555 (grub_affs_label): Likewise.
9556 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
9557 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
9558 (grub_hfs_label): Likewise.
9559 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
9560 * grub-core/fs/zfs/zfs.c (MIN): Remove.
9561 (zap_leaf_array_equal): Use grub_size. Remove MIN.
9562 (zap_leaf_array_get): Likewise.
9563 (dnode_get_path): Likewise.
9564 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
9565 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
9566 * grub-core/script/execute.c (grub_script_break): Likewise.
9567 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
9568 grub_max.
9569 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
9570 * include/grub/misc.h (grub_min): Removed.
9571 (grub_max): Likewise.
9572
9573 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
9574
9575 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
9576 direct.inode = 0.
9577
9578 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9579
9580 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
9581
9582 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9583
9584 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
9585
9586 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9587
9588 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
9589 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
9590
9591 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9592
9593 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
9594 rather than a hack for grub_strncasemap.
9595
9596 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9597
9598 Support multiple initrds
9599 Note: part of this was accidently committed in r3739.
9600
9601 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
9602 initrd.
9603 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
9604 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
9605 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
9606 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
9607 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
9608
9609 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9610
9611 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
9612 disks with unknown size.
9613 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
9614
9615 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9616
9617 Remove defines pertaining to arbitrary limits not affecting GRUB
9618 anymore.
9619
9620 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
9621 (EXT2_MAX_SYMLINKCNT): Likewise.
9622 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
9623 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
9624 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
9625 (GRUB_PXE_MAX_BLKSIZE): Likewise.
9626 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
9627 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
9628 (DN_MAX_OBJECT_SHIFT): Likewise.
9629 (DN_MAX_OFFSET_SHIFT): Likewise.
9630 (DN_MAX_OBJECT): Likewise.
9631 (DNODES_PER_LEVEL_SHIFT): Likewise.
9632 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
9633 (SPA_MAXBLOCKSIZE): Likewise.
9634 (SPA_BLOCKSIZES): Likewise.
9635 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
9636 (MZAP_MAX_BLKSZ): Likewise.
9637
9638 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
9639
9640 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
9641 handle NULL appropriately.
9642 Remove MIN.
9643
9644 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
9645
9646 Fix efiemu.
9647
9648 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
9649 cpu/types.h.
9650 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
9651 * configure.ac: Fix efiemu check.
9652
9653 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
9654
9655 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
9656 grub_probe.
9657 Reported by: adamwill
9658
9659 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
9660
9661 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
9662
9663 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9664
9665 Fix handling of wide characters in gfxterm.
9666
9667 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
9668 (clear_char): Likewise.
9669 (paint_char): Skip code == NULL chars.
9670 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
9671
9672 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
9673
9674 * grub-core/normal/charset.c: Move comment to right place.
9675
9676 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
9677
9678 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
9679 (GRUB_AFFS_FLAG_FFS): Put back where it was.
9680 (grub_affs_mount): Revert the correct version checking.
9681
9682 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
9683
9684 * docs/grub.texi (Unicode): Mention several other unsupported features.
9685
9686 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
9687
9688 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
9689 case statements as compile-time one.
9690 (direct_read): Prevent spurious warnings.
9691 (grub_squash_read_data): Likewise.
9692
9693 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
9694
9695 Various squash4 fixes and LZO and XZ support.
9696
9697 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
9698 Add xzembed source files.
9699 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
9700 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
9701 (grub_squash_inode): New subtype long_dir.
9702 (SQUASH_TYPE_LONG_DIR): New inode type.
9703 (COMPRESSION): New enum.
9704 (XZBUFSIZ): New const.
9705 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
9706 (read_chunk): Use data->decompress.
9707 (zlib_decompress): New function.
9708 (lzo_decompress): Likewise.
9709 (xz_decompress): Likewise.
9710 (squash_mount): Set new data fields.
9711 (grub_squash_iterate_dir): Handle long dir.
9712 (squash_unmount): Free xzdec and xzbuf.
9713 (grub_squash_open): Check ino type.
9714 (direct_read): Stylistic fixes. Use data->decompress.
9715 (grub_squash_read_data): Likewise.
9716 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
9717 (get_byte): Likewise.
9718 (grub_zlib_disk_read): Removed.
9719 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
9720 (GRUB_POSIX_BOOL_DEFINED): New define.
9721 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
9722 * grub-core/lib/xzembed/xz.h: Addmissing includes.
9723 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
9724 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
9725
9726 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
9727
9728 Don't override more informative errors.
9729
9730 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
9731 * grub-core/font/font.c (open_section): Likewise.
9732 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
9733 filename. Don't override errors.
9734 (grub_cmd_openbsd_ramdisk): Don't override errors.
9735 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
9736 (grub_cmd_initrd): Likewise.
9737 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
9738 (grub_cmd_initrd): Likewise.
9739 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
9740 (grub_cmd_linux): Likewise.
9741 (grub_cmd_initrd): Likewise.
9742 (grub_cmd_payload): Likewise.
9743 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
9744 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
9745 (grub_cmd_module): Likewise.
9746 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
9747 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
9748 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
9749 (grub_cmd_xnu_mkext): Likewise.
9750 (grub_cmd_xnu_ramdisk): Likewise.
9751 (grub_xnu_check_os_bundle_required): Likewise.
9752 (grub_xnu_load_kext_from_dir): Likewise.
9753 (grub_cmd_xnu_kextdir): Likewise.
9754 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
9755
9756 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9757
9758 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
9759 as 1024 in block size field. Found on one of my test images.
9760 Small optimisation while on it.
9761
9762 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9763
9764 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
9765 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
9766 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
9767 performance fixes while on it.
9768 (grub_sfs_close): Fix memory leak while on it.
9769 (grub_sfs_label): Convert Latin1 to UTF-8.
9770
9771 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9772
9773 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
9774 space to avoid overflows.
9775 (grub_hfs_label): Convert from macroman to UTF-8.
9776
9777 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9778
9779 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
9780
9781 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9782
9783 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
9784
9785 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9786
9787 * unicode: Import Unicode 6.0 data.
9788
9789 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9790
9791 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
9792 outside of range.
9793
9794 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9795
9796 Avoid cutting in the middle of UTF-8 character.
9797
9798 * include/grub/charset.h (grub_getend): New function.
9799 * grub-core/script/function.c (grub_script_function_find): Use
9800 grub_getend.
9801 * grub-core/normal/completion.c (add_completion): Likewise.
9802
9803 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9804
9805 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
9806 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
9807 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
9808 (GRUB_UNICODE_TAG_END): Likewise.
9809 (GRUB_UNICODE_LAST_VALID): Likewise.
9810
9811 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9812
9813 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
9814 len and make it smaller. All users updated.
9815 * util/import_unicode.py: Put length and not end character.
9816 Check length.
9817
9818 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9819
9820 Make better Unicode-compliant and unify some UTF-8 code pathes.
9821
9822 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
9823 valid character.
9824 (grub_is_valid_utf8): Use grub_utf8_process.
9825 Check resulting code range.
9826 (grub_utf8_to_ucs4): Use grub_utf8_process.
9827 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
9828 valid character.
9829
9830 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9831
9832 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
9833
9834 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9835
9836 * docs/grub.texi (Filesystems): Mention AFS.
9837
9838 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
9839
9840 * docs/grub.texi (Filesystems): Clarify restrictions.
9841 (Regexp): Mention non-Unicode regexp behaviour.
9842 (Other): Mention non-Unicode matching behaviour.
9843
9844 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9845
9846 Make HFS implementation use MacRoman.
9847
9848 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
9849 (macroman): New const array.
9850 (macroman_to_utf8): New function.
9851 (utf8_to_macroman): Likewise.
9852 (grub_hfs_find_dir): Use utf8_to_macroman.
9853 (grub_hfs_dir): Use macroman_to_utf8.
9854 Set case_insensitive.
9855
9856 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9857
9858 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
9859
9860 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9861
9862 Integrate hints into autogeneration scripts.
9863
9864 * docs/grub.texi (Filesystems): Add a hostdisk example.
9865 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
9866 (grub-probe): Add ofpath.
9867 * gentpl.py: Remove group nosparc64.
9868 * grub-core/commands/search.c (cache_entry): New struct.
9869 (cache): New var.
9870 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
9871 * grub-core/commands/search_wrap.c (options): Add platform-specific
9872 hint options.
9873 (grub_cmd_search): Handle platform-specific hints.
9874 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
9875 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
9876 (grub_util_biosdisk_data): Likewise.
9877 (grub_util_biosdisk_open): Set device_map.
9878 (read_device_map): Handle "" as indication of no map.
9879 Set device_map.
9880 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
9881 (grub_util_biosdisk_get_compatibility_hint): New function.
9882 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
9883 * include/grub/emu/hostdisk.h
9884 (grub_util_biosdisk_get_compatibility_hint): New proto.
9885 * util/grub-install.in: Don't call grub-mkdevicemap.
9886 Add platform-specific hint to load.cfg.
9887 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
9888 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
9889 hints. Set root preliminary to compatibility hint, not to OS name.
9890 * util/grub-probe.c (PRINT_*): Add hints.
9891 (print): Make static.
9892 (escape_of_path): New function.
9893 (guess_bios_drive): Likewise.
9894 (guess_efi_drive): Likewise.
9895 (guess_baremetal_drive): Likewise.
9896 (print_full_name): Likewise.
9897 (probe): Handle hints.
9898 (main): Likewise.
9899 * util/ieee1275/devicemap.c: Removed.
9900 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
9901 updated.
9902 (grub_util_devname_to_ofpath): Return NULL on failure.
9903
9904 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
9905 resource leak.
9906 * util/getroot.c (grub_util_pull_device): Fix memory leak.
9907
9908 * po/POTFILES.in: Regenerated.
9909
9910 Allow purely long options
9911
9912 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
9913 (SHORT_ARG_USAGE): Likewise.
9914 (grub_arg_show_help): Compare opt with help_options.
9915 (parse_option): Receive opt as argument. If makes big simplificatons.
9916 All users updated
9917
9918 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9919
9920 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
9921 Restructure to avoid warning.
9922
9923 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9924
9925 * util/grub-install.in: Account for possible escaped comma in device
9926 name.
9927
9928 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9929
9930 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
9931 channel.
9932
9933 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9934
9935 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
9936 allocation and zero-setting.
9937 (grub_ieee1275_get_devname): Check that alias is complete.
9938
9939 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9940
9941 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
9942 unaligned segments.
9943
9944 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
9945
9946 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
9947 prefix.
9948 (grub_ofdisk_open): Check and discard ieee1275 prefix.
9949 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9950 Add ieee1275 prefix.
9951
9952 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9953
9954 * docs/grub.texi (Filesystems): Update.
9955
9956 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9957
9958 Support odc, newc and bigendian cpio formats.
9959
9960 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
9961 * grub-core/Makefile.core.def (newc): New module.
9962 (odc): Likewise.
9963 (cpio_be): Likewise.
9964 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
9965 (MAGIC): Likewise.
9966 (MAGIC2): Likewise.
9967 (head) [MODE_ODC]: Adapt for the format.
9968 (head) [MODE_NEWC]: Likewise.
9969 (head) [!MODE_*]: Write fields of interest as arrays.
9970 (MAGIC_USTAR): Removed.
9971 (read_number) [MODE_NEWC]: Change to hex.
9972 (read_number) [!MODE_*]: Parse binary arrays.
9973 (grub_cpio_find_file): Factor out the code for better structure and
9974 always use read_number.
9975 (grub_cpio_mount): Use MAGIC and MAGIC2.
9976 (grub_cpio_dir): Exit on first hook non-0 return.
9977 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
9978 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
9979 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
9980 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
9981 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
9982 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
9983 * grub-core/fs/newc.c: New file.
9984 * grub-core/fs/odc.c: Likewise.
9985 * grub-core/fs/cpio_be.c: Likewise.
9986
9987 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9988
9989 Fix handling of tar numbers occupying the whole field.
9990
9991 * grub-core/fs/cpio.c (read_number): New function.
9992 (grub_cpio_find_file): Use read_number instead of strtoull.
9993
9994 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9995
9996 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
9997 occupying the whole field size.
9998
9999 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
10000
10001 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
10002
10003 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10004
10005 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
10006
10007 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
10008
10009 * grub-core/Makefile.core.def (lzma_decompress): Add missing
10010 TARGET_IMG_LDFLAGS.
10011
10012 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10013
10014 * util/getroot.c (ESCAPED_PATH_MAX): New define.
10015 (mountinfo_entry): Increase the field size to take escaping into
10016 account.
10017 (find_root_device_from_libzfs): Add one byte to size of strings for
10018 security.
10019
10020 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10021
10022 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
10023 an assert.
10024 * util/grub-setup.c (setup): Likewise.
10025
10026 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10027
10028 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
10029 _LzmaDecodeA.
10030
10031 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
10032
10033 * docs/grub.texi (Internationalisation): New section.
10034
10035 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
10036
10037 * docs/grub.texi (Loopback booting): New section.
10038
10039 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
10040
10041 * util/grub-mkstandalone.in: Fix minor typo errors.
10042
10043 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
10044
10045 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
10046
10047 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
10048 net/icmp.c and net/icmp6.c.
10049 (http): New module.
10050 (priority_queue): Likewise.
10051 * grub-core/io/bufio.c: Rewritten.
10052 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
10053 TYPE_WITH_CONFIGFILE_OPTION.
10054 (legacy_commands): Add bootp and dhcp.
10055 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
10056 (grub_legacy_parse): Likewise.
10057 * grub-core/lib/priority_queue.c: New file.
10058 * grub-core/net/arp.c: Add missing license header.
10059 (arp_find_entry): Removed.
10060 (arp_find_entry): Likewise.
10061 (grub_net_arp_resolve): Rename to ...
10062 (grub_net_arp_send_request): ...this.
10063 (grub_net_arp_receive): New card argument.
10064 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
10065 Set router and DNS server.
10066 (grub_net_configure_by_dhcp_ack): Handle routing information.
10067 (grub_cmd_bootp): Set checksum.
10068 (grub_bootp_init): Remove net_dhcp.
10069 * grub-core/net/dns.c: New file.
10070 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
10071 completion.
10072 (get_card_packet): Handle allocation.
10073 (grub_efinet_findcards): Set mtu.
10074 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
10075 (get_card_packet): Handle allocation.
10076 (emucard): Set mtu.
10077 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
10078 (GRUB_MOD_INIT): Set mtu.
10079 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
10080 mtu.
10081 (get_card_packet): Handle allocation.
10082 (grub_ofnet_findcards): Set mtu.
10083 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
10084 assert.
10085 (grub_net_recv_ethernet_packet): Handle IPv6.
10086 * grub-core/net/http.c: New file.
10087 * grub-core/net/icmp.c: Likewise.
10088 * grub-core/net/icmp6.c: Likewise.
10089 * grub-core/net/ip.c (ip6addr): New type.
10090 (ip6hdr): Likewise.
10091 (reassemble): Likewise.
10092 (cmp): New function.
10093 (reassembles): New variable.
10094 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
10095 (id): New variable.
10096 (send_fragmented): New function.
10097 (grub_net_send_ip_packet): Rename to ...
10098 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
10099 Handle non-UDP.
10100 (grub_net_recv_ip_packets): Rename to ...
10101 (handle_dgram): ... this. Check checksum. Handle non-UDP.
10102 (free_rsm): New function.
10103 (free_old_fragments): Likewise.
10104 (grub_net_recv_ip4_packets): New function.
10105 (grub_net_send_ip6_packet): Likewise.
10106 (grub_net_send_ip_packet): Likewise.
10107 (grub_net_recv_ip6_packets): Likewise.
10108 (grub_net_recv_ip_packets): Likewise.
10109 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
10110 (LINK_LAYER_CACHE_SIZE): New const.
10111 (link_layer_find_entry): New function.
10112 (grub_net_link_layer_add_address): Likewise.
10113 (grub_net_link_layer_resolve_check): Likewise.
10114 (grub_net_link_layer_resolve): Likewise.
10115 (grub_net_ipv6_get_slaac): Likewise.
10116 (grub_net_ipv6_get_link_local): Likewise.
10117 (grub_cmd_ipv6_autoconf): Likewise.
10118 (parse_ip): Handle one number representation.
10119 (parse_ip6): New functoion.
10120 (match_net): Handle IPv6.
10121 (grub_net_resolve_address): Handle IPv6 and DNS.
10122 (grub_net_resolve_net_address): Handle IPv6.
10123 (route_cmp): New function.
10124 (grub_net_route_address): Find best route.
10125 (grub_net_addr_to_str): Handle IPv6.
10126 (grub_net_addr_cmp): New function.
10127 (grub_net_add_addr): Register local route.
10128 (print_net_address): Handle net address.
10129 (grub_net_poll_cards): Retransmit TCP.
10130 (grub_net_poll_cards_idle_real): Likewise.
10131 (have_ahead): New function.
10132 (grub_net_seek_real): Use underlying seek.
10133 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
10134 * grub-core/net/tcp.c: New file.
10135 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
10136 (cmp): New function.
10137 (ack): Likewise.
10138 (tftp_receive): Handle unordered input.
10139 (destroy_pq): New function.
10140 (tftp_close): Close pq.
10141 * grub-core/net/udp.c: Put missing license header.
10142 (grub_net_udp_socket): New function.
10143 (udp_socket_register): Likewise.
10144 (grub_net_udp_close): Likewise.
10145 (grub_net_recv_udp_packet): Check checksum.
10146 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
10147 * include/grub/misc.h (grub_memchr): New function.
10148 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
10149 (grub_net_card_driver): Return buf in recv.
10150 (grub_net_slaac_mac_list): New struct.
10151 (grub_network_level_protocol_id): Add ipv6.
10152 (grub_net_network_level_addr): Likewise.
10153 (grub_net_network_level_net_addr): Likewise.
10154 (grub_net_app_protocol): Add seek.
10155 (grub_net_socket): Removed.
10156 (grub_net_sockets): Likewise.
10157 (grub_net_socket_register): Likewise.
10158 (grub_net_socket_unregister): Likewise.
10159 (FOR_NET_SOCKETS): Likewise.
10160 (grub_net_add_addr): Add const.
10161 (GRUB_NET_BOOTP_*): New enum.
10162 (grub_net_addr_cmp): New proto.
10163 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
10164 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
10165 (grub_net_hwaddr_to_str): NEw proto.
10166 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
10167 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
10168 (grub_dns_init): New proto.
10169 (grub_dns_fini): Likewise.
10170 (grub_net_tcp_retransmit): Likewise.
10171 (grub_net_link_layer_add_address): Likewise.
10172 (grub_net_link_layer_resolve_check): Likewise.
10173 (grub_net_link_layer_resolve): Likewise.
10174 (grub_net_dns_lookup): Likewise.
10175 (grub_net_add_dns_server): Likewise.
10176 (grub_net_remove_dns_server): Likewise.
10177 (GRUB_NET_TRIES): New const.
10178 (GRUB_NET_INTERVAL): Likewise.
10179 * include/grub/net/arp.h: Mostly rewritten.
10180 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
10181 * include/grub/net/ip.h: Mostly rewritten.
10182 * include/grub/net/netbuff.h: Indent.
10183 * include/grub/net/tcp.h: New file.
10184 * include/grub/net/udp.h: Mostly rewritten.
10185 * include/grub/priority_queue.h: New file.
10186 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
10187 (grub_swap_bytes64_compile_time): Likewise.
10188 (grub_cpu_to_be16_compile_time): Likewise.
10189 (grub_cpu_to_be32_compile_time): Likewise.
10190 (grub_cpu_to_be64_compile_time): Likewise.
10191 (grub_be_to_cpu64_compile_time): Likewise.
10192
10193 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
10194
10195 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
10196 UINT_TO_PTR with cast.
10197
10198 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10199
10200 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
10201 don't use them.
10202
10203 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10204
10205 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
10206 already there.
10207
10208 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10209
10210 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
10211 confusing ipxe.
10212
10213 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10214
10215 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
10216 Add missing const attribute.
10217 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
10218 Likewise.
10219 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
10220 Likewise.
10221
10222 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10223
10224 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
10225 misaligned access.
10226 (serpent_setkey): Likewise.
10227 (serpent_encrypt_internal): Likewise.
10228 (serpent_decrypt_internal): Likewise.
10229 (serpent_encrypt): Don't put an alignment-increasing cast.
10230 (serpent_decrypt): Likewise.
10231 (serpent_test): Likewise.
10232
10233 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10234
10235 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
10236
10237 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10238
10239 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
10240
10241 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
10242 grub_addr_t casts.
10243 (PTR_TO_UINT64): Likewise.
10244 (PTR_TO_UINT32): Likewise.
10245
10246 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10247
10248 * util/grub-mkimage.c (generate_image): Decrease the higher limit
10249 because of stack.
10250 * util/grub-setup.c (setup): Don't add redundancy past the higher load
10251 limit.
10252
10253 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10254
10255 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
10256 text_width > available width a bit more gracefully.
10257
10258 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10259
10260 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
10261 current address calculation.
10262
10263 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10264
10265 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
10266 stack.
10267 (encode_block): Likewise.
10268
10269 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10270
10271 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
10272 certainety.
10273
10274 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10275
10276 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
10277 non-RS part to avoid RS messing with GDT.
10278 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
10279 Increase to suit in realmode routines.
10280
10281 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10282
10283 * grub-core/kern/i386/realmode.S: Increase alignment.
10284 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
10285
10286 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10287
10288 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
10289 be deterministic.
10290 (syndroms): Compute 0 syndrom.
10291 (rs_recover): Use 0 syndrom.
10292
10293 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10294
10295 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
10296
10297 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10298
10299 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
10300 brackets.
10301
10302 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10303
10304 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
10305 account.
10306 (get_top_pad): Likewise.
10307 (get_right_pad): Likewise.
10308 (get_bottom_pad): Likewise.
10309
10310 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10311
10312 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
10313
10314 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10315
10316 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
10317 attribute as the structure isn't guaranteed to be properly aligned.
10318 (grub_efi_pci_device_path): Likewise.
10319 (grub_efi_pccard_device_path): Likewise.
10320 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
10321 specify the size of `memory_type'.
10322 (grub_efi_vendor_device_path): Likewise.
10323 (grub_efi_controller_device_path): Likewise.
10324 (grub_efi_acpi_device_path): Likewise.
10325 (grub_efi_expanded_acpi_device_path): Likewise.
10326 (grub_efi_atapi_device_path): Likewise.
10327 (grub_efi_scsi_device_path): Likewise.
10328 (grub_efi_fibre_channel_device_path): Likewise.
10329 (grub_efi_1394_device_path): Likewise.
10330 (grub_efi_usb_device_path): Likewise.
10331 (grub_efi_usb_class_device_path): Likewise.
10332 (grub_efi_i2o_device_path): Likewise.
10333 (grub_efi_mac_address_device_path): Likewise.
10334 (grub_efi_ipv4_device_path): Likewise.
10335 (grub_efi_ipv6_device_path): Likewise.
10336 (grub_efi_infiniband_device_path): Likewise.
10337 (grub_efi_uart_device_path): Likewise.
10338 (grub_efi_vendor_messaging_device_path): Likewise.
10339 (grub_efi_hard_drive_device_path): Likewise.
10340 (grub_efi_cdrom_device_path): Likewise.
10341 (grub_efi_vendor_media_device_path): Likewise.
10342 (grub_efi_file_path_device_path): Likewise.
10343 (grub_efi_protocol_device_path): Likewise.
10344 (grub_efi_piwg_device_path): Likewise.
10345 (grub_efi_bios_device_path): Likewise.
10346
10347 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10348
10349 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
10350 (grub_ucs4_to_utf8_alloc): Likewise.
10351 (grub_ucs4_to_utf8): Likewise.
10352 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
10353 (grub_ucs4_to_utf8_alloc): Likewise.
10354
10355 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10356
10357 AFFS never uses unicode.
10358
10359 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
10360 (grub_latin1_to_utf8): New inline function.
10361 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
10362
10363 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10364
10365 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
10366 overflow.
10367
10368 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10369
10370 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
10371 (grub_squash_dirent_header): Likewise.
10372 (read_chunk): Don't double swap.
10373 (grub_squash_iterate_dir): Fix swap sizes.
10374
10375 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10376
10377 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
10378
10379 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10380
10381 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
10382 (grub_hfs_iterate_dir): Likewise.
10383
10384 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10385
10386 Fix video on platforms where unaligned access is forbidden.
10387 Make several optimisations while on it.
10388
10389 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
10390 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
10391 (grub_video_fbblit_replace_32bit_1bit): Likewise.
10392 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
10393 Disable.
10394 (grub_video_fbblit_replace_16bit_1bit):
10395 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
10396 (grub_video_fbblit_replace_8bit_1bit): Likewise.
10397 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
10398 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
10399 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
10400 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
10401 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
10402 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
10403 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
10404 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
10405 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
10406 (grub_video_fbblit_replace_index_RGB888): Likewise.
10407 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
10408 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
10409 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
10410 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
10411 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
10412 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
10413 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
10414 Disable.
10415 (grub_video_fbblit_blend_XXX565_1bit):
10416 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
10417 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
10418 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
10419 void *.
10420 * grub-core/video/fb/video_fb.c (common_blitter)
10421 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
10422 (grub_video_fb_create_render_target_from_pointer)
10423 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
10424 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
10425 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
10426 definition.
10427 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
10428
10429 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10430
10431 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
10432 HH22 and HM10 relocations.
10433
10434 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10435
10436 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
10437
10438 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10439
10440 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
10441 allocation succeeded.
10442
10443 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10444
10445 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
10446 argument a u8 pointer. All users updated.
10447 Handle unaligned buffers.
10448
10449 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10450
10451 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
10452 add_part to workaround compiler bug.
10453
10454 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10455
10456 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
10457
10458 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10459
10460 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
10461 Reserve alignment invariants.
10462 (grub_multiboot_load): Likewise.
10463 (retrieve_video_parameters): Likewise.
10464 (grub_multiboot_make_mbi): Likewise.
10465
10466 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10467
10468 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
10469 incorrect pointer.
10470
10471 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10472
10473 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
10474 (grub_pata_pio_write): Likewise.
10475
10476 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10477
10478 Add noreturn attributes and remove unreachable code.
10479
10480 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
10481 code.
10482 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
10483 code. Mark as noreturn.
10484 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
10485 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
10486 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
10487 unreachable code.
10488 * grub-core/kern/main.c (grub_main): Mark as noreturn.
10489 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
10490 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
10491 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
10492 * include/grub/kernel.h (grub_main): Mark as noreturn.
10493 * include/grub/reader.h (grub_rescue_run): Likewise.
10494
10495 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10496
10497 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
10498 redundant declaration.
10499
10500 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10501
10502 * include/grub/net.h (grub_net_network_level_interfaces): Remove
10503 redundant declaration.
10504 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
10505
10506 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10507
10508 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
10509 to ensure alignment.
10510 (grub_hdparm_print_identify): Make argument uint16 * to ensure
10511 alignment. Ensure tmp alignment.
10512 (grub_cmd_hdparm): Ensure buf alignment.
10513 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
10514 to ensure alignment.
10515 (grub_ata_dumpinfo): Ensure text alignment.
10516 (grub_atapi_identify): Preserve alignment invariant.
10517 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
10518
10519 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10520
10521 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
10522 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
10523 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
10524 * include/grub/misc.h (grub_reboot)
10525 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
10526 (grub_halt) [__mips__]: Likewise.
10527
10528 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10529
10530 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
10531 Remove redundant declaration.
10532 (grub_mmap_get_post64): Likewise.
10533 (grub_mmap_get_upper): Likewise.
10534 (grub_mmap_get_lower): Likewise.
10535
10536 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10537
10538 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
10539 uint32_t * to ensure alignment.
10540 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
10541
10542 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10543
10544 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
10545 uint16_t * to ensure alignment.
10546 (sun_pc_partition_map_iterate): Make `block' a union to ensure
10547 alignment.
10548
10549 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10550
10551 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
10552 to ensure alignment.
10553 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
10554
10555 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10556
10557 * grub-core/fs/ntfs.c (u16at): Make into inline function.
10558 Handle unaligned pointers.
10559 (u32at): Likewise.
10560 (u64at): Likewise.
10561 (fixup): Use byte access instead of v16at.
10562 (find_attr): Fix imporper usage of v32at.
10563 (read_data): Likewise.
10564 (list_file): Handle byte-swapping and unaligned strings.
10565 (grub_ntfs_label): Likewise.
10566
10567 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10568
10569 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
10570 as it's not necessarily aligned.
10571
10572 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10573
10574 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
10575 redundant declaration.
10576 (grub_serial_init): Likewise.
10577 (grub_terminfo_init): Likewise.
10578
10579 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10580
10581 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
10582 function.
10583 (ZAP_HASH_IDX): Likewise.
10584 (ZAP_LEAF_HASH_SHIFT): Likewise.
10585 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
10586 (LEAF_HASH): Likewise.
10587 (ZAP_LEAF_NUMCHUNKS): Likewise.
10588 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
10589 alignment invariants. Return pointer. All users updated.
10590 (ZAP_LEAF_ENTRY): Make into inline function.
10591 (NBBY): Removed.
10592 (xor): LIkewise.
10593 (xor_out): Use grub_crypto_xor.
10594 (dnode_get_path): Use grub_get_unaligned.
10595 (nvlist_find_value): Likewise.
10596 (grub_zfs_nvlist_lookup_uint64): Likewise.
10597 (grub_zfs_nvlist_lookup_string): Likewise.
10598 (get_nvlist_size): Likewise.
10599 (grub_zfs_open): Likewise.
10600 (fill_fs_info): Likewise.
10601 (grub_zfs_dir): Likewise.
10602 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
10603 alignment invariants.
10604 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
10605 necessarily aligned.
10606
10607 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10608
10609 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
10610
10611 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10612
10613 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
10614 arithmetic to conserve alignment invariants.
10615
10616 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10617
10618 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
10619 redundant declaration.
10620 (grub_efiemu_mm_obtain_request): Likewise.
10621 (grub_efiemu_prepare): Likewise.
10622
10623 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10624
10625 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
10626 to match types.
10627
10628 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10629
10630 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
10631 case of aunaligned recptr.
10632 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
10633 alignment.
10634 (grub_hfsplus_btree_search): Handle unaligned index.
10635
10636 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10637
10638 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
10639 to get freetag and skip.
10640
10641 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10642
10643 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
10644 array.
10645 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
10646 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
10647
10648 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10649
10650 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
10651 name for checksum and fix allocation algorithm.
10652
10653 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10654
10655 * include/grub/types.h (grub_properly_aligned_t): New type.
10656 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
10657 (grub_get_unaligned16): Add explicit casts.
10658 (grub_get_unaligned32): Likewise.
10659 (grub_get_unaligned64): Likewise.
10660 (grub_set_unaligned16): New function.
10661 (grub_set_unaligned32): Likewise.
10662
10663 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10664
10665 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
10666
10667 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10668
10669 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
10670 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
10671 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
10672
10673 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10674
10675 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
10676 conditionals.
10677
10678 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10679
10680 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
10681 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
10682
10683 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10684
10685 Unify and improve RAID and crypto xor.
10686
10687 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
10688 changed to grub_crypto_xor
10689 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
10690 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
10691 Use bigger types when possible.
10692
10693 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10694
10695 * grub-core/disk/raid.c (scan_devices): Fix condition.
10696
10697 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10698
10699 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
10700 Make name a const ptr.
10701
10702 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10703
10704 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
10705 first argument a const pointer.
10706 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
10707 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
10708 proto.
10709 (grub_children_iterate): Likewise.
10710 (grub_machine_mmap_iterate): Remove redundant declaration.
10711
10712 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10713
10714 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
10715 (grub_cmd_acpi) [!x86]: Disable EBDA.
10716
10717 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10718
10719 Enable UTF8 in gnulib regexp.
10720
10721 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
10722 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
10723 (isupper): Use grub_isupper.
10724 (isascii): New inline function.
10725 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
10726 * grub-core/lib/posix_wrap/wctype.h: Likewise.
10727 * grub-core/normal/charset.c (grub_utf8_process): New function.
10728 (grub_utf8_to_utf16): Use grub_utf8_process.
10729 (grub_encode_utf8_character): New function.
10730 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
10731 * include/grub/charset.h (grub_utf8_process): New declaration.
10732 (grub_encode_utf8_character): Likewise.
10733 * include/grub/misc.h (grub_islower): New inline function.
10734 (grub_isupper): Likewise.
10735 (grub_strchrsub): Moved down to fix the definitions.
10736
10737 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10738
10739 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
10740 specification.
10741
10742 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10743
10744 * include/grub/loader.h (grub_loader_register_preboot_hook):
10745 Use struct preboot * and not void * for handle. All users updated.
10746 (grub_loader_unregister_preboot_hook): Likewise.
10747
10748 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
10749
10750 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
10751 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
10752 UTF-16-BE. All users updated.
10753 (grub_hfsplus_cmp_catkey): Fix unicode handling.
10754 (grub_hfsplus_iterate_dir): Likewise.
10755 (grub_hfsplus_label): Likewise.
10756
10757 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
10758
10759 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
10760
10761 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
10762
10763 Add missing const qualifiers.
10764
10765 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
10766 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
10767 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
10768 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
10769 (grub_lvm_check_flag): Likewise.
10770 * grub-core/efiemu/i386/coredetect.c
10771 (grub_efiemu_get_default_core_name): Likewise
10772 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
10773 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
10774 * grub-core/fs/ntfs.c (fixup): Likewise.
10775 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
10776 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
10777 (fzap_lookup): Likewise.
10778 (zap_lookup): Likewise.
10779 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
10780 * grub-core/lib/legacy_parse.c (check_option): Likewise.
10781 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
10782 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
10783 (grub_freebsd_add_meta_module): Likewise.
10784 (grub_cmd_freebsd_module): Likewise.
10785 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
10786 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
10787 (grub_xnu_writetree_get_size): Likewise.
10788 (grub_xnu_writetree_toheap_real): Likewise.
10789 (grub_xnu_find_key): Likewise.
10790 (grub_xnu_create_key): Likewise.
10791 (grub_xnu_create_value): Likewise.
10792 (grub_xnu_register_memory): Likewise.
10793 (grub_xnu_check_os_bundle_required): Likewise.
10794 (grub_xnu_scan_dir_for_kexts): Likewise.
10795 (grub_xnu_load_kext_from_dir): Likewise.
10796 * grub-core/normal/color.c (color_list): Likewise.
10797 * grub-core/normal/completion.c (current_word): Likewise.
10798 * grub-core/normal/menu_entry.c (insert_string): Likewise.
10799 * grub-core/term/serial.c (grub_serial_find): Likewise.
10800 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
10801 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
10802 Likewise.
10803 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
10804 (grub_freebsd_add_meta_module): Likewise.
10805 * include/grub/lib/arg.h (grub_arg_option): Likewise.
10806 * include/grub/net.h (grub_net_card_driver): Likewise.
10807 (grub_net_card): Likewise.
10808 (grub_net_app_protocol): Likewise.
10809 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
10810 * include/grub/serial.h (grub_serial_find): Likewise.
10811 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
10812 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
10813 (grub_xnu_create_value): Likewise.
10814 (grub_xnu_find_key): Likewise.
10815 (grub_xnu_scan_dir_for_kexts): Likewise.
10816 (grub_xnu_load_kext_from_dir): Likewise.
10817
10818 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
10819 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
10820 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
10821 Moved from here ...
10822 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
10823
10824 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
10825
10826 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
10827
10828 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
10829
10830 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
10831 (read_device): Fix size calculation.
10832
10833 2011-11-25 Robert Millan <rmh@gnu.org>
10834
10835 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
10836 (find_root_device_from_libzfs): Add zpool output parser to be used
10837 as fallback when libzfs isn't available.
10838
10839 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
10840
10841 * po/Makefile.in.in: Add missing escape-continuation.
10842
10843 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
10844
10845 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
10846
10847 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
10848
10849 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
10850
10851 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
10852
10853 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
10854
10855 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
10856
10857 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
10858
10859 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
10860
10861 * grub-core/lib/adler32.c: Add missing license specification.
10862 * grub-core/lib/crc64.c: Likewise.
10863 * grub-core/loader/i386/pc/plan9.c: Likewise.
10864 * grub-core/partmap/plan.c: Likewise.
10865
10866 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
10867
10868 Add facility to debug GRUB with gdb under qemu.
10869
10870 * grub-core/gdb_grub.in: New file.
10871 * grub-core/gmodule.pl.in: Likewise.
10872 * grub-core/Makefile.core.def (gmodule.pl): New script.
10873 (gdb_grub): Likewise.
10874
10875 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10876
10877 * util/grub-mount.c (argp_parser): Accept relative pathes.
10878 * util/grub-fstest.c (argp_parser): Likewise.
10879
10880 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10881
10882 Plan9 support.
10883
10884 * Makefile.util.def (libgrubmods): Add
10885 grub-core/partmap/plan.c.
10886 * docs/grub.texi: Notice Plan9 support.
10887 * grub-core/Makefile.core.def (plan9): New module.
10888 (part_plan): Likewise.
10889 * grub-core/loader/i386/pc/plan9.c: New file.
10890 * grub-core/partmap/plan.c: Likewise.
10891 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
10892 define.
10893 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
10894 * include/grub/mm.h (grub_extend_alloc): New inline function.
10895
10896 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
10897
10898 Make Reed-Solomon faster by using power of generator representation of
10899 GF(256)*.
10900
10901 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
10902 (gf_double_t): Likewise.
10903 (gf_invert): Removed.
10904 (gf_powx): New array.
10905 (gf_powx_inv): Likewise.
10906 (scratch): Move higher.
10907 (gf_reduce): Removed.
10908 (gf_mul): Use powx.
10909 (gf_invert): Likewise.
10910 (init_inverts): Replaced with ...
10911 (init_powx): ...this. All users updated.
10912 (pol_evaluate): Replace multiplications with additions.
10913 (rs_encode): Likewise.
10914 (gauss_eliminate): Call gf_invert.
10915 (grub_reed_solomon_add_redundancy): Call init_powx.
10916 (grub_reed_solomon_recover): Call init_powx unconditionally.
10917
10918 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10919
10920 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
10921
10922 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10923
10924 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
10925 disk->partiton for safety.
10926
10927 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10928
10929 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
10930 Fix a memory leak.
10931 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
10932
10933 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10934
10935 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
10936
10937 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10938
10939 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
10940
10941 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10942
10943 Fix spaces handling in proc/self/mountinfo.
10944
10945 * util/getroot.c (unescape): New function.
10946 (grub_find_root_device_from_mountinfo): Use unescape.
10947
10948 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10949
10950 Support ZFS embedding.
10951
10952 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
10953 (grub_zfs_fs): Register grub_zfs_embed.
10954
10955 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10956
10957 Fix MIPS compilation.
10958
10959 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
10960 * include/grub/offsets.h: Rename decompressor fields from
10961 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
10962 * util/grub-mkimage.c (image_targets): Use new names.
10963
10964 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10965
10966 Defer multiboot device parsing until we're in compressed part.
10967
10968 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
10969 bsd_part. setdevice has fallen into disuse.
10970 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
10971 (bsd_part): Likewise.
10972 (boot_dev): New variable.
10973 (multiboot_trampoline): Don't parse multiboot device.
10974 Pass multiboot device in %edx.
10975 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
10976 grub_boot_device.
10977 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
10978 Likewise.
10979 * grub-core/kern/i386/pc/startup.S: Save edx.
10980 (grub_boot_drive): Removed.
10981 (grub_install_dos_part): Likewise.
10982 (grub_install_bsd_part): Likewise.
10983 (grub_boot_device): New variable.
10984 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
10985 (grub_install_bsd_part): Likewise.
10986 (grub_boot_drive): Likewise.
10987 (grub_boot_device): New variable.
10988 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
10989 Removed.
10990 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
10991 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
10992 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
10993 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
10994 * util/grub-install.in: Remove redundant condition.
10995
10996 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10997
10998 Fix bug introduced by previous commit.
10999
11000 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
11001
11002 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11003
11004 Use decompressors framework on i386-pc. It increases core size
11005 by 46 bytes but improves compatibility and maintainability.
11006
11007 * grub-core/Makefile.core.def (lzma_decompress): New image.
11008 (kernel): Add i386_pc_ldflags.
11009 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
11010 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
11011 to real_to_prot, prot_to_real and device info.
11012 * include/grub/offsets.h: Renamed decompressor offsets.
11013 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
11014 (image_target_desc): Remove raw_size and rename decompressor fields.
11015 (compress_kernel): Handle lzma.
11016 (generate_image): Handle decompressors on i386-pc.
11017
11018 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11019
11020 * configure.ac: Add -fno-asynchronous-unwind-tables.
11021
11022 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11023
11024 Move assembly code to C by using intwrap. It increases core size
11025 by 88 bytes but improves compatibility and maintainability.
11026
11027 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
11028 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
11029 ... here. Translated to C.
11030 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
11031 * grub-core/term/i386/pc/console.c (grub_console_getkey):
11032 ... here. Translated to C.
11033 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
11034 * grub-core/term/i386/pc/console.c (grub_console_getxy):
11035 ... here. Translated to C.
11036 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
11037 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
11038 ... here. Translated to C.
11039 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
11040 * grub-core/term/i386/pc/console.c (grub_console_cls):
11041 ... here. Translated to C.
11042 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
11043 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
11044 ... here. Translated to C.
11045 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
11046 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
11047 Translated to C.
11048 * grub-core/term/i386/pc/console.c (int10_9): New function.
11049 (grub_console_putchar): Likewise.
11050 * include/grub/i386/pc/console.h: Removed the not anymore shared
11051 functions.
11052
11053 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11054
11055 Move grub_chainloader_real_boot out of the kernel.
11056
11057 * grub-core/Makefile.am: Remove machine/loader.h.
11058 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
11059 Removed.
11060 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
11061 variable.
11062 (grub_relocator16_keep_a20_enabled): Likewise.
11063 (grub_relocator16_boot): Fill new variables.
11064 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
11065 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
11066 relocator.
11067 (grub_chainloader_unload): Likewise.
11068 (grub_chainloader_cmd): Likewise.
11069 * include/grub/i386/pc/loader.h: Removed.
11070 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
11071 and esi. All initialisers updated.
11072
11073 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11074 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
11075
11076 * Makefile.util.def (grub-mount): New util.
11077 * .bzrignore: Add grub-mount.
11078 * configure.ac: Check for fuse and enable grub-mount if available.
11079 * docs/man/grub-mount.h2m: New file.
11080 * util/grub-mount.c: Likewise.
11081
11082 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11083
11084 * grub-core/commands/efi/fixvideo.c: Gettextize.
11085 * grub-core/commands/hashsum.c: Likewise.
11086 * grub-core/commands/i386/cmostest.c: Likewise.
11087 * grub-core/commands/i386/pc/drivemap.c: Likewise.
11088 * grub-core/commands/i386/pc/lsapm.c: Likewise.
11089 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11090 * grub-core/commands/lsmmap.c: Likewise.
11091 * grub-core/commands/menuentry.c: Likewise.
11092 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11093 * grub-core/commands/setpci.c: Likewise.
11094 * grub-core/loader/i386/bsd.c: Likewise.
11095 * grub-core/loader/i386/linux.c: Likewise.
11096 * util/getroot.c: Likewise.
11097 * util/grub-editenv.c: Likewise.
11098 * util/grub-fstest.c: Likewise.
11099 * util/grub-mkfont.c: Likewise.
11100 * util/grub-mkimage.c: Likewise.
11101 * util/grub-mkpasswd-pbkdf2.c: Likewise.
11102 * util/grub-pe2elf.c: Likewise.
11103 * util/grub-probe.c: Likewise.
11104 * util/grub-setup.c: Likewise.
11105 * util/ieee1275/ofpath.c: Likewise.
11106 * util/misc.c: Likewise.
11107 * util/raid.c: Likewise.
11108
11109 2011-11-11 Robert Millan <rmh@gnu.org>
11110
11111 * util/getroot.c (grub_util_get_geom_abstraction): Remove
11112 __attribute__((unused)) from `os_dev', which *is* being used.
11113
11114 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11115
11116 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
11117 forgotten define.
11118 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
11119 GRUB_IA64_DL_GOT_ALIGN.
11120 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
11121 GRUB_IA64_DL_TRAMP_ALIGN.
11122
11123 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11124
11125 Replace grub_fatal with normal errors in i386 linux loader.
11126
11127 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
11128 (allocate_pages): Check find_efi_mmap_size return value.
11129 (grub_e820_add_region): Return error.
11130 (grub_linux_boot): Check mmap return value.
11131
11132 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11133
11134 * grub-core/commands/acpihalt.c: Gettextized.
11135 * grub-core/commands/cacheinfo.c: Likewise.
11136 * grub-core/commands/cmp.c: Likewise.
11137 * grub-core/commands/efi/loadbios.c: Likewise.
11138 * grub-core/commands/gptsync.c: Likewise.
11139 * grub-core/commands/ieee1275/suspend.c: Likewise.
11140 * grub-core/commands/legacycfg.c: Likewise.
11141 * grub-core/commands/memrw.c: Likewise.
11142 * grub-core/commands/minicmd.c: Likewise.
11143 * grub-core/commands/parttool.c: Likewise.
11144 * grub-core/commands/time.c: Likewise.
11145 * grub-core/commands/videoinfo.c: Likewise.
11146 * grub-core/disk/geli.c: Likewise.
11147 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
11148 * grub-core/disk/luks.c: Likewise.
11149 * grub-core/disk/lvm.c: Likewise.
11150 * grub-core/font/font_cmd.c: Likewise.
11151 * grub-core/fs/zfs/zfscrypt.c: Likewise.
11152 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11153 * grub-core/gfxmenu/view.c: Likewise.
11154 * grub-core/kern/emu/hostdisk.c: Likewise.
11155 * grub-core/kern/emu/main.c: Likewise.
11156 * grub-core/kern/emu/misc.c: Likewise.
11157 * grub-core/kern/emu/mm.c: Likewise.
11158 * grub-core/kern/mips/arc/init.c: Likewise.
11159 * grub-core/kern/mips/loongson/init.c: Likewise.
11160 * grub-core/kern/partition.c: Likewise.
11161 * grub-core/lib/i386/halt.c: Likewise.
11162 * grub-core/lib/mips/arc/reboot.c: Likewise.
11163 * grub-core/lib/mips/loongson/reboot.c: Likewise.
11164 * grub-core/loader/i386/pc/chainloader.c: Likewise.
11165 * grub-core/loader/i386/xnu.c: Likewise.
11166 * grub-core/loader/multiboot.c: Likewise.
11167 * grub-core/net/bootp.c: Likewise.
11168 * grub-core/net/net.c: Likewise.
11169 * grub-core/normal/term.c: Likewise.
11170 * grub-core/partmap/bsdlabel.c: Likewise.
11171 * grub-core/parttool/msdospart.c: Likewise.
11172 * grub-core/term/gfxterm.c: Likewise.
11173 * grub-core/term/terminfo.c: Likewise.
11174 * grub-core/video/i386/pc/vbe.c: Likewise.
11175 * util/grub-menulst2cfg.c: Likewise.
11176 * util/grub-mkdevicemap.c: Likewise.
11177 * util/grub-mklayout.c: Likewise.
11178 * util/grub-mkrelpath.c: Likewise.
11179 * util/grub-script-check.c: Likewise.
11180 * util/ieee1275/grub-ofpathname.c: Likewise.
11181 * util/resolve.c: Likewise.
11182
11183 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11184
11185 Support %1$d syntax.
11186
11187 * tests/printf_unit_test.c: New file.
11188 * Makefile.util.def (printf_test): New test.
11189 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
11190
11191 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11192
11193 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
11194 fix.
11195
11196 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11197
11198 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
11199 dprintf.
11200 * grub-core/font/font.c (grub_font_load): Likewise.
11201
11202 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11203
11204 * util/grub-macho2img.c: Add comment concerning gettext.
11205 * grub-core/lib/legacy_parse.c: Likewise.
11206
11207 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11208
11209 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
11210 (grub_xvasprintf): Likewise.
11211
11212 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11213
11214 Add const keyword to grub_env_get and gettextize week days.
11215
11216 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
11217 (grub_read_hook_datetime): Return const char *.
11218 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
11219 updated.
11220 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
11221 Mark for gettext.
11222 (grub_get_weekday_name): Return const char *. Call gettext.
11223 * grub-core/script/argv.c (grub_script_argv_append): Receive const
11224 char * and len as the argument. All users updated.
11225 (grub_script_argv_split_append): Receive const char *.
11226 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
11227 * include/grub/env.h (grub_env_get): Likewise.
11228 (grub_env_read_hook_t): Return const char *.
11229 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
11230 (grub_script_argv_split_append): Likewise.
11231
11232 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11233
11234 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
11235
11236 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11237
11238 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
11239 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
11240
11241 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11242
11243 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
11244 Fix prototype.
11245
11246 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11247
11248 Fix mips compilation.
11249
11250 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
11251 normal decoder.
11252 (hashes): Use in embed decoder as well (for sizes).
11253 (dec_stream_header): Fix embed decompressor logic.
11254 (dec_stream_footer): Likewise.
11255
11256 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11257
11258 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
11259 an error and not a fatal on unrecognised relocation types.
11260
11261 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11262
11263 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
11264 Issue error rather than printf on unknown arguments.
11265
11266 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11267
11268 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
11269 Make buf a const.
11270
11271 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11272
11273 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
11274 Fix module name.
11275
11276 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11277
11278 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
11279 leftover debug printf.
11280
11281 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11282
11283 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
11284
11285 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11286
11287 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
11288 A stylistic fix.
11289
11290 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11291
11292 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
11293
11294 2011-11-10 Shea Levy <slevy@tieronedesign.com>
11295
11296 Allow all modules to perform serial IO
11297
11298 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
11299 * include/grub/serial.h (grub_serial_port_configure): New inline
11300 function.
11301 (grub_serial_port_fetch): Likewise.
11302 (grub_serial_port_put): Likewise.
11303 (grub_serial_port_fini): Likewise.
11304 (grub_serial_find): New proto.
11305
11306 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11307
11308 Put symlink at the end of the node and fix a potential
11309 memory corruption.
11310
11311 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
11312 Make symlink into an array.
11313 (set_rockridge): Set have_symlink and alloc_dirents.
11314 (grub_iso9660_read_symlink): Use new layout.
11315 (grub_iso9660_iterate_dir): Fix memory corruption.
11316 Use new layout.
11317 (grub_iso9660_dir): Set have_symlink.
11318 (grub_iso9660_open): Likewise.
11319
11320 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11321
11322 Remove local keyword.
11323
11324 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
11325 (version_test_gt): Likewise.
11326 (version_find_latest): Likewise.
11327 (gettext_printf): Likewise.
11328 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
11329
11330 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11331
11332 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
11333
11334 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11335
11336 Fix ZFS memory and resource leaks.
11337
11338 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
11339 All users updated.
11340 Free type on exit.
11341 (fill_vdev_info): New parameter inserted. All users updated.
11342 (check_pool_label): Likewise.
11343 (scan_disk): Likewise.
11344 (scan_devices): Close non-inserted disks.
11345 (fzap_iterate): Free l.
11346 (unmount_device): Free children descripto memory.
11347
11348 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11349
11350 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
11351 argument (access out of bounds).
11352
11353 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11354
11355 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
11356 >= 6 drives.
11357
11358 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11359
11360 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
11361 Fix declaration.
11362
11363 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
11364
11365 Fix several memory leaks.
11366
11367 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
11368 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
11369 (grub_cpio_dir): Likewise.
11370 * grub-core/fs/fat.c (grub_fat_label): Likewise.
11371 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
11372 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
11373 (grub_romfs_label): Likewise.
11374 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
11375 (squash_unmount): New function.
11376 (grub_squash_dir): Fix memory leak.
11377 (grub_squash_open): Likewise.
11378 (grub_squash_read): Likewise.
11379 (grub_squash_mtime): Likewise.
11380 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
11381 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
11382 * util/grub-fstest.c (fstest): Likewise.
11383
11384 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
11385
11386 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
11387 avoid accessing beyond the array.
11388
11389 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
11390
11391 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
11392
11393 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
11394
11395 Several AFFS fixes.
11396
11397 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
11398 (GRUB_AFFS_FLAG_FFS): Removed.
11399 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
11400 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
11401 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
11402 (grub_fshelp_node): Make block 32-bit.
11403 Add block_cache and last_block_cache.
11404 (grub_affs_read_block): Fill and use block cache.
11405 (grub_affs_read_file): Removed.
11406 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
11407 boot block.
11408 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
11409 safety.
11410 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
11411 space.
11412 (grub_affs_close): Free block cache.
11413 (grub_affs_read): Use grub_fshelp_read_file directly.
11414
11415 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11416
11417 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
11418 with no error set.
11419
11420 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11421
11422 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
11423 used variable.
11424 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
11425 Likewise.
11426
11427 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11428
11429 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
11430
11431 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
11432 byteswap when needed.
11433
11434 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11435
11436 Fix FreeBSD compilation.
11437
11438 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
11439 to avoid circular dependency.
11440 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
11441 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
11442 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
11443
11444 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11445
11446 Fix ZFS crypto error types.
11447
11448 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
11449 (grub_gcm_decrypt): Likewise.
11450 (grub_zfs_load_key_real): Fix error code type. Handle possible error
11451 from PBKDF2.
11452
11453 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11454
11455 Illumos support.
11456
11457 * Makefile.util.def (10_illumos): New script.
11458 * configure.ac: Set COND_HOST_ILLUMOS.
11459 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
11460 Support Illumos calls.
11461 (find_partition_start) [__sun__]: Likewise.
11462 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
11463 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
11464 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
11465 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
11466 device.
11467 * util/grub-probe.c (probe) [__sun__]: Do character check.
11468 * util/grub.d/10_illumos.in: New file.
11469
11470 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11471
11472 Support escaped commas in hostdisk.
11473
11474 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
11475 (find_grub_drive): Use unescape_cmp.
11476 (make_device_name): Escape commas.
11477
11478 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11479
11480 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
11481
11482 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11483
11484 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
11485 variable.
11486
11487 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11488
11489 Support trampoline jumps on powerpc.
11490
11491 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
11492 __ia64__ path.
11493 (grub_dl_load_segments): Set mod->sz.
11494 (grub_dl_flush_cache): Flush whole space occupied by module, not just
11495 segments.
11496 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
11497 (jump): Likewise.
11498 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
11499 function.
11500 (trampoline): New struct.
11501 (trampoline_template): New const.
11502 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
11503 * include/grub/dl.h (grub_dl): Add sz element.
11504 [__powerpc__]: Follow __ia64__.
11505 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
11506 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
11507 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
11508 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
11509
11510 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
11511
11512 ZFS crypto support.
11513
11514 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
11515 * grub-core/Makefile.core.def (zfscrypt): New module.
11516 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
11517 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
11518 it. All users updated.
11519 (grub_zfs_decrypt): New var.
11520 (grub_zfs_load_key): Likewise.
11521 (zio_checksum_functions): Add SHA256+MAC.
11522 (zio_checksum_verify): Handle incomplete comparison due to MAC.
11523 (zio_read): Handle encrypted blocks.
11524 (zap_verify): Remove incorrect check.
11525 (fzap_iterate): Handle non-standard fzap.
11526 (zap_iterate): Likewise.
11527 (zap_iterate_u64): New function.
11528 (dnode_get_fullpath): Load keys.
11529 * grub-core/fs/zfs/zfscrypt.c: New file.
11530 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
11531 (grub_crypto_ecb_encrypt): Make input const.
11532 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
11533 (grub_crypto_ecb_encrypt): Make input const.
11534 (GRUB_CIPHER_AES): New macro.
11535 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
11536 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
11537 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
11538 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
11539 prefix. All users updated.
11540 (grub_zfs_add_key): New proto.
11541 (grub_zfs_decrypt): Likewise.
11542 (grub_zfs_load_key): Likewise.
11543 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
11544 * util/grub-fstest.c (options): Add -K option.
11545 (argp_parser): Likewise.
11546
11547 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
11548
11549 Support zle compression on ZFS.
11550
11551 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
11552 (decomp_table): Add zle.
11553 * include/grub/zfs/zio.h (zio_compress): Add zle.
11554
11555 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
11556
11557 Support BtrFS embedding.
11558
11559 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
11560 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
11561 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
11562 * util/grub-setup.c (setup): Use fs embedding if available.
11563 Add additional sanity check.
11564
11565 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
11566
11567 * util/grub-install.in: Fix condition for config_opt.
11568
11569 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11570
11571 Support third redundancy strip on raidz3.
11572
11573 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
11574 Return error on singularity. All users updated.
11575 (read_device): Don't stop on 3rd failure on raidz3.
11576
11577 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11578
11579 Support case-insensitive ZFS subvolumes.
11580
11581 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
11582 All users updated.
11583 (zap_hash): Likewise.
11584 (name_cmp): New function.
11585 (zap_leaf_array_equal): New parameter case_insensitive.
11586 All users updated.
11587 (zap_leaf_lookup): Likewise.
11588 (fzap_lookup): Likewise.
11589 (zap_lookup): Likewise.
11590 (dnode_get_path): New parameter case_insensitive. Retrieve case
11591 sensitiviness of a volume. All users updated.
11592 (dnode_get_fullpath): New parameter case_insensitive.
11593 All users updated.
11594 (grub_zfs_dir): Set info.case_insensitiveness.
11595
11596 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11597
11598 Support second redundancy strip on raidz(2,3).
11599
11600 * grub-core/fs/zfs/zfs.c (powx): New array.
11601 (powx_inv): Likewise.
11602 (poly): New const.
11603 (xor_out): New function.
11604 (gf_mul): Likewise.
11605 (recovery): Likewise.
11606 (read_device): Use second redundancy strip.
11607
11608 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11609
11610 Use a power of generator representation of GF(256) multiplication group
11611 to save space time and complexity.
11612
11613 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
11614 (raid6_table2): Likewise.
11615 (powx): New array.
11616 (powx_inv): Likewise.
11617 (poly): New const.
11618 (grub_raid_block_mul): Replace with ...
11619 (grub_raid_block_mulx): ...this.
11620 (grub_raid6_init_table): Rewritten.
11621 (grub_raid6_recover): Use power of generator representation.
11622
11623 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11624
11625 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
11626 for the right device.
11627
11628 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11629
11630 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
11631 expected by grub-mkimage and it's more clear since there is no implicit
11632 padding.
11633
11634 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
11635
11636 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
11637 disk.
11638 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
11639
11640 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
11641
11642 * util/grub-mkrescue.in: Fix handling xorriso option.
11643
11644 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11645
11646 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
11647 NULL.
11648
11649 2011-11-03 crocket <crockabiscuit@gmail.com>
11650
11651 * util/grub.d/10_linux.in: Add Slackware initrd naming.
11652
11653 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11654
11655 XZ CRC64 and SHA256 support.
11656
11657 * Makefile.util.def (libgrubmods): Add crc64.c.
11658 * grub-core/Makefile.core.def (crc64): New module.
11659 * grub-core/lib/crc64.c: New file.
11660 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
11661 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
11662 Fix the type.
11663 (MAX_HASH_SIZE): New define.
11664 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
11665 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
11666 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
11667 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
11668 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
11669 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
11670 Handle non-crc32 hashes.
11671 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
11672 (dec_stream_header): Handle non-crc32 hashes.
11673 (dec_stream_footer): Likewise.
11674 (dec_block_header): Likewise.
11675 (dec_main): Likewise.
11676 (xz_dec_init): Likewise.
11677 (xz_dec_reset): Likewise.
11678 (xz_dec_end): Likewise.
11679 * util/import_gcry.py: Add CRC64 line.
11680
11681 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11682
11683 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
11684 as well.
11685
11686 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11687
11688 Make reiserfs label retrieval similar to other *_label functions.
11689
11690 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
11691 (REISERFS_MAX_LABEL_LENGTH): Removed.
11692 (REISERFS_LABEL_OFFSET): Likewise.
11693 (grub_reiserfs_label): Rewritten.
11694
11695 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11696
11697 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
11698 field.
11699
11700 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
11701
11702 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
11703
11704 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
11705
11706 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
11707 drive failure on both raidz and raidz2.
11708
11709 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
11710
11711 Fix RAIDZ(2) for >= 5 devices.
11712
11713 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
11714 asize argument. All users updated.
11715
11716 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
11717
11718 Fix RAIDZ(2).
11719
11720 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
11721 (fill_vdev_info_real): Set ashift.
11722 (read_device): Rewrite RAIDZ part based on reverse engineering.
11723
11724 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
11725
11726 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
11727 don't report potentially unavialiable fields in debug output.
11728 (find_path): Fix double-free and memory leak.
11729
11730 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
11731
11732 Read label on UFS1.
11733
11734 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
11735 (grub_ufs_fs): Always set .label.
11736
11737 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
11738
11739 Use shifts in UFS.
11740
11741 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
11742 (grub_ufs_data): New field log2_blksz.
11743 (grub_ufs_read_file): Use shifts.
11744 (grub_ufs_mount): Check block size and logarithm it.
11745
11746 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
11747
11748 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
11749 long symlinks.
11750
11751 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11752
11753 Handle symlinks and long names on tar and cpio.
11754
11755 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
11756 (ATTR_FILE): Likewise.
11757 (ATTR_DIR): Likewise.
11758 (ATTR_LNK): Likewise.
11759 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
11760 (grub_cpio_find_file): Fill mode, handle linkname field as well as
11761 L and K entries.
11762 (grub_cpio_mount): Zero-fill data.
11763 (handle_symlink): New function.
11764 (grub_cpio_dir): Handle symlinks.
11765 (grub_cpio_open): Likewise.
11766 (grub_cpio_close) [MODE_USTAR]: Free linkname.
11767
11768 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11769
11770 Fix iso9660 filename limitations and fix memory leaks.
11771
11772 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
11773 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
11774
11775 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11776
11777 Fix JFS file name length limitations.
11778
11779 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
11780 (grub_jfs_diropen): Fix maximum filename length.
11781 (grub_jfs_getent): Fix filename length.
11782 (grub_jfs_lookup_symlink): Fix size checks.
11783
11784 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11785
11786 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
11787 string.
11788
11789 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11790
11791 Leverage BFS implementation to read AFS.
11792
11793 * Makefile.util.def (libgrubmods): Add afs.c.
11794 * grub-core/Makefile.core.def (afs): New module
11795 * grub-core/fs/afs.c: New file.
11796 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
11797
11798 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11799
11800 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
11801
11802 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11803
11804 * grub-core/fs/bfs.c: Run indent.
11805
11806 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11807
11808 BFS implementation based on the specification.
11809
11810 * grub-core/fs/bfs.c: New file.
11811 * Makefile.util.def (libgrubmods): Add bfs.c.
11812 * grub-core/Makefile.core.def (bfs): New module.
11813
11814 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
11815
11816 * util/grub-fstest.c (cmd_cp): Clarify error message.
11817 (cmd_cmp): Likewise.
11818
11819 2011-10-30 Yves Blusseau <blusseau@zetam.org>
11820
11821 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
11822 and befs_be.
11823
11824 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
11825
11826 Remove afs and befs because of copyright problem.
11827
11828 * grub-core/fs/afs.c: Removed.
11829 * grub-core/fs/afs_be.c: Removed.
11830 * grub-core/fs/befs.c: Removed.
11831 * grub-core/fs/befs_be.c: Removed.
11832 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
11833 * grub-core/Makefile.core.def (afs): Removed.
11834 (afs_be): Likewise.
11835 (befs): Likewise.
11836 (befs_be): Likewise.
11837
11838 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11839
11840 Prefer rockridge over Joliet.
11841
11842 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
11843 to ...
11844 (set_rockridge): ... here.
11845 (grub_iso9660_mount): Check rockridge on the primary label when
11846 discovering. Ignore Joliet if Rockridge is present.
11847
11848 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11849
11850 Use shifts in nilfs2.
11851
11852 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
11853 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
11854 (grub_nilfs2_palloc_entries_per_group): Replace with ...
11855 (grub_nilfs2_log_palloc_entries_per_group): ... this.
11856 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
11857 (grub_nilfs2_entries_per_block): Replaced with ...
11858 (grub_nilfs2_log_entries_per_block_log): ... this.
11859 (grub_nilfs2_blocks_per_group): Replaced with ...
11860 (grub_nilfs2_blocks_per_group_log): ... this.
11861 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
11862 (grub_nilfs2_blocks_per_desc_block_log): ... this.
11863 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
11864 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
11865 (grub_nilfs2_palloc_entry_offset): Replaced ...
11866 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
11867 (grub_nilfs2_dat_translate): Use shifts.
11868 (grub_nilfs2_read_inode): Likewise.
11869 (GRUB_MOD_INIT): Ensure that logs are correct.
11870
11871 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11872
11873 Use shifts in minix filesystem.
11874
11875 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
11876 (GRUB_MINIX_ZONE2SECT): Likewise.
11877 (grub_minix_data): Replace block_size with log_block_size.
11878 (grub_minix_read_file): Use shifts.
11879 (grub_minix_mount): Check block size and take a logarithm.
11880
11881 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11882
11883 Use shifts in squash4.
11884
11885 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
11886 (squash_mount): Check block size and take logarithm.
11887 (direct_read): Use shifts.
11888
11889 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11890
11891 Correct befs block counting logic.
11892
11893 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
11894 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
11895 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
11896 (grub_afs_read_inode): Use block_shift.
11897 (RANGE_SHIFT): New definition.
11898 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
11899 unexpected conditions, use shifts and appropriate types.
11900 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
11901
11902 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
11903
11904 * grub-core/disk/raid.c (scan_devices): Check partition.
11905 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
11906
11907 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
11908
11909 Support BFS (befs) UUID.
11910
11911 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
11912 (grub_afs_small_data_element_header): New struct.
11913 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
11914 (grub_afs_read_attribute) [MODE_BFS]: New function.
11915 (grub_afs_iterate_dir): Allocate for complete inode.
11916 (grub_afs_mount): Likewise.
11917 (grub_afs_uuid) [MODE_BFS]: New function.
11918 (grub_afs_fs) [MODE_BFS]: Add .uuid.
11919
11920 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
11921
11922 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
11923 (zfs_unmount): Fix memory leak.
11924
11925 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11926
11927 Support NTFS reparse points.
11928
11929 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
11930 (symlink_descriptor): New struct.
11931 (grub_ntfs_read_symlink): New function.
11932 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
11933 (grub_ntfs_open): Likewise.
11934
11935 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11936
11937 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
11938
11939 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11940
11941 fstest xnu_uuid subcommand.
11942
11943 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
11944 grub-core/commands/xnu_uuid.c.
11945 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
11946 (fstest): Handle xnu_uuid.
11947 (options): Document xnu_uuid.
11948 (argp_parser): Parse xnu_uuid.
11949
11950 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11951
11952 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
11953 -l argument. Add newline at the end if printing.
11954 (GRUB_MOD_INIT): Document -l.
11955
11956 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11957
11958 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
11959
11960 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11961
11962 ZFS multi-device and version 33 support.
11963
11964 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
11965 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
11966 (grub_zfs_data): Add multidev-ice-related fields.
11967 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
11968 (dva_get_offset): Make dva const.
11969 (zfs_fetch_nvlist): New function.
11970 (fill_vdev_info_real): Likewise.
11971 (fill_vdev_info): Likewise.
11972 (check_pool_label): Likewise.
11973 (scan_disk): Likewise.
11974 (scan_devices): Likewise.
11975 (read_device): Likewise.
11976 (read_dva): Likewise.
11977 (zio_read_gang): Use read_dva.
11978 (zio_read_data): Likewise.
11979 (zap_leaf_lookup): Add missing endian conversion.
11980 (zap_verify): Add missing endian conversion. All users updated.
11981 (fzap_lookup): Likewise.
11982 (fzap_iterate): Likewise.
11983 (dnode_get_path): Handle SA bonus.
11984 (nvlist_find_value): Make input const. All users updated.
11985 (unmount_device): New function.
11986 (zfs_unmount): Use unmount_device.
11987 (zfs_mount): Use scan_disk.
11988 (zfs_mtime): New function.
11989 (grub_zfs_open): Handle system attributes.
11990 (fill_fs_info): Likewise.
11991 (grub_zfs_dir): Likewise.
11992 (grub_zfs_fs): Add mtime.
11993 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
11994 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
11995 (SA_MTIME_OFFSET): Likewise.
11996 (SA_SYMLINK_OFFSET): Likewise.
11997 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
11998 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
11999 (fstest): Support zfsinfo.
12000 (argp_parser): Likewise.
12001
12002 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
12003
12004 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
12005 error.
12006
12007 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
12008
12009 ZFS fixes.
12010
12011 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
12012 sharing the same block. Iterate over correct number of indices.
12013 (dnode_get_path): Handle symlinks correctly.
12014
12015 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12016
12017 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
12018
12019 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12020
12021 Read label on HFS+.
12022
12023 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
12024 (grub_hfsplus_btree_search): Fix types.
12025 (grub_hfsplus_label): Implement.
12026
12027 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12028
12029 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
12030
12031 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12032
12033 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
12034
12035 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12036
12037 Fix symlink handling on iso9660.
12038
12039 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
12040 All users updated.
12041 (grub_iso9660_susp_iterate): Accept zero-size iterate.
12042 (grub_iso9660_read_symlink): Moved most of code ...
12043 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
12044
12045 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12046
12047 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
12048 Use union to avoid breaking strict-aliasing rules.
12049
12050 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12051
12052 Support multi-extent iso files.
12053
12054 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
12055 Add node.
12056 (grub_fshelp_node): Revamp. All users updated.
12057 (FLAG_*): New enum.
12058 (read_node): New function.
12059 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
12060 All users updated.
12061 (grub_iso9660_mount): Don't attempt to read sua when there is none.
12062 (get_node_size): New function.
12063 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
12064 entries.
12065 Fix memory leak on . and ..
12066 (grub_iso9660_read): Use read_node.
12067 (grub_iso9660_close): Free node.
12068
12069 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12070
12071 Fix tar 4G limit and handle paths containing dot.
12072
12073 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
12074 (canonicalize): New function.
12075 (grub_cpio_find_file): Use canonicalize. Store offs in
12076 grub_disk_addr_t.
12077 (grub_cpio_dir): Use grub_disk_addr_t.
12078 (grub_cpio_open): Likewise.
12079
12080 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12081
12082 Fix handling of uncompressed blocks on squashfs and break 4G limit.
12083
12084 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
12085 unused flags.
12086 (grub_squash_inode): Add long_file and block_size.
12087 (grub_squash_cache_inode): New struct.
12088 (grub_squash_dirent): Make types into enum.
12089 (SQUASH_TYPE_LONG_REGULAR): New type.
12090 (grub_squash_frag_desc): Add field size.
12091 (SQUASH_BLOCK_FLAGS): New enum.
12092 (grub_squash_data): Use grub_squash_cache_inode.
12093 (grub_fshelp_node): Make ino_chunk 64-bit.
12094 (read_chunk): Minor argument change. All users updated.
12095 (squash_mount): Use correct le_to_cpu.
12096 (grub_squash_open): Handle LONG_REGULAR.
12097 (direct_read): New function.
12098 (grub_squash_read_data): Handle blocks correctly.
12099
12100 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12101
12102 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
12103
12104 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12105
12106 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
12107
12108 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
12109
12110 Fix 2G limit on ZFS.
12111
12112 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
12113 types.
12114 (uberblock_verify): Likewise.
12115 (dmu_read): Likewise.
12116 (grub_zfs_read): Likewise. Remove invalid cast.
12117
12118 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
12119
12120 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
12121 (grub_jfs_blkno): Fix incorrect shift.
12122 (grub_jfs_read_file): Use more appropriate types.
12123
12124 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
12125
12126 Support triple indirect on minix2 and minix3.
12127
12128 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
12129 Declare triple_indir_zone.
12130 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
12131 indirect.
12132
12133 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
12134
12135 Minix FS fixes.
12136
12137 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
12138 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
12139 Rename ctime to mtime. All users updated.
12140 (grub_minix_get_file_block): Fix types and double indirect computations.
12141
12142 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12143
12144 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
12145 if no label is found.
12146 (grub_fat_iterate_dir): Fix file size type.
12147 (grub_fat_iterate_dir): Likewise.
12148
12149 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12150
12151 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
12152 save some space.
12153 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
12154 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
12155
12156 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12157
12158 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
12159
12160 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12161
12162 * util/import_gcry.py: Accept space between # and include.
12163
12164 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12165
12166 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
12167
12168 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12169
12170 Fine grainely disable warnings on lexer. Remove Wno-error on it.
12171
12172 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
12173 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
12174 yylex_strncpy.
12175 * grub-core/script/yylex.l: Add fine-grained #pragma.
12176
12177 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12178
12179 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
12180 New inline function.
12181 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
12182 Likewise.
12183 (memset) [GRUB_UTIL]: Likewise.
12184 (memcmp) [GRUB_UTIL]: Likewise.
12185
12186 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12187
12188 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
12189 inline function rather than a define.
12190
12191 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12192
12193 * util/grub-setup.c: Add missing include.
12194
12195 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12196
12197 * util/ieee1275/grub-ofpathname.c: Add missing include.
12198
12199 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12200
12201 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
12202 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
12203 Likewise.
12204
12205 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12206
12207 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
12208 grub_memcmp usage.
12209
12210 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12211
12212 * util/grub-install.in: Add datarootdir as per automake manual
12213 suggestion.
12214 * util/grub-mknetdir.in: Likewise.
12215
12216 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12217
12218 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
12219 suggestion.
12220 * util/grub.d/10_kfreebsd.in: Likewise.
12221 * util/grub.d/10_linux.in: Likewise.
12222 * util/grub.d/10_netbsd.in: Likewise.
12223 * util/grub.d/10_windows.in: Likewise.
12224 * util/grub.d/20_linux_xen.in: Likewise.
12225
12226 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
12227
12228 Remove redundant grub_kernel_image_size.
12229
12230 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
12231 _edata and _start.
12232 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
12233 the small code. It moves it only by few bytes but simplifies the code.
12234 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
12235 _start.
12236 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
12237 (grub_kernel_image_size): Removed.
12238 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
12239 (grub_kernel_image_size): Removed.
12240 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
12241 compiled with Apple toolchain.
12242 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
12243 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
12244 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
12245 (grub_total_module_size): Likewise.
12246 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
12247 Removed.
12248 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
12249 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
12250 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
12251 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
12252 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
12253 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
12254 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
12255 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
12256 Removed.
12257 (grub_total_module_size): Removed.
12258 * util/grub-mkimage.c (image_target_desc): Remove image_size.
12259 (image_targets): Likewise.
12260 Set .compressed_size to no field on sparc.
12261 (generate_image): Remove kernel_image_size handling.
12262
12263 2011-10-19 Szymon Janc <szymon@janc.net.pl>
12264
12265 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
12266 NULL pointer dereference.
12267
12268 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12269
12270 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
12271 done with a dedicated section.
12272
12273 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
12274 Ensure the correct position of boot_path.
12275 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
12276 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
12277 other fields.
12278 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
12279 * include/grub/boot.h: Removed. All references removed.
12280 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
12281 Removed.
12282 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
12283
12284 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12285
12286 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
12287 name.
12288
12289 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12290
12291 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
12292
12293 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12294
12295 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
12296 Don't add the bogus brackets.
12297
12298 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12299
12300 ExFAT support.
12301
12302 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
12303 * grub-core/Makefile.core.def (exfat): New module.
12304 * grub-core/fs/exfat.c: New file.
12305 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
12306 (GRUB_FAT_ATTR_*): Make into an enum.
12307 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
12308 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
12309 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
12310 (GRUB_FAT_MAXFILE): Removed.
12311 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
12312 (grub_current_fat_bpb_t): New type.
12313 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
12314 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
12315 (grub_fat_dir_node_t): New type.
12316 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
12317 (fat_log2) [MODE_EXFAT]: Removed.
12318 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
12319 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
12320 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
12321 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
12322 (grub_fat_label) [MODE_EXFAT]: New function.
12323 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
12324 reserved_first_sector to 0.
12325
12326 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12327
12328 Move grub_reboot out of the kernel.
12329
12330 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
12331 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
12332 * grub-core/lib/efi/reboot.c: ... here.
12333 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
12334 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
12335 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
12336 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
12337 * grub-core/lib/i386/reboot_trampoline.S: ... here.
12338 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
12339 * grub-core/lib/ieee1275/reboot.c: ... here.
12340 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
12341 * grub-core/lib/mips/arc/reboot.c: ... here.
12342 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
12343 * grub-core/lib/mips/loongson/reboot.c: ...here.
12344 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
12345 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
12346 * include/grub/emu/misc.h (grub_reboot): New function declaration.
12347 * include/grub/i386/reboot.h: New file.
12348 * include/grub/mips/loongson/ec.h: Fix includes.
12349 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
12350 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
12351 * grub-core/lib/i386/reboot.c: New file.
12352
12353 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
12354
12355 Make grub_prefix into module to fix the arbitrary limit and save
12356 some space.
12357
12358 * grub-core/kern/emu/main.c (grub_prefix): Removed.
12359 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
12360 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
12361 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
12362 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
12363 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
12364 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
12365 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
12366 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
12367 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
12368 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
12369 * include/grub/ia64/efi/kernel.h: Removed.
12370 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
12371 (grub_prefix): Removed.
12372 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
12373 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
12374 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
12375 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
12376 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
12377 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
12378 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
12379 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
12380 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
12381 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
12382 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
12383 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
12384 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
12385 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
12386 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
12387 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
12388 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
12389 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
12390 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
12391 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
12392 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
12393 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
12394 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
12395 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
12396 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
12397 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
12398 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
12399 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
12400 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
12401 from module.
12402 * util/grub-mkimage.c (image_target_desc): Removed prefix and
12403 prefix_end.
12404 (image_targets): Likewise.
12405 (generate_image): Put prefix as a module.
12406
12407 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
12408
12409 Replace grub_module_iterate with FOR_MODULES.
12410
12411 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
12412 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
12413 (grub_efi_modules_addr): ...this.
12414 * grub-core/kern/efi/init.c (grub_modbase): New variable.
12415 (grub_efi_init): Set grub_modbase.
12416 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
12417 (grub_modbase): New variable.
12418 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
12419 (grub_modbase): New variable.
12420 (grub_machine_init): Set grub_modbase.
12421 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
12422 (grub_modbase): New variable.
12423 (grub_machine_init): Set grub_modbase.
12424 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
12425 (grub_modbase): New variable.
12426 (grub_machine_init): Set grub_modbase.
12427 * grub-core/kern/main.c (grub_module_iterate): Remove.
12428 (grub_modules_get_end): Use grub_modbase.
12429 (grub_load_modules): Use FOR_MODULES.
12430 (grub_load_config): Likewise.
12431 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
12432 (grub_modbase): New variable.
12433 (grub_machine_init): Set grub_modbase.
12434 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
12435 (grub_modbase): New variable.
12436 (grub_machine_init): Set grub_modbase.
12437 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
12438 Removed.
12439 (grub_modbase): New variable.
12440 (grub_machine_init): Set grub_modbase.
12441 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
12442 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
12443 (grub_module_iterate): Likewise.
12444 (grub_modbase): New variable declaration.
12445 (FOR_MODULES): New macro.
12446
12447 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
12448
12449 * configure.ac: Check for __ctzdi2 and __ctzsi2.
12450 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
12451
12452 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
12453
12454 Fix few obvious type discrepancies.
12455
12456 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
12457 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
12458 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
12459 variable.
12460 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
12461 and connected types.
12462 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
12463 offset.
12464 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
12465 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
12466 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
12467 and connected types.
12468
12469 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
12470
12471 Fix python 3.x incompatibilities.
12472
12473 * gentpl.py: Put brackets around print strings.
12474 * util/import_gcry.py: Open explicitly as utf-8.
12475 Use in instead of has_key.
12476
12477 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
12478
12479 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
12480 (GRUB_XFS_INO_AGBITS): Make into inline function.
12481 (GRUB_XFS_INO_INOINAG): Likewise.
12482 (GRUB_XFS_INO_AG): Likewise.
12483 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
12484 (GRUB_XFS_EXTENT_OFFSET): Likewise.
12485 (GRUB_XFS_EXTENT_BLOCK): Likewise.
12486 (GRUB_XFS_EXTENT_SIZE): Likewise.
12487 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
12488 (GRUB_XFS_NEXT_DIRENT): Likewise.
12489 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
12490 (grub_xfs_read_file): Fix offset type.
12491
12492 2011-10-15 Robert Millan <rmh@gnu.org>
12493
12494 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
12495
12496 2011-10-15 Robert Millan <rmh@gnu.org>
12497
12498 Fix build problem on FreeBSD and GNU/kFreeBSD.
12499
12500 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
12501
12502 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
12503
12504 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
12505
12506 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
12507 types.
12508 (grub_hfsplus_btree_recoffset): Likewise.
12509 (grub_hfsplus_btree_recptr): Likewise.
12510 (grub_hfsplus_find_block): Likewise.
12511 (grub_hfsplus_btree_search): Likewise.
12512 (grub_hfsplus_read_block): Likewise.
12513 (grub_hfsplus_read_file): Likewise.
12514 (grub_hfsplus_mount): Likewise.
12515 (grub_hfsplus_btree_iterate_node): Likewise.
12516 (grub_hfsplus_btree_search): Likewise.
12517 (grub_hfsplus_iterate_dir): Likewise.
12518 (grub_hfsplus_read): A small code simplification.
12519
12520 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
12521
12522 * grub-core/kern/emu/hostdisk.c
12523 (convert_system_partition_to_system_disk): Don't assume that children
12524 of mapper nodes are mapper nodes.
12525
12526 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
12527
12528 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
12529 * include/grub/misc.h (grub_isxdigit): New function.
12530 * grub-core/video/colors.c (my_isxdigit): Removed. All users
12531 switched to grub_isxdigit.
12532 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
12533 number starting with a letter.
12534
12535 2011-10-09 Robert Millan <rmh@gnu.org>
12536
12537 LVM support for FreeBSD and GNU/kFreeBSD.
12538
12539 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
12540 GNU/kFreeBSD.
12541 (LVM_DEV_MAPPER_STRING): Move from here ...
12542 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
12543 * util/getroot.c: Include `<grub/util/lvm.h>'.
12544 (grub_util_get_dev_abstraction): Enable
12545 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
12546 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
12547 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
12548 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
12549 support it.
12550 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
12551 GNU/kFreeBSD.
12552 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
12553 when LVM abstraction is required for ${GRUB_DEVICE}.
12554
12555 2011-10-06 Szymon Janc <szymon@janc.net.pl>
12556
12557 Add support for LZO compression in GRUB:
12558 - import of minilzo library,
12559 - LZO decompression for btrfs,
12560 - lzop files decompression.
12561
12562 * grub-core/io/lzopio.c: New file.
12563 * grub-core/lib/adler32.c: Likewise.
12564 * grub-core/lib/minilzo/lzoconf.h: Likewise.
12565 * grub-core/lib/minilzo/lzodefs.h: Likewise.
12566 * grub-core/lib/minilzo/minilzo.c: Likewise.
12567 * grub-core/lib/minilzo/minilzo.h: Likewise.
12568 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
12569 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
12570 grub-core/lib/minilzo/minilzo.c to common.
12571 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
12572 cflags in cppflags.
12573 * grub-core/Makefile.core.def (btrfs): Likewise.
12574 * grub-core/Makefile.core.def (lzopio): New module.
12575 (adler32): Likewise.
12576 * grub-core/fs/btrfs.c: Include minilzo.h.
12577 (GRUB_BTRFS_COMPRESSION_LZO): New define.
12578 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
12579 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
12580 (grub_btrfs_lzo_decompress): New function.
12581 (grub_btrfs_extent_read): Add support for LZO compression type.
12582 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
12583 (GRUB_USHRT_MAX): Likewise.
12584 (GRUB_UINT_MAX): Likewise.
12585 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
12586 (UINT_MAX): Likewise.
12587 (CHAR_BIT): Likewise.
12588 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
12589 grub-core/lib/posix_wrap/limits.h
12590 (UCHAR_MAX): Likewise.
12591 * include/grub/file.h (grub_file_filter_id): New compression filter
12592 GRUB_FILE_FILTER_LZOPIO.
12593 * include/grub/file.h (grub_file_filter_id): Set
12594 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
12595 * include/grub/types.h (grub_get_unaligned16): New function.
12596 (grub_get_unaligned32): Likewise.
12597 (grub_get_unaligned64): Likewise.
12598 * util/import_gcry.py (cryptolist): Add adler32.
12599
12600 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
12601
12602 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
12603 in perspective decreases the complexity of build system and fixes
12604 compilation right now.
12605
12606 2011-10-01 Ales Nesrsta <starous@volny.cz>
12607
12608 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
12609 (fixed problem related to using UHCI with coreboot).
12610
12611 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
12612
12613 * gentpl.py: Use Autogen macros so that the output template file
12614 (Makefile.tpl) size is reduced.
12615
12616 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
12617
12618 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
12619 extra_dist.
12620
12621 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
12622
12623 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
12624 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
12625
12626 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
12627
12628 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
12629 _fullpath.
12630
12631 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
12632
12633 Remove extra declaration of sleep for mingw32.
12634
12635 * util/misc.c (sleep) [__MINGW32__]: Removed.
12636 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
12637
12638 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
12639
12640 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
12641 type and packname.
12642 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
12643 Resurrected.
12644 (NETBSD_BTINFO_BOOTWEDGE): New definition.
12645 (grub_netbsd_btinfo_bootwedge): New struct.
12646 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
12647 New function.
12648 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
12649
12650 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
12651
12652 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
12653 loader.
12654
12655 2011-09-28 Andreas Born <futur.andy@googlemail.com>
12656
12657 Fix incorrect identifiers in bash-completion.
12658
12659 * util/bash-completion.d/grub-completion.bash.in
12660 (_grub_mkpasswd-pbkdf2): Rename to ...
12661 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
12662 (_grub_script-check): Rename to ...
12663 (_grub_script_check): ... this. All users updated.
12664
12665 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
12666
12667 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
12668 Return 0 if disk isn't biosdisk.
12669
12670 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
12671
12672 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
12673 on NetBSD.
12674 * Makefile.util.def (grub-fstest): Likewise.
12675
12676 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
12677
12678 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
12679 Get sector size from disk label.
12680
12681 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
12682
12683 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
12684 */README* as well as README*.
12685 Reported by: Axel Beckert.
12686
12687 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
12688
12689 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
12690 case of less than 256 MiB of RAM.
12691
12692 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
12693
12694 * grub-core/commands/wildcard.c (make_regex): Handle @.
12695
12696 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
12697
12698 * util/grub-install.in: Move cryptodisk logic to appropriate place.
12699
12700 2011-08-21 Szymon Janc <szymon@janc.net.pl>
12701
12702 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
12703 AC_LANG_CONFTEST macros.
12704
12705 2011-08-20 Szymon Janc <szymon@janc.net.pl>
12706
12707 Add grub-fstest option to uncompress data for commands.
12708
12709 * util/grub-fstest.c (uncompress): New var.
12710 (options): New option -u.
12711
12712 2011-08-20 Szymon Janc <szymon@janc.net.pl>
12713
12714 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
12715 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
12716
12717 2011-08-20 Szymon Janc <szymon@janc.net.pl>
12718
12719 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
12720 file type was not recognized correctly (not gzip or corrupted).
12721
12722 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12723
12724 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
12725 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
12726
12727 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12728
12729 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
12730 loongson.
12731 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12732 video_radeon_fuloong2e.
12733 * grub-core/video/radeon_fuloong2e.c: New file.
12734 * include/grub/video.h (grub_video_id_t): Add new ID
12735 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
12736
12737 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12738
12739 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
12740 define.
12741 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
12742 that PRID matches the detected subplatform and reset the subplatform
12743 if it doesn't.
12744
12745 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12746
12747 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
12748
12749 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12750
12751 Fix PCI iterating on functions >= 4.
12752
12753 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
12754 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
12755 Removed.
12756 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
12757 (grub_pci_read): Fix bitmask.
12758 (grub_pci_read_word): Likewise.
12759 (grub_pci_read_byte): Likewise.
12760 (grub_pci_write): Likewise.
12761 (grub_pci_write_word): Likewise.
12762 (grub_pci_write_byte): Likewise.
12763
12764 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12765
12766 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
12767 can still be specified in TARGET_CFLAGS)
12768
12769 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
12770
12771 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
12772
12773 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
12774 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
12775 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
12776 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
12777 (FULOONG): Rename to ...
12778 (FULOONG2F): ... this. All users updated.
12779 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
12780 (machtype_fuloong2f_str): ... this.
12781 (machtype_fuloong2e_str): New string.
12782 Check for machtype_fuloong2e_str.
12783 * grub-core/loader/mips/linux.c (loongson_machtypes)
12784 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
12785 * grub-core/term/serial.c (loongson_defserial)
12786 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
12787 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
12788 loongson_defserial.
12789 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
12790 Rename to ...
12791 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
12792 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
12793 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
12794 to IMAGE_FULOONG2F_FLASH. All users updated.
12795 (image_targets): Rename images.
12796 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
12797
12798 2011-08-19 Szymon Janc <szymon@janc.net.pl>
12799
12800 Make enable of disk cache statistics code configurable.
12801
12802 * configure.ac: --enable-cache-stats added.
12803 * config.h.in (DISK_CACHE_STATS): New define.
12804 * grub-core/Makefile.core.def (cacheinfo): New command.
12805 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
12806 * grub-core/commands/cacheinfo.c: New file.
12807 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
12808 moved to cacheinfo.c.
12809 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
12810 debug code.
12811 * include/grub/disk.h: Likewise.
12812
12813 2011-08-19 Szymon Janc <szymon@janc.net.pl>
12814
12815 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
12816 * grub-core/Makefile.am: Likewise.
12817
12818 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
12819
12820 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
12821 non-zero pull.
12822
12823 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
12824
12825 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
12826 All users updated.
12827 (grub_jfs_lookup_symlink): Use correct starting inode.
12828
12829 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
12830
12831 * util/grub-setup.c (main): Add missing gcry initialisation.
12832
12833 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
12834
12835 Don't accept text modes on EFI when booting Linux.
12836
12837 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
12838 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
12839
12840 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
12841 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
12842
12843 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
12844 use of "/path/.." as in grub-install for EFI as well as handling
12845 symlinks correctly.
12846 Fixes Debian bug #637768.
12847
12848 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
12849
12850 * util/grub-probe.c: Remove duplicate #include.
12851
12852 2011-08-10 Robert Millan <rmh@gnu.org>
12853
12854 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
12855
12856 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
12857 function.
12858 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
12859 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
12860
12861 2011-08-03 Robert Millan <rmh@gnu.org>
12862
12863 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
12864 la_array as packed.
12865 Reported by: Zachary Bedell
12866
12867 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
12868
12869 * configure.ac: The Loongson port requires grub-mkfont due to its
12870 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
12871 be built.
12872
12873 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
12874
12875 * util/grub-install.in: Don't source grub-mkconfig_lib until after
12876 processing arguments (otherwise help2man fails when GRUB has not yet
12877 been installed).
12878
12879 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12880
12881 New script grub-mkstandalone.
12882
12883 * Makefile.util.def (grub-mkstandalone): New script.
12884 * docs/man/grub-mkstandalone.h2m: New file.
12885 * util/grub-mkstandalone.in: Likewise.
12886
12887 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12888
12889 Support ATA disks with 4K sectors.
12890
12891 * include/grub/ata.h (grub_ata): New member log_sector_size.
12892 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
12893 (grub_ata_identify): Read sector size.
12894 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
12895
12896 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12897
12898 * util/grub-install.in: Don't use uhci outside of x86.
12899
12900 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12901
12902 * util/grub-mkrescue.in: Add missing quotes.
12903
12904 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
12905
12906 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
12907 dereference.
12908
12909 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
12910
12911 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
12912
12913 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
12914
12915 * include/grub/video.h: add missing EXPORT_FUND on
12916 grub_video_edid_checksum and grub_video_edid_preferred_mode.
12917
12918 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
12919
12920 * include/grub/mips/kernel.h: Fix define conflict.
12921
12922 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
12923
12924 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
12925 all four ways.
12926
12927 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
12928
12929 Preferred resolution detection for VBE.
12930
12931 * grub-core/video/video.c (grub_video_edid_checksum): New function.
12932 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
12933 the Flat Panel extension, in line with the X.org VESA driver.
12934 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
12935 New function.
12936 (grub_vbe_bios_get_ddc_capabilities): Likewise.
12937 (grub_vbe_bios_read_edid): Likewise.
12938 (grub_vbe_get_preferred_mode): Likewise.
12939 (grub_video_vbe_setup): When the mode is "auto", try to get the
12940 preferred mode from VBE, and use the largest mode that is no larger
12941 than the preferred mode (some BIOSes expose a preferred mode that is
12942 not in their mode list!). If this fails, fall back to 640x480 as a
12943 safe conservative choice.
12944 (grub_video_vbe_get_edid): New function.
12945 (grub_video_vbe_adapter): Add get_edid.
12946 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
12947 (struct grub_video_adapter): Add get_edid.
12948 (grub_video_edid_checksum): Add prototype.
12949 (grub_video_edid_preferred_mode): Likewise.
12950 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
12951 structure.
12952
12953 * grub-core/commands/videoinfo.c (print_edid): New function.
12954 (grub_cmd_videoinfo): Print EDID if available.
12955
12956 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
12957 is more appropriate on a wider range of platforms than 640x480.
12958 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
12959 documentation.
12960
12961 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12962
12963 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
12964
12965 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12966
12967 * po/POTFILES.in: Regenerate.
12968
12969 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12970
12971 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
12972 incorrect memory usage.
12973
12974 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12975
12976 * util/grub-install.in: Source grub-mkconfig_lib.
12977
12978 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
12979
12980 Remove getroot.c from core on emu platform.
12981
12982 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
12983 kern/emu/raid.c.
12984 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
12985 useless.
12986 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
12987 * util/getroot.c (get_win32_path): ... here.
12988 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
12989 * util/getroot.c (fini_libzfs): ... here.
12990 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
12991 * util/getroot.c (grub_get_libzfs_handle): ... here.
12992 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
12993 Moved from here...
12994 * util/getroot.c (grub_find_zpool_from_dir): ... here.
12995 * grub-core/kern/emu/misc.c
12996 (grub_make_system_path_relative_to_its_root): Moved from here...
12997 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
12998 * grub-core/kern/emu/getroot.c: Moved from here ...
12999 * util/getroot.c: ... here. All users updated.
13000 * grub-core/kern/emu/raid.c: Moved from here ...
13001 * util/raid.c: ... here. All users updated.
13002
13003 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
13004
13005 * po/POTFILES.in: Regenerate.
13006
13007 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
13008
13009 Fix compilation on GNU/Linux.
13010
13011 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
13012 Disable geli.
13013 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
13014 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
13015 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
13016
13017 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
13018 2011-07-07 Michael Gorven <michael@gorven.za.net>
13019 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
13020
13021 LUKS and GELI support.
13022
13023 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
13024 grub-core/disk/luks.c, grub-core/disk/geli.c,
13025 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
13026 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
13027 grub-core/lib/arg.c.
13028 (libgrubmods.a): Remove gcrypts cflags and cppflags.
13029 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
13030 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
13031 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
13032 (grub-bin2h): Add libgcry.a.
13033 (grub-mkimage): Likewise.
13034 (grub-mkrelpath): Likewise.
13035 (grub-script-check): Likewise.
13036 (grub-editenv): Likewise.
13037 (grub-mkpasswd-pbkdf2): Likewise.
13038 (grub-pe2elf): Likewise.
13039 (grub-fstest): Likewise.
13040 (grub-mkfont): Likewise.
13041 (grub-mkdevicemap): Likewise.
13042 (grub-probe): Likewise.
13043 (grub-ofpath): Likewise.
13044 (grub-mklayout): Likewise.
13045 (example_unit_test): Likewise.
13046 (grub-menulst2cfg): Likewise.
13047 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
13048 * grub-core/Makefile.core.def (cryptodisk): New module.
13049 (luks): Likewise.
13050 (geli): Likewise.
13051 * grub-core/disk/AFSplitter.c: New file.
13052 * grub-core/disk/cryptodisk.c: Likewise.
13053 * grub-core/disk/geli.c: Likewise.
13054 * grub-core/disk/luks.c: Likewise.
13055 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
13056 grub_util_is_lvm.
13057 (grub_util_get_dm_abstraction): New function.
13058 (grub_util_follow_gpart_up): Likewise.
13059 (grub_util_get_geom_abstraction): Likewise.
13060 (grub_util_get_dev_abstraction): Use new functions.
13061 (grub_util_pull_device): Pull GELI and LUKS.
13062 (grub_util_get_grub_dev): Handle LUKS and GELI.
13063 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
13064 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
13065 (follow_geom_up): Removed.
13066 (grub_util_fd_seek): New function.
13067 (open_device): Use grub_util_fd_seek.
13068 (nread): Rename to ..
13069 (grub_util_fd_read): ... this. All users updated.
13070 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
13071 (grub_crypto_cbc_decrypt): Likewise.
13072 (grub_crypto_hmac_write): Likewise.
13073 (grub_crypto_hmac_buffer): Likewise.
13074 (grub_password_get): Extend to util.
13075 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
13076 New member modname.
13077 (gcry_md_spec) [GRUB_UTIL]: Likewise.
13078 * include/grub/cryptodisk.h: New file.
13079 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
13080 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
13081 LUKS and GELI.
13082 (grub_util_follow_gpart_up): New proto.
13083 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
13084 (grub_util_fd_read): Likewise.
13085 (grub_cryptodisk_cheat_mount): Likewise.
13086 (grub_util_cryptodisk_print_uuid): Likewise.
13087 (grub_util_get_fd_sectors): Likewise.
13088 * util/grub-fstest.c (mount_crypt): New var.
13089 (fstest): Mount crypto if requested.
13090 (options): New option -C.
13091 (argp_parser): Parse -C.
13092 (main): Init and fini gcry.
13093 * util/grub-install.in: Support cryptodisk install.
13094 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
13095 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
13096 cryptodisk.
13097 (prepare_grub_to_access_device): Likewise.
13098 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
13099 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
13100 (probe_cryptodisk_uuid): New function.
13101 (probe_abstraction): Likewise.
13102 (probe): Use new functions.
13103 * util/import_gcry.py: Create Makefile.utilgcry.def.
13104 Add modname member.
13105
13106 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
13107
13108 Lazy device scanning.
13109
13110 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
13111 (grub-setup): Remove util/raid.c.
13112 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
13113 * grub-core/disk/lvm.c (scan_depth): New variable.
13114 (grub_lvm_iterate): Rescan if necessary.
13115 (find_lv): New function based on grub_lvm_open.
13116 (grub_lvm_open): Use find_lv. Rescan on error.
13117 (is_node_readable): New function.
13118 (is_lv_readable): Likewise.
13119 (grub_lvm_scan_device): Skip already found disks.
13120 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
13121 Stop if searched device is found and readable.
13122 * grub-core/disk/raid.c (inscnt): New variable.
13123 (scan_depth): Likewise.
13124 (scan_devices): New function based on grub_raid_register. Abort if
13125 looked for device is found.
13126 (grub_raid_iterate): Rescan if needed.
13127 (find_array): NEw function based on -grub_raid_open.
13128 (grub_raid_open): Use find_array and rescan.
13129 (insert_array): Set became_readable_at.
13130 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
13131 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
13132 New function.
13133 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
13134 (grub_util_pull_device): New function.
13135 (grub_util_get_grub_dev): Call grub_util_pull_device.
13136 * util/raid.c: Moved to ..
13137 * grub-core/kern/emu/raid.c: ... here.
13138 (grub_util_raid_getmembers): New parameter "bootable".
13139 All users updated. Support 1.x.
13140 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
13141 All users updated.
13142 * include/grub/disk.h (grub_disk_pull_t): New enum.
13143 (grub_disk_dev): Change iterate prototype.
13144 All users updated.
13145 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
13146 New proto.
13147 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
13148 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
13149 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
13150 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
13151 All users updated.
13152 * include/grub/util/raid.h: Removed.
13153
13154 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
13155
13156 * po/POTFILES.in: Regenerate.
13157
13158 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
13159
13160 Unify sparc init with other ieee1275.
13161
13162 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
13163 instead of kern/sparc64/ieee1275/init.c.
13164 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
13165 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
13166 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
13167 grub/machine/kernel.h.
13168 (grub_ieee1275_original_stack) [__sparc__]: New variable.
13169 (grub_claim_heap) [__sparc__]: Use sparc version.
13170 (grub_machine_init): Moved args parsing to
13171 (grub_parse_cmdline): ...this.
13172 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
13173 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
13174 New definition.
13175 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
13176
13177 Move BOOTP to separate file.
13178
13179 * grub-core/Makefile.core.def (net): Add net/bootp.c.
13180 * grub-core/net/net.c: Move all BOOTP functions to
13181 * grub-core/net/bootp.c: ... here.
13182
13183 Use frame interface on PXE.
13184
13185 * grub-core/Makefile.core.def (pxecmd): Removed.
13186 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
13187 * grub-core/commands/i386/pc/pxecmd.c: Removed.
13188 * grub-core/i386/pc/pxe.c: Moved from here ...
13189 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
13190 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
13191 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
13192
13193 EFI network support.
13194
13195 * grub-core/Makefile.core.def (efinet): New module.
13196 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
13197 here...
13198 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
13199 All users updated.
13200 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
13201 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
13202 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
13203 * grub-core/net/drivers/efi/efinet.c: New file.
13204 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
13205 (grub_efi_net_config): New extern var.
13206
13207 Various cleanups and bugfixes.
13208
13209 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
13210 error.
13211 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
13212 disk declared as partition.
13213 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
13214 leak on failure.
13215 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
13216 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
13217 (grub_debug_zalloc): Likewise.
13218 (grub_debug_realloc): Likewise.
13219 (grub_debug_memalign): Likewise.
13220 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
13221 Check that target is IPv4.
13222 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
13223 local-mac-address as fallback.
13224 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
13225 memory leak.
13226 * grub-core/net/ip.c (ipchksum): Rename to ...
13227 (grub_net_ip_chksum): ... this. All users updated.
13228 (grub_net_recv_ip_packets): Special handling for DHCP.
13229 * util/grub-mkimage.c (generate_image): Zero-out aout header.
13230
13231 Unify prefix handling
13232
13233 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
13234 (grub_machine_get_bootlocation): ... this.
13235 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
13236 (grub_machine_get_bootlocation): ... this.
13237 (grub_prefix): New variable.
13238 (prefix): Removed.
13239 (root_dev): New variable.
13240 (dir): Likewise.
13241 (main): Use new variables.
13242 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
13243 Revamped into ...
13244 (grub_machine_get_bootlocation): ... this.
13245 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
13246 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
13247 (grub_machine_get_bootlocation): ... this.
13248 (grub_machine_set_prefix): Removed.
13249 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
13250 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
13251 Revamped into ...
13252 (grub_machine_get_bootlocation): ... this.
13253 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
13254 (grub_set_prefix_and_root): ... this. All users updated.
13255 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
13256 Revamped into ...
13257 (grub_machine_get_bootlocation): ... this.
13258 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
13259 (grub_machine_get_bootlocation): New proto.
13260 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
13261
13262 Less intrusive and more reliable seek on network implementation.
13263
13264 * grub-core/kern/file.c (grub_file_net_seek): Removed.
13265 (grub_file_seek): Don't call grub_file_net_seek.
13266 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
13267 (grub_net_fs_read_real): .. this.
13268 (grub_net_seek_real): Use net->offset.
13269 (grub_net_fs_read): Seek if necessary.
13270
13271 Unify IEEE1275 netwotk config with the other platforms.
13272
13273 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
13274 New variable.
13275 (grub_machine_get_bootlocation): Support network.
13276 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
13277 Support type and device parsing.
13278 (grub_ieee1275_get_device_type): New function.
13279 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
13280 into ...
13281 (grub_ieee1275_net_config_real): ... this.
13282 (grub_ofnet_probecards): Removed.
13283 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
13284 * include/grub/ieee1275/ofnet.h: Removed.
13285 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
13286 extern var.
13287 (grub_ieee1275_get_device_type): New function.
13288
13289 Unify network device closing across platforms and make more robust.
13290
13291 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
13292 grub_grubnet_fini.
13293 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
13294 already.
13295 * grub-core/net/net.c (grub_net_network_level_interface_register):
13296 Update num_ifaces.
13297 (grub_net_card_unregister): Close all interfaces.
13298 (receive_packets): Don't poll if no iterfaces are registered.
13299 Open if necessary.
13300 (grub_net_fini_hw): New function.
13301 (grub_net_restore_hw): Likewise.
13302 (fini_hnd): New variable.
13303 (GRUB_MOD_INIT): Register preboot hook.
13304 (GRUB_MOD_FINI): Run and unregister preboot hook.
13305
13306 Poll network cards when idle.
13307
13308 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
13309 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
13310 * grub-core/net/net.c (receive_packets): Save last poll time.
13311 (grub_net_poll_cards_idle_real): New function.
13312 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
13313 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
13314 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
13315
13316 Rename ofnet interfaces.
13317
13318 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
13319 (grub_ofnet_findcards): Use ofnet_%s names.
13320
13321 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
13322
13323 Cleanup socket opening.
13324
13325 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
13326 (grub_net_fs_close): Likewise.
13327 (grub_net_fs_read_real): Use eof member.
13328 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
13329 (+grub_net_udp_close): New inline function.
13330
13331 * include/grub/net/tftp.h: Moved to the top of ...
13332 * grub-core/net/tftp.c: ... here.
13333 * include/grub/net/ip.h: Moved mostly to the top of ...
13334 * grub-core/net/ip.c: ... here.
13335 * include/grub/net/ethernet.h: Moved mostly to the top of ...
13336 * grub-core/net/ethernet.c: ... here.
13337
13338 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
13339
13340 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
13341 FS name.
13342
13343 * include/grub/net/ip.h (ipv4_ini): Removed.
13344 (ipv4_fini): Likewise.
13345
13346 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
13347 (grub_net_send_ip_packets): Likewise.
13348
13349 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13350
13351 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
13352 grub_read_cmos prototype.
13353
13354 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13355
13356 VGA text support in qemu-mips
13357
13358 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
13359 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
13360 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
13361 text.
13362 * grub-core/kern/i386/qemu/init.c: Renamed to ...
13363 * grub-core/kern/vga_init.c: ... this.
13364 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
13365 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
13366 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
13367 Adjust.
13368 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
13369 GRUB_MACHINE_PCI_IO_BASE.
13370
13371 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13372
13373 MIPS qemu flash support.
13374
13375 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
13376 magic.
13377 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
13378 (grub_machine_init): Probe memory if its size isn't known.
13379 * util/grub-mkimage.c (image_targets): Add flash targets.
13380 (generate_image): Handle flash targets.
13381
13382 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13383
13384 MIPS qemu at_keyboard support.
13385
13386 * gentpl.py (videoinkernel): Add qemu-mips.
13387 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
13388 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
13389 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
13390 modules.
13391 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
13392 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
13393 * grub-core/term/serial.c (grub_serial_register)
13394 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
13395
13396 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13397
13398 CMOS support on sparc.
13399
13400 * gentpl.py (cmos): Add powerpc and sparc.
13401 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
13402 powerpc and sparc.
13403 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
13404 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
13405 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
13406 grub_set_datetime_cmos.
13407 * grub-core/lib/ieee1275/cmos.c: New file.
13408 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
13409 (find_rtc): Set no_ieee1275_rtc on error.
13410 (grub_get_datetime): Call grub_get_datetime_cmos on error.
13411 (grub_set_datetime): Call grub_set_datetime_cmos on error.
13412 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
13413 fail. Move value to argument. All users updated
13414 (grub_cmos_write): Likewise.
13415 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
13416 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
13417 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
13418 grub_get_datetime_cmos and grub_set_datetime_cmos.
13419
13420 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
13421
13422 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
13423 sourcing grub-mkconfig_lib.
13424 * util/update-grub_lib.in: Likewise.
13425 * util/grub.d/00_header.in: Likewise.
13426 * util/grub.d/10_hurd.in: Likewise.
13427 * util/grub.d/10_kfreebsd.in: Likewise.
13428 * util/grub.d/10_linux.in: Likewise.
13429 * util/grub.d/10_netbsd.in: Likewise.
13430 * util/grub.d/10_windows.in: Likewise.
13431 * util/grub.d/20_linux_xen.in: Likewise.
13432 * util/grub.d/30_os-prober.in: Likewise.
13433
13434 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
13435
13436 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
13437 default_bg_color rather than black.
13438 (grub_gfxterm_fullscreen): Likewise.
13439 (grub_gfxterm_background_color_cmd): Save new background color in
13440 default_bg_color.
13441
13442 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13443
13444 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
13445
13446 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13447
13448 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
13449 mismerge.
13450
13451 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13452
13453 Chainloading on coreboot support.
13454
13455 * grub-core/Makefile.core.def (chain): Add coreboot.
13456 * grub-core/loader/i386/coreboot/chainloader.c: New file.
13457
13458 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13459
13460 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
13461 if it happens.
13462
13463 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13464
13465 Implement time command.
13466
13467 * grub-core/Makefile.core.def (time): New module.
13468 * grub-core/commands/time.c: New file.
13469 * grub-core/script/parser.y: Remove "time" keyword.
13470 * grub-core/script/yylex.l: Likewise.
13471
13472 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13473
13474 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
13475
13476 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13477
13478 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
13479 when handling leftovers.
13480
13481 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13482
13483 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
13484 so that help2man doesn't fail.
13485
13486 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13487
13488 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
13489 type in pointers on sparc64.
13490 (get_card_packet): Likewise.
13491
13492 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
13493
13494 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
13495 with `*'.
13496 (grub_cmd_videoinfo): Fetch current video mode.
13497
13498 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13499
13500 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
13501 because of underlying system restrictions.
13502
13503 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13504
13505 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
13506 necessary.
13507
13508 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13509
13510 Coreboot video support.
13511
13512 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
13513 (vbe): Likewise.
13514 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
13515 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
13516 here ...
13517 * grub-core/kern/i386/int.S: ... here.
13518 * grub-core/video/i386/pc/vbe.c: Updated includes.
13519 * grub-core/video/i386/pc/vga.c: Likewise.
13520 * include/grub/i386/coreboot/memory.h
13521 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
13522 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
13523 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
13524 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
13525 Disable interrupts.
13526 * include/grub/i386/pc/vga.h: Removed. All users updated.
13527
13528 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13529
13530 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
13531 definitions for dprintf.
13532 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
13533
13534 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13535
13536 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
13537 prototype.
13538 (get_card_packet): Likewise.
13539
13540 2011-06-26 Yves Blusseau <blusseau@zetam.org>
13541
13542 Display the path of the file when file is not found
13543
13544 * grub-core/fs/fat.c: Display the filename when file is not found.
13545 * grub-core/fs/fshelp.c: Likewise.
13546 * grub-core/fs/hfs.c: Likewise.
13547 * grub-core/fs/jfs.c: Likewise.
13548 * grub-core/fs/minix.c: Likewise.
13549 * grub-core/fs/ufs.c: Likewise.
13550 * grub-core/fs/btrfs.c: Likewise.
13551 * grub-core/commands/i386/pc/play.c: Likewise.
13552
13553 2011-06-26 Szymon Janc <szymon@janc.net.pl>
13554
13555 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
13556 pointer checks before calling grub_free().
13557 * grub-core/commands/wildcard.c (match_devices): Likewise.
13558 * grub-core/commands/wildcard.c (match_files): Likewise.
13559 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
13560 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
13561 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
13562 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
13563 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
13564 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
13565 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
13566 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
13567 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
13568
13569 2011-06-25 Patrick <p55@mailinator.com>
13570
13571 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
13572
13573 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
13574
13575 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
13576 (grub_pxe_send): Likewise.
13577 (GRUB_MOD_INIT): Fix types.
13578
13579 2011-06-24 Szymon Janc <szymon@janc.net.pl>
13580
13581 * grub-core/io/xzio.c: Fix code style issues
13582
13583 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13584 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
13585
13586 Network infrastructure.
13587 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
13588
13589 * include/grub/net/arp.h: New file.
13590 * include/grub/net/device.h: Likewise.
13591 * include/grub/net/ethernet.h: Likewise.
13592 * include/grub/net/ip.h: Likewise.
13593 * include/grub/net/netbuff.h: Likewise.
13594 * include/grub/net/tftp.h: Likewise.
13595 * include/grub/net/udp.h: Likewise.
13596 * include/grub/ieee1275/ofnet.h: Likewise.
13597 * include/grub/emu/export.h: Likewise.
13598 * include/grub/net.h: Likewise.
13599 * grub-core/net/arp.c: Likewise.
13600 * grub-core/net/ethernet.c: Likewise.
13601 * grub-core/net/ip.c: Likewise.
13602 * grub-core/net/udp.c: Likewise.
13603 * grub-core/net/tftp.c: Likewise.
13604 * grub-core/net/netbuff.c: Likewise.
13605 * grub-core/net/net.c: Likewise.
13606 * grub-core/net/drivers/emu/emunet.c: Likewise.
13607 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
13608 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
13609 export.h.
13610 * grub-core/Makefile.core.def (net): New module.
13611 (tftp): Likewise.
13612 (ofnet): Likewise.
13613 (emunet): Likewise.
13614 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
13615 network protocols.
13616 * grub-core/kern/device.c (grub_net_open) : New variable.
13617 (grub_device_open): Handle network device.
13618 (grub_device_close): Likewise.
13619 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
13620 (grub_grubnet_fini): Likewise.
13621 (grub_file_seek): Seek in network device.
13622 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
13623 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
13624 network root.
13625 (grub_machine_fini): Call grub_grubnet_fini.
13626 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
13627 network.
13628 (grub_ieee1275_get_aliasdevname): New function.
13629 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
13630 Add unofficial Solaris network info.
13631 (grub_multiboot_make_mbi): Likewise.
13632 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
13633 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
13634 * include/grub/device.h (grub_fs): Removed.
13635 * include/grub/err.h (grub_err_t): Add network-related values.
13636 * include/grub/i386/pc/pxe.h: Removed bootp parts.
13637 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
13638 (grub_ieee1275_get_aliasdevname): New proto.
13639 * include/grub/net.h: Rewritten.
13640
13641 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13642
13643 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
13644 names.
13645
13646 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13647
13648 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
13649 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
13650 it truncates the output.
13651 Reported by: Ximin Luo.
13652
13653 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13654
13655 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
13656
13657 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13658
13659 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
13660 partmap before abstraction.
13661
13662 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
13663
13664 * util/grub-mkconfig_lib.in: Add missing quotes.
13665
13666 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13667
13668 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
13669 old method if mountinfo would return /dev/root and /dev/root doesn't
13670 exist.
13671
13672 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13673
13674 ZFS zlib support
13675
13676 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
13677 (decomp_table): Add zlib entries.
13678 (zio_read): USe 8 bits for compression function rather than 3.
13679 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
13680
13681 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
13682
13683 * grub-core/disk/ahci.c: Add missing license statements.
13684 * grub-core/fs/romfs.c: Likewise.
13685 * grub-core/lib/ia64/setjmp.S: Likewise.
13686 * grub-core/loader/i386/pc/freedos.c: Likewise.
13687 * grub-core/loader/ia64/efi/linux.c: Likewise.
13688 * grub-core/video/colors.c: Likewise.
13689 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
13690
13691 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13692
13693 AHCI support.
13694
13695 * grub-core/Makefile.core.def (ata_pthru): Removed.
13696 (ahci): New module.
13697 (pata): Likewise.
13698 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
13699 on unload.
13700 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
13701 readwrite.
13702 (grub_hdparm_do_check_powermode_cmd): Likewise.
13703 (grub_hdparm_do_smart_cmd): Likewise.
13704 (grub_hdparm_set_val_cmd): Likewise.
13705 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
13706 * grub-core/disk/ahci.c: New file.
13707 * grub-core/disk/ata.c: Factor out the low-level part into ...
13708 * grub-core/disk/pata.c: ... here.
13709 * grub-core/disk/ata_pthru.c: Contents moved to ...
13710 * grub-core/disk/pata.c: ... here.
13711 * grub-core/disk/scsi.c (grub_scsi_names): New array.
13712 (grub_scsi_iterate): Use grub_scsi_names.
13713 (grub_scsi_open): Likewise.
13714 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
13715 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
13716 (grub_ata_regs_t): New struct.
13717 (grub_disk_ata_pass_through_parms): Likewise.
13718 (grub_ata_device): Renamed to ...
13719 (grub_ata): ... this.
13720 (grub_ata_dev): New struct.
13721 Removed all low-level inline functions.
13722 * include/grub/scsi.h: Add PATA and AHCI subsystems.
13723 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
13724 iterate hooks and open. All users updated.
13725 * util/grub-install.in: Handle AHCI disk module.
13726
13727 2011-06-23 Szymon Janc <szymon@janc.net.pl>
13728
13729 Add support for DRI and RSTn markers in JPEG files.
13730
13731 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
13732 (JPEG_MARKER_RST0): Likewise.
13733 (JPEG_MARKER_RST1): Likewise.
13734 (JPEG_MARKER_RST2): Likewise.
13735 (JPEG_MARKER_RST3): Likewise.
13736 (JPEG_MARKER_RST4): Likewise.
13737 (JPEG_MARKER_RST5): Likewise.
13738 (JPEG_MARKER_RST6): Likewise.
13739 (JPEG_MARKER_RST7): Likewise.
13740 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
13741 (grub_jpeg_decode_dri): New function.
13742 (grub_jpeg_decode_sos): Move image data related part into
13743 grub_jpeg_decode_data function.
13744 (grub_jpeg_decode_data): New function.
13745 (grub_jpeg_reset): New function.
13746 (grub_jpeg_decode_jpeg): Handle new markers.
13747
13748 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13749
13750 * util/ieee1275/ofpath.c (check_sas): Close fd.
13751 (main): Free of_path.
13752 Reported by: David Volgyes <dvolgyes>.
13753
13754 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13755
13756 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
13757 Reported by: David Volgyes <dvolgyes>.
13758
13759 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13760
13761 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
13762 file after stat.
13763 Reported by: David Volgyes <dvolgyes>.
13764
13765 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13766
13767 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
13768
13769 Reported by: David Volgyes <dvolgyes>.
13770
13771 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13772
13773 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
13774 Prevent memory leak.
13775
13776 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13777
13778 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
13779 (main): Close file.
13780 Reported by: David Volgyes <dvolgyes>.
13781
13782 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13783
13784 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
13785 to continue if allocation is failed.
13786
13787 Reported by: David Volgyes <dvolgyes>.
13788
13789 2011-06-23 David Volgyes <dvolgyes>
13790
13791 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
13792 dereference.
13793
13794 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13795
13796 Fix spurious warning.
13797
13798 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
13799 (acorn_partition_map_find): Use .bin member.
13800
13801 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13802
13803 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
13804 /dev/root as a valid device.
13805
13806 2011-06-23 Jim Meyering <meyering@redhat.com>
13807
13808 Avoid NULL deref in grub_device_open.
13809
13810 * grub-core/kern/device.c (grub_device_open): Don't dereference
13811 a NULL pointer upon failed grub_env_get.
13812
13813 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
13814
13815 Support non-512B sectors and agglomerate reads.
13816
13817 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
13818 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
13819 (disk_io_guid): Removed.
13820 (make_devices): Locate solely by BlockIO.
13821 (grub_efidisk_open): Fill log_sector_size and total_sectors.
13822 (grub_efidisk_read): Use read_blocks.
13823 (grub_efidisk_write): Use write_blocks.
13824 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
13825 log_sector_size.
13826 (get_safe_sectors): Handle non-512B sectors.
13827 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
13828 sectors.
13829 (grub_biosdisk_write): Handle non-512B sectors.
13830 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
13831 (grub_scsi_read): Remove special non-512B block handling (now handled
13832 one level up).
13833 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
13834 and do sanity checks.
13835 (grub_disk_adjust_range): Handle non-512B sectors.
13836 (transform_sector): New function.
13837 (grub_disk_read_small): Likewise.
13838 (grub_disk_read): Rewritten.
13839 (grub_disk_write): Handle non-512B sectors.
13840 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
13841 log_sector_size.
13842 (open_device): Use log_sector_size.
13843 (grub_util_biosdisk_read): Likewise.
13844 (grub_util_biosdisk_write): Likewise.
13845 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
13846 non-512B sectors.
13847 (pc_partition_map_embed): Likewise.
13848 * include/grub/disk.h (grub_disk): New field log_sector_size.
13849 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
13850 (GRUB_DISK_CACHE_BITS): Increased to 6.
13851 * util/grub-fstest.c (fstest): New command testload.
13852 (argp_parser): Likewise.
13853
13854 2011-06-16 Robert Millan <rmh@gnu.org>
13855
13856 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
13857 `ata' driver on kernel of FreeBSD 9.
13858
13859 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
13860 (get_ataraid_disk_name): New functions.
13861 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
13862 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
13863 get_ataraid_disk_name() and get_ada_disk_name().
13864
13865 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
13866
13867 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
13868 input format.
13869
13870 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
13871
13872 * docs/grub.texi (Obtaining and Building GRUB): Substitute
13873 `ftp.gnu.org' for `alpha.gnu.org'.
13874
13875 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
13876
13877 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
13878 partitions under /dev/disk/by-id/.
13879
13880 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
13881
13882 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
13883 after ten consecutive open failures. Scanning all the way up to
13884 10000 is excessive and can cause serious performance problems in
13885 some configurations.
13886 Fixes Ubuntu bug #787461.
13887
13888 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13889
13890 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
13891 opening new one.
13892
13893 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
13894 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
13895
13896 Don't stat devices unless we have to.
13897
13898 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
13899 dir == /dev/mapper.
13900 (grub_guess_root_device): Use already known os_dev if possible.
13901 * grub-core/kern/emu/hostdisk.c
13902 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
13903 if device is known to be a dm one.
13904
13905 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
13906
13907 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
13908 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
13909 Reported by: Pawel Tecza.
13910
13911 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
13912
13913 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
13914 (lsefisystab): Likewise.
13915 (lssal): Likewise.
13916 (lsefimmap): Likewise.
13917 (hdparm): Enable on qemu-mips.
13918 (setjmp): Add ia64 nodist.
13919 (serial): Simplify tags.
13920
13921 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
13922
13923 * Makefile.util.def (grub-ofpathname): Install manual page.
13924
13925 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
13926
13927 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
13928
13929 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
13930
13931 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
13932
13933 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13934
13935 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
13936 into dprintf.
13937
13938 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13939
13940 Use full 64-bit division.
13941
13942 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
13943 (grub_divmod64): ... this.
13944 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
13945 version.
13946
13947 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
13948
13949 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
13950 `source'.
13951
13952 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
13953
13954 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
13955 to avoid accidents when debugging with 'sh -x'.
13956 * grub-core/gensyminfo.sh.in: Likewise.
13957 * tests/example_scripted_test.in: Likewise.
13958 * tests/grub_cmd_regexp.in: Likewise.
13959 * tests/grub_script_blanklines.in: Likewise.
13960 * tests/grub_script_dollar.in: Likewise.
13961 * tests/grub_script_expansion.in: Likewise.
13962 * tests/grub_script_final_semicolon.in: Likewise.
13963 * tests/partmap_test.in: Likewise.
13964 * tests/util/grub-shell-tester.in: Likewise.
13965 * tests/util/grub-shell.in: Likewise.
13966
13967 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
13968
13969 Move gfxmenu color handling to video, so that gfxterm can use it
13970 too.
13971
13972 * grub-core/gfxmenu/named_colors.c: Move to ...
13973 * grub-core/video/colors.c: ... here. Rename
13974 grub_gui_get_named_color to grub_video_get_named_color.
13975 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
13976 * grub-core/video/colors.c (my_isxdigit): ... here.
13977 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
13978 Move to ...
13979 * grub-core/video/colors.c (parse_hex_color_component): ... here.
13980 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
13981 to ...
13982 * grub-core/video/colors.c (grub_video_parse_color): ... here.
13983
13984 * include/grub/gui.h (grub_gui_color_t): Move to ...
13985 * include/grub/video.h (grub_video_rgba_color_t): ... here.
13986 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
13987 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
13988 * include/grub/gui.h (grub_gui_map_color): Move to ...
13989 * include/grub/video.h (grub_video_map_rgba_color): ... here.
13990 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
13991 to ...
13992 * include/grub/video.h (grub_video_get_named_color): ... here.
13993 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
13994 * include/grub/video.h (grub_video_parse_color): ... here.
13995
13996 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
13997 video/colors.c.
13998 (gfxmenu): Remove gfxmenu/named_colors.c.
13999 (video) [videomodules]: Add video/colors.c.
14000
14001 Add a background_color command.
14002
14003 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
14004 function.
14005 (GRUB_MOD_INIT): Register background_color command.
14006 (GRUB_MOD_FINI): Unregister background_color command.
14007 (redraw_screen_rect): Allow blend/replace of text layer to be
14008 controlled independently from whether there is a background bitmap.
14009 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
14010 changing bitmap.
14011
14012 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14013
14014 Patch BPB in ntldr and chainloader --bpb.
14015
14016 * grub-core/fs/fat.c: Include grub/fat.h.
14017 (grub_fat_bpb): Moved to ...
14018 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
14019 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
14020 grub/ntfs.h.
14021 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
14022 Moved from here...
14023 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
14024 here.
14025 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
14026 New function.
14027 (grub_chainloader_cmd): Patch BPB if --bpb is given.
14028 (GRUB_MOD_INIT): Show --bpb.
14029 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
14030 * grub-core/normal/main.c (features): New variable.
14031 (GRUB_MOD_INIT): Set feature_* variables.
14032 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
14033 proto.
14034 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
14035
14036 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14037
14038 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
14039 for cleanness.
14040
14041 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14042
14043 FreeDOS direct loading support.
14044
14045 * docs/grub.texi (Supported OS): Add FreeDOS.
14046 * grub-core/Makefile.core.def (freedos): New module.
14047 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
14048 variable.
14049 (grub_relocator16_boot): Handle %ebx.
14050 * grub-core/lib/i386/relocator16.S: Likewise.
14051 * grub-core/loader/i386/pc/freedos.c: New file.
14052
14053 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14054
14055 Long Linux command line support.
14056
14057 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
14058 (maximal_cmdline_size): New variable.
14059 (allocate_pages): Use maximal_cmdline_size.
14060 (grub_cmd_linux): Set and use maximal_cmdline_size.
14061 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
14062 (allocate_pages): Use maximal_cmdline_size.
14063 (grub_cmd_linux): Set and use maximal_cmdline_size.
14064 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
14065 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
14066 and cmdline_size.
14067
14068 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14069 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
14070
14071 Improve devmapper support
14072
14073 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
14074 (grub_util_is_lvm): New function.
14075 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
14076 than lvm if not dmraid.
14077 Handle mapped md nodes.
14078 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
14079 (grub_util_device_is_mapped): ... this. Make always available. All users
14080 updated.
14081 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
14082 (convert_system_partition_to_system_disk): Handle lvm, mpath and
14083 dmraid nodes.
14084 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
14085
14086 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14087
14088 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
14089
14090 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
14091 * grub-core/modinfo.sh.in: New file.
14092 * grub-core/Makefile.core.def (modinfo.sh): New script.
14093 * util/grub-mknetdir.in: Use modinfo.sh.
14094 * util/grub-mkrescue.in: Likewise.
14095
14096 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14097
14098 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
14099 Fix potential usage of Elf32 instead of Elf64 when compiling on
14100 32-bit architecture. Add endianness macros while on it.
14101
14102 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14103
14104 Use mipsel- rather than mips- in directories involving mipsel ports to
14105 allow both endiannesses coexist.
14106
14107 * configure.ac: proparate target_cpu=mipsel rather than resetting to
14108 mips. All conditions adjusted.
14109 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
14110 variable.
14111 * util/grub-install.in: Adjust conditions to take renaming into account.
14112 * util/grub-mkimage.c (image_targets): Likewise. New target
14113 mips-qemu_mips-elf for bigendian mips.
14114
14115 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14116
14117 Avoid unnecessary copying on MIPS.
14118
14119 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
14120 early if src == dest.
14121 * util/grub-mkimage.c (generate_image): Arange for src == dest if
14122 compression is none.
14123
14124 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14125
14126 Reduce memory footprint on SGI by putting modules before the kernel
14127 as opposed to after.
14128
14129 * grub-core/Makefile.core.def (kernel): Increase linking address.
14130 (none_decompress): Likewise.
14131 (xz_decompress): Likewise.
14132 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
14133 address.
14134 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
14135 layout change.
14136 (grub_arch_modules_addr): New function.
14137 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
14138 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
14139 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
14140 here.
14141 * grub-core/kern/mips/startup.S (total_size): Rename to ...
14142 (grub_total_modules_size): ... this. Make global.
14143 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
14144 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
14145 New definition.
14146 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
14147 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
14148 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
14149 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
14150 * util/grub-mkimage.c (image_target_desc): New flag
14151 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
14152 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
14153 (generate_image): Handle images with modules before kernel.
14154
14155 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14156
14157 Prevent potential loss of memory map by overwrite on qemu-mips.
14158
14159 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
14160 Save ram size in $s4.
14161 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
14162 All users changed to grub_arch_memsize.
14163 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
14164 Loongson.
14165 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
14166 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
14167 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
14168 external variable.
14169
14170 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
14171
14172 * .bzrignore: Remove grub-dumpbios.
14173
14174 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
14175
14176 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
14177 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
14178 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
14179 existing options which append).
14180 * docs/grub.texi (Simple configuration): Document new options.
14181 Reported by: Ian Jackson. Fixes Debian bug #617538.
14182
14183 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
14184
14185 * util/grub-fstest.c (cmd_cat): New function.
14186 (fstest): Handle CMD_CAT.
14187 (options): Add cat.
14188 (argp_parser): Handle cat.
14189
14190 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
14191
14192 * Makefile.util.def (grub-bin2h): Don't install.
14193 * docs/man/grub-bin2h.h2m: Remove.
14194
14195 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14196
14197 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
14198 place.
14199
14200 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14201
14202 Reenable qemu-mips port.
14203
14204 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
14205 Fix small arc bug while on it.
14206 * gentpl.py: Handle qemu_mips.
14207 * grub-core/Makefile.am: Likewise.
14208 * grub-core/Makefile.core.def: Likewise.
14209 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
14210 inappropriate includes.
14211 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
14212 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
14213 * grub-core/kern/main.c (grub_modules_get_end)
14214 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
14215 * grub-core/kern/mips/qemu-mips: Moved to ..
14216 * grub-core/kern/mips/qemu_mips: ... this.
14217 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
14218 (grub_machine_init): Call terminfo_init and serial_init.
14219 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
14220 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
14221 New variable.
14222 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
14223 parameter passing.
14224 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
14225 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
14226 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
14227 * include/grub/mips/qemu_mips/cmos.h: New file.
14228 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
14229 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
14230 Removed.
14231 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
14232 Use correct mips-style address.
14233 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
14234 (GRUB_TICKS_PER_SECOND): Removed.
14235 (grub_get_rtc): Likewise.
14236 (grub_cpu_idle): Likewise.
14237 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
14238 New definition.
14239 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
14240 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
14241 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
14242 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
14243 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
14244 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
14245 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
14246 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
14247
14248 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14249
14250 SGI ARCS port.
14251
14252 * Makefile.util.def (libgrubmods.a): Add dvh.c.
14253 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
14254 platforms.
14255 * configure.ac: New target mips-arc.
14256 * gentpl.py: Likewise.
14257 * grub-core/Makefile.am: Likewise.
14258 * grub-core/Makefile.core.def: Likewise.
14259 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
14260 (none_decompress): Likewise.
14261 (lsdev): New module.
14262 (datetime): Use lib/arc/datetime.c on ARC.
14263 (part_dvh): New module.
14264 * grub-core/commands/arc/lsdev.c: New file.
14265 * grub-core/disk/arc/arcdisk.c: Likewise.
14266 * grub-core/kern/mips/arc/init.c: Likewise.
14267 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
14268 aligned addresses.
14269 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
14270 support.
14271 (grub_arch_dl_relocate_symbols): Likewise.
14272 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
14273 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
14274 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
14275 platforms.
14276 * grub-core/lib/arc/datetime.c: New file.
14277 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
14278 pci.h on non-loongson.
14279 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
14280 (grub_linux_boot): Set unused registers to 0.
14281 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
14282 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
14283 * grub-core/mmap/mips/uppermem.c: ...here.
14284 * grub-core/partmap/dvh.c: New file.
14285 * grub-core/term/arc/console.c: Likewise.
14286 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
14287 (grub_terminfo_set_current): Add terminal "arc".
14288 (grub_terminfo_readkey): Support ARC sequences.
14289 * include/grub/arc/arc.h: New file.
14290 * include/grub/arc/console.h: Likewise.
14291 * include/grub/disk.h (grub_disk_dev_id): Add
14292 GRUB_DISK_DEVICE_ARCDISK_ID.
14293 * include/grub/mips/arc/kernel.h: New file.
14294 * include/grub/mips/arc/memory.h: Likewise.
14295 * include/grub/mips/arc/time.h: Likewise.
14296 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
14297 * include/grub/mips/kernel.h (grub_halt): ... here.
14298 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
14299 here...
14300 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
14301 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
14302 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
14303 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
14304 proto.
14305 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
14306 from here ...
14307 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
14308 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
14309 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
14310 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
14311 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
14312 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
14313 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
14314 (grub_phys_addr_t): Moved from here ...
14315 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
14316 (grub_vtop): Moved from here ...
14317 * include/grub/mips/memory.h (grub_vtop): ... here.
14318 (grub_map_memory): Moved from here ...
14319 * include/grub/mips/memory.h (grub_map_memory): ... here.
14320 (grub_unmap_memory): Moved from here ...
14321 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
14322 (grub_machine_mmap_iterate): Moved from here ...
14323 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
14324 (grub_mmap_get_lower): Moved from here ...
14325 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
14326 (grub_mmap_get_upper): Moved from here ...
14327 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
14328 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
14329 here ...
14330 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
14331 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
14332 here ...
14333 * include/grub/mips/time.h (grub_get_rtc): ... here.
14334 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
14335 here ...
14336 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
14337 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
14338 here ...
14339 * include/grub/mips/time.h (grub_cpu_idle): ... here.
14340 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
14341 definition.
14342 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
14343 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
14344 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
14345 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
14346 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
14347 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
14348 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
14349 (GRUB_MACHINE_LINK_ADDR): Likewise.
14350 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
14351 to 6.
14352 * util/grub-install.in: Run dvhtool on ARC.
14353 * util/grub-mkimage.c (image_targets): Add mips-arc.
14354 (generate_image): Handle ECOFF output for mips-arc.
14355
14356 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
14357
14358 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
14359 blocks.
14360
14361 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
14362
14363 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
14364 after enabling port.
14365
14366 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
14367
14368 Skip incorrect USB devices.
14369
14370 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
14371 configcnt == 0.
14372 * include/grub/usb.h (grub_usb_err_t): New enum value
14373 GRUB_USB_ERR_BADDEVICE.
14374
14375 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
14376
14377 Fuloong video init support.
14378
14379 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
14380 well.
14381 (grub_vga_read_arx): New function.
14382 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
14383 definition.
14384 (framebuffer): New members io, mmioptr and mmiobase.
14385 (read_sis_cmd): New function.
14386 (write_sis_cmd): Likewise.
14387 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
14388 rather than 640x400.
14389 * grub-core/video/sis315_init.c: New file.
14390
14391 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14392
14393 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
14394 non-loongson.
14395 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
14396 to grub_dl_register_symbol.
14397
14398 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14399
14400 Fix compilation errors.
14401
14402 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
14403 potentially unused.
14404 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
14405 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
14406 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
14407 to loongson machines.
14408
14409 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14410
14411 Several FS mtime support.
14412
14413 * grub-core/fs/affs.c (grub_affs_time): New struct.
14414 (grub_affs_file): New field mtime.
14415 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
14416 type. Removed 'size'. New field 'di'. All users updated.
14417 (grub_affs_mount): Simplify checsum checking.
14418 (grub_affs_iterate_dir): New helper grub_affs_create_node.
14419 (grub_affs_dir): Handle mtime.
14420 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
14421 (grub_cpio_dir): Likewise.
14422 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
14423 (grub_hfs_filerec): New field mtime.
14424 (grub_hfs_dir): Handle mtime.
14425 (grub_hfs_mtime): New function.
14426 (grub_hfs_fs): Register grub_hfs_mtime.
14427 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
14428 (grub_iso9660_dir): New field mtime.
14429 (grub_fshelp_node): New field dirent.
14430 (iso9660_to_unixtime): New function.
14431 (iso9660_to_unixtime2): Likewise.
14432 (grub_iso9660_read_symlink): Use node->dirent.
14433 (grub_iso9660_iterate_dir): Likewise.
14434 (grub_iso9660_dir): Set mtime.
14435 (grub_iso9660_mtime): New function.
14436 (grub_iso9660_fs): Register grub_iso9660_mtime.
14437 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
14438 (grub_jfs_inode): New fields atime, ctime and mtime.
14439 (grub_jfs_dir): Set mtime.
14440 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
14441 * grub-core/fs/ntfs.c (list_file): Set mtime.
14442 (grub_ntfs_dir): Likewise.
14443 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
14444 (grub_reiserfs_iterate_dir): Set mtime.
14445 (grub_reiserfs_dir): Likewise.
14446 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
14447 (grub_fshelp_node): Likewise.
14448 (grub_sfs_iterate_dir): Set mtime.
14449 (grub_sfs_dir): Likewise.
14450 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
14451 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
14452 (grub_xfs_inode): New fields atime, mtime, ctime.
14453 (grub_xfs_dir): Set mtime.
14454 * include/grub/datetime.h (grub_datetime2unixtime): New function.
14455 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
14456 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
14457
14458 Support UDF symlinks.
14459
14460 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
14461 (grub_ufs_read_symlink): New function. All users updated.
14462
14463 Check amiga partmap checksum.
14464
14465 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
14466 (grub_amiga_partition): Likewise.
14467 (amiga_partition_map_checksum): New function.
14468 (amiga_partition_map_iterate): Check checksum.
14469
14470 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14471
14472 ROMFS support.
14473
14474 * Makefile.util.def (libgrubmods.a): Add romfs.
14475 * grub-core/Makefile.core.def (romfs): New module.
14476 * grub-core/fs/romfs.c: New file.
14477
14478 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14479
14480 Squashfs v4 support.
14481
14482 * Makefile.util.def (libgrubmods.a): Add squash4.
14483 * grub-core/Makefile.core.def (squash4): New module.
14484 * grub-core/fs/squash4.c: New file.
14485 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
14486 disk_input_start, disk_input.
14487 (get_byte): Handle disk_input.
14488 (grub_zlib_disk_read): New function.
14489 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
14490
14491 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14492 2011-05-15 Feiran Zheng <famcool@gmail.com>
14493
14494 * Makefile.util.def (libgrubmods.a): Add minix3.
14495 * grub-core/Makefile.core.def (minix3): New module.
14496 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
14497 (GRUB_MINIX_BSIZE): Removed.
14498 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
14499 (grub_minix_ino_t): New type.
14500 (grub_minix_le_to_cpu_ino): New macro.
14501 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
14502 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
14503 (grub_minix_data): New field block_size.
14504 (grub_minix_read_file): Handle 64-bit correctly.
14505 * grub-core/fs/minix3.c: New file.
14506
14507 2011-05-15 Tristan Gingold <gingold@free.fr>
14508 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
14509 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14510
14511 IA64 support.
14512
14513 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
14514 * configure.ac: Add ia64-efi target.
14515 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
14516 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
14517 * gentpl.py: Add ia64_efi platform.
14518 Rename x86_efi to efi and Add ia64-efi. All users updated.
14519 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
14520 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
14521 Remove kern/generic/rtc_get_time_ms.c on EFI.
14522 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
14523 kern/ia64/dl_helper.c on ia64-efi.
14524 Add kern/emu/cache.c on emu.
14525 (linux): Use on loader/ia64/efi/linux.c on ia64.
14526 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
14527 whether symbol is a function.
14528 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
14529 (grub_symbol): New field 'isfunc'.
14530 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
14531 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
14532 (grub_dl_load_segments): Place all sections into the same region.
14533 [__ia64__]: Create trampolines and got.
14534 [GRUB_MACHINE_EMU]: Call mprotect.
14535 (grub_dl_resolve_symbols): Resolve symbol type as well.
14536 [__ia64__]: Create function descriptors.
14537 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
14538 (grub_rtc_get_time_ms): ... this. Expressions simplified.
14539 (grub_get_rtc): New function.
14540 * grub-core/kern/emu/cache.c [__ia64__]: New file.
14541 * grub-core/kern/emu/cache.S: Renamed to ...
14542 * grub-core/kern/emu/cache_s.S: ... this.
14543 [__ia64__]: Add a nop.
14544 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
14545 [__ia64__]: New function.
14546 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
14547 * grub-core/kern/ia64/dl.c: New file.
14548 * grub-core/kern/ia64/dl_helper.c: Likewise.
14549 * grub-core/kern/ia64/efi/init.c: New file.
14550 * grub-core/kern/ia64/efi/startup.S: Likewise.
14551 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
14552 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
14553 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
14554 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
14555 * grub-core/loader/ia64/efi/linux.c: New file.
14556 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
14557 (GRUB_MOD_DEP): Likewise.
14558 (grub_dl) [__ia64__]: New fields got and tramp.
14559 (grub_dl): New field 'base'.
14560 (grub_dl_register_symbol): New argument isfunc. All users updated.
14561 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
14562 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
14563 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
14564 (grub_ia64_dl_get_tramp_got_size): New proto.
14565 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
14566 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
14567 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
14568 * include/grub/efi/api.h: Skip call wrappers on ia64.
14569 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
14570 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
14571 * include/grub/elf.h (ELF_ST_INFO): New definition.
14572 * include/grub/ia64/efi/kernel.h: New file.
14573 * include/grub/ia64/efi/memory.h: Likewise.
14574 * include/grub/ia64/efi/time.h: Likewise.
14575 * include/grub/ia64/kernel.h: Likewise.
14576 * include/grub/ia64/setjmp.h: Likewise (from glibc).
14577 * include/grub/ia64/time.h: New file.
14578 * include/grub/ia64/types.h: Likewise.
14579 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
14580 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
14581 New protos.
14582 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
14583 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
14584 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
14585 * util/grub-mkimage.c (image_target_desc): New field pe_target.
14586 All users updated.
14587 (EFI64_HEADER_SIZE): New definition. All users updated.
14588 (image_targets): Add ia64-efi.
14589 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
14590 jumpers_addr. All users updated.
14591 Create function descriptors.
14592 (count_funcs): New function.
14593 (unaligned_uint32): New struct.
14594 (MASK20): New definition.
14595 (MASK19): Likewise.
14596 (MASKF21): Likewise.
14597 (add_value_to_slot_20b): New function.
14598 (add_value_to_slot_21_real): Likewise.
14599 (add_value_to_slot_21): Likewise.
14600 (ia64_kernel_trampoline): New struct.
14601 (nopm): New variable.
14602 (jump): Likewise.
14603 (make_trampoline): New function.
14604 (relocate_addresses): Handle ia64.
14605 (make_reloc_section): Likewise.
14606 (load_image): Likewise.
14607
14608 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14609
14610 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
14611 warning. Move variables before code while on it.
14612
14613 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14614
14615 Fuloong support.
14616
14617 * configure.ac: Rename yeeloong platform to loongson. All users updated.
14618 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
14619 * grub-core/boot/mips/loongson/fuloong.S: New file.
14620 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
14621 Explicitly init CS5536.
14622 [FULOONG]: Don't use serial until CS5536 is available.
14623 Set GPIO based on dumps.
14624 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
14625 [FULOONG]: Handle GPIO and memory controller differences.
14626 Parse machine type in $a2.
14627 * grub-core/boot/mips/startup_raw.S: Determine and save the
14628 architecture.
14629 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
14630 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
14631 init on architecture type.
14632 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
14633 SIS315E. Don't init at_keyboard on fuloong.
14634 (grub_halt): Support Fuloong.
14635 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
14636 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
14637 (loongson_machtypes): New array.
14638 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
14639 type.
14640 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
14641 config. All users updated. Handle CS5536 serial.
14642 * grub-core/term/serial.c (grub_serial_register): Conditionalise
14643 default port on machine type. Register serial as inactive.
14644 * grub-core/video/sis315pro.c: New file.
14645 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
14646 definition.
14647 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
14648 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
14649 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
14650 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
14651 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
14652 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
14653 to ...
14654 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
14655 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
14656 definition.
14657 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
14658 (grub_arch_machine): New extern var.
14659 * include/grub/mips/loongson/serial.h
14660 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
14661 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
14662 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
14663 (GRUB_MACHINE_SERIAL_PORT0): ... this.
14664 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
14665 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
14666 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
14667 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
14668 * include/grub/term.h (grub_term_register_input_inactive): New inline
14669 function.
14670 (grub_term_register_output_inactive): Likewise.
14671 * include/grub/video.h (grub_video_driver_id): New value
14672 GRUB_VIDEO_DRIVER_SIS315PRO.
14673 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
14674 New field "names". All users updated.
14675 New field value IMAGE_FULOONG_FLASH.
14676 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
14677
14678 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
14679
14680 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
14681 and add some clarification.
14682
14683 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14684
14685 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
14686 platforms if kernel is compressed.
14687
14688 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14689
14690 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
14691 unused modules since currently referrence counter isn't reliable and
14692 there isn't much memory to recover there anyway.
14693
14694 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14695
14696 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
14697 rather than resetting it to allow modules to reference themselves
14698 in init.
14699
14700 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14701
14702 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
14703 counter on dependencies since grub_dl_unref already handles this.
14704
14705 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14706
14707 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
14708 on error if not already done.
14709
14710 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14711
14712 Fix few potential memory misusage.
14713
14714 * grub-core/font/font.c (load_font_index): Don't free char_index to
14715 avoid double free.
14716 (grub_font_load): Zero-fill font at alloc for safety.
14717 Close file on error.
14718 (free_font): Free bmp_idx.
14719
14720 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14721
14722 * docs/grub.texi (Installation): Fix several outdated claims.
14723
14724 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14725
14726 Handle module_license on windows.
14727
14728 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
14729 sections shifted.
14730 (insert_string): Make argument const char * instead of char *.
14731 (write_section_data): Handle long section names.
14732 Handle module_license.
14733
14734 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14735
14736 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
14737 handle class-free menuentries.
14738 (grub_normal_add_menu_entry): Add a check to be sure.
14739
14740 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
14741
14742 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
14743 PgUp and PgDown.
14744
14745 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14746
14747 * configure.ac: Bump version to 1.99.
14748
14749 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14750
14751 Give ATA device a bit more time on first try in order to allow disks
14752 to spin up.
14753
14754 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
14755 if dev->present is 1. Reset dev->present on failure.
14756 (grub_ata_device_initialize): Set dev->present to 1.
14757 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
14758 (grub_ata_device): New member 'present'.
14759
14760 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14761
14762 * util/grub-mkimage.c (generate_image): Update hash.
14763
14764 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14765
14766 Flush caches on DMA memory.
14767
14768 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
14769 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
14770 (grub_dma_free): Likewise.
14771 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
14772
14773 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14774
14775 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
14776 to avoid asm treating ld and sd as macros.
14777
14778 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14779
14780 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
14781 decompressor.
14782
14783 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14784
14785 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
14786 grub_decompress_core since later would fail if grub_decompress_core
14787 is too far.
14788
14789 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14790
14791 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
14792 R_MIPS_JALR since it's used by newer compiler.
14793
14794 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
14795
14796 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
14797
14798 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14799
14800 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
14801 file_path to 0 for surety.
14802 (grub_chainloader_boot): Set exit_data to NULL.
14803 Unset the loader once done.
14804 (grub_cmd_chainloader): Fix confusing error message if file is empty.
14805
14806 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14807
14808 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
14809 unknown key into a dprintf.
14810
14811 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14812
14813 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
14814 on first non-existant partition.
14815
14816 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14817
14818 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
14819 openning fails.
14820 Reported by: Mark Korenberg.
14821
14822 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14823
14824 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
14825 overflow.
14826
14827 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14828
14829 * util/grub-mkimage.c (main): Explicitely flush and sync the output
14830 before closing to ensure that it will be readable by grub-setup.
14831
14832 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14833
14834 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
14835 (devpath_1): Use MAKE_PIWG_PATH.
14836 (devpath_2): Likewise.
14837 (devpath_3): Likewise.
14838 (devpath_4): Likewise.
14839 (devpath_5): Likewise.
14840 (devpath_6): Likewise.
14841
14842 The appleldr.mod was checked that to be binary identical to previous
14843 version.
14844
14845 2011-05-05 Zach <mikezackles>
14846
14847 Support 2010 Macbooks.
14848
14849 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
14850 (devs): Add devpath_6.
14851
14852 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14853
14854 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
14855 /dev/random. /dev/urandom is good enough for our purposes (salting).
14856
14857 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14858
14859 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
14860
14861 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14862
14863 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
14864 hexadecimal.
14865
14866 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14867
14868 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
14869 and not 0 on failure.
14870
14871 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
14872
14873 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
14874 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
14875 disk; otherwise grub_fs_probe will not fall back to the next
14876 filesystem.
14877 (grub_pxefs_open): Likewise, for consistency.
14878 Reported and tested by: Ezekiel Grave.
14879
14880 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
14881
14882 * tests/partmap_test.in: Don't hardcode path to parted.
14883 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
14884
14885 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
14886
14887 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
14888 of `ls' to find out which devices are available.
14889
14890 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14891
14892 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
14893 than source address for efi mmap buffer.
14894
14895 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14896
14897 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
14898 wrong action on non-detecting the magic.
14899
14900 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14901
14902 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
14903 already supplied by another part of the module (fixes compilation on
14904 FreeBSD).
14905
14906 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
14907
14908 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
14909 match the one used by mdadm.
14910
14911 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
14912
14913 * po/README: Add instructions for creating po/LINGUAS.
14914
14915 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
14916
14917 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
14918 #551428.
14919
14920 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
14921 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
14922 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
14923 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
14924 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
14925 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
14926 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
14927 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
14928 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
14929 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
14930 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
14931 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
14932 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
14933 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
14934 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
14935 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
14936 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
14937 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
14938 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
14939 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
14940 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
14941 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
14942
14943 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
14944
14945 * grub-core/kern/emu/getroot.c
14946 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
14947 test that was incorrectly reintroduced in r3214.
14948 Reported by: Ian Dall. Fixes Savannah bug #33133.
14949
14950 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
14951
14952 Fix stack pointer handling in 16-bit relocator.
14953
14954 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
14955 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
14956 Fixes Ubuntu bug #683904.
14957
14958 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
14959
14960 * configure.ac: Bump version to 1.99~rc2.
14961
14962 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
14963
14964 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
14965 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
14966 * grub-core/lib/x86_64/setjmp.S: Likewise.
14967 * grub-core/lib/mips/setjmp.S: Likewise.
14968 * grub-core/lib/powerpc/setjmp.S: Likewise.
14969 * grub-core/lib/sparc64/setjmp.S: Likewise.
14970
14971 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
14972
14973 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
14974 * grub-core/lib/efi/datetime.c: Likewise.
14975
14976 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14977
14978 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
14979 New function.
14980 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
14981 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
14982 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
14983
14984 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14985
14986 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
14987 bitmap.
14988 (grub_gfxterm_term_init): Likewise.
14989
14990 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14991
14992 Take into account the decorations the computing menu entry width.
14993
14994 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
14995 (grub_gfxmenu_create_box): Register get_border_width.
14996 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
14997 if available.
14998 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
14999 get_border_width.
15000
15001 2011-04-18 Endres Puschner <code@e7p.de>
15002
15003 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
15004 Don't skip first class.
15005
15006 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
15007
15008 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
15009 chunks.
15010 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
15011
15012 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
15013
15014 Complete 64-bit division support.
15015
15016 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
15017 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
15018 * include/grub/misc.h (grub_divmod64): Rename to ...
15019 (grub_divmod64_full): ... this.
15020 (grub_divmod64): New inline function.
15021
15022 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
15023
15024 * util/grub-mkimage.c (generate_image): Add forgotten comma.
15025
15026 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
15027
15028 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
15029 performing the necessary test.
15030
15031 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
15032
15033 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
15034 (kfreebsd.elf): Likewise.
15035 (pc-chainloader.elf): Likewise.
15036 (ntldr.elf): Likewise.
15037
15038 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
15039
15040 Identify RAID by its UUID rather than (guessed) name.
15041
15042 * grub-core/disk/raid.c (ascii2hex): New function.
15043 (grub_raid_open): Accept mduuid/%s specification.
15044 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
15045 (get_mdadm_uuid): ... this.
15046 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
15047
15048 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
15049
15050 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
15051 to negative size.
15052
15053 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
15054
15055 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
15056 btrfs subvolume.
15057 * util/grub.d/20_linux_xen.in: Likewise.
15058
15059 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
15060
15061 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
15062 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
15063
15064 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
15065 Build a list of relevant visible mounts using the mnt_id and
15066 parent_mnt_id fields, and then scan that list at the end.
15067
15068 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
15069
15070 * docs/grub.texi (normal): New section.
15071 (normal_exit): New section.
15072 (Embedded configuration): Add reference to normal.
15073 (GRUB only offers a rescue shell): Likewise.
15074 * docs/grub-dev.texi (Error Handling): Fix typo.
15075
15076 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
15077
15078 * NEWS: Drop obsolete entry about probe-only btrfs support.
15079
15080 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
15081
15082 * util/import_gcry.py: Fix typo.
15083
15084 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
15085
15086 * NEWS: Add btrfs support.
15087
15088 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
15089 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
15090
15091 BtrFS support. Written by me (Vladimir) with important bugfixes and
15092 even more important testing by Colin.
15093
15094 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
15095 * grub-core/Makefile.core.def (btrfs): Add crc.c.
15096 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
15097 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
15098 mem_input_off and mem_input. All users updated to accept in-RAM input.
15099 (gzio_seek): New function.
15100 (test_zlib_header): Likewise.
15101 (grub_gzio_read): Likewise.
15102 (grub_zlib_decompress): Likewise.
15103 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
15104 Accept partial and non-virtual mounts.
15105 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
15106 avoid receiving /dev/dm-X as device.
15107 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
15108 Handle bind and partial mounts.
15109 * grub-core/lib/crc.c: New file.
15110 * include/grub/deflate.h: Likewise.
15111 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
15112 proto.
15113 * include/grub/lib/crc.h: New file.
15114
15115 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
15116
15117 Implement automatic module license checking according to new GNU
15118 guidelines.
15119
15120 * grub-core/kern/dl.c (grub_dl_check_license): New function.
15121 (grub_dl_load_core): Use grub_dl_check_license.
15122 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
15123 (GRUB_MOD_LICENSE): Likewise.
15124 (GRUB_MOD_DUAL_LICENSE): Likewise.
15125 All modules updated.
15126
15127 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
15128
15129 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
15130 reserved_first_sector to 1. btrfs reserves plenty of space for boot
15131 loaders.
15132 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
15133
15134 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
15135
15136 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
15137
15138 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
15139
15140 * util/grub-fstest.c (read_file): Report GRUB error if file opening
15141 failed.
15142
15143 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
15144
15145 * grub-core/kern/file.c (grub_file_open): Don't take into account the
15146 parenthesis in the middle of the filename.
15147
15148 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15149
15150 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
15151 rather than trying to put initrd way too high.
15152 Reported by: Ryan Lortie <desrt@desrt.ca>
15153
15154 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15155
15156 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
15157 improperly removed string.
15158
15159 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15160
15161 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
15162 is_disk.
15163 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
15164 (open_device) Likewise.
15165 (grub_util_biosdisk_close): Likewise.
15166 Reported by: Mark Korenberg.
15167
15168 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
15169
15170 * util/grub-mkconfig_lib.in: Add missing quotes.
15171
15172 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
15173
15174 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
15175 is NULL.
15176
15177 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15178
15179 Dynamically count the number of lines for the lower banner.
15180
15181 * grub-core/normal/menu_entry.c (per_term_screen): New member
15182 num_entries.
15183 (print_down): Use num_entries.
15184 (update_screen): Likewise.
15185 (grub_menu_entry_run): Set num_entries.
15186 * grub-core/normal/menu_text.c (menu_viewer_data): New member
15187 num_entries.
15188 (grub_print_message_indented): Move real part to ...
15189 (grub_print_message_indented_real): ... here. Additional argument
15190 dry_run.
15191 (draw_border): Additional argument num_entries.
15192 (print_message): Additional argument dry_run.
15193 (print_entries): Receive menu viewer data.
15194 (grub_menu_init_page): New argment num_entries.
15195 (menu_text_set_chosen_entry): Use num_entries.
15196 (grub_menu_try_text): Likewise.
15197 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
15198 All users updated.
15199 (grub_ucs4_count_lines): New function.
15200 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
15201 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
15202 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
15203 (grub_term_border_height): Likewise.
15204 (grub_term_num_entries): Likewise.
15205
15206 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15207
15208 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
15209 Remove now unused string.
15210
15211 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
15212
15213 * docs/grub-dev.texi (Finding your way around): Update for 1.99
15214 build system.
15215 (Getting started): GRUB is developed in Bazaar now, not Subversion.
15216
15217 (Comment): Fix typo.
15218 (Getting started): General copy-editing.
15219 (Typical Development Experience): Likewise.
15220 (Error Handling): Likewise.
15221 (Video API): Likewise.
15222
15223 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
15224
15225 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
15226 throughout.
15227
15228 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15229
15230 * util/grub-mkimage.c (main): Handle special naming of yeeloong
15231 directory.
15232
15233 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
15234
15235 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
15236 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
15237 "development".
15238
15239 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15240
15241 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
15242 grub_strcpy since the lines aren't necessarily 0-terminated.
15243
15244 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15245
15246 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
15247 root on legacy.
15248
15249 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15250
15251 * grub-core/commands/probe.c (options): Argument to set isn't optional.
15252 (GRUB_MOD_INIT): DEVICE isn't optional.
15253
15254 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15255
15256 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
15257 word on new line if it's too long anyway. Fixes a hang.
15258
15259 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15260
15261 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
15262 const.
15263 * util/grub-setup.c (main): Reuse md device name if available.
15264 * util/raid.c (grub_util_raid_getmembers): Receive device name and
15265 not GRUB name as argument.
15266 Based on patch by: Florian Wagner <fwagner>.
15267
15268 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15269
15270 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
15271 Place mbi on low memory for better compatibility.
15272
15273 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15274
15275 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
15276
15277 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15278 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
15279
15280 * autogen.sh: Ensure that collate and ctype locale is C.
15281 * conf/Makefile.common: Likewise.
15282
15283 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15284
15285 * grub-core/normal/menu.c: Add missing include.
15286
15287 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15288
15289 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
15290
15291 2011-04-08 Martin Zuther <mzuther@mzuther.de>
15292
15293 * util/grub-mkconfig.in: Ignore emacsen backup.
15294
15295 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15296
15297 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
15298 on open.
15299 (grub_util_biosdisk_close): Likewise.
15300
15301 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15302
15303 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
15304 const attribute and use grub_isdigit.
15305
15306 2011-04-06 Andrey <dev_null@ukr.net>
15307
15308 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
15309 gcc warning.
15310
15311 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15312
15313 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
15314 useful grub_dprintf's.
15315
15316 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15317
15318 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
15319
15320 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15321
15322 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
15323
15324 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15325
15326 Output errors if theme loading failed.
15327
15328 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
15329 grub_gfxterm_fullscreen on error paths to ...
15330 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
15331 theme loading error.
15332
15333 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15334
15335 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
15336 space for older compilers.
15337 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
15338
15339 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15340
15341 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
15342 and report them as not RAID members since they are useless for GRUB.
15343 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15344
15345 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15346
15347 Increase LVM implementation robustness in order not to crash on
15348 configurations like pvmove. Previously code assumed that in some places
15349 only lvs or only pvs are used whereas it seems that they are used
15350 interchangeably.
15351
15352 * grub-core/disk/lvm.c (read_node): New function.
15353 (read_lv): Use read_node.
15354 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
15355 Match volumes only at the end when all lvs are found. Take both
15356 pvs (first) and lvs (second) into account.
15357 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
15358 mirror_* into node_*. All users updated.
15359 (grub_lvm_stripe): Merge this ...
15360 (grub_lvm_mirror): ... and this ...
15361 (grub_lvm_node): ... into this. All users updated.
15362
15363 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15364
15365 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
15366 of function to allow further scanning for LVMs.
15367
15368 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15369
15370 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
15371 on failed seek as it breaks open fd reusage.
15372
15373 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15374
15375 * util/grub-install.in: Add a recommendation to use --recheck before
15376 reporting bugs.
15377
15378 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15379
15380 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
15381 are obtained.
15382
15383 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15384
15385 GRUB developper manual based on existing Internals section and
15386 contributions by the various authors with active copyright assignment.
15387
15388 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
15389 * docs/font_char_metrics.png: New file.
15390 * docs/font_char_metrics.txt: Likewise.
15391 * docs/grub-dev.texi: Likewise.
15392 * docs/grub.texi (Internals): Move from here ...
15393 * docs/grub-dev.texi: ... here.
15394
15395 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
15396
15397 Store the loopback device as data on loopback grub_disk structures,
15398 rather than the file it points to. This fixes use of freed memory
15399 if an existing loopback device is replaced.
15400
15401 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
15402 disk->data, not dev->file.
15403 (grub_loopback_read): Adjust file assignment to match.
15404 Fixes Ubuntu bug #742967.
15405
15406 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
15407
15408 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
15409 when replacing an existing device.
15410
15411 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
15412
15413 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
15414 memory corruptions.
15415
15416 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
15417 unsigned.
15418 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
15419 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
15420 (grub_jfs_read_inode): Likewise.
15421 (grub_jfs_opendir): Likewise. Remove now useless casts.
15422 (grub_jfs_getent): Likewise.
15423 Make ino a grub_uint32_t rather than int.
15424 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
15425 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
15426 division and module with bit operations.
15427 (grub_jfs_find_file): Make ino a grub_uint32_t.
15428 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
15429
15430 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
15431
15432 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
15433 warning. (This was in fact always initialised before use, but GCC
15434 wasn't smart enough to prove that.)
15435 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
15436
15437 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
15438
15439 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
15440 stack alignment.
15441 (efi_wrap_1): Likewise.
15442 (efi_wrap_2): Likewise.
15443 (efi_wrap_3): Likewise.
15444 (efi_wrap_4): Likewise.
15445 (efi_wrap_5): Likewise.
15446 (efi_wrap_6): Likewise.
15447 (efi_wrap_10): Likewise.
15448 Based on information by: Red Hat/Peter Jones.
15449
15450 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
15451
15452 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
15453 set-but-not-used variable.
15454
15455 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
15456
15457 * docs/grub.texi (Simple configuration): Be more explicit about
15458 GRUB_DEFAULT, and add an example.
15459 Reported by: Leslie Rhorer.
15460
15461 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
15462
15463 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
15464 shell".
15465
15466 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
15467
15468 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
15469 * util/grub.d/20_linux_xen.in: Likewise.
15470
15471 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
15472
15473 * util/grub.d/10_linux.in: Try alternative config filenames where
15474 we parse config file.
15475 * util/grub.d/20_linux_xen.in: Likewise.
15476
15477 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
15478
15479 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
15480 * util/grub.d/20_linux_xen.in: Likewise.
15481
15482 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
15483
15484 * grub-core/disk/raid.c (insert_array): Add few potentially
15485 useful grub_util_info.
15486 (grub_raid_register): Likewise.
15487
15488 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
15489
15490 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
15491 Preserve partition number in mdadm code path.
15492
15493 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
15494
15495 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
15496 few potentially useful grub_util_info.
15497
15498 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
15499
15500 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
15501
15502 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
15503
15504 * docs/grub.texi (default): Use @example rather than nested
15505 itemized lists to avoid breaking gendocs.
15506
15507 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
15508
15509 * docs/grub.texi (Future): Update.
15510
15511 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
15512
15513 * docs/grub.texi (Environment): New chapter.
15514 (Changes from GRUB Legacy): Link to "Environment block" section for
15515 details of limitations.
15516 (Simple configuration): Likewise. Link to documentation of gfxmode
15517 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
15518 respectively.
15519 (Shell-like scripting): Note that normal variables are stored in the
15520 environment.
15521 (gettext): Link to documentation of lang and locale_dir.
15522 (list_env): New section.
15523 (load_env): New section.
15524 (save_env): New section.
15525
15526 (Reporting bugs): Fix typo.
15527
15528 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
15529
15530 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
15531 the example.
15532
15533 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
15534
15535 * grub-core/term/at_keyboard.c (set_scancodes)
15536 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
15537
15538 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
15539
15540 * docs/grub.texi (Menu-specific commands): Remove some semantics
15541 that were true in GRUB Legacy but not in GRUB 2.
15542 (submenu): New section.
15543 (false): New section.
15544 (read): New section.
15545 (true): New section.
15546
15547 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
15548
15549 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
15550
15551 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
15552
15553 * docs/grub.texi (Simple configuration): Explain some of the
15554 current limitations of grub-mkconfig.
15555 Reported by: Leslie Rhorer.
15556
15557 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15558
15559 Old macs search for boot.efi rather than for bootia32.efi.
15560
15561 * util/grub-install.in: Copy bootia32.efi to boot.efi.
15562 * util/grub-mkrescue.in: Likewise.
15563 Suggested by: Peter Jones.
15564
15565 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15566
15567 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
15568
15569 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15570
15571 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
15572 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
15573 (grub_lvm_mirror): New struct.
15574 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
15575 (grub_lvm_iterate): Iterate only visible volumes.
15576 (grub_lvm_read): Factor out to ..
15577 (read_lv): ... this. Support mirrors.
15578 (grub_lvm_read): New wrapper function.
15579 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
15580 stripped or mirrored.
15581
15582 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15583
15584 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
15585
15586 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
15587
15588 * docs/grub.texi (loopback): New section.
15589
15590 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
15591
15592 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
15593 removed -p option.
15594
15595 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
15596
15597 * docs/grub.texi (BIOS installation): New section, partly based on
15598 previous text in other sections.
15599 (Installing GRUB using grub-install): Replace BIOS discussion with a
15600 cross-reference.
15601 (Images): Likewise.
15602
15603 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15604
15605 * grub-core/kern/emu/hostdisk.c (find_partition_start)
15606 [HAVE_DIOCGDINFO]: Add safety checks.
15607
15608 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15609
15610 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
15611 per default compiled in kernel and prior to 8.0 isn't shipped at all.
15612
15613 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
15614
15615 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
15616 real_sb->size is zero (e.g. RAID-0), get the disk size from
15617 real_sb->data_size instead.
15618 Fixes Ubuntu bug #743136.
15619
15620 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15621
15622 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
15623 printf clauses for printing size and start.
15624
15625 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15626
15627 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
15628 Reported and tested by: Timothy Nikkel.
15629
15630 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15631
15632 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
15633 (dirty_region_add_real): ... this.
15634 (dirty_region_add): Don't discard margin refresh when performing
15635 scheduled repaint.
15636
15637 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
15638
15639 * grub-core/lib/relocator.c (allocate_regstart)
15640 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
15641 terminals are capabple of malloc-free operation.
15642 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
15643 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
15644
15645 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
15646
15647 * util/grub-setup.c: Copy the partition table zone if floppy support
15648 is disabled, even if no partition table is found.
15649
15650 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
15651 during POST if an invalid partition table is contained in the PBR
15652 of the active partition when GRUB is installed to a partition.
15653
15654 2011-03-28 Colin Watson <cjwatson@debian.org>
15655
15656 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
15657 comment.
15658
15659 2011-03-28 Colin Watson <cjwatson@debian.org>
15660
15661 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
15662 to be specific about what kind of RAID device we're scanning for.
15663
15664 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
15665
15666 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
15667 return freed string.
15668
15669 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15670
15671 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
15672
15673 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15674
15675 Use libgeom on FreeBSD to detect partitions.
15676
15677 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
15678 (grub-mkrelpath): Likewise.
15679 (grub-script-check): Likewise.
15680 (grub-editenv): Likewise.
15681 (grub-mkpasswd-pbkdf2): Likewise.
15682 (grub-fstest): Likewise.
15683 (grub-mkfont): Likewise.
15684 (grub-mkdevicemap): Likewise.
15685 (grub-probe): Likewise.
15686 (grub-setup): Likewise.
15687 (grub-ofpathname): Likewise.
15688 (grub-mklayout): Likewise.
15689 (example_unit_test): Likewise.
15690 (grub-menulst2cfg): Likewise.
15691 * grub-core/Makefile.core.def (grub-emu): Likewise.
15692 (grub-emu-lite): Likewise.
15693 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
15694 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
15695 define HAVE_DIOCGDINFO.
15696 (follow_geom_up) [FreeBSD]: New function.
15697 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
15698 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
15699 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
15700 unconditionally of HAVE_DIOCGDINFO.
15701
15702 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15703
15704 Fix FreeBSD compilation problem.
15705
15706 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
15707 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
15708
15709 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
15710
15711 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
15712 Switch back to page zero before loading a kernel, since some kernel
15713 drivers expect that.
15714 Thanks to: Felix Kuehling.
15715
15716 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
15717
15718 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
15719 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
15720 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
15721
15722 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
15723
15724 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
15725 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
15726
15727 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
15728
15729 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
15730 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
15731 malloc is disabled.
15732
15733 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
15734
15735 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
15736 for modules headers when counting the needed allocation size.
15737
15738 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15739
15740 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
15741 if no ASCII character is found to prevent crash.
15742
15743 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
15744
15745 * grub-core/video/bitmap.c (match_extension): Ignore case.
15746
15747 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15748
15749 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
15750
15751 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15752
15753 * grub-core/script/parser.y: Declare "time" as valid argument.
15754
15755 2011-03-23 Peter Jones <pjones@redhat.com>
15756
15757 Fix incorrect assert failure reporting.
15758
15759 * grub-core/tests/example_functional_test.c (example_test): Add
15760 a failure comment.
15761 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
15762 (failure_start): ...this. Check that malloc succeeded.
15763 Don't call xvasprintf. Return failure struct.
15764 (failure_append_vtext): New function.
15765 (failure_append_text): Likewise.
15766 (add_failure): Likewise.
15767 (grub_test_assert_helper): Likewise.
15768 * include/grub/test.h (grub_test_assert_helper): New declaration.
15769 (grub_test_assert): Macro rewritten.
15770
15771 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15772
15773 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
15774
15775 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15776
15777 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
15778
15779 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15780
15781 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
15782 into GRUB-style one.
15783
15784 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15785
15786 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
15787 error and not grub_errno.
15788 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
15789
15790 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15791
15792 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
15793 GRUB_USB_SPEED_NONE in case of failure and not the error code.
15794
15795 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15796
15797 * grub-core/efiemu/i386/pc/cfgtables.c
15798 (grub_machine_efiemu_init_tables): Make declaration a prototype.
15799 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
15800 (grub_xnu_unlock): Likewise.
15801 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
15802
15803 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15804
15805 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
15806 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
15807 * grub-core/commands/hashsum.c (aliases): Likewise.
15808 * grub-core/commands/setpci.c (pci_registers): Likewise.
15809 * grub-core/disk/usbms.c (attach_hook): Likewise.
15810 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
15811 (zio_checksum_table): Likewise.
15812 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
15813 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
15814 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
15815 * grub-core/lib/relocator.c (leftovers): Likewise.
15816 (extra_blocks): Likewise.
15817 * grub-core/loader/i386/bsd.c (relocator): Likewise.
15818 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
15819 (modules_last): Likewise.
15820 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
15821 (devices): Likewise.
15822 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
15823 (modules_last): Likewise.
15824 * grub-core/normal/auth.c (users): Likewise.
15825 * grub-core/normal/context.c (initial_menu): Likewise.
15826 (current_menu): Likewise.
15827 * grub-core/normal/crypto.c (crypto_specs): Likewise.
15828 * grub-core/term/serial.c (grub_serial_ports): Likewise.
15829 (grub_serial_terminfo_input_template): Likewise.
15830 (grub_serial_terminfo_output_template): Likewise.
15831 (grub_serial_terminfo_input): Likewise.
15832 (grub_serial_terminfo_output): Likewise.
15833 (registered): Likewise.
15834 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
15835
15836 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15837
15838 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
15839 grub_video_mode_type_t.
15840 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
15841 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
15842 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
15843
15844 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
15845
15846 * util/grub-install.in: Correct the x86-64 name as x86_64.
15847
15848 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
15849
15850 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
15851 initial chunk read from the kernel always includes GRUB's multiboot
15852 header, which is now outside the first sector.
15853
15854 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
15855
15856 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
15857 cached mmap_size, so that this works correctly when called multiple
15858 times.
15859 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
15860
15861 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
15862
15863 * docs/grub.texi (Simple configuration): Tidy up formatting.
15864
15865 2011-03-07 Szymon Janc <szymon@janc.net.pl>
15866
15867 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
15868 Set-but-not-used variable removed.
15869
15870 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
15871
15872 Workaround yet another IEEE1275 bug.
15873
15874 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
15875 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
15876 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
15877 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
15878 is set.
15879 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
15880 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
15881
15882 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
15883
15884 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
15885 error.
15886
15887 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
15888
15889 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
15890 empty, since in that case we can only generate either nothing or a
15891 syntactically invalid configuration file.
15892 Reported by: Michal Suchanek. Fixes Debian bug #612898.
15893
15894 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
15895
15896 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
15897 (Making a GRUB bootable CD-ROM): Likewise.
15898 (Invoking grub-mkrescue): New section.
15899 Reported by: Yann Dirson. Fixes Debian bug #612585.
15900
15901 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
15902
15903 * util/grub-install.in: Remove unnecessary brackets from tr
15904 arguments.
15905 * util/grub.d/10_hurd.in: Likewise.
15906 * util/grub.d/10_kfreebsd.in: Likewise.
15907 * util/grub.d/10_linux.in: Likewise.
15908 * util/grub.d/20_linux_xen.in: Likewise.
15909 Reported by: Jamie Heilman. Fixes Debian bug #612564.
15910
15911 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
15912
15913 * include/grub/file.h (not_easly_seekable): Rename to ...
15914 (not_easily_seekable): ... this. Update all users.
15915
15916 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
15917
15918 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
15919 grub-mkrescue.
15920
15921 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
15922
15923 * util/grub-mkimage.c (generate_image): Refuse to create the images
15924 bigger than the actual flash (512K) in Loongson machines. 512K is also
15925 the biggest chip supported by them.
15926
15927 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15928
15929 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
15930
15931 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
15932
15933 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
15934 super_offset field.
15935
15936 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15937
15938 * util/grub-install.in: Ignore install device on platforms
15939 where it doesn't make sense. Always use UUIDs except on pc, efi and
15940 sparc64.
15941 Reported by: Daniel Kahn Gillmor.
15942
15943 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15944
15945 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
15946
15947 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15948
15949 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
15950 (iterate_real): Don't rely on partition being non-NULL.
15951
15952 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15953
15954 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
15955 supported platforms. Put a compile time assert for this rather than
15956 generate a warning with 32-bit shift.
15957
15958 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15959
15960 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
15961 logical expression more readable.
15962
15963 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15964
15965 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
15966 even if some elements have a name.
15967 Reported by: Alexander GQ Gerasiov.
15968
15969 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
15970
15971 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
15972 path unreadable if `grub-probe -t abstraction' fails, for example if
15973 memberlist fails on an LVM volume group.
15974 Reported by: Darius Jahandarie.
15975
15976 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
15977
15978 * docs/grub.texi (Simple configuration): Document
15979 GRUB_PRELOAD_MODULES.
15980
15981 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
15982
15983 * .bzrignore: Remove nonexistent grub-pbkdf2.
15984
15985 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
15986
15987 * configure.ac: Bump version to 1.99~rc1.
15988
15989 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
15990
15991 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
15992 for safety.
15993
15994 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15995
15996 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
15997 module.
15998
15999 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
16000
16001 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
16002
16003 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
16004
16005 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
16006 diskdevid.
16007
16008 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
16009
16010 Fix compilation on cygwin.
16011
16012 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
16013 -R .drectve on cygwin.
16014 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
16015 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
16016 (COND_CYGWIN): New condition.
16017 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
16018 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
16019 not @TARGET_OBJ2ELF@.
16020 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
16021 type to determine whether aux is to be used.
16022
16023 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16024
16025 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
16026 realpath'ed device string.
16027 Handle floppy (somewhat).
16028 Issue error in unknown case rather than garbage.
16029 Reported by: Axel Beckert.
16030
16031 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16032
16033 * util/grub.d/00_header.in (load_video): Handle the case when no video
16034 drivers available.
16035 Thanks to: Axel Beckert.
16036
16037 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16038
16039 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
16040 variable. Fixes problem on big endian platforms.
16041
16042 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16043
16044 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
16045 It doesn't work well there.
16046
16047 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16048
16049 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
16050 warning.
16051 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
16052 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
16053 counter.
16054
16055 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16056
16057 Use alias->path rather than buggy "canon".
16058
16059 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
16060 (ofdisk_hash_add): New argument curcan. All users updated.
16061
16062 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
16063
16064 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
16065
16066 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
16067
16068 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
16069 loadmask before doing any calculations. Use correct type for offset.
16070 (grub_linux_load64): Likewise.
16071
16072 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
16073
16074 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
16075 with NULL.
16076 (console_grub_equivalences_unshift): Likewise.
16077 Reported by: Daniel Dehennin.
16078
16079 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
16080
16081 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
16082 (set_env_limn_ro): Likewise.
16083 (GRUB_MOD_INIT): Likewise.
16084 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
16085 ARRAY_SIZE while on it.
16086 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
16087 * grub-core/normal/context.c (grub_env_export): Move from here ...
16088 * grub-core/kern/env.c (grub_env_export): ... here.
16089 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
16090 prefix.
16091 * grub-core/kern/main.c (grub_main): Export root and prefix.
16092 * include/grub/env.h (grub_env_export): Export.
16093 Reported by: Seth Goldberg.
16094
16095 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
16096
16097 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
16098 Take into account space used by ELF sections and multiboot palette.
16099 Reported by: Grégoire Sutre.
16100
16101 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
16102
16103 * BUGS: New file.
16104
16105 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16106
16107 Pass more appropriate video id to Linux.
16108
16109 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
16110 grub_video_get_driver_id and variable gfxpayloadforcelfb to
16111 fill have_vga.
16112 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
16113 shift params->lfb_size.
16114 * include/grub/i386/linux.h: Make an enume out of have_vga values.
16115
16116 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16117
16118 * util/grub-menulst2cfg.c: Add missing include of misc.h.
16119
16120 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16121
16122 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
16123 separator and pass bootpath/devid even if only one of them is available.
16124 Reported by: Seth Goldberg.
16125
16126 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16127
16128 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
16129 implementations bug on them.
16130
16131 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
16132 memory.
16133 (filter_memory_map): Likewise.
16134
16135 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16136
16137 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
16138 Reported by: nebuchadnezzar.
16139
16140 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16141
16142 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
16143 Reported by: nebuchadnezzar.
16144
16145 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16146
16147 Submenu default support.
16148
16149 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
16150 auto_boot. All users updated.
16151 Declared static.
16152 Handle chosen and default with submenus.
16153 (grub_menu_execute_with_fallback): Declared static.
16154 Don't notify failure if autobooted. Upper level does it.
16155 (menuentry_eq): New function.
16156 (get_entry_number): Use menuentry_eq.
16157 (show_menu): New parameter "autobooted". All users updated.
16158 (grub_show_menu): Likewise.
16159 * include/grub/normal.h (grub_show_menu): Likewise.
16160 * include/grub/menu.h (grub_menu_execute_entry): Removed.
16161 (grub_menu_execute_with_fallback): Likewise.
16162
16163 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16164
16165 * util/grub-mklayout.c (usage): Update help text.
16166
16167 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16168
16169 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
16170
16171 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16172
16173 * util/grub-menulst2cfg.c (main): Trim the line.
16174
16175 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16176
16177 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
16178 (grub_machine_init): Don't check amount of low memory as reportedly
16179 INT 12h can be broken and if low memory is too low we wouldn't have
16180 gotten into grub_machine_init anyway.
16181
16182 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16183
16184 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
16185 (grub_machine_mmap_iterate): Take low memory into account
16186
16187 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16188
16189 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
16190 badfs.
16191 Reported by: TiCPU.
16192
16193 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16194
16195 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
16196 members errors.
16197
16198 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
16199
16200 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
16201 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
16202
16203 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
16204
16205 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
16206 openbsd and netbsd types being in part_bsd module.
16207
16208 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16209
16210 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
16211 (_FILE_OFFSET_BITS): Likewise.
16212 Reported by: Seth Goldberg.
16213
16214 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
16215
16216 * configure.ac: Check for libdevmapper header.
16217
16218 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16219
16220 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
16221 avoid aliasing.
16222 (fzap_lookup): Likewise.
16223 (dnode_get): Likewise.
16224 (make_mdn): Likewise.
16225 (zfs_mount): Likewise.
16226 (fzap_iterate): Use temporary pointer to avoid aliasing.
16227 (grub_zfs_read): Likewise.
16228 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
16229 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
16230 pointers to avoid aliasing.
16231 (grub_cmd_xnu_kernel64): Likewise.
16232 (grub_xnu_load_driver): Likewise.
16233
16234 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16235
16236 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
16237 aliasing warning.
16238 (grub_cmd_terminal_output): Likewise.
16239 Reported and tested by: Grégoire Sutre.
16240
16241 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16242
16243 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
16244 warning.
16245 Reported and tested by: Grégoire Sutre.
16246
16247 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16248
16249 * configure.ac: Do CPU substitution even if it's specified explicitly.
16250 Reported and tested by: Alain Greppin.
16251
16252 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16253
16254 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
16255 Reported and tested by: Alain Greppin.
16256
16257 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16258
16259 Satisfy some bison versions need for inttypes.h.
16260
16261 * grub-core/lib/posix_wrap/inttypes.h: New file.
16262 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
16263 (int16_t): Likewise.
16264 (int32_t): Likewise.
16265 (int64_t): Likewise.
16266 Reported and tested by: Alain Greppin.
16267
16268 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16269
16270 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
16271 Silence spurious warning.
16272 Reported and tested by: Alain Greppin.
16273
16274 2011-01-07 Szymon Janc <szymon@janc.net.pl>
16275
16276 * docs/grub.texi (Support automatic decompression): Update with xz
16277 decompression support.
16278
16279 2011-01-07 Szymon Janc <szymon@janc.net.pl>
16280
16281 Improve loaders' kernel command line handling.
16282
16283 * grub-core/lib/cmdline.c: New file.
16284 * include/grub/lib/cmdline.h: Likewise.
16285 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
16286 grub_create_loader_cmdline to create kernel command line.
16287 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
16288 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
16289 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
16290 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
16291 (linux): Add lib/cmdline.c on common.
16292
16293 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
16294
16295 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
16296 inopos might be unaligned.
16297
16298 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
16299
16300 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
16301 endian transformations.
16302 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
16303 Based on report by: Doug Nazar.
16304
16305 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
16306
16307 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
16308 array->members[i].start_sector.
16309 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
16310
16311 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
16312
16313 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
16314 Reported and tested by: Grégoire Sutre.
16315
16316 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
16317
16318 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
16319 avoid causing test failures by clearing the screen.
16320
16321 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
16322
16323 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
16324 Fix prefix check to handle the case where dir ends with a slash
16325 (most significantly, "/" itself).
16326 Reported by: Michael Vogt.
16327
16328 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
16329
16330 Run terminfo_cls on initing terminfo output to clear the screen and
16331 move the cursor to (0,0).
16332
16333 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
16334 Call grub_terminfo_output_init.
16335 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
16336 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
16337 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
16338
16339 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
16340
16341 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
16342 only when needed.
16343
16344 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
16345
16346 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
16347 CTRL.
16348
16349 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
16350
16351 The E820 type 5 is BADRAM, not EXEC_CODE.
16352
16353 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
16354 (GRUB_E820_BADRAM): New define.
16355 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
16356 into reserved. Propagate BADRAM.
16357 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
16358 (GRUB_E820_BADRAM): New define.
16359
16360 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16361
16362 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
16363 Ignore the memory post-4G.
16364 (grub_relocator_firmware_alloc_region): Additional debug statement.
16365
16366 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16367
16368 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
16369 names.
16370 Reported by: David Pravec.
16371
16372 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16373
16374 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
16375 BIOSes.
16376
16377 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16378
16379 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
16380 Prevent overflow.
16381 (grub_reed_solomon_recover): Likewise.
16382
16383 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16384
16385 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
16386
16387 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16388
16389 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
16390 variable.
16391
16392 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
16393
16394 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
16395 descriptions of extract_legacy_entries_source and
16396 extract_legacy_entries_configfile.
16397 Reported by: Seung Soo, Ha.
16398
16399 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
16400
16401 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
16402 on devices that do not implement function 0.
16403
16404 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
16405
16406 * grub-core/fs/hfsplus.c: Make parent unsigned.
16407 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
16408 overflows.
16409 (grub_hfsplus_cmp_extkey): Likewise
16410
16411 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
16412
16413 * util/grub-install.in: Correctly use bootloader_id and not
16414 GRUB_DISTRIBUTOR on efibootmgr line.
16415
16416 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
16417
16418 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
16419
16420 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
16421
16422 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
16423 Xen and reorder menu item wording to make it clearer that this entry
16424 will launch Xen. Print separate messages when loading Xen and
16425 Linux.
16426
16427 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
16428
16429 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
16430 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
16431 loop in case of incorrect amiga partmap.
16432
16433 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
16434
16435 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
16436 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
16437 Reported by:EHeM.
16438
16439 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
16440
16441 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
16442 spurious warning.
16443 Reported by: crocket
16444
16445 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
16446
16447 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
16448 Preload EFIemu.
16449 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
16450
16451 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
16452
16453 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
16454 is loaded
16455 (grub_cmd_xnu_kextdir): Likewise.
16456 (grub_cmd_xnu_splash): Likewise.
16457
16458 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
16459
16460 Avoid using Reed-Solomon with 0 redundancy.
16461
16462 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
16463 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
16464 or 0 redundancy.
16465 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
16466 (grub_reed_solomon_recover): Likewise.
16467
16468 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
16469
16470 Don't use disk subsystem in freebsd_boot.
16471
16472 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
16473 (freebsd_biosdev): Likewise.
16474 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
16475 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
16476
16477 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
16478
16479 Handling of files of unknown size is currently limited. They can't be
16480 used e.g. for initrd or modules. Moreover gzip handling of not
16481 easily seekable files is buggy. Disable unknown file size for now. May
16482 be inefficient but works.
16483
16484 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
16485 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
16486
16487 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
16488
16489 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
16490 floppy probe.
16491
16492 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
16493
16494 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
16495
16496 2010-12-25 Shea Levy <shlevy>
16497
16498 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
16499
16500 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
16501
16502 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
16503 Windows Server 2008.
16504 Reported by: Devin Giddings.
16505
16506 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
16507
16508 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
16509 writing an error message because of async power management.
16510 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
16511 (grub_reboot): Likewise.
16512
16513 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
16514
16515 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
16516 keep unit tests from failing when they shouldn't.
16517
16518 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
16519
16520 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
16521 previous patch increased the size of the RS code by 20 bytes (at
16522 least with gcc-4.4), so increase this by 20 bytes to match.
16523 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
16524
16525 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
16526
16527 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
16528 scratch area. Make sure to initialise chosen in standalone mode as
16529 well as non-standalone.
16530 Reported by: Robert Hooker and Andy Whitcroft.
16531 Tested by: Andy Whitcroft.
16532
16533 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
16534
16535 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
16536 constructing a new unescaped string and passing it to grub_xputs in
16537 one go, rather than passing characters to grub_printf one at a time.
16538
16539 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
16540
16541 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
16542 initialising utf16.
16543
16544 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
16545
16546 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
16547 comment. Add an extra layer of quotation, requiring the output of
16548 this function to be used in a printf format string.
16549 (gettext_printf): New function.
16550 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
16551 Extract translatable strings from here-documents and use a temporary
16552 variable instead, so that xgettext can find them.
16553 * util/grub.d/10_kfreebsd.in: Likewise.
16554 * util/grub.d/10_linux.in: Likewise.
16555 * util/grub.d/20_linux_xen.in: Likewise.
16556
16557 * po/grub.d.sed: New file.
16558 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
16559 arguments. Set c-format flags on all strings extracted from
16560 util/grub.d/ (xgettext refuses to include these itself for strings
16561 it extracted from a shell file, but these really are c-format).
16562
16563 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
16564
16565 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
16566 Avoid next pointing to nowhere.
16567
16568 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
16569
16570 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
16571 rather than assuming than rootblock is exactly in the middle.
16572 (grub_affs_label): Likewise.
16573
16574 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
16575
16576 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
16577 reserved_first_sector to 0.
16578 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
16579 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
16580 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
16581
16582 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
16583
16584 Fix handling of UTF-16 UDF labels.
16585
16586 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
16587 (read_string): .. here.
16588 (grub_udf_label): Use read_string.
16589
16590 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
16591
16592 * grub-core/normal/menu_entry.c (run): Execute commands from menu
16593 editor under argument scope.
16594 Reported by: Jordan Uggla
16595
16596 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
16597
16598 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
16599
16600 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
16601
16602 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
16603 line, and other keys scroll an entire page (previous handling was
16604 for \r and \n to scroll a page and other keys to scroll two lines).
16605
16606 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
16607
16608 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
16609 Set ptrdest to correct get_physical_target_address rather than
16610 incorrect get_virtual_current_address.
16611
16612 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
16613
16614 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
16615 correct cat to grub_uint8_t * rather than grub_uint32_t *.
16616
16617 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
16618
16619 * .bzrignore: Ignore grub-core/rs_decoder.S.
16620
16621 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
16622
16623 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
16624 .mo/.mo.gz opening sequence to ...
16625 (grub_mofile_open_lang): ... here.
16626 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
16627 * util/grub.d/00_header.in (grub_lang): Include country part of
16628 locale.
16629 Reported by: Mario Limonciello.
16630
16631 2010-12-09 Robert Millan <rmh@gnu.org>
16632
16633 * NEWS: Document addition of ZFS support.
16634
16635 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
16636
16637 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
16638 rather than `/ 2', as the latter requires -Wa,--divide which would
16639 require bumping our minimum binutils version.
16640
16641 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
16642
16643 * util/grub-script-check.c (main): Print script line number on
16644 error.
16645
16646 2010-12-01 Robert Millan <rmh@gnu.org>
16647
16648 * grub-core/fs/zfs/zfs.c: New file.
16649 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
16650 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
16651 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
16652 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16653
16654 * include/grub/zfs/dmu.h: Likewise.
16655 * include/grub/zfs/dmu_objset.h: Likewise.
16656 * include/grub/zfs/dnode.h: Likewise.
16657 * include/grub/zfs/dsl_dataset.h: Likewise.
16658 * include/grub/zfs/dsl_dir.h: Likewise.
16659 * include/grub/zfs/sa_impl.h: Likewise.
16660 * include/grub/zfs/spa.h: Likewise.
16661 * include/grub/zfs/uberblock_impl.h: Likewise.
16662 * include/grub/zfs/vdev_impl.h: Likewise.
16663 * include/grub/zfs/zap_impl.h: Likewise.
16664 * include/grub/zfs/zap_leaf.h: Likewise.
16665 * include/grub/zfs/zfs.h: Likewise.
16666 * include/grub/zfs/zfs_acl.h: Likewise.
16667 * include/grub/zfs/zfs_znode.h: Likewise.
16668 * include/grub/zfs/zil.h: Likewise.
16669 * include/grub/zfs/zio.h: Likewise.
16670 * include/grub/zfs/zio_checksum.h: Likewise.
16671
16672 * Makefile.util.def: Build ZFS into libgrubmods.
16673 * grub-core/Makefile.core.def: Build zfs.mod.
16674
16675 2010-11-30 Szymon Janc <szymon@janc.net.pl>
16676
16677 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
16678 variable.
16679 * grub-core/commands/wildcard.c (match_files): Likewise.
16680
16681 2010-11-30 Robert Millan <rmh@gnu.org>
16682
16683 * grub-core/loader/i386/bsd.c
16684 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
16685 whether kernel is loaded using grub_loader_is_loaded(), rather
16686 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
16687 certain error conditions.
16688
16689 2010-11-30 Robert Millan <rmh@gnu.org>
16690
16691 * grub-core/commands/echo.c: Include `<grub/term.h>'.
16692 (grub_cmd_echo): Call grub_refresh() after printing a message.
16693
16694 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
16695
16696 Avoid using tricks for initialising endian variables.
16697
16698 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
16699 Make const.
16700 (GRUB_MOD_INIT): Don't byte-swap.
16701 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
16702 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
16703 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
16704 (grub_swap_bytes32_compile_time): Likewise.
16705 (grub_cpu_to_le32_compile_time): Likewise.
16706 (grub_cpu_to_le16_compile_time): Likewise.
16707
16708 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
16709
16710 * util/grub-setup.c (setup): Stop recommending --force. People who
16711 understand the dangers of blocklists are able to find this option
16712 anyway and the ones who don't shouldn't use it anyway.
16713
16714 2010-11-26 Robert Millan <rmh@gnu.org>
16715
16716 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
16717 Update all users.
16718
16719 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
16720
16721 Fix LVM-on-RAID probing.
16722
16723 * util/grub-probe.c (probe): Remember which disk was detected as
16724 RAID (perhaps an LVM physical volume). Use that disk's raidname
16725 rather than that of the top-level disk.
16726
16727 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
16728
16729 Fix cmdline argument quotes for setparams command of menuentry
16730 definitions.
16731
16732 * grub-core/commands/menuentry.c (setparams_prefix): Use single
16733 quotes for arguments.
16734 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
16735 grub_strchrsub function instead.
16736
16737 * include/grub/misc.h (grub_strchrsub): New function.
16738
16739 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
16740
16741 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
16742 effort by skipping "." and ".." entries up-front.
16743 Suggested by: Michael Lazarev.
16744
16745 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
16746
16747 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
16748 ldflags to ldadd, to fix link line ordering.
16749 (none_decompress): Likewise.
16750
16751 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
16752
16753 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
16754 platforms.
16755 (grub-emu-lite): Remove kern/emu/cache.S.
16756
16757 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
16758
16759 * util/deviceiter.c (compare_devices): If the by-id link for a
16760 device couldn't be resolved, fall back to sorting by the by-id link
16761 rather than segfaulting.
16762 Reported and tested by: Daniel Mierswa.
16763
16764 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
16765
16766 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
16767 ldflags, to fix link line ordering.
16768
16769 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
16770
16771 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
16772 linkers are picky about this.
16773
16774 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
16775
16776 * grub-core/Makefile.am (command.lst): Adjust sed expression
16777 ordering so that extended and priority commands aren't treated as
16778 ordinary commands.
16779
16780 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
16781
16782 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
16783 Remove byte-swapping function calls, which are not valid in
16784 structure initialisers.
16785 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
16786 non-const.
16787 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
16788 grub_gpt_partition_type_bios_boot.
16789
16790 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
16791
16792 Fix test program build on GNU/kFreeBSD.
16793
16794 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
16795 $(LIBNVPAIR)' library dependencies.
16796
16797 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
16798
16799 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
16800
16801 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
16802
16803 * util/grub-install.in: Remove excessive quoting that broke
16804 installations to RAID devices.
16805
16806 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
16807
16808 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
16809 bootloader version instead of 0.
16810
16811 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
16812
16813 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
16814 warning.
16815
16816 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
16817
16818 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
16819 retrieve the metadat sector if size isn't known.
16820 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
16821
16822 2010-11-18 Robert Millan <rmh@gnu.org>
16823
16824 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
16825 with grub_memcmp().
16826
16827 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
16828
16829 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
16830 arrow.
16831 Reported by: Jordan Uggla.
16832
16833 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16834
16835 Make better UTF compliant.
16836
16837 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
16838 sequences as incorrect.
16839 (grub_is_valid_utf8): Likewise.
16840 (grub_utf8_to_ucs4): Likewise.
16841 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
16842 (grub_ucs4_to_utf8_alloc): Likewise.
16843 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
16844
16845 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16846
16847 Make legacy_source behave like source.
16848
16849 * grub-core/commands/legacycfg.c (legacy_file): Don't call
16850 grub_show_menu.
16851 (grub_cmd_legacy_source): Call grub_show_menu if needed.
16852
16853 2010-11-16 Colin Watson <cjwatson@debian.org>
16854
16855 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
16856 (-Wunused implies -Wunused-parameter, but not vice versa).
16857
16858 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
16859
16860 * configure.ac: Make error messages less confusing by testing for
16861 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
16862 accepted, but produces a diagnostic if something else is wrong).
16863
16864 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
16865
16866 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
16867 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
16868 (now unused).
16869 (grub_keyboard_controller_init)
16870 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
16871 read the initial state since controller isn't inited yet.
16872
16873 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
16874
16875 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
16876 allocate_regbeg may need to create new chunk header.
16877
16878 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16879
16880 Fix quoting in legacy parser.
16881
16882 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
16883 single quotes.
16884 (grub_legacy_parse): Likewise.
16885 Reported by: Jordan Uggla.
16886 Tested by: Jordan Uggla.
16887
16888 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16889
16890 Don't add -lgcc on i386 and x86_64.
16891
16892 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
16893 * conf/Makefile.common (LDADD_KERNEL): Likewise.
16894 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
16895
16896 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16897
16898 * configure.ac: Add -Wno-trampolines when supported.
16899
16900 2010-11-14 Modestas Vainius <modax@debian.org>
16901
16902 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
16903 fakeraid.
16904
16905 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
16906
16907 Add generic logical block size support for UDF.
16908
16909 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
16910 (GRUB_UDF_BLKSZ): Removed.
16911 (struct grub_udf_data): New field "lbshift" to hold the logical block
16912 size of the file system in log2 format. All users updated.
16913 (sblocklist): Change type to unsigned.
16914 (grub_udf_mount): Change type of "sblklist" to unsigned.
16915 Move AVDP search before VRS recognition, because the latter requires
16916 knowledge of the logical block size, which is detected during the
16917 former.
16918 Detect and validate logical block size during AVDP search, adding
16919 support for block sizes 512, 1024 and 4096.
16920 Make VRS recognition independent of block size.
16921
16922 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
16923
16924 Properly handle deleted files on UDF.
16925
16926 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
16927 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
16928 set.
16929
16930 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
16931
16932 Support reading files larger than 2 GiB.
16933
16934 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
16935 "offset" to grub_off_t.
16936 (grub_udf_read_file): Likewise for parameter "pos".
16937
16938 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16939
16940 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
16941 unavailable.
16942 (Simple configuration): Refer to Changes from GRUB Legacy about
16943 save_env availability.
16944
16945 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16946
16947 * util/grub-install.in: Ignore empty partition table detection
16948 instead of trying to include part_ module.
16949
16950 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16951
16952 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
16953 LVM on RAID support.
16954
16955 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16956
16957 Properly define WORDS_BIGENDIAN in wrapped environments.
16958
16959 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
16960 definition.
16961 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
16962
16963 Reported by: Manoel Rebelo Abranches.
16964 Tested by: Manoel Rebelo Abranches.
16965
16966 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16967
16968 * util/grub-mkconfig.in: Fix quoting.
16969
16970 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16971
16972 Support big ext2 files.
16973
16974 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
16975 (grub_ext2_read_block): Support triple indirect blocks.
16976 (grub_ext2_read_file): Use 64-bit types and read size_high.
16977 (grub_ext2_open): Read size_high.
16978 Reported by: Ximin Luo.
16979 Tested by: Manoel Rebelo Abranches.
16980
16981 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16982
16983 * util/grub-install.in: Handle filenames containing spaces.
16984 Reported by: Jordan Uggla.
16985 Tested by: Jordan Uggla.
16986
16987 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16988
16989 * util/grub-mkconfig.in (grub_script_check): New variable.
16990 Use grub_script_check instead of grub-script-check.
16991 Reported by: Barry Jackson.
16992
16993 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16994
16995 * docs/grub.texi (menu): Correct the order.
16996 Reported by: D. Hugh Redelmeier.
16997
16998 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16999
17000 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
17001 jump.
17002
17003 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
17004
17005 * include/grub/elfload.h (grub_elf32_size): New parameter.
17006 All users updated.
17007 Return maximum segments alignment.
17008 (grub_elf64_size): Likewise.
17009 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
17010 Return maximum segments alignment.
17011 (grub_elf64_size): Likewise.
17012 * grub-core/loader/powerpc/ieee1275/linux.c:
17013 (grub_linux_claimmap_iterate): New function. Uses the
17014 "available" property in the "memory" node for memory allocation
17015 for kernel in the PowerPC loader.
17016 (grub_linux_load32): Correctly find linux entry point offset.
17017 (grub_linux_load64): Likewise.
17018
17019 2010-11-07 Robert Millan <rmh@gnu.org>
17020
17021 On mips-yeeloong, build with -march=loongson2f when this flag is
17022 available (GCC >= 4.4).
17023 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
17024 `-march=mips3'.
17025 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
17026 or otherwise add -march=mips3.
17027
17028 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
17029
17030 Suppress shell expansion on echo '*' and echo "*" like cases.
17031 Reported by: Jordan Uggla.
17032
17033 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
17034 string arguments before shell expansion.
17035 * tests/grub_cmd_echo.in: New testcases.
17036
17037 2010-11-07 Robert Millan <rmh@gnu.org>
17038
17039 * conf/mips-qemu-mips.rmk: Remove stale file from previous
17040 transition.
17041
17042 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
17043
17044 * grub-core/kern/emu/hostdisk.c
17045 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
17046
17047 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
17048
17049 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
17050 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
17051 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
17052
17053 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
17054
17055 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
17056
17057 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
17058
17059 * util/grub-install.in: Replace useless recomendation to pass
17060 --modules with a recomendation to report a bug.
17061
17062 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
17063
17064 Properly register serial terminfo.
17065 Reported by: Jordan Uggla
17066
17067 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
17068 const.
17069 (grub_serial_terminfo_output_template): Likewise.
17070 (grub_cmd_serial): Register "serial" with terminfo.
17071 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
17072 grub_serial_terminfo_output.
17073
17074 2010-11-05 Robert Millan <rmh@gnu.org>
17075
17076 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
17077 needed).
17078
17079 2010-11-05 Robert Millan <rmh@gnu.org>
17080
17081 On Yeeloong, pass machine type information to Linux.
17082
17083 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
17084 (LOONGSON_MACHTYPE): New macro, set to
17085 "machtype=lemote-yeeloong-2f-8.9inches".
17086 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
17087 additional argument to Linux.
17088
17089 2010-11-04 Robert Millan <rmh@gnu.org>
17090
17091 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
17092 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
17093 (its SATA disks are detected as slaveless IDE master drives on
17094 kFreeBSD).
17095 Reported by Carsten Aulbert.
17096
17097 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
17098
17099 * util/bin2h.c (main): Fix spelling error in generated output.
17100
17101 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
17102
17103 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
17104
17105 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17106
17107 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
17108 vga= option is supplied.
17109
17110 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17111
17112 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
17113 * util/grub.d/10_kfreebsd.in: Likewise.
17114 * util/grub.d/10_linux.in: Likewise.
17115 * util/grub.d/20_linux_xen.in: Likewise.
17116
17117 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17118
17119 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
17120 argument as an argument to no-argument option.
17121
17122 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17123
17124 * util/grub.d/10_linux.in: Add missing load_video with explicit
17125 GRUB_GFXPAYLOAD_LINUX.
17126
17127 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17128
17129 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
17130
17131 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17132
17133 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
17134 elements with invlid index.
17135 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
17136 * grub-core/disk/raid.c (insert_array): Automatically reallocate
17137 members.
17138 * include/grub/raid.h (grub_raid_member): New struct.
17139 (grub_raid_array): Transform devices and start_sector into usage of
17140 grub_raid_member. All users updated
17141 (allocated_devs): New member.
17142
17143 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17144
17145 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
17146 is modified
17147
17148 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
17149
17150 NetBSD build fix for getline function conflict from gnulib.
17151
17152 * Makefile.util.def (libgrubkern.a): New library for grub kernel
17153 components that depend on gnulib headers.
17154 (libgrubmods.a): Renamed from earlier libgrub.a.
17155 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
17156
17157 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17158
17159 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
17160 install rather than creating a broken install.
17161
17162 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17163
17164 * util/grub-setup.c (argp): Remove misleading example of installing to
17165 a partition.
17166
17167 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17168
17169 * util/grub-setup.c (setup): Clarify the error message.
17170
17171 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17172
17173 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
17174
17175 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17176
17177 * grub-core/kern/emu/misc.c
17178 (grub_make_system_path_relative_to_its_root)
17179 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
17180
17181 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17182
17183 * grub-core/kern/emu/misc.c
17184 (grub_make_system_path_relative_to_its_root): Revert r2882.
17185
17186 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
17187
17188 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
17189 useless field head. All users updated.
17190 (free_subchunk): Correct handling of IN_REGION subchunk.
17191
17192 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
17193
17194 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
17195 (Supported kernels): Likewise.
17196
17197 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
17198
17199 Make mktemp invocations portable.
17200
17201 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
17202 exit if mktemp fails.
17203 * tests/grub_script_blockarg.in: Likewise.
17204 * tests/partmap_test.in: Likewise.
17205 * tests/util/grub-shell-tester.in: Likewise.
17206 * tests/util/grub-shell.in: Likewise.
17207 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
17208 * Makefile.am: Likewise, and chain shell commands with `&&'
17209 instead of ';'.
17210 * util/grub-mkrescue.in: Use the same explicit template as above, and
17211 exit if mktemp fails.
17212
17213 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
17214
17215 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
17216 Linux kernel, reported by Dennis Schridde.
17217
17218 2010-10-17 Szymon Janc <szymon@janc.net.pl>
17219
17220 * grub-core/normal/auth.c (grub_auth_check_authentication):
17221 Set-but-not-used variable removed.
17222
17223 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17224
17225 * docs/grub.texi (GNU/Linux): Document APM unavailability with
17226 32-bit linux protocol.
17227
17228 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17229
17230 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
17231 cursor shape for sanity.
17232
17233 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17234
17235 * docs/grub.texi (Installation): Document buggy BIOS install.
17236
17237 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17238
17239 * docs/grub.texi (Installation): Indent.
17240
17241 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17242
17243 * util/grub-setup.c (setup): New parameter allow_floppy.
17244 (arguments): New member allow_floppy.
17245 (argp_parser): Handle --allow-floppy.
17246 (main): Pass allow_floppy.
17247 * util/grub-install.in: New option --allow-floppy passed though to
17248 grub-setup.
17249
17250 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17251
17252 * util/grub-install.in: Handle partitionless disks.
17253
17254 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17255
17256 * util/grub-setup.c (setup): Don't clean blocklists before readability
17257 verfification.
17258
17259 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17260
17261 * docs/grub.texi (Installation): Document embedding zone. Remove
17262 obsolete grub-install example.
17263
17264 2010-10-16 Szymon Janc <szymon@janc.net.pl>
17265
17266 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
17267 Set-but-not-used variable ifdef'ed.
17268 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
17269 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
17270 variable removed.
17271 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
17272 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
17273 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
17274 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
17275 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
17276 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
17277 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
17278 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
17279 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
17280 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
17281 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
17282 Likewise.
17283
17284 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17285
17286 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
17287 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
17288 enum value.
17289
17290 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17291
17292 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
17293 synonym to _S5_. Needed for some DSDTs.
17294
17295 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17296
17297 Userspace ACPI parser debugging.
17298
17299 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
17300 headers and add relevant defines. Don't include standard headers.
17301 (main) [GRUB_DSDT_TEST]: New function.
17302 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
17303 Don't declare functions.
17304
17305 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17306
17307 Remove dead grub_efi_mm_fini.
17308
17309 * grub-core/kern/efi/mm.c (allocated_page): Removed.
17310 (ALLOCATED_PAGES_SIZE): Likewise.
17311 (MAX_ALLOCATED_PAGES): Likewise.
17312 (allocated_pages): Likewise.
17313 (grub_efi_allocate_pages): Don't record allocated pages.
17314 (grub_efi_free_pages): Likewise.
17315 (grub_efi_mm_init): Likewise.
17316 (grub_efi_mm_fini): Removed.
17317
17318 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17319
17320 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
17321 (grub_efi_mm_init): Take into account the memory map size increase.
17322
17323 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17324
17325 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
17326 (serial_hw_put): Wait based on real time rather than port reads. Don't
17327 roken ports.
17328 * include/grub/serial.h (grub_serial_port): New field broken.
17329
17330 2010-10-16 Robert Millan <rmh@gnu.org>
17331
17332 * grub-core/kern/emu/misc.c
17333 (grub_make_system_path_relative_to_its_root): Fix premature return
17334 when processing non-root ZFS filesystems.
17335 Reported by Sergio Talens-Oliag.
17336
17337 2010-10-15 Robert Millan <rmh@gnu.org>
17338
17339 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
17340 guarantee compressed ones are processed first.
17341
17342 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17343
17344 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
17345 grub_efiemu_autocore.
17346
17347 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17348
17349 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
17350 rather than 0x1b.
17351 (grub_console_getkey): Use correct jae opcode rather than ja.
17352
17353 2010-10-12 Robert Millan <rmh@gnu.org>
17354
17355 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
17356 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
17357 variable. All references updated.
17358
17359 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
17360
17361 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
17362
17363 Correctly distinguish mdraid flavours.
17364
17365 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
17366 (insert_array): New argument raid.
17367 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
17368 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
17369 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
17370
17371 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
17372
17373 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
17374 handling of special keys.
17375
17376 2010-10-02 Aleš Nesrsta <starous@volny.cz>
17377
17378 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
17379 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
17380
17381 2010-10-02 Aleš Nesrsta <starous@volny.cz>
17382
17383 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
17384 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
17385 users updated.
17386 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
17387 Use right endpoint when querying descriptor.
17388
17389 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
17390
17391 Clear out 0x80 color bit on EFI.
17392 Tested by: decoder
17393 Reported by: decoder and meta tech.
17394
17395 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
17396 (grub_console_setcolorstate): Clear out 0x80 bit.
17397 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
17398 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
17399 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
17400
17401 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
17402
17403 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
17404 Set to "auto".
17405
17406 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17407
17408 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
17409 mo_file after freeing.
17410
17411 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17412
17413 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
17414
17415 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17416
17417 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
17418 flags.
17419
17420 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17421
17422 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
17423 usage.
17424
17425 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17426
17427 Put terminfo into core on ieee1275 and yeeloong (needed for console).
17428
17429 * gentpl.py: New groups terminfoinkernel and terminfomodule.
17430 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
17431 and terminfo.h when needed.
17432 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
17433 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
17434 (terminfo): Enable only on terminfokernel.
17435 (extcmd): Likewise.
17436 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
17437 * include/grub/lib/arg.h: Likewise.
17438 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
17439 incorrect usage of ->.
17440
17441 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
17442
17443 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
17444 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
17445
17446 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
17447
17448 Fix coreboot compilation.
17449
17450 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
17451 Take VBE info into account even if only text is supported.
17452 (fill_vbe_info): Take into account the case when only VGA text
17453 is supported.
17454 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
17455 on coreboot, multiboot and qemu.
17456
17457 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
17458
17459 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
17460 debug messages.
17461 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
17462
17463 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
17464
17465 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
17466 parameters.
17467
17468 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
17469
17470 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
17471 if they were BSD-style.
17472
17473 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
17474
17475 * grub-core/boot/i386/pc/lnxboot.S: Replace
17476 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
17477 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
17478
17479 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
17480
17481 Write embedding zone using Reed-Solomon.
17482
17483 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
17484 * grub-core/Makefile.am (rs_decoder.S): New target.
17485 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
17486 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
17487 (multiboot): Move to RS part.
17488 (post_reed_solomon): New label.
17489 (grub_boot_drive): Move to non-RS part since it's modified in memory
17490 on boot.
17491 Include rs_decoder.S.
17492 * grub-core/lib/reed_solomon.c: New file.
17493 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
17494 New definition.
17495 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
17496 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
17497 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
17498 * include/grub/partition.h (grub_partition_map): Change prototype of
17499 embed to allow returning additional sectors.
17500 * include/grub/reed_solomon.h: New file.
17501 * util/grub-setup.c (setup): Handle Reed-Solomon.
17502
17503 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
17504
17505 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
17506 i386 and x86-64 definedness tests.
17507
17508 2010-09-27 Yves Blusseau <blusseau@zetam.org>
17509
17510 Fix generation of kernel_syms.lst
17511
17512 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
17513 ASM_PREFIX
17514
17515 2010-09-26 Robert Millan <rmh@gnu.org>
17516
17517 Support degraded ZFS arrays in "grub-probe -t device" resolution.
17518
17519 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
17520 the pool is an array of devices, iterate through it and return the
17521 first device that passes a stat() test (instead of blindly returning
17522 the first one).
17523
17524 2010-09-26 Robert Millan <rmh@gnu.org>
17525
17526 Build fixes for GNU/kFreeBSD.
17527
17528 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
17529 to programs that require ZFS conversion.
17530 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
17531 kernels that don't have FLOPPY_MAJOR.
17532
17533 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
17534
17535 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
17536
17537 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
17538
17539 Fix grub-emu build.
17540
17541 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
17542 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
17543 mdraid09 and mdraid1x.
17544
17545 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
17546
17547 Re-enable grub-extras.
17548
17549 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
17550 avoid confusing Automake. Run autogen only twice, once for the top
17551 level and once for grub-core. Add Makefile.util.def and
17552 Makefile.core.def from extra modules to the appropriate autogen
17553 invocations. If Makefile.common exists in an extra module, include
17554 it in both Makefile.util.am and grub-core/Makefile.core.am;
17555 similarly, include any Makefile.util.common file in Makefile.util.am
17556 and any Makefile.core.common file in grub-core/Makefile.core.am.
17557 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
17558 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
17559 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
17560 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
17561
17562 * gentpl.py (gvar_add): Turn GVARS into a set.
17563 (global_variable_initializers): Sort global variables on output.
17564 (vars_init): New function.
17565 (first_time): Likewise.
17566 (library): Ensure that non-global variable initialisations are
17567 emitted before the first time we emit code for a library block.
17568 Append to variables rather than setting them. Only emit
17569 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
17570 each conditional path.
17571 (program): installdir() emits an Autogen macro, so must be passed to
17572 var_add rather than gvar_add.
17573 (data): Likewise.
17574 (script): Likewise.
17575 (rules): New function, centralising handling for different target
17576 types. Set up Guile association lists for first_time and vars_init,
17577 and send most output to a diversion so that variable initialisations
17578 can be emitted first.
17579 (module_rules): Use new rules function.
17580 (kernel_rules): Likewise.
17581 (image_rules): Likewise.
17582 (library_rules): Likewise.
17583 (program_rules): Likewise.
17584 (script_rules): Likewise.
17585 (data_rules): Likewise.
17586
17587 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
17588
17589 * .bzrignore: Add contrib and grub-core/contrib. Remove
17590 grub-core/Makefile.gcry.am.
17591
17592 2010-09-24 Yves Blusseau <blusseau@zetam.org>
17593
17594 * grub-core/lib/LzFind.c: Add missing include.
17595 * grub-core/lib/LzmaEnc.c: Likewise.
17596 * grub-core/script/lexer.c: Likewise.
17597 * grub-core/script/yylex.l: Likewise.
17598 * util/grub-macho2img.c: Likewise.
17599 * util/grub-menulst2cfg.c: Likewise.
17600 * util/grub-mklayout.c: Likewise.
17601 * util/grub-mkpasswd-pbkdf2.c
17602 * util/grub-mkrelpath.c: Likewise.
17603 * util/resolve.c: Likewise.
17604
17605 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
17606
17607 * Makefile.util.def (example_unit_test): Add
17608 grub-core/gnulib/libgnu.a.
17609
17610 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
17611
17612 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
17613
17614 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
17615
17616 Support xz compression on yeeloong.
17617
17618 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
17619 * configure.ac: Check for LZMA.
17620 * grub-core/Makefile.core.def (xz_decompress): New target.
17621 (none_decompress): Likewise.
17622 * grub-core/boot/decompressor/minilib.c: New file.
17623 * grub-core/boot/decompressor/none.c: Likewise.
17624 * grub-core/boot/decompressor/xz.c: Likewise.
17625 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
17626 * grub-core/kern/mips/cache_flush.S: Likewise.
17627 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
17628 * grub-core/kern/mips/startup.S: Move first stage to ...
17629 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
17630 nomacro.
17631 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
17632 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
17633 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
17634 Allocate statically.
17635 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
17636 Allocate statically or use scratch. Don't check CRC32.
17637 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
17638 Allocate statically. Don't check CRC32.
17639 * include/grub/decompressor.h: New file.
17640 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
17641 Removed.
17642 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
17643 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
17644 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
17645 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
17646 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
17647 * util/grub-mkimage.c (grub_compression_t): New type.
17648 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
17649 (image_target_desc): New field default_compression.
17650 (image_targets): Adjust yeeloong targets.
17651 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
17652 (compress_kernel): New parameter comp.
17653 (generate_image): Likewise. Handle new compression case.
17654 (options): New option --compression
17655 (help): Likewise.
17656 (main): Handle new option.
17657
17658 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
17659
17660 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
17661
17662 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
17663
17664 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
17665 typo in __i386__ conditional.
17666
17667 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
17668
17669 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
17670 include.
17671
17672 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
17673
17674 Implement EFI and ACPI multiboot2 extensions.
17675
17676 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
17677 new tags as supported.
17678 (acpiv2_size): New function.
17679 (grub_multiboot_get_mbi_size): Take new tags into account.
17680 (grub_multiboot_make_mbi): Add new tags.
17681 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
17682
17683 2010-09-21 Aleš Nesrsta <starous@volny.cz>
17684
17685 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
17686 Added missing configuration of USB device.
17687
17688 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17689
17690 * grub-core/normal/menu_entry.c (run): Make sure we always return
17691 a value.
17692
17693 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17694
17695 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
17696 NumberOfPages is UINT64 according to the UEFI specification, not
17697 UINTN. Fix printf format.
17698
17699 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17700
17701 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
17702 `err' to grub_usb_err_t.
17703 Reported and tested by: KESHAV P.R.
17704
17705 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17706
17707 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
17708 tpart non-const, so that we can assign to it. (Since this is a
17709 typedef, the constness refers to the pointer rather than what it
17710 points to.)
17711
17712 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17713
17714 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
17715 $(top_srcdir)/grub-core/gnulib as well as
17716 $(top_builddir)/grub-core/gnulib.
17717 Reported by: KESHAV P.R.
17718
17719 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17720
17721 * util/grub-install.in: Fix the bootloader ID option to be
17722 consistently --bootloader-id, not --bootloader_id.
17723 Reported by: KESHAV P.R.
17724
17725 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17726
17727 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
17728 check hash checksum." consistently translatable.
17729
17730 2010-09-21 Yves Blusseau <blusseau@zetam.org>
17731
17732 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
17733 $(top_builddir).
17734
17735 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17736
17737 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
17738 (GRUB_MOD_INIT): Register sha1sum command.
17739 (GRUB_MOD_FINI): Unregister sha1sum command.
17740
17741 2010-09-21 Yves Blusseau <blusseau@zetam.org>
17742
17743 Keep boot and grub directory names in sync with utils scripts
17744
17745 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
17746 * config.h.in: Add previous macros.
17747 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
17748 * util/grub-install.in: Use $bootdir and $grubdir variables.
17749
17750 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17751
17752 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
17753 convert partition names to disk names if the new `convert' parameter
17754 is set.
17755 (grub_util_biosdisk_get_grub_dev): If opening the disk device
17756 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
17757 disk in its own right. This can happen with Xen disk images.
17758
17759 2010-09-21 Yves Blusseau <blusseau@zetam.org>
17760
17761 * util/grub-editenv.c: Update strings to avoid warnings when generating
17762 grub.pot file.
17763 * util/grub-setup.c: Likewise.
17764
17765 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
17766
17767 * configure.ac: Change version to 1.99~beta0.
17768
17769 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
17770
17771 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
17772 Add BADRAM.
17773 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
17774 Likewise.
17775 * include/multiboot.h: Resynced with specification.
17776 * include/multiboot2.h: Likewise.
17777
17778 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
17779
17780 Fix po directory handling.
17781
17782 * configure.ac: Create po/Makefile.in rather than po/Makefile.
17783 * grub-core/gnulib/Makefile.am: Import gettext module.
17784 * m4/gnulib-cache.m4: Likewise.
17785 * m4/gnulib-comp.m4: Likewise.
17786 * m4/gettext.m4: New file, from gnulib.
17787 * m4/glibc2.m4: Likewise.
17788 * m4/iconv.m4: Likewise.
17789 * m4/intdiv0.m4: Likewise.
17790 * m4/intl.m4: Likewise.
17791 * m4/intldir.m4: Likewise.
17792 * m4/intlmacosx.m4: Likewise.
17793 * m4/intmax.m4: Likewise.
17794 * m4/inttypes-pri.m4: Likewise.
17795 * m4/lcmessage.m4: Likewise.
17796 * m4/lib-ld.m4: Likewise.
17797 * m4/lib-link.m4: Likewise.
17798 * m4/lib-prefix.m4: Likewise.
17799 * m4/lock.m4: Likewise.
17800 * m4/nls.m4: Likewise.
17801 * m4/po.m4: Likewise.
17802 * m4/printf-posix.m4: Likewise.
17803 * m4/progtest.m4: Likewise.
17804 * m4/threadlib.m4: Likewise.
17805 * m4/uintmax_t.m4: Likewise.
17806 * m4/visibility.m4: Likewise.
17807 * po/Makefile.am: Remove.
17808 * po/Makefile.in.in: New file, from gettext.
17809 ($(DOMAIN).pot-update): Support POTFILES-shell.
17810 * po/Makevars: New file.
17811 * po/POTFILES-shell: Rename to ...
17812 * po/POTFILES-shell.in: ... this. Update.
17813 * po/POTFILES: Rename to ...
17814 * po/POTFILES.in: ... this. Update.
17815 * po/Rules-quot: New file, from gettext.
17816 * po/boldquot.sed: Likewise.
17817 * po/en@boldquot.header: Likewise.
17818 * po/en@quot.header: Likewise.
17819 * po/insert-header.sin: Likewise.
17820 * po/quot.sed: Likewise.
17821 * po/remove-potcdate.sin: Likewise.
17822
17823 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17824
17825 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
17826
17827 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17828
17829 * util/grub.d/20_linux_xen.in: Use submenus.
17830
17831 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17832
17833 Support submenus.
17834
17835 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
17836 parameter submenu. All users updated.
17837 * grub-core/normal/main.c (free_menu): Rename to ...
17838 (grub_normal_free_menu): ... this. Made global.
17839 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
17840 if requested.
17841 * grub-core/normal/menu_entry.c (screen): New field submenu.
17842 (make_screen): Set submenu.
17843 (run): Open new context if requested.
17844 * include/grub/menu.h (grub_menu_entry): New field submenu.
17845 * include/grub/normal.h (grub_normal_free_menu): New proto.
17846
17847 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17848
17849 Menu entries extractor.
17850
17851 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
17852 variants.
17853 (GRUB_MOD_INIT): Register new variants.
17854 (GRUB_MOD_FINI): Unregister new variants.
17855 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
17856 into grub_cmd_legacy_source.
17857 (grub_cmd_legacy_source): Implement extractor variants.
17858 (GRUB_MOD_INIT): Register new variants.
17859 (GRUB_MOD_FINI): Unregister new variants.
17860 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
17861 as an extractor.
17862 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
17863 search as an extractor.
17864 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
17865 test as an extractor.
17866 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
17867 as an extractor.
17868 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
17869 (grub_env_new_context): New function.
17870 (grub_env_context_open): Likewise.
17871 (grub_env_extractor_open): Likewise.
17872 (grub_env_extractor_close): Likewise.
17873 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
17874 grub_extractor_level.
17875 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
17876 * include/grub/env.h (grub_env_extractor_open): New proto.
17877 (grub_env_extractor_close): Likewise.
17878 * include/grub/normal.h (grub_extractor_level): New external variable.
17879
17880 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17881
17882 Make cutmem accept a region specification.
17883 Suggested by: Samuel Thibault
17884
17885 * grub-core/mmap/mmap.c (parsemem): New function.
17886 (grub_cmd_cutmem): Handle new arguments.
17887
17888 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17889
17890 New command cutmem.
17891
17892 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
17893 (GRUB_MOD_INIT): Register new command.
17894 (GRUB_MOD_FINI): Unregister new command.
17895
17896 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17897
17898 Support some annoying BSD and Minix subpartitions.
17899
17900 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
17901 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
17902 Properly handle concatenation.
17903 * grub-core/kern/device.c (grub_device_iterate): Likewise.
17904 * grub-core/normal/completion.c (iterate_partition): Likewise.
17905 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
17906 contain partition. All users updated.
17907 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
17908 struct.
17909 (grub_openbsdlabel_partition_map): Likewise.
17910 (bsdlabel_partition_map_iterate): Rename to ..
17911 (iterate_real): ... this. New arguments sector, freebsd and pmap.
17912 (bsdlabel_partition_map_iterate): New function.
17913 (netopenbsdlabel_partition_map_iterate): Likewise.
17914 (netbsdlabel_partition_map_iterate): Likewise.
17915 (openbsdlabel_partition_map_iterate): Likewise.
17916 (GRUB_MOD_INIT): Register new partmaps.
17917 (GRUB_MOD_FINI): Unregister new partmaps.
17918 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
17919 (grub_partition_msdos_iterate): ... this. All users updated.
17920 Don't support embedding other than in a minix partition.
17921 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
17922 proto.
17923 * include/grub/partition.h (grub_partition): New field msdostype.
17924 * util/grub-install.in: Handle openbsd and netbsd types being in
17925 part_bsd module.
17926
17927 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17928
17929 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
17930
17931 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
17932 * grub-core/Makefile.core.def (mdraid): Renamed to ...
17933 (mdraid09): ... this.
17934 (mdraid1x): New module.
17935 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
17936 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
17937
17938 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17939
17940 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
17941 vsprintf.
17942
17943 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
17944
17945 * grub-core/commands/efi/lsefimmap.c: Correct header.
17946 * NEWS: Update.
17947
17948 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
17949
17950 * util/grub-editenv.c (argp_parser): Don't pass translated strings
17951 as printf format strings; the translations might contain '%' which
17952 could cause a crash.
17953 (main): Likewise.
17954 * util/grub-fstest.c (argp_parser): Likewise.
17955 * util/grub-setup.c (argp_parser): Likewise.
17956 (main): Likewise.
17957
17958 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17959
17960 Use argp in grub-fstest.
17961
17962 * util/grub-fstest.c: Don't include getopt.h.
17963 Include argp.h.
17964 (root): New variable.
17965 (args_count): Likewise.
17966 (nparm): Likewise.
17967 (num_disks): Likewise.
17968 (images): Likewise.
17969 (cmd): Likewise.
17970 (debug_str): Likewise.
17971 (args): Likewise.
17972 (options): Transformed to argp.
17973 (usage): Removed.
17974 (main): Split argument parsing into ...
17975 (argp_parser): ... this. Changed to argp format.
17976 (argp): New variable.
17977 (main): Use argp_parse.
17978
17979 2010-09-20 Tristan Gingold <gingold@free.fr>
17980 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
17981 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17982
17983 * grub-core/commands/efi/lsefimmap.c: New file.
17984 * grub-core/Makefile.core.def (lsefimmap): New module.
17985 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
17986
17987 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17988
17989 Pause the execution (10s max) if any errors are displayed so the user
17990 has a chance to see them.
17991
17992 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
17993 (grub_print_error): Increment grub_err_printed_errors.
17994 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
17995 execution if any errors were displayed.
17996 (show_menu): Remove old code for pause.
17997 * grub-core/normal/menu_entry.c (run): Likewise.
17998 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
17999 users updated.
18000 (grub_normal_get_char_counter): Likewise.
18001 * include/grub/err.h (grub_err_printed_errors): New external variable.
18002 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
18003
18004 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18005
18006 Support multiboot VBE info.
18007
18008 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18009 Take VBE info into account.
18010 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
18011 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
18012 Call fill_vbe_info when appropriate.
18013 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
18014 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
18015 as supported.
18016 (grub_multiboot_get_mbi_size): Take new tags into account.
18017 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
18018 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
18019 Call fill_vbe_tag when appropriate.
18020 (grub_multiboot_make_mbi): Properly align tags.
18021 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
18022 function.
18023 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
18024 proto.
18025 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
18026
18027 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18028
18029 Suport manual terminal geometry specification.
18030
18031 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
18032 Save state in grub_ofconsole_terminfo_output.
18033 (grub_ofconsole_term): Use grub_terminfo_getwh.
18034 (grub_ofconsole_getwh): Removed.
18035 * grub-core/term/serial.c (grub_serial_getwh): Removed.
18036 (grub_serial_term): Use grub_terminfo_getwh.
18037 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
18038 (options): New struct.
18039 (OPTION_*): New enum.
18040 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
18041 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
18042 width and height.
18043 (grub_terminfo_getwh): New proto.
18044 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
18045
18046 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18047
18048 Handle legacy "terminal" command.
18049
18050 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
18051 and FLAG_TERMINAL.
18052 (legacy_commands): Add terminal and title.
18053 (grub_legacy_parse): Handle terminal. Simplify title handling.
18054
18055 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18056
18057 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
18058 parameters overflow.
18059
18060 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
18061
18062 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
18063 widthspec.h.
18064
18065 * docs/grub.texi (Shell-like scripting): Document `!'.
18066 (Network): Simplify using new i386-pc-pxe format. Mention
18067 grub-mknetdir.
18068
18069 * NEWS: Update.
18070
18071 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
18072
18073 * Makefile.am (SUBDIRS): Restore "."; it's important to force
18074 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
18075 when needed.
18076
18077 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
18078
18079 * grub-core/commands/efi/lsefisystab.c: Correct header.
18080 * grub-core/commands/efi/lssal.c: Likewise.
18081 * grub-core/commands/testload.c: Likewise.
18082
18083 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
18084
18085 * util/grub-mkrescue.in: Add explicit root argument to --set to
18086 prevent the UUID being interpreted as an argument to --set (matches
18087 previous change to prepare_grub_to_access_device).
18088
18089 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
18090
18091 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
18092 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
18093 the verbosity of later #ifs.
18094 (find_partition_start): Define this function on FreeBSD too.
18095 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
18096 function.
18097 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
18098 on FreeBSD.
18099
18100 2010-09-20 Yves Blusseau <blusseau@zetam.org>
18101
18102 * util/grub-editenv.c: Use argp instead of getopt.
18103
18104 2010-09-20 Yves Blusseau <blusseau@zetam.org>
18105
18106 * util/grub-setup.c: Use argp instead of getopt.
18107
18108 2010-09-20 Yves Blusseau <blusseau@zetam.org>
18109
18110 Use gnulib-tool to create gnulib source files.
18111
18112 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
18113 grub-core/gnulib directories
18114 * .bzignore: Add **/.deps and autogenerated gnulib files
18115 * configure.ac: Assign auxiliary directory to build-aux, add invocation
18116 of gnulib macros, add grub-core/gnulib/Makefile
18117 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
18118 include m4 directory to aclocal.
18119 * Makefile.util.def: Remove direct compilation of gnulib source files
18120 and use the new grub-core/gnulib/libgnu.a.
18121 * build-aux/config.rpath: move config.rpath from top directory to
18122 build-aux
18123 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
18124 in gnulib headers
18125 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
18126 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
18127 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
18128 header.
18129 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
18130 string.
18131
18132 2010-09-20 Yves Blusseau <blusseau@zetam.org>
18133
18134 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
18135 grub-core/genmod.sh and grub-core/gensyminfo.sh
18136
18137 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
18138
18139 Add a test for echo command options.
18140
18141 * tests/grub_cmd_echo.in: New test.
18142 * Makefile.util.def: Rules for new test.
18143
18144 2010-09-20 Szymon Janc <szymon@janc.net.pl>
18145
18146 Remove crc.mod and move crc command to hashsum.mod.
18147 Remove lib/crc.c - users updated to use gcrypt implementation.
18148
18149 * grub-core/commands/crc.c: Removed.
18150 * grub-core/Makefile.core.def (crc): Module removed.
18151 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
18152 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
18153 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
18154 * grub-core/lib/crc.c: Removed.
18155 * include/grub/lib/crc.h: Removed.
18156 * Makefile.util.def (crc): Remove lib/crc.c
18157 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
18158 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
18159 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
18160 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
18161 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
18162 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
18163
18164 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18165
18166 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
18167
18168 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18169
18170 Split config.h for util and core.
18171
18172 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
18173 (ADDR32): Likewise.
18174 (DATA32): Likewise.
18175 (BSS_START_SYMBOL): Likewise.
18176 (END_SYMBOL): Likewise.
18177 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
18178 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
18179 * config.h.in: New file.
18180 * configure.ac: Use config-util.h as config define file.
18181 Rename MACHINE into GRUB_MACHINE. All users updated.
18182 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
18183 updated.
18184 (NESTED_FUNC_ATTR): Likewise.
18185 Substitue new variables.
18186 (COND_HAVE_ASM_USCORE): New conditional.
18187 * grub-core/Makefile.am (ASM_PREFIX): New variable.
18188 (kernel_syms.lst): Use ASM_PREFIX.
18189 * grub-core/kern/emu/console.c: Include config-util.h.
18190 * grub-core/kern/emu/misc.c: Likewise.
18191 * grub-core/kern/emu/mm.c: Likewise.
18192 * include/grub/emu/misc.h: Likewise.
18193 * include/grub/libgcc.h: Likewise.
18194
18195 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18196
18197 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
18198 constants usage.
18199 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
18200 Fix GRUB_TERM_KEY_* constants usage.
18201 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
18202
18203 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18204
18205 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
18206 print pointer.
18207 * grub-core/bus/usb/uhci.c: Remove empty define.
18208 (grub_uhci_check_transfer): Add missing cast.
18209 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
18210 print pointer.
18211 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
18212 PRIuGRUB_SIZE.
18213 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
18214
18215 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18216
18217 * grub-core/Makefile.core.def (legacycfg): Add
18218 lib/i386/pc/vesa_modes_table.c on emu.
18219
18220 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
18221
18222 Reduce number of temporary files generated by build system.
18223
18224 * grub-core/gencmdlist.sh: Removed.
18225 * grub-core/genfslist.sh: Removed.
18226 * grub-core/genhandlerlist.sh: Removed.
18227 * grub-core/genmodsrc.sh: Removed.
18228 * grub-core/genpartmaplist.sh: Removed.
18229 * grub-core/genparttoollist.sh: Removed.
18230 * grub-core/gentermiinallist.sh: Removed.
18231 * grub-core/genvideolist.sh: Removed.
18232
18233 * grub-core/genmod.sh.in: New file.
18234 * grub-core/gensyminfo.sh.in: New file.
18235
18236 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
18237 * conf/Makefile.extra-dist: Update with new files.
18238 * gentpl.py: Remove rules related to unnecessary temporary files.
18239 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
18240 and und-* files.
18241 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
18242 genmod.sh scripts.
18243 * grub-core/bus/usb/uhci.c: Remove empty #define.
18244 * grub-core/genmoddep.awk: Updated with new syminfo format.
18245 * util/bash-completion.d/Makefile.am: Add config.log to
18246 CLEANFILES.
18247
18248 2010-09-19 Yves Blusseau <blusseau@zetam.org>
18249
18250 * Makefile.util.def: Add forgotten $(LIBINTL) library.
18251
18252 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
18253
18254 * util/grub-mkconfig.in: Check the config script for syntax errors
18255 before saving.
18256
18257 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
18258 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18259
18260 * Makefile.util.def (grub-install): Use util/grub-install.in on all
18261 platforms.
18262 * util/grub-install.in: Add EFI and IEEE1275 support.
18263 * util/i386/efi/grub-install.in: Removed.
18264 * util/ieee1275/grub-install.in: Likewise.
18265
18266 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18267
18268 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
18269 (grub_cmd_cmosclean): Likewise.
18270 (GRUB_MOD_INIT): Register command cmosclean.
18271 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
18272 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
18273
18274 2010-09-18 Carles Pina i Estany <carles@pina.cat>
18275 2010-09-18 Aleš Nesrsta <starous@volny.cz>
18276 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
18277
18278 Add keyboard layouts support.
18279
18280 * Makefile.util.def (grub-mklayout): New file.
18281 (grub-kbdcomp): New script.
18282 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
18283 Add keyboard_layouts.h.
18284 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
18285 commands/boot.c on yeeloong.
18286 (keylayouts): New module.
18287 * grub-core/bus/usb/ohci.c
18288 * grub-core/bus/usb/uhci.c
18289 * grub-core/bus/usb/usbhub.c (rescan): New variable.
18290 (grub_usb_add_hub): Poll interrupt pipe for device handling.
18291 (attach_root_port): Likewise.
18292 (poll_nonroot_hub): Likewise.
18293 (grub_usb_poll_devices): Likewise.
18294 (detach_device): Close transfer.
18295 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
18296 function.
18297 (grub_usb_bulk_setup_readwrite): Likewise.
18298 (grub_usb_bulk_finish_readwrite): Likewise.
18299 * grub-core/commands/keylayouts.c: New file.
18300 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
18301 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
18302 aliases.
18303 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
18304 support scancode 2.
18305 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
18306 * include/grub/keyboard_layouts.h: New file.
18307 * util/grub-mklayout.c: New file.
18308 * util/grub-kbdcomp.in: Likewise.
18309
18310 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
18311
18312 Unify memory types.
18313
18314 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
18315 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
18316 types.
18317 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
18318 (grub_upper_mem): Likewise.
18319 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
18320 * include/grub/memory.h (grub_memory_type_t): New enum.
18321 All users updated.
18322
18323 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
18324
18325 * grub-core/Makefile.core.def (lsapm): New module.
18326 * grub-core/commands/i386/pc/lsapm.c: New file.
18327 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
18328 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
18329 Likewise.
18330 * include/grub/i386/pc/apm.h: New file.
18331 * include/multiboot.h (multiboot_apm_info): New struct.
18332
18333 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
18334
18335 GRUB-legacy configuration file support.
18336
18337 * Makefile.util.def (grub-menulst2cfg): New util.
18338 * docs/man/grub-menulst2cfg.h2m: New file.
18339 * grub-core/Makefile.core.def (legacycfg): New module.
18340 * grub-core/commands/legacycfg.c: New file.
18341 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
18342 (grub_normal_add_menu_entry): ... this.
18343 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
18344 (grub_normal_set_password): ...this.
18345 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
18346 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
18347 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
18348 * grub-core/lib/legacy_parse.c: New file.
18349 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
18350 * include/grub/i386/pc/vesa_modes_table.h: New file.
18351 * include/grub/legacy_parse.h: Likewise.
18352 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
18353 * util/grub-menulst2cfg.c: New file.
18354
18355 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
18356
18357 * grub-core/kern/emu/hostdisk.c
18358 (convert_system_partition_to_system_disk): Initialise node.
18359
18360 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
18361
18362 * grub-core/kern/emu/hostdisk.c
18363 (convert_system_partition_to_system_disk): Fix devmapper memory pool
18364 leak.
18365 Reported and based on patch by: Modestas Vainius.
18366
18367 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
18368
18369 Fix DM-RAID probing with recent versions of device-mapper udev
18370 rules.
18371
18372 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
18373 canonicalise device paths under /dev/mapper/.
18374 (convert_system_partition_to_system_disk): Compare the
18375 uncanonicalised path to /dev/mapper/ rather than the canonicalised
18376 path, since device nodes under /dev/mapper/ are often symlinks.
18377
18378 2010-09-17 Yves Blusseau <blusseau@zetam.org>
18379
18380 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
18381
18382 2010-09-16 Yves Blusseau <blusseau@zetam.org>
18383
18384 * configure.ac: Avoid some annoying error messages if freetype-config
18385 program is not found.
18386
18387 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
18388
18389 Support RAID on virtio devices, and others.
18390
18391 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
18392 Rename to ...
18393 [__MINGW32__] (grub_find_device): ... this.
18394 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
18395 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
18396 reasonable default if dir is NULL.
18397 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
18398 ...
18399 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
18400 (grub_guess_root_device): Update callers.
18401 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
18402
18403 * util/raid.c (grub_util_getdiskname): Remove.
18404 (grub_util_raid_getmembers): Use grub_find_device rather than
18405 grub_util_getdiskname.
18406
18407 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
18408
18409 * docs/grub.texi (serial): Remove obsolete comment about GRUB
18410 needing to be compiled with serial support.
18411 (ls): Indicate that multiple files are accepted.
18412 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
18413 indicate that multiple files are accepted.
18414
18415 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
18416
18417 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
18418 libgrub_a_init.c, and util/bash-completion.d/grub.
18419
18420 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18421
18422 * util/grub-setup.c (setup): Fix incorrect container semantics.
18423
18424 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18425
18426 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
18427 misusage.
18428 Reported by: J. Nick Terry
18429
18430 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18431
18432 Move embedding routines to partmap sources files.
18433
18434 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
18435 [GRUB_UTIL]: New variable.
18436 (gpt_partition_map_iterate): Set part.parent.
18437 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
18438 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
18439 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
18440 New function.
18441 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
18442 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
18443 (grub_partition_map) [GRUB_UTIL]: New field embed.
18444 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
18445 (setup): Use ->embed.
18446
18447 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18448
18449 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
18450 function.
18451 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
18452 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
18453
18454 2010-09-15 Yves Blusseau <blusseau@zetam.org>
18455
18456 Add function to get completions from usage.
18457
18458 * util/bash-completion.d/grub-completion.bash.in: Add function to get
18459 completions from usage. Use LC_ALL=C to get options properly.
18460
18461 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18462
18463 * grub-core/gnulib/basename-lgpl.c: Imported.
18464 * grub-core/gnulib/basename.c: Likewise.
18465 * grub-core/gnulib/dirname-lgpl.c: Likewise.
18466 * grub-core/gnulib/dirname.c: Likewise.
18467 * grub-core/gnulib/dirname.h: Likewise.
18468 * grub-core/gnulib/stripslash.c: Likewise.
18469
18470 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18471
18472 * grub-core/gnulib/error.c: Resynced.
18473 * grub-core/gnulib/getopt.c: Likewise.
18474 * grub-core/gnulib/getopt_int.h: Likewise.
18475 * grub-core/gnulib/regex.h: Likewise.
18476 * grub-core/gnulib/regex_internal.c: Likewise.
18477 * grub-core/gnulib/regex_internal.h: Likewise.
18478
18479 2010-09-15 Szymon Janc <szymon@janc.net.pl>
18480
18481 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
18482 CRC calculations and validity checks.
18483 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
18484 calculations.
18485
18486 2010-09-15 Szymon Janc <szymon@janc.net.pl>
18487
18488 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
18489
18490 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18491
18492 Fix incorrect echo options handling.
18493 Reported by: Yves Blusseau.
18494
18495 * include/grub/command.h (grub_command_flags_t): New flags
18496 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
18497 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
18498 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
18499
18500 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18501
18502 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
18503 users updated.
18504 (GRUB_COMMAND_FLAG_MENU): Likewise.
18505 (GRUB_COMMAND_FLAG_BOTH): Likewise.
18506 (GRUB_COMMAND_FLAG_TITLE): Removed.
18507 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
18508 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
18509 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
18510 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
18511 (grub_command_flags_t): New enum. All users updated.
18512
18513 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
18514
18515 Fix solaris compilation.
18516
18517 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
18518 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
18519 (grub-emu-list): Likewise.
18520
18521 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18522
18523 Remove deprecated root command.
18524
18525 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
18526 updated.
18527
18528 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18529
18530 * util/i386/pc/grub-setup.c: Merge this ...
18531 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
18532 * util/grub-setup.c: ... into this.
18533 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
18534 New struct.
18535
18536 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18537
18538 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
18539 possible.
18540
18541 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18542
18543 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
18544 allocate p.
18545
18546 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18547
18548 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
18549 explicit root argument to set to prevent UUID to be interpreted as
18550 argument to set.
18551
18552 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18553
18554 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
18555
18556 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18557
18558 Don't export grub_gate_a20.
18559
18560 * grub-core/kern/i386/pc/init.c: Remove leftovers.
18561 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
18562 to ...
18563 (grub_gate_a20): ... this. All users updated.
18564 * include/grub/i386/pc/init.h: Removed. All users updated.
18565
18566 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18567
18568 Create euro.pf2 which supports most European languages.
18569
18570 * Makefile.am (grubdata_DATA): Add euro.pf2.
18571 (euro.pf2): New target.
18572 (CLEANFILES): Add euro.pf2.
18573
18574 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
18575
18576 * configure.ac: Disable emu-usb by default to prevent inadvertent
18577 device takeover.
18578
18579 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18580
18581 Disable usbserial on grub-emu since our libusb code isn't good enough
18582 yet.
18583
18584 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
18585 (usbserial_pl2303): Likewise.
18586 (usbserial_ftdi): Likewise.
18587
18588 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18589
18590 * include/grub/disk.h (grub_disk): Remove has_partitions.
18591 All users updated.
18592 * disk/loopback.c (grub_loopback): Remove has_partitions.
18593 All users updated.
18594 (options): Remove partitions. All users updated.
18595 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
18596 * util/i386/pc/grub-setup.c (setup): copy partition table only when
18597 actual partition table is found.
18598
18599 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18600
18601 Remove readability checks (too many false negatives).
18602
18603 * util/grub-install.in: Remove readability checks.
18604 * util/grub-mkconfig.in: Likewise.
18605 * util/grub.d/10_hurd.in: Likewise.
18606 * util/grub.d/10_kfreebsd.in: Likewise.
18607 * util/grub.d/10_linux.in: Likewise.
18608 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
18609 way.
18610
18611 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18612
18613 Enable acpi shutdown on all ACPI platforms.
18614
18615 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
18616 on coreboo, multiboot and EFI.
18617 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
18618 (grub_acpi_halt): Likewise.
18619 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
18620 (grub_cmd_halt): Don't call grub_acpi_halt directly.
18621 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
18622 * grub-core/lib/i386/halt.c (grub_halt)
18623 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
18624
18625 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18626
18627 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
18628 context.
18629
18630 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18631
18632 * grub-core/video/efi_gop.c: Fix over-80-chars line.
18633 * grub-core/video/efi_uga.c: Likewise.
18634
18635 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18636
18637 Filter devaliases and never open same device twice.
18638
18639 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
18640 (last_ihandle): Likewise.
18641 (ofdisk_hash_ent): New member shortest.
18642 (ofdisk_hash_add): Add canonical path too.
18643 (scan): New function.
18644 (grub_ofdisk_iterate): Iterate over hashed entries.
18645 (compute_dev_path): Don't add :0.
18646 (grub_ofdisk_open): Don't really open the disk.
18647 (grub_ofdisk_close): Avoid closing unrelated disk.
18648 (grub_ofdisk_read): Implement reopen logic.
18649 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
18650 New function.
18651 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
18652 New proto.
18653
18654 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18655
18656 Fix sparc64.
18657
18658 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
18659 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
18660 right address. Add sparc64_ieee1275_ldflags.
18661 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
18662 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
18663 to grub_host_to_target_addr
18664 (load_image): Likewise.
18665
18666 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18667
18668 * grub-core/normal/completion.c (complete_file): Handle device
18669 containing slash.
18670 Fix based on patch by Doug Nazar.
18671
18672 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18673
18674 grub-mknetdir script.
18675
18676 * Makefile.util.def (grub-mknetdir): New module.
18677 * tests/util/grub-shell.in: Support boot=net
18678 * util/grub-mknetdir.in: New file.
18679
18680 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18681
18682 videoinfo on non-vbe.
18683
18684 * grub-core/Makefile.core.def (vbeinfo): Removed.
18685 (vbetest): Removed.
18686 (videoinfo): New module.
18687 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
18688 * grub-core/commands/i386/pc/vbetest.c: Removed.
18689 * grub-core/commands/videoinfo.c: New file.
18690 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
18691 specification.
18692 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
18693 as vbetest.
18694 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
18695 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
18696 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
18697 mode_number. New parameter mode. All users updated.
18698 (grub_video_gop_iterate): New function.
18699 (grub_video_efi_gop): New member iterate.
18700 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
18701 (grub_vbe_set_video_mode): Remove setting useless fields.
18702 (vbe2videoinfo): New function.
18703 (grub_video_vbe_iterate): Likewise.
18704 (grub_video_vbe_setup): Use vbe2videoinfo.
18705 (grub_video_vbe_print_adapter_specific_info): New function.
18706 (grub_video_vbe_adapter): New fields iterate and
18707 print_adapter_specific_info.
18708 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
18709 All users updated.
18710 (grub_video_mode_info): New field mode_number.
18711 (grub_video_adapter): New fields iterate and
18712 print_adapter_specific_info.
18713
18714 2010-09-13 Tristan Gingold <gingold@free.fr>
18715 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
18716 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18717
18718 * grub-core/commands/efi/lsefisystab.c: New file.
18719 * grub-core/commands/efi/lssal.c: Likewise.
18720 * grub-core/Makefile.core.def (lsacpi): New module.
18721 (lsefisystab): Likewise.
18722 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
18723 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
18724 (grub_efi_sal_system_table): New struct.
18725 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
18726 (grub_efi_sal_system_table_memory_descriptor): Likewise.
18727 (grub_efi_sal_system_table_platform_features): Likewise.
18728 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
18729 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
18730 (grub_efi_sal_system_table_ap_wakeup): Likewise.
18731 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
18732
18733 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18734
18735 Support explicit user claim that a device is BIOS-visible.
18736
18737 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
18738 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
18739 * grub-core/kern/emu/hostdisk.c
18740 (convert_system_partition_to_system_disk): Support mdX.
18741 (find_system_device): New parameter add. All users updated.
18742 (grub_util_biosdisk_is_present): New function.
18743 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
18744 proto.
18745
18746 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
18747
18748 Search hints support.
18749
18750 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
18751 All users updated.
18752
18753 2010-09-13 Yves Blusseau <blusseau@zetam.org>
18754
18755 Bash completion script for util commands
18756
18757 * Makefile.am: Add util/bash-completion.d directory
18758 * configure.ac: Likewise.
18759 * util/bash-completion.d/Makefile.am: New file.
18760 * util/bash-completion.d/grub-completion.bash.in: Likewise.
18761
18762 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18763
18764 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
18765 (print_backlog): set backlog_ucs4 and backlog_glyphs.
18766 Reported by: Yves Blusseau.
18767
18768 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18769
18770 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
18771 partition size and offset.
18772
18773 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18774
18775 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
18776
18777 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18778
18779 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
18780
18781 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18782
18783 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
18784 (grub_xvasprintf): Likewise.
18785
18786 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18787
18788 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
18789
18790 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18791
18792 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
18793 args ending with NULL.
18794
18795 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
18796
18797 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
18798 pointer.
18799
18800 2010-09-11 Szymon Janc <szymon@janc.net.pl>
18801
18802 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
18803
18804 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18805
18806 Shutdown using ACPI.
18807
18808 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
18809 * grub-core/commands/acpihalt.c: New file.
18810 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
18811 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
18812 (grub_acpi_halt): New proto.
18813 (GRUB_ACPI_SLP_EN): New const.
18814 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
18815 (GRUB_ACPI_OPCODE_*): New enum.
18816 (GRUB_ACPI_EXTOPCODE_*): Likewise.
18817
18818 2010-09-11 Tristan Gingold <gingold@free.fr>
18819 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
18820 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18821
18822 * commands/lsacpi.c: New file.
18823 * grub-core/Makefile.core.def (lsacpi): New module.
18824 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
18825 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
18826 (grub_acpi_madt_entry_header): New struct.
18827 (grub_acpi_madt): Likewise.
18828 (grub_acpi_madt_entry_interrupt_override): Likewise.
18829 (grub_acpi_madt_entry_sapic): Likewise.
18830 (grub_acpi_madt_entry_lsapic): Likewise.
18831 (grub_acpi_madt_entry_platform_int_source): Likewise.
18832 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
18833 (PRIuGRUB_UINT32_T): Likewise.
18834 (PRIxGRUB_UINT64_T): Likewise.
18835
18836 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18837
18838 Implement loading palette on ieee1275_fb.
18839
18840 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
18841 (have_setcolors): Likewise.
18842 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
18843 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
18844 (grub_video_ieee1275_set_palette): Implement.
18845
18846 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18847 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
18848
18849 * util/grub-install.in (grub_partition): New variable.
18850 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
18851 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
18852 Fixes a bug reported by Yves Blusseau.
18853
18854 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
18855
18856 Fix emu on mipsel.
18857
18858 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
18859 =grub_cpu_flush_cache on all mips and not only yeeloong.
18860 * configure.ac (COND_mips): New conditional.
18861 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
18862 platforms.
18863 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
18864 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
18865 [GRUB_LINKER_HAVE_INIT]: New function.
18866 (grub_emu_post_init): Likewise.
18867 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
18868 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
18869 * include/grub/cache.h (_mips): Include mips/cache.h.
18870 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
18871 LVM and RAID prototypes.
18872 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
18873 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
18874 function.
18875
18876 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
18877
18878 * util/grub-install.in: Don't try to verify core.img until after
18879 running grub-mkimage to create it.
18880
18881 2010-09-10 Robert Millan <rmh@gnu.org>
18882
18883 * util/grub.d/10_hurd.in: Add misc readability checks.
18884 * util/grub.d/10_kfreebsd.in: Likewise.
18885 * util/grub.d/10_linux.in: Likewise.
18886
18887 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
18888
18889 * util/grub-install.in: ${imgext} won't be defined here until the
18890 install branch is merged. For the meantime, only verify core.img on
18891 i386-pc and sparc64-ieee1275 platforms.
18892
18893 2010-09-10 Robert Millan <rmh@gnu.org>
18894
18895 Solaris support in grub_find_zpool_from_dir(). Thanks
18896 Seth Goldberg for referring to getextmntent() facility.
18897
18898 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
18899 `sys/mkdev.h'.
18900 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
18901 `<sys/mnttab.h>'.
18902 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
18903 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
18904 method for finding zpool name.
18905
18906 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
18907
18908 grub-fstest needs the host and hostfs modules while other utilities
18909 actively require those modules to be absent, so grub-fstest needs
18910 its own initialisation and finalisation code.
18911
18912 * Makefile.am (grub_fstest.pp): New target.
18913 (grub_fstest_init.lst): Likewise.
18914 (grub_fstest_init.c): Likewise.
18915 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
18916
18917 2010-09-10 Robert Millan <rmh@gnu.org>
18918
18919 * configure.ac: Check for `struct statfs.f_fstypename' and
18920 `struct statfs.f_mntfromname'.
18921
18922 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
18923 kFreeBSD-specific code.
18924
18925 2010-09-10 Robert Millan <rmh@gnu.org>
18926
18927 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
18928 on ZFS. Now non-main filesystems are supported as / too.
18929
18930 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
18931
18932 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
18933 and grub-core/disk/host.c to ...
18934 (grub-fstest): ... here. Having the host disk implementation
18935 present confuses grub-probe and other utility programs.
18936
18937 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
18938 when writing to a file, not when writing to stdout.
18939
18940 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
18941
18942 * tests/partmap_test.in: New test for partitions.
18943 * Makefile.util.def: Rules for new test.
18944
18945 2010-09-09 Robert Millan <rmh@gnu.org>
18946
18947 * util/grub-probe.c (probe): Fix a pair of unhandled error
18948 conditions.
18949
18950 2010-09-09 Robert Millan <rmh@gnu.org>
18951
18952 Basic Btrfs support (detection and UUID).
18953
18954 * grub-core/fs/btrfs.c: New file.
18955 * Makefile.util.def (library): Register btrfs.c.
18956 * grub-core/Makefile.core.def: Likewise.
18957
18958 2010-09-08 Robert Millan <rmh@gnu.org>
18959
18960 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
18961 with (optional) parameters to specify device and relative path.
18962 * util/grub-install.in: Use is_path_readable_by_grub() to
18963 verify readability of a few critical files.
18964 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
18965 verify readability of grub.cfg.new.
18966
18967 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
18968
18969 Split minix.mod into minix.mod and minix2.mod.
18970
18971 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
18972 * grub-core/Makefile.core.def (minix2): New module.
18973 * grub-core/fs/minix.c: Use definitions instead of runtime version
18974 checking.
18975 * grub-core/fs/minix2.c: New file.
18976
18977 2010-09-08 Yves Blusseau <blusseau@zetam.org>
18978
18979 Add new --boot-directory option to replace --root-directory
18980
18981 * util/grub-install.in: Add new --boot-directory option
18982 * util/grub-reboot.in: Likewise.
18983 * util/grub-set-default.in: Likewise.
18984
18985 2010-09-08 Yves Blusseau <blusseau@zetam.org>
18986
18987 * util/grub-mkconfig.in: Use new variable.
18988
18989 2010-09-08 Yves Blusseau <blusseau@zetam.org>
18990
18991 * configure.ac: Define some useful variables.
18992
18993 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
18994
18995 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
18996 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
18997 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
18998 Use terminfo and don't use cursor-on/cursor-off unless it's known
18999 to work.
19000 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
19001 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
19002
19003 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
19004
19005 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
19006 starts with "(,", fill the drive containing the loaded image in
19007 between those two characters, but expect that a full partition
19008 specification including partition map names will follow.
19009
19010 2010-09-08 Robert Millan <rmh@gnu.org>
19011
19012 * configure.ac: Remove `--enable-grub-fstest' option.
19013 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
19014
19015 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
19016 `grub-fstest' instead of `grub-probe' for readability verification.
19017 * util/grub-probe.c (probe): Remove readability verification kludge.
19018
19019 2010-09-08 Robert Millan <rmh@gnu.org>
19020
19021 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
19022 initializing `GRUB_FS'.
19023
19024 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
19025
19026 Not command (!) support to GRUB script.
19027
19028 * tests/grub_script_not.in: New test.
19029 * Makefile.util.def: Rules for new test.
19030
19031 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
19032 ! command as a special case.
19033 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
19034
19035 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
19036
19037 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
19038 grub_free.
19039
19040 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
19041
19042 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
19043
19044 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
19045
19046 * docs/grub.texi (Shell-like scripting): Documentation for break,
19047 continue, shift and return commands.
19048
19049 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
19050
19051 Rename CD-ROM to cd on BIOS.
19052
19053 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
19054 "cd".
19055 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
19056
19057 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19058
19059 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
19060 * util/grub-probe.c (main): Likewise.
19061 * util/i386/pc/grub-setup.c (main): Likewise.
19062 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
19063 Reported and debugged by: alexxy
19064
19065 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19066
19067 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
19068 diagnostic info.
19069
19070 2010-09-05 Jo Shields <directhex@apebox.org>
19071
19072 * util/grub.d/30_os-prober.in: Add missing classes.
19073
19074 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19075
19076 * docs/grub.texi (Theme file format): Document new position format.
19077
19078 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19079
19080 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
19081 a table. Use @code instead of @verbatim.
19082
19083 2010-09-05 Colin D Bennett <colin@gibibit.com>
19084
19085 Gfxmenu documentation.
19086
19087 * docs/grub.texi (Theme file format): New chapter.
19088
19089 2010-09-05 Szymon Janc <szymon@janc.net.pl>
19090
19091 * grub-core/Makefile.core.def (xzio): New module.
19092 * grub-core/io/xzio.c: New file.
19093 * grub-core/lib/xzembed/xz.h: New file (from xembed).
19094 * grub-core/lib/xzembed/xz_config.h: Likewise.
19095 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
19096 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
19097 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
19098 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
19099 * grub-core/lib/xzembed/xz_private.h: Likewise.
19100 * grub-core/lib/xzembed/xz_stream.h: Likewise.
19101 * include/grub/file.h (grub_file_filter_id): New compression filter
19102 GRUB_FILE_FILTER_XZIO.
19103
19104 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19105
19106 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
19107 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
19108 size.
19109
19110 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19111
19112 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
19113 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
19114
19115 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19116
19117 Uncompressed checksum support.
19118
19119 * grub-core/commands/hashsum.c (options): Add option --uncompress.
19120 (check_list): New parameter uncompress.
19121 (grub_cmd_hashsum): Handle --uncompress.
19122
19123 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19124
19125 Reintroduce testload.
19126
19127 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
19128 from here ...
19129 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
19130 (GRUB_MOD_INIT): New function.
19131 (GRUB_MOD_FINI): Likewise.
19132 * grub-core/Makefile.core.def (testload): New module.
19133
19134 2010-09-05 Szymon Janc <szymon@janc.net.pl>
19135
19136 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
19137 (uint8_t): New type.
19138 (uint16_t): Likewise.
19139 (uint32_t): Likewise.
19140 (uint64_t): Likewise.
19141
19142 2010-09-05 Szymon Janc <szymon@janc.net.pl>
19143
19144 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
19145
19146 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19147
19148 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
19149 Made static.
19150 (grub_gzfile_open): Removed. All users updated.
19151 (GRUB_MOD_INIT): New function.
19152 (GRUB_MOD_FINI): Likewise.
19153 * grub-core/kern/file.c (grub_file_filters_all): New variable.
19154 (grub_file_filters_enabled): Likewise.
19155 (grub_file_open): Handle filters.
19156 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
19157 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
19158 * include/grub/file.h (grub_file_filter_id_t): New type.
19159 (grub_file_filter_t): Likewise.
19160 (grub_file_filters_all): New extern variable.
19161 (grub_file_filters_enabled): Likewise.
19162 (grub_file_filter_register): New inline function.
19163 (grub_file_filter_unregister): Likewise.
19164 (grub_file_filter_disable): Likewise.
19165 (grub_file_filter_disable_compression): Likewise.
19166 * include/grub/gzio.h: Removed.
19167
19168 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19169
19170 Filename expansion support for wildcards in GRUB script.
19171
19172 * tests/grub_script_expansion.in: New test.
19173 * Makefile.util.def: Rule for new test.
19174
19175 * grub-core/commands/wildcard.c: New file, implements filename
19176 expansion support for GRUB script.
19177 * grub-core/Makefile.core.def: Rule update for regexp.mod.
19178 * grub-core/script/argv.c: Cosmetic changes.
19179 * grub-core/script/execute.c (grub_script_arglist_to_argv):
19180 Refactored to perform wildcard expansion on arguments.
19181 * include/grub/script_sh.h (grub_script_wildcard_translator): New
19182 struct.
19183
19184 * tests/util/grub-shell.in: Fix quoting for read input.
19185
19186 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19187
19188 Support for updating environment variables with matched substrings
19189 of regexp.
19190
19191 * tests/grub_cmd_regexp.in: New test.
19192 * Makefile.util.def: Rule for new test.
19193
19194 * grub-core/commands/regexp.c: New option -s to update environment
19195 variables with regexp matches.
19196
19197 2010-09-04 Szymon Janc <szymon@janc.net.pl>
19198
19199 * include/grub/file.h (grub_file): New member not_easly_seekable.
19200 (grub_file_seekable): New inline function.
19201 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
19202 easily seekable.
19203 (grub_gzio_open): Set not_easly_seekable.
19204 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
19205 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
19206
19207 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19208
19209 Support for options to appear multiple times on cmdline.
19210
19211 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
19212 * grub-core/commands/extcmd.c: Support for repeatable option.
19213 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
19214 repeatable option support.
19215
19216 Refactor menuentry into a regular command.
19217
19218 * grub-core/commands/menuentry.c: New file, menuentry command
19219 implementation.
19220 * grub-core/Makefile.core.def: Rule update for normal.mod.
19221 * grub-core/normal/main.c: Moved menuentry creation to
19222 grub-core/commands/menuentry.c.
19223 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
19224 (grub_menu_execute_entry_real): Removed.
19225 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
19226 function.
19227 (grub_script_execute_menuentry): Removed.
19228 * grub-core/script/parser.y (menuentry): Removed.
19229 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
19230 * grub-core/script/yylex.l (menuentry): Removed.
19231 * include/grub/menu.h (grub_menu_init): New prototype.
19232 (grub_menu_fini): New prototype.
19233 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
19234 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
19235 (grub_script_execute_sourcecode): New prototype.
19236
19237 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19238
19239 "return" command for GRUB script functions.
19240
19241 * tests/grub_script_return.in: New test.
19242 * Makefile.util.def: Rules for new test.
19243
19244 * grub-core/script/execute.c (grub_script_return): New function.
19245 * grub-core/script/main.c: Register/unregister return commaond.
19246 * include/grub/script_sh.h (grub_script_return): New prototype.
19247
19248 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19249
19250 "setparams" command to update positional parameters.
19251
19252 * tests/grub_script_setparams.in: New test.
19253 * Makefile.util.def: Rules for new test.
19254
19255 * grub-core/script/argv.c (grub_script_argv_make): New function.
19256 * grub-core/script/execute.c (replace_scope): New function.
19257 (grub_script_setparams): New function.
19258 * grub-core/script/lexer.c: Remove unused variables.
19259 * grub-core/script/main.c: Register/unregister setparams command.
19260 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
19261 (grub_script_setparams): New prototype.
19262
19263 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19264
19265 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
19266 grub_free order.
19267
19268 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19269
19270 Support for passing block of commands as an argument to extcmds.
19271
19272 * Makefile.util.def: Rules for new test.
19273 * tests/grub_script_blockarg.in: New test.
19274 * grub-core/tests/test_blockarg.c: New file, block argument
19275 command used in the test.
19276
19277 * include/grub/extcmd.h (grub_extcmd_context): New struct.
19278 (grub_register_extcmd_prio): New function prototype.
19279 (grub_extcmd_dispatcher): New function prototype.
19280 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
19281 type.
19282 * include/grub/script_sh.h (struct grub_script): New members
19283 `children', `next_siblings' and `refcnt' for block arguments and
19284 reference counting.
19285 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
19286 (grub_script_arg): New member `script' for block argument.
19287 (grub_script_argv): New member `script' for block argument.
19288 (grub_parser_param): New member `scripts' for block argument.
19289 (grub_script_mem_free): New extern function prototype.
19290 (grub_script_ref): New function prototype.
19291 (grub_script_unref): New function prototype.
19292
19293 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
19294 extcmd form to support block arguments.
19295 * grub-core/script/argv.c: Block arguments support.
19296 * grub-core/script/execute.c: Likewise.
19297 * grub-core/script/lexer.c: Likewise.
19298 * grub-core/script/main.c: Likewise.
19299 * grub-core/script/script.c: Likewise.
19300 * grub-core/script/parser.y: Likewise. New `block' and `block0'
19301 non-terminals.
19302
19303 * grub-core/commands/acpi.c: Update extcmd implementations with
19304 grub_extcmd_context_t.
19305 * grub-core/commands/cat.c: Likewise.
19306 * grub-core/commands/echo.c: Likewise.
19307 * grub-core/commands/extcmd.c: Likewise.
19308 * grub-core/commands/hashsum.c: Likewise.
19309 * grub-core/commands/hdparm.c: Likewise.
19310 * grub-core/commands/help.c: Likewise.
19311 * grub-core/commands/hexdump.c: Likewise.
19312 * grub-core/commands/i386/cpuid.c: Likewise.
19313 * grub-core/commands/i386/pc/drivemap.c: Likewise.
19314 * grub-core/commands/i386/pc/halt.c: Likewise.
19315 * grub-core/commands/i386/pc/sendkey.c: Likewise.
19316 * grub-core/commands/iorw.c: Likewise.
19317 * grub-core/commands/keystatus.c: Likewise.
19318 * grub-core/commands/loadenv.c: Likewise.
19319 * grub-core/commands/ls.c: Likewise.
19320 * grub-core/commands/lspci.c: Likewise.
19321 * grub-core/commands/memrw.c: Likewise.
19322 * grub-core/commands/probe.c: Likewise.
19323 * grub-core/commands/search_wrap.c: Likewise.
19324 * grub-core/commands/setpci.c: Likewise.
19325 * grub-core/commands/sleep.c: Likewise.
19326 * grub-core/disk/loopback.c: Likewise.
19327 * grub-core/hello/hello.c: Likewise.
19328 * grub-core/loader/i386/bsd.c: Likewise.
19329 * grub-core/loader/xnu.c: Likewise.
19330 * grub-core/term/gfxterm.c: Likewise.
19331 * grub-core/term/serial.c: Likewise.
19332 * grub-core/tests/lib/functional_test.c: Likewise.
19333
19334 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19335
19336 Multi-line quoted strings support.
19337
19338 * grub-core/script/lexer.c (append_newline): Removed.
19339 (grub_script_lexer_yywrap): Refactored.
19340 (grub_script_lexer_init): Refactored.
19341 * grub-core/script/yylex.l (yywrap): New function.
19342 (grub_lexer_resplit): New function.
19343 (grub_lexer_unput): New function.
19344 * include/grub/script_sh.h (grub_lexer_param): New members, unput
19345 and resplit.
19346 * tests/grub_script_echo1.in: Added few more testcases.
19347
19348 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
19349
19350 * grub-core/kern/misc.c: Don't add abort alias in utils.
19351 Reported by: echoline.
19352
19353 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
19354
19355 Add missing files into "make dist" tarball for other platforms.
19356
19357 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
19358 * conf/Makefile.common (dist_noinst_DATA): New variable.
19359 * conf/Makefile.extra-dist: Added missing make dist files.
19360 * grub-core/Makefile.core.def: Likewise.
19361
19362 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
19363
19364 Compress grub_prefix.
19365
19366 * grub-core/boot/i386/pc/lnxboot.S: Use
19367 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
19368 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
19369 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
19370 GRUB_MACHINE_PREFIX_END. All users updated.
19371 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
19372 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
19373 + 0x40.
19374 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
19375 * util/grub-mkimage.c (image_target_desc): Change data_end to
19376 prefix_end. All users updated.
19377
19378 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
19379
19380 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
19381 value.
19382 (grub_openbsd_boot): Likewise.
19383 (grub_netbsd_boot): Likewise.
19384 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
19385 (grub_xnu_boot): Likewise.
19386
19387 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19388
19389 * configure.ac: Clean LIBS variable after tests.
19390
19391 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
19392
19393 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
19394
19395 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19396
19397 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
19398 echo if libdevmapper will be used.
19399
19400 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
19401
19402 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
19403 constant for the same file.
19404
19405 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19406
19407 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
19408
19409 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
19410
19411 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
19412 grub-core/*.pp.
19413
19414 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
19415
19416 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
19417 required by the boot protocol.
19418
19419 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
19420 ebp and edi members.
19421 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
19422 state.ebp and state.edi.
19423 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
19424 %ebp and %edi according to grub_relocator32_ebp and
19425 grub_relocator32_edi respectively.
19426 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
19427 and state.edi.
19428
19429 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19430
19431 Add i386-pc-pxe image target.
19432
19433 * util/grub-mkimage.c (image_target_desc): New enum value
19434 IMAGE_I386_PC_PXE.
19435 (image_targets): New target i386-pc-pxe.
19436 (generate_image): Handle i386-pc-pxe image.
19437
19438 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19439
19440 Fix grub_pxe_scan.
19441
19442 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
19443 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
19444 All users updated.
19445 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
19446 (grub_pxe_pxenv): Correct type.
19447
19448 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
19449
19450 * NEWS: Document most of the important changes since 1.98.
19451
19452 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
19453
19454 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
19455 generated manual page) a little.
19456
19457 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
19458
19459 * docs/grub.texi: Add myself as an author.
19460
19461 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
19462
19463 * Makefile.util.def (libgrub.a): Add missing sunpc.
19464 Reported by: Seth Goldberg.
19465
19466 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19467
19468 Interrupt wrapping and code simplifications.
19469
19470 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
19471 x86_noieee1275 which are functionaly equivalent in this case.
19472 (grub-install): Make source on each platform explicit. Enable on
19473 all noemu.
19474 * gentpl.py (x86_efi_pc): Removed group.
19475 (x86_noefi): Likewise.
19476 (i386_noefi): Likewise.
19477 (x86_noieee1275): Likewise.
19478 (i386_noieee1275): Likewise.
19479 (i386_noefi_noieee1275): Likewise.
19480 (i386_pc_qemu_coreboot): Likewise.
19481 (i386_coreboot_multiboot): Likewise.
19482 (i386_pc_coreboot_multiboot_qemu): Likewise.
19483 (x86_noefi_mips): Likewise.
19484 (noieee1275): Likewise.
19485 (ieee1275_mips): Likewise.
19486 (noemu_noieee1275): Likewise.
19487 (cmos): New group.
19488 (usb): Likewise.
19489 (videoinkernel): Likewise.
19490 (videomodules): Likewise.
19491 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
19492 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
19493 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
19494 include/grub/loader.h, include/grub/msdos_partition.h,
19495 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
19496 include/grub/machine/console.h, include/grub/machine/vga.h,
19497 include/grub/machine/vbe.h, include/grub/machine/init.h,
19498 include/grub/machine/kernel.h, include/grub/cpu/time.h,
19499 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
19500 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
19501 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
19502 * grub-core/Makefile.core.def (kernel): Explicit the source for
19503 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
19504 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
19505 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
19506 Use videoinkernel tag.
19507 (usb): Enable on all usb.
19508 (usbserial_common): Likewise.
19509 (usbserial_pl2303): Likewise.
19510 (usbserial_ftdi): Likewise.
19511 (uhci): Enable on all x86.
19512 (ohci): Enable on all pci.
19513 (cmostest): Enable on all CMOS.
19514 (acpi): Include commands/acpi.c on all platforms.
19515 (halt): Add relevant lib/*/halt.c.
19516 (hdparm): Enable on all pci.
19517 (lspci): Likewise.
19518 (usbtest): Enable on all usb.
19519 (ata): Enable on all pci.
19520 (ata_pthru): Likewise.
19521 (usbms): Enable on all usb.
19522 (usb_keyboard): Likewise.
19523 (font): Use tag videomodules.
19524 (bufio): Likewise.
19525 (datetime): Use tag cmos. Enable on all noemu.
19526 (mmap): Use tags common and x86.
19527 (gfxterm): Use tag videomodules.
19528 (bitmap): Likewise.
19529 (bitmap_scale): Likewise.
19530 (video_fb): Likewise.
19531 (video): Likewise.
19532 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
19533 adjust padding accordingly. All users updated.
19534 (grub_ohci_transaction): Fix bad format specification.
19535 (GRUB_MOD_INIT): Add asserts for struct size.
19536 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
19537 (grub_alloc_td): Likewise.
19538 (grub_free_queue): Likewise.
19539 (grub_uhci_transfer): Likewise.
19540 (grub_uhci_transaction): Fix bad format specification.
19541 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
19542 (grub_usb_bulk_readwrite): Likewise.
19543 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
19544 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
19545 Made static.
19546 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
19547 Made static.
19548 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
19549 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
19550 Transformed into C.
19551 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
19552 Moved from here ...
19553 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
19554 ... here. Transformed into C. Made static.
19555 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
19556 Moved from here ...
19557 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
19558 ... here. Transformed into C. Made static.
19559 * grub-core/kern/i386/pc/startup.S
19560 (grub_biosdisk_check_int13_extensions): Moved from here ...
19561 * grub-core/disk/i386/pc/biosdisk.c
19562 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
19563 Made static.
19564 * grub-core/kern/i386/pc/startup.S
19565 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
19566 * grub-core/disk/i386/pc/biosdisk.c
19567 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
19568 Transformed into C. Made static.
19569 * grub-core/kern/i386/pc/startup.S
19570 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
19571 * grub-core/disk/i386/pc/biosdisk.c
19572 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
19573 Transformed into C. Made static.
19574 * grub-core/kern/i386/pc/startup.S
19575 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
19576 * grub-core/disk/i386/pc/biosdisk.c
19577 (grub_biosdisk_get_diskinfo_standard): ... here.
19578 Transformed into C. Made static.
19579 * grub-core/kern/i386/pc/startup.S
19580 (grub_biosdisk_get_num_floppies): Moved from here ...
19581 * grub-core/disk/i386/pc/biosdisk.c
19582 (grub_biosdisk_get_num_floppies): ... here.
19583 Transformed into C. Made static.
19584 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
19585 New function.
19586 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
19587 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
19588 Transformed into C. Made static.
19589 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
19590 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
19591 Transformed into C. Made static.
19592 * grub-core/kern/i386/ieee1275/init.c: Removed.
19593 * grub-core/kern/i386/misc.S: Likewise.
19594 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
19595 Splitted from here ...
19596 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
19597 Transformed into C. Made static. All users updated.
19598 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
19599 Transformed into C. Made static. All users updated.
19600 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
19601 Moved from here...
19602 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
19603 Transformed into C. Made static. All users updated.
19604 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
19605 Moved from here...
19606 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
19607 Transformed into C. Made static. All users updated.
19608 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
19609 Removed (replaced by C version).
19610 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
19611 Moved from here...
19612 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
19613 Transformed into C. Made static.
19614 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
19615 Moved from here...
19616 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
19617 ... here. Transformed into C.
19618 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
19619 Moved from here...
19620 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
19621 ... here. Transformed into C.
19622 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
19623 Moved from here...
19624 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
19625 ... here. Transformed into C. Made static.
19626 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
19627 Moved from here...
19628 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
19629 ... here. Transformed into C.
19630 * grub-core/kern/i386/pc/startup.S
19631 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
19632 * grub-core/video/i386/pc/vbe.c
19633 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
19634 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
19635 Moved from here...
19636 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
19637 ... here. Transformed into C.
19638 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
19639 Moved from here...
19640 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
19641 ... here. Transformed into C.
19642 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
19643 Moved from here...
19644 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
19645 ... here. Transformed into C.
19646 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
19647 Moved from here...
19648 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
19649 ... here. Transformed into C.
19650 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
19651 Moved from here...
19652 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
19653 ... here. Transformed into C. Made static.
19654 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
19655 Moved from here...
19656 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
19657 ... here. Transformed into C. Made static.
19658 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
19659 Moved from here...
19660 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
19661 ... here. Transformed into C. Made static.
19662 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
19663 pxe_rm_entry as third argument.
19664 (grub_bios_interrupt): New function.
19665 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
19666 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
19667 of calling grub_stop.
19668 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
19669 * grub-core/lib/efi/halt.c (grub_halt): ...here.
19670 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
19671 * grub-core/lib/emu/halt.c (grub_halt): ... here.
19672 * grub-core/lib/i386/halt.c: Moved from here ...
19673 * grub-core/lib/i386/halt.c: ... here.
19674 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
19675 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
19676 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
19677 grub_stop_floppy.
19678 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
19679 * include/grub/i386/coreboot/init.h: Removed.
19680 * include/grub/i386/multiboot/init.h: Likewise.
19681 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
19682 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
19683 * include/grub/i386/pc/int.h: New file.
19684 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
19685 (grub_pxe_scan): Removed.
19686 (grub_pxe_call): Update prototype.
19687 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
19688 prototypes.
19689 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
19690 * include/grub/i386/qemu/init.h: Removed.
19691 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
19692 noreturn.
19693 (grub_halt): Likewise.
19694 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
19695 (grub_reboot): Likewise.
19696 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
19697 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
19698 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
19699
19700 2010-08-30 Robert Millan <rmh@gnu.org>
19701
19702 * NEWS: Document addition of ZFS support in `grub-install' and
19703 `grub-mkconfig'.
19704
19705 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
19706
19707 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
19708 dprintf output.
19709
19710 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19711
19712 Remove leftover embedding of font objects.
19713
19714 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
19715 * util/grub-install.in (font): Removed.
19716 * util/grub-mkimage.c (generate_image): Remove font support. All users
19717 updated.
19718
19719 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19720
19721 Remove leftover embedding of font objects.
19722
19723 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
19724 * util/grub-install.in (font): Removed.
19725 * util/grub-mkimage.c (generate_image): Remove font support. All users
19726 updated.
19727
19728 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19729
19730 * docs/grub.texi (Network): Fix reference to pxe_blksize.
19731 Reported by: Ian Turner
19732
19733 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19734
19735 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
19736 timeout to avoid indefinite boot stalling.
19737
19738 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19739
19740 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
19741 (grub_env_write_color_highlight): Likewise.
19742
19743 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19744
19745 * grub-core/normal/term.c (print_more): Return to normal and not
19746 to standard state after printing "---MORE---".
19747
19748 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
19749
19750 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
19751 Mask out the bit 0x80 since it has other meaning that specifiing color.
19752
19753 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19754
19755 New relocator. Allows for more kernel support and more straightforward
19756 loader writing.
19757
19758 * Makefile.am (BOOTTARGET): New variable.
19759 (QEMU32): Likewise.
19760 (linux.init.x86_64): New target.
19761 (linux.init.i386): Likewise.
19762 (multiboot.elf): Likewise.
19763 (kfreebsd.elf): Likewise.
19764 (kfreebsd.aout): Likewise.
19765 (pc-chainloader.elf): Likewise.
19766 (pc-chainloader.bin): Likewise.
19767 (ntldr.elf): Likewise.
19768 (ntldr.bin): Likewise.
19769 (multiboot2.elf): Likewise.
19770 (kfreebsd.init.x86_64): Likewise.
19771 (kfreebsd.init.i386): Likewise.
19772 (knetbsd.init.i386): Likewise.
19773 (kopenbsd.init.i386): Likewise.
19774 (knetbsd.init.x86_64): Likewise.
19775 (kopenbsd.init.x86_64): Likewise.
19776 (linux-initramfs.i386): Likewise.
19777 (linux-initramfs.x86_64): Likewise.
19778 (kfreebsd-mfsroot.i386.img): Likewise.
19779 (knetbsd.image.i386): Likewise.
19780 (kopenbsd.image.i386): Likewise.
19781 (kopenbsd.image.x86_64): Likewise.
19782 (knetbsd.miniroot-image.i386.img): Likewise.
19783 (kfreebsd-mfsroot.x86_64.img): Likewise.
19784 (knetbsd.image.x86_64): Likewise.
19785 (knetbsd.miniroot-image.x86_64.img): Likewise.
19786 (kfreebsd-mfsroot.i386.gz): Likewise.
19787 (bootcheck-kfreebsd-i386): Likewise.
19788 (kfreebsd-mfsroot.x86_64.gz): Likewise.
19789 (bootcheck-kfreebsd-x86_64): Likewise.
19790 (knetbsd.miniroot-image.i386.gz): Likewise.
19791 (bootcheck-knetbsd-i386): Likewise.
19792 (bootcheck-kopenbsd-i386): Likewise.
19793 (bootcheck-kopenbsd-x86_64): Likewise.
19794 (knetbsd.miniroot-image.x86_64.gz): Likewise.
19795 (bootcheck-knetbsd-x86_64): Likewise.
19796 (bootcheck-linux-i386): Likewise.
19797 (bootcheck-linux-x86_64): Likewise.
19798 (bootcheck-linux16-i386): Likewise.
19799 (bootcheck-linux16-x86_64): Likewise.
19800 (bootcheck-multiboot): Likewise.
19801 (bootcheck-multiboot2): Likewise.
19802 (bootcheck-kfreebsd-aout): Likewise.
19803 (bootcheck-pc-chainloader): Likewise.
19804 (bootcheck-ntldr): Likewise.
19805 (CLEANFILES): Add new targets.
19806 (BOOTCHECKS): New variable.
19807 (.PHONY): Add bootchecks.
19808 (SUCCESSFUL_BOOT_STRING): New variable.
19809 (BOOTCHECK_TIMEOUT): Likewise.
19810 (bootcheck): New target
19811 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
19812 * configure.ac: Correct efiemu excuse.
19813 * docs/grub.texi (Supported kernels): New chapter.
19814 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
19815 include/grub/mm_private.h. Simplify inclusion of
19816 include/grub/boot.h, include/grub/loader.h
19817 and include/grub/msdos_partition.h
19818 (KERNEL_HEADER_FILES) [i386_coreboot]:
19819 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
19820 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
19821 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
19822 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
19823 include/grub/machine/loader.h.
19824 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
19825 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
19826 extra_dist.
19827 (pci.mod): Enable on i386-multiboot.
19828 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
19829 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
19830 i386-qemu.
19831 (relocator.mod): Rewritten.
19832 (aout.mod): Enable on all x86.
19833 (bsd.mod): Likewise.
19834 (ntldr.mod): New module.
19835 (linux.mod): Use loader/i386/linux.c on all x86.
19836 (xnu.mod): Enable on all x86.
19837 (vga_text.mod): disable on EFI and QEMU.
19838 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
19839 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
19840 * grub-core/efiemu/loadcore.c: Likewise.
19841 * grub-core/efiemu/main.c: Likewise.
19842 (grub_efiemu_exit_boot_services): Removed.
19843 (grub_efiemu_finish_boot_services): Likewise.
19844 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
19845 function.
19846 * grub-core/efiemu/i386/nocfgtables.c: New file.
19847 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
19848 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
19849 (grub_efi_finish_boot_services): Moved from here ...
19850 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
19851 Fille finish memory map and related data.
19852 (finish_mmap_buf): New variable.
19853 (grub_efi_uintn_t finish_mmap_size): Likewise.
19854 (grub_efi_uintn_t finish_key): Likewise.
19855 (grub_efi_uintn_t finish_desc_size): Likewise.
19856 (grub_efi_uint32_t finish_desc_version): Likewise.
19857 (grub_efi_is_finished): Likewise.
19858 (grub_efi_get_memory_map): Use saved memory map if EFI is already
19859 finished.
19860 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
19861 (grub_elf64_phdr_iterate): Likewise.
19862 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
19863 (grub_os_area_size): Likewise.
19864 (grub_machine_init): Don't reserve os area.
19865 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
19866 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
19867 * grub-core/kern/i386/loader.S: Removed.
19868 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
19869 (grub_os_area_size): Likewise.
19870 (grub_machine_init): Don't reserve os area.
19871 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
19872 Don't call grub_dl_unload_all.
19873 Don't include loader.S.
19874 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
19875 Declare the memory after _end as available.
19876 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
19877 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
19878 (GRUB_MM_ALLOC_MAGIC): Moved from here...
19879 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
19880 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
19881 * include/grub/mm_private.h (grub_mm_header): ... here.
19882 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
19883 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
19884 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
19885 (grub_mm_region): ..here. Removed addr. Added pre_size.
19886 All users updated.
19887 * grub-core/kern/mm.c (base): Renamed to ...
19888 (grub_mm_base): ... this. Made global.
19889 (grub_real_malloc): Alloc from end of region.
19890 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
19891 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
19892 * grub-core/kern/powerpc/cache_flush.S: ... here.
19893 * grub-core/lib/efi/relocator.c: New file.
19894 * grub-core/lib/i386/relocator.c: Rewritten.
19895 * grub-core/lib/i386/relocator16.S: New file.
19896 * grub-core/lib/i386/relocator32.S: Likewise.
19897 * grub-core/lib/i386/relocator64.S: Likewise.
19898 * grub-core/lib/i386/relocator_asm.S: Rewritten.
19899 * grub-core/lib/i386/relocator_common.S: New file.
19900 * grub-core/lib/ieee1275/relocator.c: Likewise.
19901 * grub-core/lib/mips/relocator.c: Rewritten.
19902 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
19903 stylistic adjustments.
19904 * grub-core/lib/powerpc/relocator.c: New file.
19905 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
19906 * grub-core/lib/relocator.c: Rewritten.
19907 * grub-core/lib/x86_64/relocator_asm.S: New file.
19908 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
19909 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
19910 (bsd_tag): New struct.
19911 (tags): New variable.
19912 (tags_last): Likewise.
19913 (netbsd_module): New struct.
19914 (netbsd_mods): New variable.
19915 (netbsd_mods_last): Likewise.
19916 (openbsd_opts): New parameter "serial".
19917 (OPENBSD_SERIAL_ARG): New definition.
19918 (netbsd_opts): New parameter "serial".
19919 (NETBSD_SERIAL_ARG): New definition.
19920 (grub_freebsd_add_meta): Reorganised into ...
19921 (grub_bsd_add_meta): ...this. All users updated.
19922 (grub_freebsd_add_mmap): Reorganised into ...
19923 (generate_e820_mmap): ...this...
19924 (grub_bsd_add_mmap): ...and this. All users updated.
19925 (grub_freebsd_list_modules): Use tags.
19926 (grub_netbsd_add_meta_module): New function.
19927 (grub_netbsd_list_modules): Likewise.
19928 (grub_freebsd_boot): Use relocator and finish EFI.
19929 (grub_openbsd_boot): Likewise.
19930 (grub_netbsd_setup_video): New function.
19931 (grub_netbsd_add_modules): Likewise.
19932 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
19933 and finish EFI.
19934 (grub_bsd_unload): Unload tags.
19935 (grub_bsd_load_aout): Use relocator.
19936 (grub_bsd_elf32_size_hook): New function.
19937 (grub_bsd_elf32_hook): Use relocator.
19938 (grub_bsd_elf64_size_hook): New function.
19939 (grub_bsd_elf64_hook): Use relocator.
19940 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
19941 (grub_bsd_load): Zero-out openbsd_ramdisk.
19942 (grub_bsd_load): Use relocator.
19943 (grub_cmd_openbsd): Support serial.
19944 (grub_cmd_netbsd): Support modules.
19945 (grub_cmd_freebsd_module): Use relocator.
19946 (grub_netbsd_module_load): New function.
19947 (grub_cmd_netbsd_module): Likewise.
19948 (grub_cmd_openbsd_ramdisk): Likewise.
19949 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
19950 kopenbsd_ramdisk.
19951 (GRUB_MOD_FINI): Unregister new commands.
19952 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
19953 (grub_freebsd_load_elfmodule_obj): Use relocator.
19954 (grub_freebsd_load_elfmodule): Likewise.
19955 (grub_freebsd_load_elf_meta): Likewise.
19956 (grub_netbsd_load_elf_meta): New function.
19957 (grub_openbsd_find_ramdisk): Likewise.
19958 * grub-core/loader/i386/bsd_helper.S: Removed.
19959 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
19960 * grub-core/loader/i386/bsd_trampoline.S: Removed.
19961 * grub-core/loader/i386/efi/linux.c: Likewise.
19962 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
19963 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
19964 (DEFAULT_VIDEO_MODE): Likewise.
19965 (real_mode_target): New variable.
19966 (prot_mode_target): Likewise.
19967 (initrd_mem_target): Likewise.
19968 (relocator): Likewise.
19969 (efi_mmap_buf): Likewise.
19970 (efi_mmap_size): Likewise.
19971 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
19972 (free_pages): Use relocator.
19973 (allocate_pages): Account for efi_mmap and use relocator. Return error.
19974 (grub_linux_setup_video): Return error.
19975 (grub_linux_trampoline_start): Removed.
19976 (grub_linux_trampoline_end): Likewise.
19977 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
19978 andd video parameters depending on firmware.
19979 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
19980 [GRUB_MACHINE_EFI]: Pass EFI parameters.
19981 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
19982 (grub_cmd_initrd): Use relocator.
19983 * grub-core/loader/i386/linux_trampoline.S: Removed.
19984 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
19985 (elf_sec_entsize): Likewise.
19986 (elf_sec_shstrndx): Likewise.
19987 (elf_sections): Likewise.
19988 (grub_multiboot_load): Use relocator.
19989 (grub_multiboot_get_mbi_size): Account for sections.
19990 (grub_multiboot_make_mbi): Use relocator and support sections.
19991 (grub_multiboot_add_elfsyms): New function.
19992 (grub_multiboot_free_mbi): Free sections.
19993 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
19994 (grub_linux_real_target): Likewise.
19995 (grub_linux_real_chunk): Likewise.
19996 (grub_linux16_prot_size): Likewise.
19997 (grub_linux16_boot): Use relocator.
19998 (grub_linux_unload): Unload relocator.
19999 (grub_cmd_linux): Use relocator.
20000 (grub_cmd_initrd): Likewise.
20001 * grub-core/loader/i386/pc/ntldr.c: New file.
20002 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
20003 Don't try to guess CPU frequency.
20004 (grub_xnu_set_video): Stretch bitmap.
20005 (grub_xnu_boot): Use relocator.
20006 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
20007 (grub_linux_unload): Free relocator.
20008 (grub_linux_load32): Use relocator.
20009 (grub_linux_load64): Likewise.
20010 (grub_cmd_initrd): Likewise.
20011 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
20012 (grub_multiboot_unload): Unload relocator.
20013 (grub_cmd_multiboot): Use relocator.
20014 (grub_cmd_module): Likewise.
20015 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
20016 Use relocator and support sections.
20017 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
20018 (elf_sec_entsize): Likewise.
20019 (elf_sec_shstrndx): Likewise.
20020 (elf_sections): Likewise.
20021 (grub_multiboot_load): Use relocator.
20022 (grub_multiboot_get_mbi_size): Account for sections.
20023 (grub_multiboot_make_mbi): Use relocator and support sections.
20024 (grub_multiboot_add_elfsyms): New function.
20025 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
20026 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
20027 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
20028 Prototype changed. All users updated.
20029 (grub_xnu_align_heap): Simplified.
20030 (grub_xnu_writetree_toheap): Likewise.
20031 (grub_xnu_unload): Unload relocator.
20032 (grub_cmd_xnu_kernel): Use relocator.
20033 (grub_cmd_xnu_kernel64): Likewise.
20034 (grub_xnu_register_memory): Simplified.
20035 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
20036 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
20037 EFI is finished.
20038 (grub_console_checkkey): Likewise.
20039 (grub_console_getkey): Likewise.
20040 (grub_console_getwh): Likewise.
20041 (grub_console_getxy): Likewise.
20042 (grub_console_gotoxy): Likewise.
20043 (grub_console_cls): Likewise.
20044 (grub_console_setcolorstate): Likewise.
20045 (grub_console_setcursor): Likewise.
20046 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
20047 * grub-core/tests/boot/kbsd.init-i386.S: New file.
20048 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
20049 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
20050 * grub-core/tests/boot/kernel-8086.S: Likewise.
20051 * grub-core/tests/boot/kernel-i386.S: Likewise.
20052 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
20053 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
20054 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
20055 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
20056 * grub-core/tests/boot/knetbsd.cfg: Likewise.
20057 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
20058 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
20059 * grub-core/tests/boot/linux.cfg: Likewise.
20060 * grub-core/tests/boot/linux.init-i386.S: Likewise.
20061 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
20062 * grub-core/tests/boot/linux16.cfg: Likewise.
20063 * grub-core/tests/boot/multiboot.cfg: Likewise.
20064 * grub-core/tests/boot/multiboot2.cfg: Likewise.
20065 * grub-core/tests/boot/ntldr.cfg: Likewise.
20066 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
20067 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
20068 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
20069 New definition.
20070 * include/grub/dl.h (grub_dl_unload_all): Removed.
20071 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
20072 (grub_efi_finish_boot_services): Change prototype.
20073 (grub_efi_is_finished): New variable.
20074 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
20075 Changed prototype.
20076 (grub_efiemu_finish_boot_services): Removed.
20077 (grub_machine_efiemu_init_tables): New prototype.
20078 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
20079 (grub_elf64_phdr_iterate): Likewise.
20080 * include/grub/i386/bsd.h: Include relocator.h.
20081 (freebsd_tag_header): New struct.
20082 (grub_openbsd_bios_mmap): Removed.
20083 (grub_unix_real_boot): Removed.
20084 (grub_freebsd_load_elfmodule32): Changed prototype.
20085 (grub_freebsd_load_elfmodule_obj64): Likewise.
20086 (grub_freebsd_load_elf_meta32): Likewise.
20087 (grub_freebsd_load_elf_meta64): Likewise.
20088 (grub_freebsd_add_meta): Removed.
20089 (grub_netbsd_load_elf_meta32): New prototype.
20090 (grub_netbsd_load_elf_meta64): Likewise.
20091 (grub_bsd_add_meta): Likewise.
20092 (grub_openbsd_ramdisk_descriptor): New struct.
20093 (grub_openbsd_find_ramdisk32): New prototype.
20094 (grub_openbsd_find_ramdisk64): Likewise.
20095 * include/grub/i386/coreboot/loader.h: Removed.
20096 * include/grub/i386/efi/loader.h: Likewise.
20097 * include/grub/i386/ieee1275/loader.h: Likewise.
20098 * include/grub/i386/linux.h (linux_kernel_header): Change void *
20099 to grub_uint32_t.
20100 * include/grub/i386/loader.h: Removed.
20101 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
20102 value.
20103 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
20104 (grub_phys_addr_t): New type.
20105 (grub_vtop): New inline function.
20106 (grub_map_memory): Likewise.
20107 (grub_unmap_memory): Likewise.
20108 * include/grub/i386/multiboot/loader.h: Removed.
20109 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
20110 (NETBSD_BTINFO_CONSOLE): New definition.
20111 (NETBSD_BTINFO_SYMTAB): Likewise.
20112 (NETBSD_BTINFO_MODULES): Likewise.
20113 (NETBSD_BTINFO_FRAMEBUF): Likewise.
20114 (grub_netbsd_bootinfo): New struct.
20115 (grub_netbsd_btinfo_common): Use explicit bitsize.
20116 (grub_netbsd_btinfo_mmap_entry): Removed.
20117 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
20118 (grub_netbsd_btinfo_bootdisk): New struct.
20119 (grub_netbsd_btinfo_symtab): Likewise.
20120 (grub_netbsd_btinfo_serial): Likewise.
20121 (grub_netbsd_btinfo_modules): Likewise.
20122 (grub_netbsd_btinfo_framebuf): Likewise.
20123 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
20124 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
20125 Likewise.
20126 (grub_openbsd_bootargs): Use explicit bitsize.
20127 (grub_openbsd_bootarg_console): New struct.
20128 (GRUB_OPENBSD_COM_MAJOR): New definition.
20129 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
20130 * include/grub/i386/pc/efiemu.h: Removed.
20131 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
20132 * include/grub/i386/qemu/loader.h: Removed.
20133 * include/grub/i386/relocator.h: Rewritten.
20134 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
20135 * include/grub/mips/memory.h: New file.
20136 * include/grub/mips/multiboot.h: Rewritten.
20137 * include/grub/mips/relocator.h: Rewritten.
20138 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
20139 (grub_vtop): New function.
20140 (grub_map_memory): Likewise.
20141 (grub_unmap_memory): Likewise.
20142 * include/grub/misc.h (ALIGN_DOWN): New definition.
20143 * include/grub/mm.h (grub_mm_check_real): New proto.
20144 (GRUB_MM_CHECK): New definition.
20145 * include/grub/mm_private.h: New file.
20146 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
20147 (grub_multiboot_get_mbi_size): Removed.
20148 (grub_multiboot_make_mbi): Change prottype.
20149 (grub_multiboot_set_accepts_video): New proto.
20150 (grub_multiboot_add_elfsyms): Likewise.
20151 (grub_multiboot_payload_eip): New variable.
20152 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
20153 New prototype.
20154 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
20155 New definition.
20156 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
20157 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
20158 * include/grub/powerpc/ieee1275/loader.h: Removed.
20159 * include/grub/powerpc/memory.h: New file.
20160 * include/grub/powerpc/relocator.h: Likewise.
20161 * include/grub/relocator.h: Likewise.
20162 * include/grub/relocator_private.h: Likewise.
20163 * include/grub/sparc64/ieee1275/loader.h: Removed.
20164 * include/grub/x86_64/memory.h: New file.
20165 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
20166 (grub_xnu_heap_malloc): Likewise.
20167 (grub_xnu_heap_real_start): Removed.
20168 (grub_xnu_heap_start): Likewise.
20169 (grub_xnu_relocator): New variable.
20170 (grub_xnu_heap_target_start): Likewise.
20171 * tests/util/grub-shell.in: Support non-pc.
20172 * util/grub-mkimage.c (image_targets): Fix multiboot target.
20173
20174 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20175
20176 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
20177 on malloc error.
20178 (grub_bidi_logical_to_visual): Check that malloc succeded.
20179 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
20180 puts.
20181 (grub_xputs_normal): Likewise.
20182
20183 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20184
20185 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
20186 extra_dist.
20187
20188 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20189
20190 * grub-core/efiemu/runtime/efiemu.sh: Removed.
20191
20192 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20193
20194 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
20195
20196 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20197
20198 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
20199 dprintf.
20200
20201 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
20202
20203 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
20204
20205 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20206
20207 * grub-core/normal/term.c (print_more): Fix a memory leak.
20208 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
20209 (grub_xputs_normal): Likewise.
20210
20211 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20212
20213 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
20214 the begining of the string
20215
20216 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20217
20218 * grub-core/script/script.c (grub_script_parse): Free parsed on
20219 failure.
20220
20221 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20222
20223 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
20224 on failure.
20225
20226 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20227
20228 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
20229 return.
20230
20231 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20232
20233 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
20234 (scroll_up): Fix a memory leak.
20235
20236 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20237
20238 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
20239 errors.
20240
20241 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
20242
20243 Handle USB pendrives exposed as floppies.
20244
20245 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
20246 floppy.
20247 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
20248 Check for partitions on all devices.
20249
20250 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20251
20252 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
20253 (readkey): Likewise.
20254
20255 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
20256
20257 Multiple variable names support to "export" command.
20258
20259 * normal/context.c (grub_cmd_export): "export" command supports
20260 multiple variable names.
20261
20262 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
20263
20264 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
20265 --target=drive output to Mach device name.
20266
20267 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
20268
20269 New Automake based build system for GRUB.
20270
20271 * ABOUT-NLS: New file.
20272 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
20273 in Makefile.util.def file.
20274 * Makefile.util.def: New file. Autogen build definitions file for
20275 GRUB host utils.
20276 * conf/Makefile.common: New file. Common variables for GRUB host
20277 utils and target modules.
20278 * conf/Makefile.extra-dist: New file. Extra files for make dist.
20279 * docs/Makefile.am: New file. Automake file for docs.
20280 * gentpl.py: New file. Python script to generate Autogen
20281 template.
20282 * grub-core/Makefile.am: New file. GRUB target modules' rules
20283 that doesn't fit in Makefile.core.def file.
20284 * grub-core/Makefile.core.def: New file. Autogen build
20285 definitions file for GRUB target modules.
20286 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
20287 specific setjmp.S file.
20288 * po/Makefile.am: New file.
20289
20290 * .bzrignore: New ignores.
20291 * INSTALL: New requirements, without Ruby.
20292 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
20293 * autogen.sh: Updated to invoke autogen as necessary.
20294 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
20295 and defines for Automake conditionals.
20296 * geninit.sh: Refactoring.
20297
20298 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
20299 necessary.
20300 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
20301 New prototype.
20302
20303 * include/grub/test.h: Fix functional test modules' naming.
20304 * grub-core/tests/example_functional_test.c: Fix test module name.
20305
20306 * util/misc.c: Hosted versions' of grub functions for libgrub.a
20307 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
20308 * util/grub-editenv.c: Likewise.
20309 * util/grub-fstest.c: Likewise.
20310 * util/grub-mkdevicemap.c: Likewise.
20311 * util/grub-mkfont.c: Likewise.
20312 * util/grub-mkimage.c: Likewise.
20313 * util/grub-mkpasswd-pbkdf2.c: Likewise.
20314 * util/grub-probe.c: Likewise.
20315 * util/grub-script-check.c: Likewise.
20316 * util/i386/pc/grub-setup.c: Likewise.
20317 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20318
20319 * tests/util/grub-shell.in: Fix override directory path.
20320 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
20321 * util/import_gcry.py: Create Makefile.gcry.def file instead.
20322
20323 * util/lvm.c: Update #includes.
20324 * util/raid.c: Likewise.
20325 * util/resolve.c: Likewise.
20326 * grub-core/bus/emu/pci.c: Likewise.
20327 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
20328 * grub-core/lib/posix_wrap/string.h: Likewise.
20329 * grub-core/kern/emu/main.c: Likewise.
20330
20331 * grub-core/gensymlist.sh: New file. Script for generating kernel
20332 symbols file.
20333 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
20334
20335 * grub-core/gentrigtables.c: Fix unused variable warnings.
20336
20337 * Makefile.in: Removed.
20338 * conf/any-emu.rmk: Removed.
20339 * conf/common.rmk: Removed.
20340 * conf/i386-coreboot.rmk: Removed.
20341 * conf/i386-efi.rmk: Removed.
20342 * conf/i386-ieee1275.rmk: Removed.
20343 * conf/i386-multiboot.rmk: Removed.
20344 * conf/i386-pc.rmk: Removed.
20345 * conf/i386-qemu.rmk: Removed.
20346 * conf/i386.rmk: Removed.
20347 * conf/mips-yeeloong.rmk: Removed.
20348 * conf/mips.rmk: Removed.
20349 * conf/powerpc-ieee1275.rmk: Removed.
20350 * conf/sparc64-ieee1275.rmk: Removed.
20351 * conf/tests.rmk: Removed.
20352 * conf/x86-efi.rmk: Removed.
20353 * conf/x86_64-efi.rmk: Removed.
20354 * gendistlist.sh: Removed.
20355 * geninitheader.sh: Removed.
20356 * genkernsyms.sh.in: Removed.
20357 * genmk.rb: Removed.
20358 * gensymlist.sh.in: Removed.
20359 * mkinstalldirs: Removed.
20360 * boot: Moved ...
20361 * grub-core/boot: ... to here.
20362 * bus: Moved ...
20363 * grub-core/bus: ... to here.
20364 * commands: Moved ...
20365 * grub-core/commands: ... to here.
20366 * disk: Moved ...
20367 * grub-core/disk: ... to here.
20368 * efiemu: Moved ...
20369 * grub-core/efiemu: ... to here.
20370 * font: Moved ...
20371 * grub-core/font: ... to here.
20372 * fs: Moved ...
20373 * grub-core/fs: ... to here.
20374 * gencmdlist.sh: Moved ...
20375 * grub-core/gencmdlist.sh: ... to here.
20376 * genemuinit.sh: Moved ...
20377 * grub-core/genemuinit.sh: ... to here.
20378 * genemuinitheader.sh: Moved ...
20379 * grub-core/genemuinitheader.sh: ... to here.
20380 * genfslist.sh: Moved ...
20381 * grub-core/genfslist.sh: ... to here.
20382 * genhandlerlist.sh: Moved ...
20383 * grub-core/genhandlerlist.sh: ... to here.
20384 * genmoddep.awk: Moved ...
20385 * grub-core/genmoddep.awk: ... to here.
20386 * genmodsrc.sh: Moved ...
20387 * grub-core/genmodsrc.sh: ... to here.
20388 * genpartmaplist.sh: Moved ...
20389 * grub-core/genpartmaplist.sh: ... to here.
20390 * genparttoollist.sh: Moved ...
20391 * grub-core/genparttoollist.sh: ... to here.
20392 * genterminallist.sh: Moved ...
20393 * grub-core/genterminallist.sh: ... to here.
20394 * gentrigtables.c: Moved ...
20395 * grub-core/gentrigtables.c: ... to here.
20396 * genvideolist.sh: Moved ...
20397 * grub-core/genvideolist.sh: ... to here.
20398 * gettext: Moved ...
20399 * grub-core/gettext: ... to here.
20400 * gfxmenu: Moved ...
20401 * grub-core/gfxmenu: ... to here.
20402 * gnulib: Moved ...
20403 * grub-core/gnulib: ... to here.
20404 * hello: Moved ...
20405 * grub-core/hello: ... to here.
20406 * hook: Moved ...
20407 * grub-core/hook: ... to here.
20408 * io: Moved ...
20409 * grub-core/io: ... to here.
20410 * kern: Moved ...
20411 * grub-core/kern: ... to here.
20412 * lib: Moved ...
20413 * grub-core/lib: ... to here.
20414 * loader: Moved ...
20415 * grub-core/loader: ... to here.
20416 * mmap: Moved ...
20417 * grub-core/mmap: ... to here.
20418 * normal: Moved ...
20419 * grub-core/normal: ... to here.
20420 * partmap: Moved ...
20421 * grub-core/partmap: ... to here.
20422 * parttool: Moved ...
20423 * grub-core/parttool: ... to here.
20424 * script: Moved ...
20425 * grub-core/script: ... to here.
20426 * term: Moved ...
20427 * grub-core/term: ... to here
20428 * tests/example_functional_test.c: Moved ...
20429 * grub-core/tests/example_functional_test.c: ... to here.
20430 * tests/lib/functional_test.c: Moved ...
20431 * grub-core/tests/lib/functional_test.c: ... to here.
20432 * tests/lib/test.c: Moved ...
20433 * grub-core/tests/lib/test.c: ... to here.
20434 * video: Moved ...
20435 * grub-core/video: ... to here.
20436
20437 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
20438
20439 Replace --enable-grub-emu-modules with grub-emu-lite.
20440
20441 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
20442 cache.S.
20443
20444 * include/grub/emu/misc.h (grub_emu_init): New prototype.
20445 * kern/emu/full.c: New file. For grub-emu specific initialization.
20446 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
20447 * kern/emu/main.c: Call initialization function grub_emu_init.
20448
20449 * Makefile.in: Include grub-emu-lite in install.
20450 * commands/parttool.c: Use grub_no_autoload to differentiate
20451 between grub-emu and grub-emu-lite.
20452 * include/grub/misc.h: New variable grub_no_autoload.
20453
20454 * conf/any-emu.rmk: New rules for grub-emu-lite.
20455 * configure.ac: Remove --enable-grub-emu-modules.
20456 * genmk.rb: Cleanup unnecessary rules.
20457 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
20458
20459 * normal/main.c: Don't load list files on grub-emu-lite.
20460 * util/misc.c (grub_arch_sync_caches): Removed.
20461
20462 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
20463
20464 * kern/mips/startup.S (grub_prefix): Update comment to refer to
20465 grub-mkimage rather than grub-mkelfimage.
20466 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
20467
20468 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
20469
20470 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
20471 a key after CapsLock or NumLock. It's just a qemu bug.
20472
20473 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
20474
20475 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
20476 needed by libusb wrapper.
20477
20478 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
20479
20480 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
20481
20482 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
20483
20484 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
20485 --nounzip is passed.
20486
20487 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
20488
20489 USB hotunplugging and USB serial support.
20490
20491 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
20492 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
20493 (grub_uhci_transfer): Respect timeout and set *actual.
20494 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
20495 non-standard length.
20496 (grub_usb_device_attach): Autoload modules.
20497 (GRUB_MOD_INIT): Set grub_term_poll_usb.
20498 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
20499 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
20500 users updated.
20501 (grub_usb_add_hub): Fill nports and children.
20502 (attach_root_port): Receive hub instead of controller.
20503 All users updated. Fill hub->devices.
20504 (grub_usb_root_hub): Allocate hub->devices.
20505 (detach_device): New function.
20506 (poll_nonroot_hub): Fill children and detach devices.
20507 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
20508 actual arguments. All users updated.
20509 (grub_usb_bulk_read_extended): New function.
20510 * bus/usb/serial/common.c: New file.
20511 * bus/usb/serial/ftdi.c: Likewise.
20512 * bus/usb/serial/pl2303.c: Likewise.
20513 * commands/terminal.c (handle_command): Support wildcard.
20514 * commands/usbtest.c: Output "Unknown" instead of empty string.
20515 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
20516 (usbserial_common_mod_SOURCES): New variable.
20517 (usbserial_common_mod_CFLAGS): Likewise.
20518 (usbserial_common_mod_LDFLAGS): Likewise.
20519 (pkglib_MODULES): Add usbserial_pl2303.mod.
20520 (usbserial_pl2303_mod_SOURCES): New variable.
20521 (usbserial_pl2303_mod_CFLAGS): Likewise.
20522 (usbserial_pl2303_mod_LDFLAGS): Likewise.
20523 (pkglib_MODULES): Add usbserial_ftdi.mod.
20524 (usbserial_ftdi_mod_SOURCES): New variable.
20525 (usbserial_ftdi_mod_CFLAGS): Likewise.
20526 (usbserial_ftdi_mod_LDFLAGS): Likewise.
20527 (pkglib_MODULES): Add serial.mod.
20528 (serial_mod_SOURCES): New variable.
20529 (serial_mod_CFLAGS): Likewise.
20530 (serial_mod_LDFLAGS): Likewise.
20531 * conf/i386-pc.rmk: Likewise.
20532 * conf/mips-yeeloong.rmk: Likewise.
20533 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
20534 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
20535 * disk/usbms.c (first_available_slot): New variable.
20536 (grub_usbms_attach): Don't reuse free slots due to potential cache
20537 problems.
20538 * include/grub/serial.h: Moved to ..
20539 * include/grub/ns8250.h: ...this.
20540 * include/grub/serial.h: New file.
20541 * include/grub/term.h (grub_term_poll_usb): New variable.
20542 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
20543 readkey. All users updated.
20544 (grub_terminfo_output_state): Pass term to put.
20545 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
20546 (grub_usb_controller_dev): Add timeout and actual arguments to
20547 transfer. All users updated.
20548 (grub_usb_interface): New field detach_data.
20549 (grub_usb_device): New fields children and nports.
20550 (grub_usb_ep_type_t): New type.
20551 (grub_usb_get_ep_type): New function.
20552 (grub_usb_bulk_read_extended): Likewise.
20553 * include/grub/usbdesc.h (grub_usb_desc): New type.
20554 * include/grub/usbserial.h: New file.
20555 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
20556 * kern/term.c (grub_term_poll_usb): New variable.
20557 (grub_getkey): Call grub_term_poll_usb if set.
20558 (grub_checkkey): Likewise.
20559 (grub_getkeystatus): Likewise.
20560 * term/serial.c: Moved controller-specific parts to ...
20561 * term/ns8250.c: ... here.
20562 * term/serial.c: Mostly rewritten.
20563 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
20564 according to spec.
20565
20566 2010-08-20 Robert Millan <rmh@gnu.org>
20567
20568 Make kFreeBSD code more generic to support ext2fs as root, ufs as
20569 a separate module and maybe other interesting combinations.
20570
20571 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
20572 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
20573 (kfreebsd_entry): Add generic filesystem module load routine.
20574 Map GRUB `ext2' to kFreeBSD `ext2fs'.
20575
20576 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
20577
20578 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
20579 "numcenter" (I misunderstood the purpose of this entry).
20580 * docs/grub.texi (sendkey): Likewise.
20581
20582 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
20583
20584 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
20585 status flag options; simply omitting the option is equivalent and
20586 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
20587 (keysym_table): Rename "num5numlock" to "numlock".
20588 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
20589 can uniformly say that only the last of multiple `sendkey'
20590 invocations has any effect.
20591 * docs/grub.texi (sendkey): New section.
20592
20593 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
20594
20595 * commands/i386/pc/sendkey.c (options): Fix three typos.
20596
20597 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
20598
20599 Implement sendkey support.
20600
20601 * commands/i386/pc/sendkey.c: New file.
20602 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
20603 (sendkey_mod_SOURCES): New variable.
20604 (sendkey_mod_CFLAGS): Likewise.
20605 (sendkey_mod_LDFLAGS): Likewise.
20606
20607 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
20608
20609 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
20610 fix warnings from Autoconf.
20611
20612 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
20613
20614 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
20615 to avoid false positives with some assemblers that output things
20616 like "someprefix_func" as part of their output.
20617
20618 2010-08-15 Robert Millan <rmh@gnu.org>
20619
20620 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
20621 errors.
20622 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
20623 grub_get_libzfs_handle() errors.
20624
20625 2010-08-14 Robert Millan <rmh@gnu.org>
20626
20627 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
20628 filesystem is not ZFS.
20629
20630 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
20631
20632 Fix for misspelled color names defaulting to black/black (bug
20633 reported by Doug Nazar)
20634
20635 * include/grub/normal.h (grub_parse_color_name_pair): Add return
20636 status to prototype.
20637 * normal/color.c (grub_parse_color_name_pair): Return failure
20638 status.
20639 (grub_env_write_color_normal): Ignore bad color names.
20640 (grub_env_write_color_highlight): Likewise.
20641 * normal/main.c (GRUB_MOD_INIT): Set default color names.
20642
20643 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
20644
20645 "shift" command support to GRUB script.
20646
20647 * include/grub/script_sh.h (grub_script_shift): New prototype.
20648 * script/execute.c (grub_script_shift): New function.
20649 * script/main.c (grub_script_init): Register shift command.
20650 (grub_script_fini): Unregister shift command.
20651 * util/grub-script-check.c (grub_script_cmd_shift): New function.
20652
20653 * tests/grub_script_shift.in: New testcase.
20654 * conf/tests.rmk: Rules for new testcase.
20655
20656 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
20657
20658 "continue" command support to GRUB script.
20659
20660 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
20661 (grub_script_break): Continue support.
20662 * script/main.c (grub_script_init): Register continue command.
20663 (grub_script_fini): Unregister continue command.
20664
20665 * tests/grub_script_continue.in: New testcase.
20666 * conf/tests.rmk: Rules for new testcase.
20667
20668 2010-08-12 BVK Chaitanya <bvk@dbook>
20669
20670 "break" command support to GRUB script.
20671
20672 * conf/common.rmk: Rule updates to grub-script-check.
20673 * include/grub/misc.h (grub_min): New function.
20674 * include/grub/script_sh.h (grub_script_init): New prototype.
20675 (grub_script_fini): New prototype.
20676 (grub_script_break): New prototype.
20677 * script/main.c (grub_script_init): New function.
20678 (grub_script_fini): New function.
20679 * script/execute.c (grub_script_break): New function.
20680 * normal/main.c: Calls to grub_script_{init,fini}.
20681 * util/grub-script-check.c (grub_script_break): New function.
20682
20683 * tests/grub_script_break.in: New testcase.
20684 * conf/tests.rmk: Rules for new test case.
20685
20686 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
20687
20688 Function parameters support to GRUB script.
20689
20690 * script/yylex.l (VARIABLE): Regular expression update.
20691 * script/function.c (grub_script_function_call): Moved ...
20692 * script/execute.c (grub_script_function_call): ... to here.
20693 (grub_script_execute_arglist_to_argv): Removed.
20694 (grub_script_arglist_to_argv): New function.
20695 * script/argv.c: New file.
20696 (grub_script_argv_free): New function.
20697 (grub_script_argv_next): Likewise.
20698 (grub_script_argv_append): Likewise.
20699 (grub_script_argv_split_append): Likewise.
20700 * include/grub/script_sh.h (grub_script_argv): New struct.
20701 (grub_script_argv_free): New function.
20702 (grub_script_argv_next): Likewise.
20703 (grub_script_argv_append): Likewise.
20704 (grub_script_argv_split_append): Likewise.
20705
20706 * conf/common.rmk (normal.mod): New source script/argv.c.
20707
20708 * tests/grub_script_echo1.in: More tests.
20709 * tests/grub_script_vars1.in: Likewise.
20710 * tests/grub_script_functions.in: New test case.
20711 * conf/tests.rmk: Rules for new testcase.
20712
20713 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
20714
20715 Remove grub_script_cmdblock struct.
20716
20717 * include/grub/script_sh.h: Remove grub_script_cmdblock.
20718 * script/parser.y: Likewise.
20719 * script/execute.c: Rename cmdblock suffix to cmdlist.
20720 * script/script.c: Likewise.
20721 * util/grub-script-check.c: Likewise.
20722
20723 2010-08-11 Yves Blusseau <blusseau@zetam.org>
20724
20725 * .bzrignore: add grub-macho2img
20726
20727 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
20728
20729 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
20730
20731 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
20732
20733 Remove the dump of sm712 initialisation sequence.
20734
20735 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
20736 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
20737 (GRUB_VGA_IO_MISC_WRITE): Likewise.
20738 (GRUB_VGA_CR_*): Added many registers.
20739 (GRUB_VGA_SR_*): Likewise.
20740 (GRUB_VGA_GR_*): Likewise.
20741 (grub_vga_write_arx): New function.
20742 (grub_video_hw_config): New struct.
20743 (grub_vga_set_geometry): New function.
20744 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
20745 GRUB_PCI_CLASS_SUBCLASS_VGA.
20746 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
20747 * video/sm712.c (grub_sm712_write_reg): New function
20748 (grub_sm712_read_reg): Likewise.
20749 (grub_sm712_sr_write): Likewise.
20750 (grub_sm712_gr_write): Likewise.
20751 (grub_sm712_cr_write): Likewise.
20752 (grub_sm712_write_arx): Likewise.
20753 (grub_sm712_cr_shadow_write): Likewise.
20754 (grub_sm712_write_dda_lookup): Likewise.
20755 (grub_video_sm712_setup): Initialise the video rather then
20756 blindly replay the dump.
20757 (main) [TEST]: Add a routine to be able to compile as standalone for
20758 tests.
20759 * video/sm712_init.c (sm712_init): Removed.
20760 (sm712_sr_seq1): New array.
20761 (sm712_sr_seq2): Likewise.
20762
20763 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
20764
20765 * include/grub/vga.h: Add missing grub/pci.h include.
20766
20767 2010-08-10 Yves Blusseau <blusseau@zetam.org>
20768
20769 * util/grub-macho2img.c (main): fix typo
20770
20771 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
20772
20773 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
20774 (grub_vga_gr_read): Likewise.
20775 (grub_vga_cr_write): Likewise.
20776 (grub_vga_cr_read): Likewise.
20777 (grub_vga_sr_write): Likewise.
20778 (grub_vga_sr_read): Likewise.
20779 (grub_vga_palette_read): Likewise.
20780 (grub_vga_palette_write): Likewise.
20781 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
20782 (grub_sm712_sr_read): New function.
20783 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
20784 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
20785
20786 2010-08-09 Robert Millan <rmh@gnu.org>
20787
20788 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
20789 out unused variables on non-ZFS build.
20790
20791 2010-08-08 Robert Millan <rmh@gnu.org>
20792
20793 Fix path generation for sub-filesystems in ZFS.
20794
20795 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
20796 missing slash.
20797
20798 2010-08-08 Robert Millan <rmh@gnu.org>
20799
20800 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
20801
20802 2010-08-08 Robert Millan <rmh@gnu.org>
20803
20804 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
20805 exist, issue a proper error message (rely on `ls' for translated
20806 strings).
20807
20808 2010-08-08 Robert Millan <rmh@gnu.org>
20809
20810 Fix grub-probe invocation.
20811
20812 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
20813
20814 2010-08-04 Robert Millan <rmh@gnu.org>
20815
20816 * configure.ac: Remove checks for getfsstat() and getmntany().
20817 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
20818 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
20819 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
20820 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
20821 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
20822 function.
20823 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
20824 via find_mount_point_from_dir() and getfsstat() / getmntany().
20825
20826 2010-08-04 Robert Millan <rmh@gnu.org>
20827
20828 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
20829 (grub_find_zpool_from_mount_point): Merge into ...
20830 (grub_find_zpool_from_dir): ... this.
20831 * kern/emu/misc.c: Likewise.
20832
20833 * kern/emu/misc.c
20834 (grub_make_system_path_relative_to_its_root): Replace
20835 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
20836 with grub_find_zpool_from_dir().
20837 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
20838
20839 2010-08-04 Robert Millan <rmh@gnu.org>
20840
20841 Support OpenSolaris in ZFS device resolution.
20842
20843 * configure.ac: Check for getmntany().
20844 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
20845 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
20846 support.
20847
20848 2010-08-03 Robert Millan <rmh@gnu.org>
20849
20850 Fix grub-emu build.
20851
20852 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
20853 * include/grub/emu/misc.h: ... here.
20854
20855 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
20856 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
20857
20858 * util/misc.c: Remove `<grub/util/libzfs.h>'.
20859 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
20860 (grub_get_libzfs_handle): Move to ...
20861 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
20862 (grub_get_libzfs_handle): ... here.
20863
20864 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
20865
20866 * script/execute.c (grub_script_execute_cmdline): Check for NULL
20867 as command name case.
20868
20869 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
20870
20871 * disk/raid.c (insert_array): Select unique numbers for named arrays
20872 as well, for use as keys in the disk cache.
20873
20874 2010-08-01 Robert Millan <rmh@gnu.org>
20875
20876 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
20877 kFreeBSD device name, except on ZFS where the filesystem label is
20878 used.
20879 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
20880 `/boot/zfs/zpool.cache'.
20881 Set mountfrom kernel variable using ${kfreebsd_device}.
20882
20883 2010-08-01 Robert Millan <rmh@gnu.org>
20884
20885 Make it even harder to use uninitialized `libzfs_handle' (and
20886 make the interface a bit simpler).
20887
20888 * include/grub/util/misc.h (grub_util_init_libzfs)
20889 (libzfs_handle): Remove.
20890 (grub_get_libzfs_handle): New prototype.
20891
20892 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
20893 attribute.
20894 (grub_util_init_libzfs): Remove.
20895 (grub_get_libzfs_handle): New function.
20896
20897 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
20898 grub_get_libzfs_handle() to obtain a libzfs handle instead of
20899 accessing `libzfs_handle' directly.
20900
20901 2010-08-01 Robert Millan <rmh@gnu.org>
20902
20903 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
20904 (grub_find_zpool_from_mount_point): New function prototypes.
20905
20906 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
20907 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
20908
20909 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
20910 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
20911 `static' attribute.
20912
20913 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
20914 finding zpool from mount point into ...
20915 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
20916
20917 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
20918 requested path is part of a ZFS pool, use
20919 grub_find_zpool_from_mount_point() to detect its filesystem name,
20920 and generate a path with `/fsname@path' syntax.
20921
20922 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
20923
20924 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
20925 (void) rather than () so that this is a proper prototype.
20926
20927 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
20928
20929 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
20930
20931 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
20932
20933 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
20934 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
20935
20936 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
20937
20938 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
20939
20940 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
20941
20942 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
20943
20944 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
20945
20946 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
20947 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
20948 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
20949 disable gfxpayload.
20950 (Shell-like scripting): Add real content.
20951 (Serial terminal): Suggest `terminal_input serial; terminal_output
20952 serial' rather than putting the two commands on separate lines,
20953 since console input will be inoperative after the first command.
20954 (menuentry): Document --class, --users, and --hotkey options.
20955 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
20956 Vladimir Serbinenko).
20957
20958 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
20959 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
20960
20961 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
20962
20963 2010-08-01 Robert Millan <rmh@gnu.org>
20964
20965 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
20966 (grub_find_zpool_from_mount_point): New function prototypes.
20967
20968 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
20969 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
20970
20971 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
20972 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
20973 `static' attribute.
20974
20975 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
20976 finding zpool from mount point into ...
20977 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
20978
20979 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
20980 requested path is part of a ZFS pool, use
20981 grub_find_zpool_from_mount_point() to detect its filesystem name,
20982 and generate a path with `/fsname@path' syntax.
20983
20984 2010-08-01 Robert Millan <rmh@gnu.org>
20985
20986 Prevent accidental use of uninitialized libzfs_handle.
20987
20988 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
20989 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
20990 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
20991
20992 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
20993
20994 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
20995 util/grub.d/10_linux.in). Fixes Debian bug #591093.
20996
20997 2010-08-01 Robert Millan <rmh@gnu.org>
20998
20999 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
21000
21001 2010-07-31 Robert Millan <rmh@gnu.org>
21002
21003 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
21004
21005 2010-07-31 Robert Millan <rmh@gnu.org>
21006
21007 * kern/emu/misc.c: Add missing license header.
21008
21009 2010-07-31 Robert Millan <rmh@gnu.org>
21010
21011 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
21012
21013 * include/grub/util/libnvpair.h: Include `<config.h>'.
21014 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
21015 declaring libnvpair prototypes ourselves.
21016 * include/grub/util/libzfs.h: Include `<config.h>'.
21017 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
21018 declaring libzfs prototypes ourselves.
21019
21020 (libzfs_handle): Moved to ...
21021 * include/grub/util/misc.h (libzfs_handle): ... here.
21022 Include `<grub/util/libzfs.h>'.
21023
21024 2010-07-30 Robert Millan <rmh@gnu.org>
21025
21026 * include/grub/emu/misc.h: Add missing license header.
21027
21028 2010-07-30 Robert Millan <rmh@gnu.org>
21029
21030 Enable `grub-probe -t device' resolution on ZFS.
21031
21032 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
21033 * include/grub/util/libnvpair.h: New file.
21034 * include/grub/util/libzfs.h: New file.
21035
21036 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
21037 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
21038 `<grub/util/libnvpair.h>'.
21039 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
21040
21041 (find_mount_point_from_dir): New static function.
21042 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
21043 function.
21044 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
21045 find_root_device_from_libzfs() before ressorting to find_root_device().
21046
21047 * include/grub/util/misc.h (grub_util_init_libzfs): New function
21048 prototype.
21049 * util/misc.c: Include `<grub/util/libzfs.h>'.
21050 (grub_util_init_libzfs): New function.
21051 [HAVE_LIBZFS] (libzfs_handle): New global variable.
21052 [HAVE_LIBZFS] (fini_libzfs): New static function.
21053 (grub_util_init_libzfs): New function.
21054 * util/grub-probe.c (main): Call grub_util_init_libzfs().
21055
21056 2010-07-30 Robert Millan <rmh@gnu.org>
21057
21058 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
21059 (xmalloc, xrealloc, xstrdup, xasprintf): Add
21060 `warn_unused_result' attribute.
21061 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
21062 (grub_xasprintf, grub_xvasprintf): Likewise.
21063 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
21064
21065 2010-07-29 Robert Millan <rmh@gnu.org>
21066
21067 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
21068 (probe): Handle `PRINT_FS_LABEL'.
21069 (main): Handle `-t fs_label'.
21070
21071 2010-07-29 Robert Millan <rmh@gnu.org>
21072
21073 * configure.ac: Remove grub-mkisofs checks.
21074
21075 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
21076
21077 * util/ieee1275/grub-install.in: Don't use empty grub_device.
21078 Reported by: Lennart Sorensen.
21079
21080 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21081
21082 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
21083 prior to terminal_input/terminal_output separation. It's been over 1.5
21084 years and those versions weren't widely deployed.
21085
21086 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
21087
21088 * disk/raid.c (insert_array): Don't count named arrays when looking
21089 for unused array numbers.
21090 Reported and tested by: Michael Guntsche.
21091
21092 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21093
21094 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
21095 implementation of this so that grub-emu links again, with a note
21096 that this should support hotplugging in the future.
21097
21098 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21099
21100 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
21101
21102 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21103
21104 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
21105 handle on failure.
21106 (grub_loopback_close): Remove empty function.
21107 (grub_loopback_dev): Remove close method.
21108
21109 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21110
21111 Disable EFI cursor when the EFI console becomes inactive.
21112
21113 * term/efi/console.c (grub_efi_console_init): New function.
21114 (grub_efi_console_fini): New function.
21115 (grub_console_term_output): Register init and fini methods.
21116
21117 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21118
21119 * tests/util/grub-shell-tester.in: Remove bashism and declare as
21120 sh script.
21121
21122 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21123
21124 * disk/loopback.c (grub_loopback): Replace filename with file.
21125 (delete_loopback): Handle new semantics.
21126 (grub_cmd_loopback): Likewise.
21127 (grub_loopback_iterate): Likewise.
21128 (grub_loopback_close): Likewise.
21129
21130 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21131
21132 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
21133 with -p "".
21134 Reported by: Tito Keitel.
21135
21136 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21137
21138 * docs/grub.texi (Naming convention): Document new naming convention.
21139
21140 2010-07-20 Vadim Solomin <vadic052@gmail.com>
21141 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21142
21143 Generate device.map in something closer to the old ordering.
21144
21145 * util/deviceiter.c (struct device): New declaration.
21146 (compare_file_names): Rename to ...
21147 (compare_devices): ... this. Sort by kernel name in preference to
21148 the stable by-id name, but keep the latter as a fallback comparison.
21149 Update header comment.
21150 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
21151 of `struct device' rather than of plain file names.
21152
21153 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
21154
21155 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
21156 on i386.
21157
21158 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21159
21160 * commands/acpi.c (setup_common_tables): Use sizeof instead of
21161 hardcoding size.
21162 (setv1table): Likewise.
21163
21164 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21165
21166 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
21167 removing the homehost if present.
21168 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
21169 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
21170 removing the homehost if present.
21171 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
21172 if possible.
21173 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
21174
21175 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
21176 parameter. Set its pointer target to 0.
21177 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
21178 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
21179 `data_offset' value from the superblock for 1.x metadata.
21180 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
21181 data on the device.
21182 (insert_array): Record the start sector of data on the device.
21183 (grub_raid_register): Pass start_sector parameters to
21184 grub_raid_list->detect and insert_array.
21185 * include/grub/raid.h (struct grub_raid_array): Add start_sector
21186 member.
21187 (struct grub_raid): Add start_sector parameter to `detect'.
21188
21189 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
21190 __attribute__ ((packed)), leaving a comment.
21191 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
21192 (grub_mdraid_detect_09): ... here and ...
21193 (grub_mdraid_detect_1x): ... here.
21194
21195 2010-07-20 Peter Henn <peter.henn@web.de>
21196
21197 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
21198 chunk size and disk size, which are already given as sector counts
21199 as distinct from the 0.90 units. Fetch the correct device number
21200 from the role table instead of using the table index.
21201
21202 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
21203
21204 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
21205 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
21206 (WriteMostly1): New macro.
21207 Set array->name to NULL for metadata format 0.90. Add support for
21208 metadata 1.x. Fix some comments.
21209 * disk/raid.c (): Add support for name based RAID arrays. Fix a
21210 few comments.
21211 * util/getroot.c (grub_util_get_grub_dev): Add support for
21212 /dev/md/name style devices.
21213
21214 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21215
21216 * .bzrignore: Ignore 20_linux_xen.
21217
21218 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
21219
21220 * util/import_unicode.py: Remove unnecessary imports.
21221
21222 2010-07-17 Aleš Nesrsta <starous@volny.cz>
21223
21224 Hotplugging and USB hub support.
21225
21226 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
21227 (grub_ohci): Likewise.
21228 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
21229 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
21230 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
21231 (GRUB_OHCI_CTRL_EDS): Likewise.
21232 (GRUB_OHCI_BULK_EDS): Likewise.
21233 (GRUB_OHCI_TDS): Likewise.
21234 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
21235 (grub_ohci_ed_phys2virt): New function.
21236 (grub_ohci_virt_to_phys): Likewise.
21237 (grub_ohci_td_phys2virt): Likewise.
21238 (grub_ohci_td_virt2phys): Likewise.
21239 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
21240 attachment.
21241 (grub_ohci_find_ed): New function.
21242 (grub_ohci_alloc_td): Likewise.
21243 (grub_ohci_free_td): Likewise.
21244 (grub_ohci_free_tds): Likewise.
21245 (grub_ohci_transfer): Use previously allocated memory.
21246 (grub_ohci_portstatus): Reset status changed bit.
21247 (grub_ohci_detect_dev): Supply status changed.
21248 (grub_ohci_fini_hw): Free memory.
21249 (grub_ohci_restore_hw): Reallocate memory.
21250 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
21251 Reset status change.
21252 (grub_uhci_detect_dev): Supply status_change.
21253 * bus/usb/usb.c (attach_hooks): New var.
21254 (grub_usb_device_attach): New function.
21255 (grub_usb_register_attach_hook_class): Likewise.
21256 (grub_usb_unregister_attach_hook_class): Likewise.
21257 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
21258 (grub_usb_add_hub): Reset connection changed bit.
21259 (attach_root_port): New function.
21260 (grub_usb_root_hub): Likewise.
21261 (poll_nonroot_hub): Likewise.
21262 (grub_usb_poll_devices): Likewise.
21263 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
21264 * disk/usbms.c (grub_usbms_open): Use device hooks.
21265 (grub_usbms_iterate) :Poll devices.
21266 (grub_usbms_finddevs): Split into ...
21267 (grub_usbms_attach): ... this ...
21268 (grub_usbms_attach): ... and this.
21269 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
21270 in detect_dev.
21271 (grub_usb_interface): New fields attached and detach_hook.
21272 (grub_usb_attach_hook_class): New type.
21273 (grub_usb_attach_desc): New struct.
21274 (grub_usb_register_attach_hook_class): New function.
21275 (grub_usb_unregister_attach_hook_class): Likewise.
21276 (grub_usb_poll_devices): Likewise.
21277 (grub_usb_device_attach): Likewise.
21278 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
21279 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
21280
21281 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
21282
21283 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
21284 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
21285 delta determination style. Works with most NetBSD partitions too.
21286
21287 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
21288
21289 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
21290 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
21291
21292 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
21293
21294 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
21295
21296 2010-07-14 Anton Blanchard <anton@samba.org>
21297
21298 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
21299 ET_DYN files.
21300
21301 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
21302
21303 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
21304
21305 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
21306
21307 * kern/partition.c (grub_partition_check_containment): New function to
21308 check that a partition is physically contained in a parent. Since
21309 offsets are relative (and non-negative), this reduces to checking that
21310 the partition ends before its parent.
21311 (grub_partition_map_probe): Discard out-of-range sub-partitions.
21312 (grub_partition_iterate): Likewise.
21313 * include/grub/partition.h (grub_partition_map): Slightly more detailed
21314 comments.
21315 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
21316 partitions that start before their parent, and add debug printfs.
21317
21318 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
21319
21320 * Makefile.in (.SUFFIX): Spell correctly, as ...
21321 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
21322 bare module name without `.mod', e.g. `test') tried to invoke a
21323 Modula-2 compiler.
21324
21325 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
21326
21327 * README: Point to the Info manual.
21328
21329 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
21330
21331 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
21332 2nd superblock position from partition size.
21333
21334 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
21335
21336 * Makefile.in (MAINTAINER_CLEANFILES): Remove
21337 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
21338 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
21339 outputs.
21340
21341 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
21342
21343 Restructure SCSI .id handling.
21344 Reported and tested by: Aleš Nesrsta.
21345
21346 * disk/ata.c (grub_atapi_close): Removed. All users updated.
21347 (grub_atapi_dev): Changed .name to "ata". New field .id.
21348 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
21349 (grub_usbms_dev): New field .id.
21350 * disk/scsi.c (grub_scsi_iterate): Generate name.
21351 (grub_scsi_open): Parse name.
21352 * include/grub/scsi.h (grub_make_scsi_id): New function.
21353 (grub_scsi_dev): Change iterate and open to number instead of naming
21354 busses. All users updated.
21355 (grub_scsi): Remove name. Add .bus.
21356
21357 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
21358
21359 * commands/help.c (grub_cmd_help): Fix a typo.
21360
21361 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
21362
21363 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
21364 Reported and tested by: Colin Watson.
21365
21366 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
21367
21368 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
21369 in this context.
21370
21371 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
21372
21373 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
21374
21375 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
21376
21377 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
21378 indentation.
21379
21380 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21381
21382 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
21383 and disk/raid6_recover.c.
21384 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
21385 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
21386
21387 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21388
21389 * term/gfxterm.c (repaint_schedulded): Rename to ...
21390 (repaint_scheduled): ... this. Update all callers.
21391 (repaint_was_schedulded): Rename to ...
21392 (repaint_was_scheduled): ... this. Update all callers.
21393
21394 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21395
21396 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
21397 which we expect to be handled by upper layers.
21398
21399 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
21400
21401 * bus/usb/usbhub.c: #include time.h header.
21402
21403 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21404
21405 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
21406 entry_name also for entries without stat blocks (e.g. ".."); fixes
21407 corruption of the first entry in a directory.
21408
21409 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21410
21411 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
21412 after setting gfxterm as the active terminal. GRUB_BACKGROUND
21413 doesn't work otherwise.
21414
21415 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
21416
21417 * docs/grub.texi (Features): Update list of supported file systems.
21418 (GNU/Linux): Update for GRUB 2.
21419 (Serial terminal): Remove mention of --disable-serial, which was a
21420 GRUB Legacy configure option. Update instructions to use
21421 `terminal_input' and `terminal_output' rather than `terminal'.
21422 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
21423 configuration' and `Installing GRUB using grub-install'.
21424 (Menu entry editor): Update for GRUB 2.
21425 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
21426 Document new -a, -u, and -v options.
21427 (initrd): New section.
21428 (initrd16): New section.
21429 (linux): New section.
21430 (linux16): New section.
21431 (search): The `var' argument to `--set' is optional.
21432 (GRUB only offers a rescue shell): Go into a little more detail on
21433 drive ordering.
21434
21435 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
21436
21437 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
21438
21439 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
21440
21441 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
21442 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
21443
21444 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
21445
21446 * util/i386/pc/grub-setup.c (setup): Rename prefix to
21447 install_prefix, in line with install_dos_part and install_bsd_part.
21448 Add new prefix variable, which is copied to install_prefix after
21449 comparing core.img in memory with the one read from disk in the
21450 no-embedding case, and use that rather than overwriting
21451 install_prefix immediately when installing to a partition.
21452 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
21453 Bicakci.
21454
21455 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
21456
21457 * configure.ac: Avoid == in test command, it's not portable.
21458 * util/grub.d/30_os-prober.in: Likewise.
21459
21460 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
21461
21462 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
21463
21464 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
21465
21466 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
21467 multiple (top-level) partmaps.
21468
21469 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21470
21471 * util/i386/efi/grub-install.in: Don't use empty grub_device.
21472 Reported by: Tino Keitel.
21473
21474 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21475
21476 Bidi and diacritics support.
21477
21478 * Makefile.in (widthspec.bin): New target.
21479 (widthspec.h): Likewise.
21480 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
21481 * autogen.sh: Generate unidata.c.
21482 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
21483 * commands/ls.c (grub_ls_list_devices): Likewise.
21484 (grub_ls_list_files): Likewise.
21485 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
21486 (grub_mini_cmd_lsmod): Likewise.
21487 * commands/read.c: Likewise.
21488 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
21489 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
21490 * lib/arg.c (grub_arg_show_help): Likewise.
21491 * lib/crypto.c (grub_password_get): Likewise.
21492 * normal/auth.c (grub_username_get): Likewise.
21493 * normal/misc.c (grub_normal_print_device_info): Likewise.
21494 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
21495 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
21496 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
21497 (normal/charset.c_DEPENDENCIES): New variable.
21498 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
21499 (pkglib_MODULES): Remove charset.mod.
21500 (charset_mod_SOURCES): Removed.
21501 (charset_mod_CFLAGS): Likewise.
21502 (charset_mod_LDFLAGS): Likewise.
21503 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
21504 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
21505 and term/tparm.c.
21506 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
21507 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
21508 (kernel_img_HEADERS): Add terminfo.h.
21509 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
21510 Fill ->font. Reverse ascii bitmaps.
21511 (grub_font_get_xheight): New function.
21512 * font/font.c (grub_font_get_string_width): Moved from here ...
21513 * gfxmenu/font.c (grub_font_get_string_width): ... here.
21514 * font/font.c (grub_font_draw_string): Moved from here ...
21515 * gfxmenu/font.c (grub_font_draw_string): ... here.
21516 * font/font.c (grub_font_dup_glyph): New function.
21517 (grub_font_blit_glyph): Likewise.
21518 (grub_font_blit_glyph_mirror): Likewise.
21519 (blit_comb): Likewise.
21520 (grub_font_construct_dry_run): Likewise.
21521 (grub_font_get_constructed_device_width): Likewise.
21522 (grub_font_construct_glyph): Likewise.
21523 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
21524 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
21525 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
21526 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
21527 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
21528 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
21529 (grub_font_get_xheight): New proto.
21530 (grub_font_get_constructed_device_width): Likewise.
21531 (grub_font_construct_glyph): Likewise.
21532 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
21533 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
21534 * include/grub/font.h (grub_font_draw_string): Moved from here ...
21535 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
21536 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
21537 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
21538 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
21539 (grub_console_getcharwidth): Likewise.
21540 * include/grub/misc.h (grub_xputs): New proto.
21541 (grub_puts): Inlined.
21542 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
21543 (grub_normal_get_line_counter): Removed.
21544 (grub_install_newline_hook): Likewise.
21545 (grub_normal_get_char_counter): New proto.
21546 (grub_normal_reset_more): Likewise.
21547 (grub_xputs_normal): Likewise.
21548 * include/grub/powerpc/ieee1275/console.h: Removed.
21549 * include/grub/sparc64/ieee1275/console.h: Likewise.
21550 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
21551 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
21552 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
21553 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
21554 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
21555 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
21556 (grub_term_input): Pass reference to self. All users updated.
21557 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
21558 Pass reference to self. New fields normal_color, highlight_color and
21559 data. All users updated.
21560 (grub_putchar): Removed.
21561 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
21562 (grub_unicode_estimate_width): New function.
21563 (grub_term_getcharwidth): Add defaults.
21564 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
21565 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
21566 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
21567 (grub_cls): Remove EXPORT_FUNC.
21568 (grub_setcolorstate): Inline.
21569 (grub_newline_hook): Removed.
21570 * include/grub/terminfo.h: Rewritten. All users updated.
21571 * include/grub/unicode.h: New file.
21572 * include/grub/video.h (grub_video_signed_rect): New type.
21573 * kern/emu/console.c (grub_console_highlight_color): Removed.
21574 (grub_console_normal_color): Likewise.
21575 (grub_console_standard_color): Made static.
21576 (grub_ncurses_putchar): Remove mapping.
21577 (grub_ncurses_getcharwidth): Removed.
21578 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
21579 (grub_ncurses_setcolor): Removed.
21580 (grub_ncurses_getcolor): Likewise.
21581 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
21582 (grub_console_putchar): ... this.
21583 (grub_console_putchar): Handle argument difference.
21584 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
21585 console_init_early and console_init_lately.
21586 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
21587 * kern/misc.c (grub_puts): Removed.
21588 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
21589 (grub_vsnprintf_real): Remove str = NULL support.
21590 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
21591 * normal/charset.c (grub_utf8_to_ucs4): ... here.
21592 * kern/term.c (grub_putcode): Renamed to ...
21593 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
21594 (grub_putchar): Removed.
21595 (grub_xputs_dumb): New function.
21596 (grub_xputs): New variable.
21597 * lib/charset.c: Move from here ...
21598 * normal/charset.c: ... to here.
21599 (grub_ucs4_to_utf8): New function.
21600 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
21601 (join_types): New variable.
21602 (unpack_join): New function.
21603 (bidi_types): New variable.
21604 (unpack_bidi): New function.
21605 (get_bidi_type): Likewise.
21606 (get_join_type): Likewise.
21607 (is_mirrored): Likewise.
21608 (grub_unicode_get_comb_type): Likewise.
21609 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
21610 (is_type_after): Likewise.
21611 (grub_unicode_aglomerate_comb): Likewise.
21612 (bidi_line_wrap): Likewise.
21613 (grub_bidi_line_logical_to_visual): Likewise.
21614 (grub_bidi_logical_to_visual): Likewise.
21615 (grub_unicode_mirror_code): Likewise.
21616 (grub_unicode_shape_code): Likewise.
21617 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
21618 Don't use grub_putchar.
21619 * normal/main.c (grub_normal_init_page): Use grub_putcode.
21620 (grub_normal_reader_init): Likewise.
21621 (grub_xputs_saved): New variable.
21622 (GRUB_MOD_INIT): Set grub_xputs.
21623 (GRUB_MOD_FINI): Restore grub_xputs.
21624 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
21625 (menu_init): Avoid printing gfxmenu error.
21626 (show_menu): Use grub_normal_get_char_counter.
21627 * normal/menu_entry.c (update_screen): Fix out-of-array.
21628 (complete): Avoid NULL dereferencing.
21629 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
21630 * normal/menu_text.c (print_spaces): Removed.
21631 (grub_print_ucs4): Likewise.
21632 (grub_print_message_indented): Use grub_print_ucs4.
21633 (print_message): Use grub_putcode.
21634 (print_entry): Hanlde diacritics.
21635 * normal/term.c (term_state): New type.
21636 (grub_more_lines): Removed.
21637 (term_states): New variable.
21638 (grub_normal_line_counter): Renamed to ..
21639 (grub_normal_char_counter): ...this. All users updated.
21640 (grub_normal_get_line_counter): Renamed to ...
21641 (grub_normal_get_char_counter): ... this.
21642 (grub_normal_reset_more): New function.
21643 (process_newline): Removed.
21644 (print_more): New function.
21645 (grub_install_newline_hook): Removed.
21646 (map_code): New function.
21647 (grub_puts_terminal): Use grub_print_ucs4.
21648 (putglyph): New function.
21649 (putcode_real): Likewise.
21650 (grub_putcode): Use putcode_real.
21651 (get_maxwidth): New function.
21652 (get_startwidth): Likewise.
21653 (print_ucs4_terminal): Likewise.
21654 (find_term_state): Likewise.
21655 (put_glyphs_terminal): Likewise.
21656 (print_backlog): Likewise.
21657 (print_ucs4_real): Likewise.
21658 (grub_print_ucs4): Likewise.
21659 (grub_xputs_normal): Likewise.
21660 * term/efi/console.c (grub_console_putchar): Output diacritics.
21661 (grub_console_getcharwidth): Removed.
21662 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
21663 * term/gfxterm.c (clear_char): Free chars.
21664 (scroll_up): Avoid leaking memory.
21665 (grub_gfxterm_putchar): Support diacritics.
21666 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
21667 * term/i386/pc/console.c (grub_console_term_output): Declare as
21668 GRUB_TERM_CODE_TYPE_VGA.
21669 * term/i386/pc/vga.c (grub_vga_term): Declare as
21670 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
21671 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
21672 GRUB_TERM_CODE_TYPE_VGA.
21673 * term/i386/vga_common.c (map_char): Removed.
21674 (grub_console_putchar): Likewise.
21675 (grub_console_getcharwidth): Likewise.
21676 * term/ieee1275/ofconsole.c: Simplify using terminfo.
21677 (colors): Reordered to match terminfo.
21678 (grub_ofconsole_normal_color): Removed.
21679 (grub_ofconsole_writeesc): Likewise.
21680 (grub_ofconsole_highlight_color): Likewise.
21681 (grub_ofconsole_getcharwidth): Likewise.
21682 (grub_ofconsole_setcolorstate): Likewise.
21683 (grub_ofconsole_setcolor): Likewise.
21684 (grub_ofconsole_getcolor): Likewise.
21685 (grub_ofconsole_readkey): Renamed to ...
21686 (readkey): ... this. Remove escape sequence handling. Return -1 on no
21687 key.
21688 (grub_ofconsole_checkkey): Removed.
21689 (grub_ofconsole_getkey): Likewise.
21690 (grub_ofconsole_getxy): Likewise.
21691 (grub_ofconsole_gotoxy): Likewise.
21692 (grub_ofconsole_cls): Likewise.
21693 (grub_ofconsole_refresh): Likewise.
21694 (grub_ofconsole_terminfo_input): New struct.
21695 (grub_ofconsole_terminfo_output): Likewise.
21696 (grub_ofconsole_term_input): Use terminfo.
21697 (grub_ofconsole_term_output): Likewise.
21698 (grub_console_init): Split into ...
21699 (grub_console_init_early): ...this and ...
21700 (grub_console_init_lately): ...this. Use terminfo.
21701 (grub_ofconsole_putchar): Renamed to ...
21702 (put): ... this. Remove mapping.
21703 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
21704 * term/serial.c: Simplify using terminfo.
21705 (xpos): Removed.
21706 (ypos): Likewise.
21707 (keep_track): Likewise.
21708 (registered): Likewise.
21709 (input_buf): Likewise.
21710 (npending): Likewise.
21711 (serial_translate_key_sequence): Likewise.
21712 (fill_input_buf): Likewise.
21713 (grub_serial_checkkey): Likewise.
21714 (grub_serial_getkey): Likewise.
21715 (grub_serial_getxy): Likewise.
21716 (grub_serial_gotoxy): Likewise.
21717 (grub_serial_putchar): Likewise.
21718 (grub_serial_cls): Likewise.
21719 (grub_serial_setcolorstate): Likewise.
21720 (grub_serial_setcursor): Likewise.
21721 (serial_hw_init): Use serial_hw_fetch.
21722 (grub_serial_terminfo_input): New variable.
21723 (grub_serial_terminfo_output): Likewise.
21724 (grub_serial_term_input): Use terminfo.
21725 (grub_serial_term_output): Likewise.
21726 * term/terminfo.c (putstr): Use put.
21727 (grub_terminfo_all_free): New function
21728 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
21729 (grub_terminfo_output_register): New function.
21730 (grub_terminfo_output_unregister): Likewise.
21731 (grub_terminfo_getxy): Likewise.
21732 (grub_terminfo_readkey): Likewise.
21733 (grub_terminfo_checkkey): Likewise.
21734 (grub_terminfo_getkey): Likewise.
21735 (grub_terminfo_input_init): Likewise.
21736 (print_terminfo): Likewise.
21737 (grub_cmd_terminfo): Handle encoding.
21738 (grub_terminfo_gotoxy): Track position.
21739 (grub_terminfo_cls): Likewise.
21740 (grub_terminfo_putchar): Likewise.
21741 (grub_terminfo_setcolorstate): Handle colors
21742 (grub_terminfo_cursor_on): This ...
21743 (grub_terminfo_cursor_off): ... and this merged into ...
21744 (grub_terminfo_setcursor): ... this.
21745 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
21746 * unicode/ArabicShaping.txt: New file (imported from Unicode).
21747 * unicode/BidiMirroring.txt: Likewise.
21748 * unicode/UnicodeData.txt: Likewise.
21749 * unicode/COPYING: Likewise.
21750 * util/grub-editenv.c (grub_putchar): Removed.
21751 (grub_xputs_real): New function.
21752 (grub_xputs): New variable.
21753 * util/grub-fstest.c (grub_putchar): Removed.
21754 (grub_xputs_real): New function.
21755 (grub_xputs): New variable.
21756 * util/grub-mkdevicemap.c (grub_putchar): Removed.
21757 (grub_xputs_real): New function.
21758 (grub_xputs): New variable.
21759 * util/grub-probe.c (grub_putchar): Removed.
21760 (grub_xputs_real): New function.
21761 (grub_xputs): New variable.
21762 * util/grub-script-check.c (grub_putchar): Removed.
21763 (grub_xputs_real): New function.
21764 (grub_xputs): New variable.
21765 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
21766 (grub_xputs_real): New function.
21767 (grub_xputs): New variable.
21768 * util/import_unicode.py: New file.
21769 * util/grub-mkfont.c (ft_errmsgs): New array.
21770 (grub_glyph_info): Make bitmap a pointer.
21771 (file_formats): New type WIDTH_SPEC.
21772 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
21773 (options): Add width-spec.
21774 (help): Likewise.
21775 (add_char): Renamed to ...
21776 (add_glyph): ... this.
21777 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
21778 (glyph_replace): New type.
21779 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
21780 (add_char): New function.
21781 (add_subst): Likewise.
21782 (process_cursive): Likewise.
21783 (add_font): Handle GSUB.
21784 (write_font_width_spec): New function.
21785 (main): Sort glyphs.
21786 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
21787 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
21788 * kern/term.c (grub_cls): Moved from here...
21789 * normal/term.c (grub_cls): ... here.
21790
21791 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
21792
21793 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
21794 suitable for using within the format argument of printf when
21795 converting grub_size_t.
21796 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
21797 "x" to convert grub_size_t arguments.
21798
21799 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21800
21801 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
21802 too long captions.
21803 (list_get_minimal_size): Take selection box into account.
21804
21805 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21806
21807 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
21808 NULL font.
21809
21810 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
21811
21812 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
21813 devices when iterating over /dev/disk/by-id; they will be handled
21814 later if appropriate, which they aren't always (e.g. LVM).
21815
21816 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
21817
21818 * include/grub/misc.h (grub_reboot): Declare as noreturn.
21819 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
21820 fails.
21821 (grub_halt): Likewise.
21822 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
21823 reset-all fails.
21824 (grub_halt): Don't return, even if all of shut-down, power-off, and
21825 poweroff fail.
21826
21827 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
21828
21829 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
21830 arguments, not three.
21831
21832 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
21833
21834 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
21835 * util/grub.d/10_linux.in: Use it to check for LVM, so that
21836 LVM-on-RAID is handled correctly.
21837
21838 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
21839
21840 * docs/grub.texi (Changes from GRUB Legacy): New section.
21841 (Future): Fix typo.
21842
21843 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
21844
21845 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
21846 grub.d/README accidentally ends up executable for one reason or
21847 another. Ignore it.
21848
21849 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21850
21851 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
21852 (gpt_partition_map_iterate): Support non-512B sectors.
21853
21854 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21855
21856 * kern/efi/init.c (grub_efi_init): Disable watchdog.
21857 Tested by: Seth Goldberg.
21858
21859 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
21860
21861 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
21862 Properly align mbi.
21863 Reported by: Seth Goldberg.
21864
21865 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
21866
21867 * util/grub-mkrescue.in: Avoid module duplication.
21868
21869 2010-07-01 Sean Finney <seanius@seanius.net>
21870
21871 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
21872
21873 2010-07-01 Sean Finney <seanius@seanius.net>
21874
21875 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
21876
21877 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
21878
21879 * disk/lvm.c (grub_lvm_checkvalue): New function.
21880 (grub_lvm_check_flag): Likewise.
21881
21882 2010-07-01 Robert Millan <rmh@gnu.org>
21883
21884 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
21885 Support 'p' as partition separator on kernel of FreeBSD (used
21886 with GPT labels).
21887 (grub_util_biosdisk_get_grub_dev): Likewise.
21888
21889 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
21890
21891 Yeeloong firmware port.
21892
21893 * boot/mips/yeeloong/fwstart.S: New file.
21894 * bus/cs5536.c (gpiodump): New const.
21895 (set_io_space): New function.
21896 (set_iod): Likewise.
21897 (set_p2d): Likewise.
21898 (grub_cs5536_init_geode): Likewise.
21899 * commands/mips/yeeloong/lsspd.c: New file.
21900 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
21901 (serial_mod_SOURCES): New variable.
21902 (serial_mod_CFLAGS): Likewise.
21903 (serial_mod_LDFLAGS): Likewise.
21904 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
21905 term/terminfo.c and term/tparm.c.
21906 (pkglib_IMAGES): Add fwstart.img.
21907 (fwstart_img_SOURCES): New variable.
21908 (fwstart_img_CFLAGS): Likewise.
21909 (fwstart_img_ASFLAGS): Likewise.
21910 (fwstart_img_LDFLAGS): Likewise.
21911 (fwstart_img_FORMAT): Likewise.
21912 (pkglib_MODULES): Add lsspd.mod.
21913 (lsspd_mod_SOURCES): New variable.
21914 (lsspd_mod_CFLAGS): Likewise.
21915 (lsspd_mod_LDFLAGS): Likewise.
21916 (pkglib_MODULES): Add halt.mod.
21917 (halt_mod_SOURCES): New variable.
21918 (halt_mod_CFLAGS): Likewise.
21919 (halt_mod_LDFLAGS): Likewise.
21920 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
21921 (serial_mod_SOURCES): Removed.
21922 (serial_mod_CFLAGS): Likewise.
21923 (serial_mod_LDFLAGS): Likewise.
21924 * disk/ata.c (check_device): New function.
21925 (grub_ata_device_initialize): Use check_device.
21926 (grub_ata_iterate): Recheck devices.
21927 (grub_ata_open): Likewise.
21928 (grub_atapi_iterate): Likewise.
21929 (grub_atapi_open): Likewise.
21930 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
21931 (GRUB_ATA_CH1_PORT1): Likewise.
21932 (GRUB_ATA_CH0_PORT2): Likewise.
21933 (GRUB_ATA_CH1_PORT2): Likewise.
21934 * include/grub/mips/loongson.h: New file.
21935 * include/grub/mips/yeeloong/ec.h: Likewise.
21936 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
21937 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
21938 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
21939 * include/grub/misc.h (grub_halt): Declare as noreturn.
21940 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
21941 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
21942 (UART_ENABLE_FIFO_TRIGGER1): New definition.
21943 (UART_ENABLE_DTRRTS): Likewise.
21944 (UART_ENABLE_MODEM): Removed.
21945 (UART_ENABLE_OUT2): New const.
21946 * include/grub/term.h (grub_term_register_input_active): New function.
21947 (grub_term_register_output_active): Likewise.
21948 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
21949 argument.
21950 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
21951 (init_pci): New function.
21952 (grub_machine_init): Execute platform init when firmware. Init serial.
21953 (grub_halt): Implement.
21954 (grub_exit): Likewise.
21955 (grub_reboot): Likewise.
21956 * term/serial.c (serial_hw_init): Update macros.
21957 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
21958 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
21959 (image_targets): New target mipsel-yeeloong-flash.
21960 (generate_image): Support IMAGE_YEELOONG_FLASH.
21961 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
21962 (grub_video_sm712_setup): Init card.
21963 (grub_video_sm712_set_palette): Removed.
21964 * video/sm712_init.c: New file.
21965
21966 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
21967
21968 * Makefile.in (install-local): Temporarily prepend $(builddir) to
21969 PATH when running help2man and then run it on the unadorned
21970 executable names, rather than passing $(builddir)/* paths to
21971 help2man. This avoids the build directory ending up in generated
21972 manual pages.
21973
21974 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
21975
21976 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
21977 to avoid accidents when debugging with 'sh -x'.
21978 * util/grub-mkrescue.in: Likewise.
21979 * util/grub.d/00_header.in: Likewise.
21980 * util/grub.d/10_hurd.in: Likewise.
21981 * util/grub.d/10_kfreebsd.in: Likewise.
21982 * util/grub.d/10_linux.in: Likewise.
21983 * util/grub.d/10_netbsd.in: Likewise.
21984 * util/grub.d/10_windows.in: Likewise.
21985 * util/grub.d/20_linux_xen.in: Likewise.
21986 * util/grub.d/30_os-prober.in: Likewise.
21987 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
21988
21989 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
21990
21991 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
21992 last character in the buffer.
21993 Reported by: Vladimir Serbinenko.
21994
21995 2010-06-29 Robert Millan <rmh@gnu.org>
21996
21997 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
21998 (Command-line and menu entry commands): Document `badram' command.
21999
22000 2010-06-28 Robert Millan <rmh@gnu.org>
22001
22002 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
22003 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
22004 command using ${GRUB_BADRAM} as parameter.
22005
22006 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
22007
22008 * docs/grub.texi (Device map): New section.
22009 (Themes): New section (stub).
22010 * Makefile.in (docs/grub.info): The info documentation now builds
22011 without errors. Make sure it stays that way.
22012
22013 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
22014
22015 Use normal parser for menu entries.
22016 Reported by: Thomas Frauendorfer
22017
22018 * include/grub/parser.h (grub_parser_execute): Don't export.
22019 * normal/menu.c (grub_menu_execute_entry_real): New function.
22020 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
22021
22022 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
22023
22024 * docs/grub.texi (Embedded configuration): New section (replacing
22025 old "Preset Menu" stub).
22026 (Images): New section.
22027 (configfile): Note that any menu entries defined in `file' are shown
22028 immediately.
22029
22030 2010-06-28 Josh Triplett <josh@joshtriplett.org>
22031
22032 * mmap/i386/pc/mmap_helper.S: Set CF on return.
22033
22034 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
22035
22036 * util/grub-install.in: Add --debug-image= option.
22037
22038 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
22039
22040 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
22041 possible on Linux.
22042
22043 * util/deviceiter.c (check_device): Rename to ...
22044 (check_device_readable_unique): ... this. Update all callers.
22045 Maintain and check a list of which devices (by canonicalized name)
22046 have already been seen.
22047 (clear_seen_devices): New function.
22048 (compare_file_names) [__linux__]: New function.
22049 (grub_util_iterate_devices): Clear the list of seen devices on exit
22050 and (just in case) on entry.
22051 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
22052 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
22053 seen-devices list, superseded by general code in check_device.
22054
22055 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
22056
22057 * commands/cat.c (options): New variable.
22058 (grub_cmd_cat): Parse options. If the --dos option is given, print
22059 DOS-style "\r\n" line endings as simple newlines (Debian bug
22060 #586358).
22061 (GRUB_MOD_INIT): Use extcmd.
22062 (GRUB_MOD_FINI): Likewise.
22063 * docs/grub.texi (cat): Document --dos.
22064
22065 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
22066
22067 XEN with Linux grub-mkconfig support.
22068
22069 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
22070 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
22071 GRUB_CMDLINE_XEN_DEFAULT.
22072 * util/grub.d/20_linux_xen.in: New file.
22073
22074 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
22075
22076 Initialise VGA video on qemu ourselves.
22077
22078 * boot/i386/qemu/boot.S: Don't call 0xc000.
22079 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
22080 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
22081 (kernel_img_HEADERS): Add pci.h.
22082 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
22083 * configure.ac: Force unifont on qemu and yeeloong.
22084 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
22085 (grub_vga_palette_write): Use correct register.
22086 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
22087 Call grub_qemu_init_cirrus.
22088 * kern/i386/qemu/init.c: New file.
22089 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
22090
22091 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
22092
22093 2010-06-26 Pavel Roskin <proski@gnu.org>
22094
22095 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
22096 13.
22097
22098 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
22099
22100 * docs/grub.texi (Simple configuration): Explain that
22101 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
22102 set to `true' to disable their respective recovery entries, not
22103 merely set.
22104
22105 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
22106
22107 Make the `source' command slightly faster.
22108
22109 * normal/main.c (grub_normal_execute): Don't re-read list files when
22110 nested.
22111
22112 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
22113
22114 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
22115 field position and mask size to red fields from mode_info, not
22116 green.
22117 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
22118 Remove redundant tag->common.framebuffer_type assignment.
22119 Reported by: Seth Goldberg.
22120
22121 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
22122
22123 Sync up other versions of the Linux loader with Robert Millan's
22124 change of 2010-01-09, "Make loader output a bit more user-friendly".
22125
22126 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
22127 grub_dprintf().
22128 (grub_cmd_linux): Likewise.
22129 (grub_cmd_initrd): Likewise.
22130 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
22131 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
22132
22133 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
22134
22135 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
22136 larger than MEMORY_MAP_SIZE.
22137
22138 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
22139
22140 Fix parallel build.
22141
22142 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
22143 dependency.
22144 * script/parser.y: #include grub_script.tab.h header.
22145
22146 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
22147
22148 Support >3GiB and <16MiB RAM in i386-qemu.
22149
22150 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
22151 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
22152 (grub_lower_mem): Removed.
22153 (grub_upper_mem): Likewise.
22154 (mem_size): Made static.
22155 (above_4g): New variable.
22156 (grub_machine_mmap_init): Detect small mem_size and above_4g.
22157 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
22158 support.
22159
22160 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
22161
22162 Cirrus 5446 and Bochs video cards support.
22163
22164 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
22165 video_bochs.mod
22166 (video_cirrus_mod_SOURCES): New variable.
22167 (video_cirrus_mod_CFLAGS): Likewise.
22168 (video_cirrus_mod_LDFLAGS): Likewise.
22169 (video_bochs_mod_SOURCES): Likewise.
22170 (video_bochs_mod_CFLAGS): Likewise.
22171 (video_bochs_mod_LDFLAGS): Likewise.
22172 * include/grub/vga.h: New file.
22173 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
22174 (grub_video_fb_set_page_t): New type.
22175 (grub_video_fb_setup): New prototype.
22176 (grub_video_fb_swap_buffers): Likewise.
22177 (grub_video_fb_get_info_and_fini): Likewise.
22178 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
22179 (CRTC_DATA_PORT): Likewise.
22180 (CRTC_CURSOR): Likewise.
22181 (CRTC_CURSOR_ADDR_HIGH): Likewise.
22182 (CRTC_CURSOR_ADDR_LOW): Likewise.
22183 (CRTC_CURSOR_DISABLE): Likewise.
22184 (update_cursor): Use grub_vga_cr_write.
22185 (grub_vga_text_setcursor): Likewise.
22186 * video/bochs.c: New file.
22187 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
22188 (palette): Likewise.
22189 (palette_size): Likewise.
22190 (framebuffer): New variable.
22191 (grub_video_fb_init): Use 'framebuffer'.
22192 (grub_video_fb_fini): Likewise.
22193 (grub_video_fb_get_info): Likewise.
22194 (grub_video_fb_get_palette): Likewise.
22195 (grub_video_fb_set_palette): Likewise.
22196 (grub_video_fb_set_viewport): Likewise.
22197 (grub_video_fb_get_viewport): Likewise.
22198 (grub_video_fb_map_color): Likewise.
22199 (grub_video_fb_map_rgb): Likewise.
22200 (grub_video_fb_map_rgba): Likewise.
22201 (grub_video_fb_unmap_color): Likewise.
22202 (grub_video_fb_unmap_color_int): Likewise.
22203 (grub_video_fb_fill_rect): Likewise.
22204 (grub_video_fb_blit_bitmap): Likewise.
22205 (grub_video_fb_blit_render_target): Likewise.
22206 (grub_video_fb_scroll): Likewise.
22207 (grub_video_fb_create_render_target): Likewise.
22208 (grub_video_fb_doublebuf_blit_init): Likewise.
22209 (grub_video_fb_set_active_render_target): Handle doublebuffering.
22210 (doublebuf_pageflipping_update_screen): New function.
22211 (doublebuf_pageflipping_init): Likewise.
22212 (grub_video_fb_setup): Likewise.
22213 (grub_video_fb_swap_buffers): Likewise.
22214 (grub_video_fb_get_info_and_fini): Likewise.
22215 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
22216 All users updated.
22217 (doublebuf_pageflipping_commit): Restructured into ...
22218 (doublebuf_pageflipping_set_page): ... this.
22219 (doublebuf_pageflipping_update_screen): Removed.
22220 (doublebuf_pageflipping_init): Likewise.
22221 (double_buffering_init): Likewise.
22222 (grub_video_vbe_setup): Use grub_video_fb_setup.
22223 (grub_video_vbe_swap_buffers): Removed.
22224 (grub_video_vbe_set_active_render_target): Likewise.
22225 (grub_video_vbe_get_active_render_target): Likewise.
22226 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
22227 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
22228 grub_video_fb_set_active_render_target and
22229 grub_video_fb_get_active_render_target.
22230 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
22231 (SEQUENCER_DATA_PORT): Likewise.
22232 (MAP_MASK_REGISTER): Likewise.
22233 (CRTC_ADDR_PORT): Likewise.
22234 (CRTC_DATA_PORT): Likewise.
22235 (START_ADDR_HIGH_REGISTER): Likewise.
22236 (START_ADDR_LOW_REGISTER): Likewise.
22237 (GRAPHICS_ADDR_PORT): Likewise.
22238 (GRAPHICS_DATA_PORT): Likewise.
22239 (READ_MAP_REGISTER): Likewise.
22240 (INPUT_STATUS1_REGISTER): Likewise.
22241 (INPUT_STATUS1_VERTR_BIT): Likewise.
22242 (get_map_mask): Use grub_vga_sr_read.
22243 (set_map_mask): Use grub_vga_sr_write.
22244 (set_read_map): Use grub_vga_gr_write.
22245 (set_start_address): Use grub_vga_cr_write.
22246 * video/sm712.c (framebuffer): Remove leftover fields.
22247
22248 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
22249
22250 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
22251 setting GRUB_VIDEO_BACKEND. Make it available as a user override
22252 instead. Replace the gfxterm backend check with a check that
22253 ${GRUB_PREFIX}/video.lst is non-empty.
22254 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
22255 again.
22256 (load_video): New generated function. Call it before loading
22257 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
22258 * util/grub.d/10_linux.in (linux_entry): Call load_video.
22259 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
22260 * docs/grub.texi (Simple configuration): Document
22261 GRUB_VIDEO_BACKEND.
22262
22263 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
22264
22265 Use video functions in linux and xnu loaders.
22266
22267 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
22268 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
22269 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
22270 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
22271 loader/i386/pc/linux.c.
22272 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
22273 (find_line_len): Removed.
22274 (find_framebuf): Likewise.
22275 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
22276 * loader/i386/efi/xnu.c: Removed.
22277 * loader/i386/pc/xnu.c: Moved from here...
22278 * loader/i386/xnu.c: ...here.
22279
22280 Enable priorities in video drivers.
22281
22282 * include/grub/video.h (grub_video_adapter_prio_t): New type.
22283 (grub_video_adapter): New field prio.
22284 (grub_video_register): Respect prio when inserting.
22285 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
22286 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
22287 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
22288 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
22289 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
22290 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
22291 * video/sm712.c (grub_video_sm712_adapter): Likewise.
22292
22293 Fix SDL driver ID.
22294
22295 * include/grub/video.h (grub_video_driver_id_t): New value
22296 GRUB_VIDEO_DRIVER_SDL.
22297 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
22298
22299 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
22300
22301 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
22302 argument to printf.
22303 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
22304
22305 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
22306
22307 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
22308 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
22309
22310 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
22311
22312 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
22313 directly, and recommend grub-install instead.
22314 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
22315
22316 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
22317
22318 Fix i386-pc prefix handling with nested partitions (Debian bug
22319 #585068). Note that the case where the core image is booted using
22320 multiboot and relocated from its original location still requires
22321 more work.
22322
22323 * kern/i386/pc/init.c (make_install_device): If the prefix starts
22324 with "(,", fill the boot drive in between those two characters, but
22325 expect that a full partition specification including partition map
22326 names will follow.
22327 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
22328 specified, write a prefix without the drive name but including a
22329 full partition specification.
22330
22331 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
22332
22333 * util/grub-mkconfig.in: Ignore non-option arguments, for
22334 compatibility with older versions (before 2010-06-12) which did the
22335 same. In particular, this makes it easier to ship an update-grub
22336 wrapper which is compatible with that used with GRUB Legacy (Debian
22337 bug #586056).
22338
22339 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
22340
22341 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
22342 for manual page generation.
22343
22344 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
22345
22346 * po/POTFILES: Remove leftover commands/handler.c.
22347
22348 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
22349
22350 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
22351 left this script non-functional.
22352
22353 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
22354
22355 * docs/man/grub-emu.h2m: New file.
22356
22357 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
22358
22359 * docs/grub.texi (Commands): Document reduced command set in rescue
22360 mode.
22361 (cpuid): New section.
22362
22363 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
22364
22365 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
22366 new partition naming style.
22367 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
22368
22369 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
22370
22371 Add "-o grub.iso" like cmdline options support.
22372
22373 * util/grub-install.in: Improve cmdline option parsing.
22374 * util/grub-mkconfig.in: Likewise.
22375 * util/grub-mkrescue.in: Likewise.
22376 * util/grub-reboot.in: Likewise.
22377 * util/grub-set-default.in: Likewise.
22378 * util/i386/efi/grub-install.in: Likewise.
22379 * util/ieee1275/grub-install.in: Likewise.
22380 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22381
22382 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
22383
22384 * .bzrignore: Ignore 41_custom.
22385
22386 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
22387
22388 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
22389
22390 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
22391
22392 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
22393 prototype declarations.
22394
22395 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
22396 generating fs, partmap, and video lists.
22397 * include/grub/fs.h (grub_fs_register): Omit prototype if
22398 GRUB_LST_GENERATOR is defined.
22399 * include/grub/partition.h (grub_partition_map_register): Likewise.
22400 * include/grub/video.h (grub_video_register): Likewise.
22401
22402 2010-06-12 Javier Martín <lordhabbit@gmail.com>
22403
22404 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
22405
22406 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
22407
22408 * util/grub-mkrescue.in: Support --xorriso argument.
22409
22410 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
22411
22412 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
22413 Suggested by: Thomas Schmitt.
22414
22415 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
22416
22417 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
22418 Suggested by: Thomas Schmitt.
22419
22420 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
22421
22422 custom.cfg support.
22423
22424 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
22425 * util/grub.d/41_custom.in: New file.
22426
22427 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
22428
22429 * util/grub-mkrescue.in (make_image): Remove sh module, which has
22430 been merged back into normal.
22431
22432 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
22433
22434 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
22435 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
22436
22437 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
22438
22439 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
22440 when generating manual pages.
22441 * docs/man/grub-bin2h.h2m: New file.
22442 * docs/man/grub-editenv.h2m: New file.
22443 * docs/man/grub-fstest.h2m: New file.
22444 * docs/man/grub-install.h2m: New file.
22445 * docs/man/grub-macho2img.h2m: New file.
22446 * docs/man/grub-mkconfig.h2m: New file.
22447 * docs/man/grub-mkdevicemap.h2m: New file.
22448 * docs/man/grub-mkfont.h2m: New file.
22449 * docs/man/grub-mkimage.h2m: New file.
22450 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
22451 * docs/man/grub-mkrelpath.h2m: New file.
22452 * docs/man/grub-mkrescue.h2m: New file.
22453 * docs/man/grub-ofpathname.h2m: New file.
22454 * docs/man/grub-pe2elf.h2m: New file.
22455 * docs/man/grub-probe.h2m: New file.
22456 * docs/man/grub-reboot.h2m: New file.
22457 * docs/man/grub-script-check.h2m: New file.
22458 * docs/man/grub-set-default.h2m: New file.
22459 * docs/man/grub-setup.h2m: New file.
22460
22461 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
22462
22463 Use FOR_* macros instead of *_iterate whenever possible.
22464
22465 * commands/handler.c: Removed.
22466 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
22467 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
22468 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
22469 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
22470 (grub_probe_SOURCES): Remove kern/parser.c.
22471 (util/grub-script-check.c_DEPENDENCIES): Removed.
22472 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
22473 and grub_script_check_init.c.
22474 (grub_script_check_init.lst): Removed.
22475 (grub_script_check_init.h): Likewise.
22476 (grub_script_check_init.c): Likewise.
22477 (pkglib_MODULES): Remove handler.mod and sh.mod.
22478 (handler_mod_SOURCES): Removed.
22479 (handler_mod_CFLAGS): Likewise.
22480 (handler_mod_LDFLAGS): Likewise.
22481 (normal_mod_SOURCES): Remove normal/handler.c.
22482 Add script/main.c, script/script.c, script/execute.c,
22483 script/function.c, script/lexer.c, grub_script.tab.c
22484 and grub_script.yy.c.
22485 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
22486 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
22487 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
22488 (grub_setup_SOURCES): Remove kern/parser.c.
22489 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
22490 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
22491 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
22492 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
22493 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
22494 (grub_setup_SOURCES): Remove kern/parser.c.
22495 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
22496 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
22497 * include/grub/command.h (grub_command_iterate): Removed.
22498 (FOR_COMMANDS): New macro.
22499 * include/grub/dl.h (grub_dl): New member next.
22500 (grub_dl_iterate): Removed.
22501 (grub_dl_head): New variable declaration.
22502 (FOR_DL_MODULES): New macro.
22503 * include/grub/fs.h: Include list.h.
22504 (grub_fs): Make next first element.
22505 (grub_fs_list): New variable declaration.
22506 (grub_fs_register): Make inline.
22507 (grub_fs_unregister): Likewise.
22508 (grub_fs_iterate): Removed.
22509 (FOR_FILESYSTEMS): New macro.
22510 * include/grub/handler.h: Removed.
22511 * include/grub/list.h (grub_list_hook_t): Removed.
22512 (grub_list_test_t): Likewise.
22513 (grub_list_pop): Likewise.
22514 (grub_list_iterate): Likewise.
22515 (grub_list_insert): Likewise.
22516 (FOR_LIST_ELEMENTS): New macro.
22517 * include/grub/parser.h (grub_parser_class): Removed.
22518 (grub_parser_register): Likewise.
22519 (grub_parser_unregister): Likewise.
22520 (grub_parser_get_current): Likewise.
22521 (grub_parser_set_current): Likewise.
22522 (grub_register_rescue_parser): Likewise.
22523 (grub_rescue_parse_line): New function.
22524 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
22525 * include/grub/script_sh.h (grub_script_function_list): New variable
22526 declaration.
22527 (FOR_SCRIPT_FUNCTIONS): New macro.
22528 (grub_script_function_iterate): Removed.
22529 (grub_normal_parse_line): New prototype.
22530 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
22531 (FOR_DISABLED_TERM_INPUTS): Likewise.
22532 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
22533 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
22534 * include/grub/video.h (grub_video_adapter): Move 'next' to first
22535 element.
22536 (grub_video_register): Inline.
22537 (grub_video_unregister): Likewise.
22538 (grub_video_adapter_list): New variable declaration.
22539 (grub_video_iterate): Removed.
22540 (FOR_VIDEO_ADAPTERS): New macro.
22541 * kern/dl.c (grub_dl_list): Removed. All users updated.
22542 (grub_dl_iterate): Removed.
22543 * kern/fs.c (grub_fs_list): Make global.
22544 (grub_fs_register): Removed.
22545 (grub_fs_unregister): Likewise.
22546 (grub_fs_iterate): Likewise.
22547 * kern/handler.c: Removed.
22548 * kern/list.c (grub_list_pop): Removed.
22549 (grub_list_iterate): Likewise.
22550 (grub_list_insert): Likewise.
22551 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
22552 (grub_prio_list_insert): Don't use grub_list_insert.
22553 * kern/main.c (grub_register_rescue_parser): Don't call
22554 grub_register_rescue_parser.
22555 * kern/parser.c (grub_parser_class): Removed.
22556 (grub_parser_execute): Use grub_rescue_parse_line.
22557 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
22558 (grub_rescue_parser): Removed.
22559 (grub_register_rescue_parser): Likewise.
22560 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
22561 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
22562 (grub_auth_check_authentication): Likewise.
22563 * normal/completion.c (iterate_command): Removed.
22564 (grub_normal_do_completion): Use FOR_COMMANDS.
22565 * normal/handler.c: Removed.
22566 * normal/main.c (read_config_file): Remove parser changing.
22567 (grub_normal_execute): Don't call read_handler_list.
22568 (grub_normal_read_line_real): Statically allocate prompt.
22569 (grub_cmdline_run): Use grub_normal_parse_line.
22570 (GRUB_MOD_FINI): Don't call free_handler_list.
22571 * normal/menu_entry.c (run): Likewise.
22572 * script/function.c (grub_script_function_list): Make global.
22573 (grub_script_function_iterate): Removed.
22574 * script/main.c (grub_normal_parse_line): Make global.
22575 (grub_sh_parser): Removed.
22576 (GRUB_MOD_INIT): Likewise.
22577 (GRUB_MOD_FINI): Likewise.
22578 * tests/lib/functional_test.c (grub_functional_test): Use
22579 FOR_LIST_ELEMENTS.
22580 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
22581 (grub_test_run): Use FOR_LIST_ELEMENTS.
22582 * tests/lib/unit_test.c (main): Likewise.
22583 * util/deviceiter.c (grub_util_iterate_devices): Don't use
22584 grub_list_pop.
22585 * util/grub-fstest.c (grub_term_input_class): Removed.
22586 (grub_term_output_class): Likewise.
22587 * util/grub-probe.c: Likewise.
22588 * util/i386/pc/grub-setup.c: Likewise.
22589 * util/sparc64/ieee1275/grub-setup.c: Likewise.
22590 * util/grub-script-check.c (main): Don't call grub_init_all and
22591 grub_fini_all.
22592 * video/video.c (grub_video_adapter_list): Make global.
22593 (grub_video_register): Removed.
22594 (grub_video_unregister): Likewise.
22595 (grub_video_iterate): Likewise.
22596
22597 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
22598
22599 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
22600 reported by Henrique Ferreiro.
22601
22602 2010-06-09 Robert Millan <rmh@gnu.org>
22603
22604 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
22605 ones, when both are available.
22606
22607 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
22608
22609 Make --version uniform and avoid hard-coded program name.
22610
22611 * util/grub-mkimage.c (main): Use `program_name' instead of
22612 hard-coded string.
22613 * util/i386/pc/grub-setup.c (main): Likewise.
22614 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
22615 * util/grub-install.in: Save the basename of $0 in $self, and use the
22616 latter in informational messages. Use the same format for --version
22617 as the binary programs.
22618 * util/grub-mkconfig.in: Likewise.
22619 * util/grub-mkrescue.in: Likewise.
22620 * util/grub-reboot.in: Likewise.
22621 * util/grub-set-default.in: Likewise.
22622 * util/i386/efi/grub-install.in: Likewise.
22623 * util/ieee1275/grub-install.in: Likewise.
22624 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22625
22626 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
22627
22628 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
22629 embedding area. Use <= instead of == when checking for non-emptiness.
22630
22631 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
22632
22633 * configure.ac: Add `.' to the directories searched for unifont.
22634
22635 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
22636
22637 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
22638 grub_script.yy.h.
22639
22640 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
22641
22642 * docs/grub.texi (History): Expand to cover GRUB 2.
22643 (Serial terminal): Refer to `terminal_input' and `terminal_output'
22644 commands, not `terminal'.
22645 (serial): Likewise.
22646 (terminal_input): New section.
22647 (terminal_output): New section.
22648 (uppermem): New section (stub).
22649 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
22650
22651 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
22652
22653 * docs/grub.texi (Security): Menu entries are unrestricted by
22654 default, not restricted to superusers as I had previously thought.
22655 Reword to account for this.
22656
22657 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22658
22659 * kern/emu/misc.c (device_mapper_null_log): New function.
22660 (grub_device_mapper_supported): New function.
22661 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
22662 prototype.
22663 * kern/emu/hostdisk.c (find_partition_start): Check whether
22664 device-mapper is supported before trying to use it.
22665 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
22666
22667 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22668
22669 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
22670 (File name syntax): Likewise.
22671 (help): --all is no longer supported in GRUB 2. Be more precise
22672 about pattern matching.
22673
22674 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22675
22676 * normal/completion.c (grub_normal_do_completion): When completing
22677 arguments to "set" and the current word contains an equals sign,
22678 skip to after the equals sign before starting completion.
22679
22680 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22681
22682 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
22683
22684 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22685
22686 * docs/grub.texi (Network): New section.
22687 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
22688 `(nd)' as in GRUB Legacy.
22689 (pxe_unload): New section.
22690
22691 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22692
22693 * docs/grub.texi (Troubleshooting): `echo' is not usually available
22694 in the rescue shell, so recommend using `set' instead. Thanks,
22695 Jordan Uggla.
22696
22697 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22698
22699 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
22700 (password): New section.
22701 (password_pbkdf2): New section.
22702 (search): New section.
22703 (Security): New section.
22704 (Troubleshooting): New section, currently very incomplete.
22705 (Invoking grub-mkpasswd-pbkdf2): New section.
22706 (Internals): New section, currently very incomplete.
22707
22708 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22709
22710 * util/grub.d/00_header.in: Add some more quoting (of
22711 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
22712 work again.
22713 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
22714
22715 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
22716
22717 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
22718 to `count', fixing variable shadowing that broke the -c option.
22719
22720 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
22721
22722 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
22723 in case they contain spaces.
22724
22725 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
22726
22727 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
22728 "part_" to partmap module names, in line with grub-install.
22729 Reported by: Jindřich Makovička (Debian bug #584426).
22730
22731 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
22732
22733 * util/grub-mkimage.c: Make target-related error messages slightly
22734 more helpful; -O talks about "format". Explicitly point to the use
22735 of -O if no target is specified.
22736 Reported by: Didier Raboud (Debian bug #584415).
22737
22738 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
22739
22740 * INSTALL: Document several build requirements for optional features
22741 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
22742
22743 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
22744
22745 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
22746 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
22747 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
22748
22749 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22750
22751 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
22752 Thanks to Jordan Uggla for spotting this.
22753
22754 2010-06-02 Aleš Nesrsta <starous@volny.cz>
22755
22756 Finally make USB usable.
22757
22758 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
22759 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
22760 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
22761 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
22762 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
22763 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
22764 (GRUB_OHCI_FSMPS): Likewise.
22765 (GRUB_OHCI_PERIODIC_START): Likewise.
22766 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
22767 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
22768 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
22769 (GRUB_OHCI_SET_PORT_RESET): Likewise.
22770 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
22771 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
22772 (grub_ohci_transaction): Likewise.
22773 (grub_ohci_transfer): Improve condition detection algorithms.
22774 Handle toggle property. Program the transactions correctly.
22775 Improve error handling. Various important fixups.
22776 (grub_ohci_portstatus): Put register writes in right order.
22777 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
22778 (grub_uhci_transfer): Don't show "failed" message on success.
22779 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
22780 array.
22781 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
22782 determine its size.
22783 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
22784 before initialization is completed. Use IN direction for empty
22785 transfers. Use last_trans and compute toggle.
22786 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
22787 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
22788 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
22789 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
22790 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
22791 (grub_usb_device): Increase toggle to 256.
22792 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
22793 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
22794 GRUB_USBMS_SUBCLASS_SFF8070.
22795 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
22796 (grub_scsi_inquiry): New member page and alloc_length.
22797 (grub_scsi_request_sense): New structure.
22798 (grub_scsi_request_sense_data): Likewise.
22799 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
22800 control.
22801 * disk/scsi.c (grub_scsi_request_sense): New function.
22802 (grub_scsi_test_unit_ready): Likewise.
22803 (grub_scsi_inquiry): Fill new fields.
22804 (grub_scsi_read_capacity): Likewise.
22805 (grub_scsi_read10): Add request sense at the end.
22806 (grub_scsi_read12): Likewise.
22807 (grub_scsi_write10): Likewise.
22808 (grub_scsi_write12): Likewise.
22809 (grub_scsi_open): Add Test Unit Ready.
22810 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
22811 Support additional subclasses. Con't clear halt yet. Activate the
22812 proper config. Calculate LUNs correctly.
22813 (grub_usbms_transfer): Various important fixups.
22814
22815 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
22816
22817 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
22818 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
22819 (grub_ohci_fini_hw): New function.
22820 (grub_ohci_restore_hw): Likewise.
22821 (GRUB_MOD_INIT(ohci)): Register preboot hook.
22822 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
22823 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
22824
22825 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
22826
22827 Dedicated DMA allocations.
22828
22829 * bus/pci.c (grub_memalign_dma32): New function
22830 (grub_dma_free): Likewise.
22831 (grub_dma_get_virt): Likewise.
22832 (grub_dma_get_phys): Likewise.
22833 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
22834 (grub_ohci_pci_iter): Use dma32_alloc.
22835 (grub_ohci_transfer): Likewise.
22836 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
22837 (grub_usb_bulk_readwrite): Likewise.
22838 * include/grub/pci.h: Add declarations.
22839
22840 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
22841
22842 CS5536 support.
22843
22844 * bus/cs5536.c: New file.
22845 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
22846 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
22847 (cs5536_mod_SOURCES): New variable.
22848 (cs5536_mod_CFLAGS): Likewise.
22849 (cs5536_mod_LDFLAGS): Likewise.
22850 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
22851 machine/pci.h.
22852 (kernel_img_SOURCES): Add bus/cs5536.c.
22853 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
22854 usb_keyboard.mod.
22855 (usb_mod_SOURCES): New variable.
22856 (usb_mod_CFLAGS): New variable.
22857 (usb_mod_LDFLAGS): New variable.
22858 (usbtest_mod_SOURCES): New variable.
22859 (usbtest_mod_CFLAGS): New variable.
22860 (usbtest_mod_LDFLAGS): New variable.
22861 (ohci_mod_SOURCES): New variable.
22862 (ohci_mod_CFLAGS): New variable.
22863 (ohci_mod_LDFLAGS): New variable.
22864 (usbms_mod_SOURCES): New variable.
22865 (usbms_mod_CFLAGS): New variable.
22866 (usbms_mod_LDFLAGS): New variable.
22867 (usb_keyboard_mod_SOURCES): New variable.
22868 (usb_keyboard_mod_CFLAGS): New variable.
22869 (usb_keyboard_mod_LDFLAGS): New variable.
22870 * include/grub/smbus.h: New file.
22871 * include/grub/cs5536.h: New file.
22872
22873 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22874
22875 * util/grub.d/00_header.in: Add safety check to make sure that
22876 ${locale_dir} exists before trying to probe it.
22877
22878 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22879
22880 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
22881 per the GNU Coding Standards; this is now too obscure to be worth
22882 documenting.
22883 (QNX): Likewise.
22884 (chainloader): Remove cross-reference to `SCO UnixWare'.
22885
22886 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22887
22888 * docs/grub.texi (Chain-loading): New section.
22889 (DOS/Windows): New section, borrowed from GRUB Legacy with details
22890 adjusted for GRUB 2.
22891 (SCO UnixWare): Likewise.
22892 (QNX): Likewise.
22893 (chainloader): Add reference to `Block list syntax'.
22894 (drivemap): New section.
22895 (parttool): New section.
22896
22897 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22898
22899 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
22900 the grub shell'.
22901 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
22902 (Installing GRUB using grub-install): Remove reference to the grub
22903 shell; mention `grub-mkimage' and `grub-setup' instead.
22904 (Invoking grub-install): Likewise.
22905 (Interface): Add reference to `Menu entry editor'.
22906 (serial): Remove `--device' option.
22907
22908 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22909
22910 * docs/grub.texi (Configuration): New section, documenting
22911 configuration file generation using grub-mkconfig. I've left a slot
22912 for documenting the full shell scripting format but have not yet
22913 started on writing that up.
22914 (Invoking grub-mkconfig): New section.
22915
22916 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22917
22918 * docs/grub.texi (direntry): Remove grub-terminfo reference.
22919 (GNU GRUB manual): Likewise.
22920 (General commands): Update description of `terminfo' for GRUB 2.
22921
22922 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22923
22924 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
22925 (GRUB_MOD_INIT): Fix capitalisation.
22926 * docs/grub.texi (Command-line and menu entry commands): Document
22927 gettext and gptsync commands.
22928
22929 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
22930
22931 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
22932 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
22933
22934 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
22935
22936 Add btrfs probing support, currently only in the single-device case.
22937
22938 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
22939 function.
22940 (grub_guess_root_device): Call find_root_device_from_mountinfo
22941 before looking in /dev.
22942
22943 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22944
22945 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
22946 GRUB_DISK_SIZE_UNKNOWN.
22947 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
22948
22949 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
22950
22951 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
22952 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
22953 corrupted or not synced properly.
22954
22955 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22956
22957 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
22958 Reported by: Seth Goldberg.
22959
22960 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22961
22962 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
22963 addition of dest.
22964 Reported by: Seth Goldberg.
22965
22966 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22967
22968 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
22969 Reported by: Seth Goldberg.
22970
22971 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22972
22973 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
22974 64-bit address as signed on MIPS.
22975
22976 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
22977
22978 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
22979 to the empty string.
22980
22981 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
22982
22983 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
22984
22985 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
22986 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
22987 * kern/misc.c (__enable_execute_stack): Disable on
22988 GRUB_MACHINE_EMU.
22989
22990 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
22991
22992 Make grub-probe work with symbolic links under /dev/mapper as well
22993 as with real block devices. The Linux world seems to be (at best)
22994 in transition here, and GRUB shouldn't get caught in the middle.
22995
22996 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
22997 /dev/mapper.
22998
22999 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
23000
23001 * util/grub-script-check.c (main): Ensure defined behaviour on empty
23002 input files (in which case exit zero).
23003
23004 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
23005
23006 * kern/emu/misc.c (canonicalize_file_name): realpath can still
23007 return NULL for various reasons even if it has a maximum-length
23008 buffer: for example, there might be a symlink loop, or the path
23009 might exceed PATH_MAX. If this happens, return NULL.
23010
23011 2010-05-27 Robert Millan <rmh@gnu.org>
23012
23013 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
23014 partmap module to handle cross-partmap setups.
23015 Reported by Orestes Mas. Gràcies!
23016
23017 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
23018
23019 * util/grub-mkrescue.in: Initialise override_dir rather than
23020 assuming that it's unset or empty in the environment.
23021
23022 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
23023
23024 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
23025 variable index into p_index to suppress a warning with -Wshadow.
23026
23027 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
23028
23029 * INSTALL: Added flex >= 2.5.35 requirement.
23030
23031 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
23032
23033 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
23034
23035 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
23036
23037 cmostest support.
23038
23039 * commands/i386/cmostest.c: New file.
23040 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
23041 (cmostest_mod_SOURCES): New variable.
23042 (cmostest_mod_CFLAGS): Likewise.
23043 (cmostest_mod_LDFLAGS): Likewise.
23044 * conf/i386-pc.rmk: Likewise.
23045 * docs/grub.texi (Vendor power-on keys): New section.
23046 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
23047 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
23048 and GRUB_BUTTON_CMOS_ADDRESS.
23049 * util/grub.d/00_header.in: Handle powering-on by separate button.
23050
23051 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
23052
23053 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
23054 Removed drawing_scrollbar argument. All users updated
23055 Fixes #29792.
23056 Reported by Jo Shields
23057
23058 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
23059
23060 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
23061 buffer since gfxterm handles double repaint.
23062
23063 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
23064
23065 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
23066 * term/gfxterm.c (real_scroll): Likewise.
23067
23068 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
23069
23070 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
23071 before calling BIOS.
23072
23073 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
23074
23075 * include/grub/i18n.h: Always enable grub_gettext.
23076
23077 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
23078
23079 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
23080 partition naming style.
23081
23082 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
23083
23084 * util/grub-mkconfig.in: Fix handling of -o so that it works when
23085 not the first option.
23086
23087 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
23088
23089 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
23090
23091 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
23092
23093 * util/misc.c: Move inclusion of <limits.h> to ...
23094 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
23095
23096 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
23097
23098 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
23099 Fix merge error in NetBSD code.
23100 (find_partition_start) [__NetBSD__]: Likewise.
23101
23102 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
23103
23104 Fix grub-mkrescue usage unit testing.
23105
23106 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
23107
23108 2010-05-18 Christian Franke <franke@computer.org>
23109
23110 * util/grub.d/10_windows.in: Use path names instead of
23111 drive letters to prevent warning from Cygwin 1.7.
23112 Add drivemap command to menuentry if needed.
23113
23114 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
23115
23116 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
23117 gnumach and gnumach.gz.
23118
23119 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
23120
23121 * include/grub/i18n.h (gettext): Inline instead of using #define.
23122 (grub_gettext): Likewise.
23123 (_): Likewise.
23124
23125 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
23126
23127 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
23128 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
23129 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
23130 (main): Add a slash after pkglibdirroot.
23131
23132 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
23133
23134 * util/grub-install.in: Add missing "in" keyword.
23135
23136 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
23137
23138 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
23139 Reported by: Seth Goldberg.
23140
23141 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
23142
23143 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
23144
23145 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
23146
23147 * configure.ac: Check for Linux device-mapper support.
23148
23149 * util/hostdisk.c (device_is_mapped): New function.
23150 (find_partition_start): New function, partly broken out from
23151 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
23152 device-mapper support added.
23153 (linux_find_partition): Use find_partition_start.
23154 (convert_system_partition_to_system_disk): Add `st' argument.
23155 Support Linux /dev/mapper/* devices if device-mapper support is
23156 available; only DM-RAID devices are understood at present.
23157 (find_system_device): Add `st' argument. Pass it to
23158 convert_system_partition_to_system_disk.
23159 (grub_util_biosdisk_get_grub_dev): Pass stat result to
23160 find_system_device and convert_system_partition_to_system_disk. Use
23161 find_partition_start.
23162
23163 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
23164 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
23165 * util/deviceiter.c [__linux__]: Define MINOR.
23166 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
23167 * util/mkdevicemap.c (grub_putchar): New function.
23168 (grub_getkey): New function.
23169 (grub_refresh): New function.
23170 (main): Set debug=all if -v -v is used.
23171
23172 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
23173
23174 Fix build with non-GNU libcs.
23175
23176 * util/misc.c (canonicalize_file_name): Move to ...
23177 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
23178 grub_make_system_path_relative_to_its_root.
23179
23180 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
23181
23182 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
23183 we handle finding grub-mkimage. Default to finding grub-mkimage in
23184 ${bindir} with program_transform_name applied, and provide a
23185 --grub-mkimage option to override this.
23186
23187 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
23188
23189 Remove grub-mkisofs.
23190
23191 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
23192 (grub_mkisofs_SOURCES): Removed.
23193 (grub_mkisofs_CFLAGS): Removed.
23194 * util/mkisofs/defaults.h: Removed.
23195 * util/mkisofs/eltorito.c: Likewise.
23196 * util/mkisofs/exclude.h: Likewise.
23197 * util/mkisofs/hash.c: Likewise.
23198 * util/mkisofs/include/: Likewise.
23199 * util/mkisofs/include/fctldefs.h: Likewise.
23200 * util/mkisofs/include/mconfig.h: Likewise.
23201 * util/mkisofs/include/prototyp.h: Likewise.
23202 * util/mkisofs/include/statdefs.h: Likewise.
23203 * util/mkisofs/iso9660.h: Likewise.
23204 * util/mkisofs/joliet.c: Likewise.
23205 * util/mkisofs/match.c: Likewise.
23206 * util/mkisofs/match.h: Likewise.
23207 * util/mkisofs/mkisofs.c: Likewise.
23208 * util/mkisofs/mkisofs.h: Likewise.
23209 * util/mkisofs/msdos_partition.h: Likewise.
23210 * util/mkisofs/multi.c: Likewise.
23211 * util/mkisofs/name.c: Likewise.
23212 * util/mkisofs/rock.c: Likewise.
23213 * util/mkisofs/tree.c: Likewise.
23214 * util/mkisofs/write.c: Likewise.
23215
23216 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
23217
23218 Unify grub-mkimage accross platforms.
23219
23220 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
23221 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
23222 (grub_mkelfimage_SOURCES): Removed.
23223 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
23224 (util/grub-mkimage.c_DEPENDENCIES): .. this.
23225 (bin_UTILITIES): Add grub-mkimage.
23226 (grub_mkimage_SOURCES): New variable.
23227 (kernel_img_HEADERS): Remove machine/kernel.h.
23228 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
23229 (pkglib_PROGRAMS): Add kernel.img.
23230 (kernel_img_HEADERS): Add machine/kernel.h.
23231 (kernel_img_FORMAT): Removed.
23232 (bin_UTILITIES): Remove grub-mkimage.
23233 (grub_mkimage_SOURCES): Removed.
23234 (grub_mkimage_CFLAGS): Likewise.
23235 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23236 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
23237 (pkglib_PROGRAMS): Add kernel.img.
23238 (bin_UTILITIES): Remove grub-mkimage.
23239 (grub_mkimage_SOURCES): Removed.
23240 (grub_mkimage_CFLAGS): Likewise.
23241 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23242 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
23243 (pkglib_PROGRAMS): Add kernel.img.
23244 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
23245 (pkglib_PROGRAMS): Add kernel.img.
23246 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
23247 (grub_mkimage_SOURCES): Removed.
23248 (grub_mkimage_CFLAGS): Likewise.
23249 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23250 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
23251 (pkglib_PROGRAMS): Add kernel.img.
23252 (bin_UTILITIES): Remove grub-mkimage.
23253 (grub_mkimage_SOURCES): Removed.
23254 (grub_mkimage_CFLAGS): Likewise.
23255 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23256 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
23257 (grub_mkimage_SOURCES): Removed.
23258 (grub_mkimage_CFLAGS): Likewise.
23259 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23260 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
23261 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
23262 (grub_pe32_optional_header): ... this.
23263 (grub_pe64_optional_header): ... and this. All users updated.
23264 (GRUB_PE32_PE32_MAGIC): Split into ..
23265 (GRUB_PE32_PE32_MAGIC): .. this.
23266 (GRUB_PE32_PE64_MAGIC): .. and this.
23267 (GRUB_PE32_SIGNATURE_SIZE): New definition.
23268 * include/grub/elf.h (PT_GNU_STACK): New definition.
23269 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
23270 * include/grub/i386/efi/kernel.h: Likewise.
23271 * include/grub/i386/kernel.h: Likewise.
23272 * include/grub/i386/pc/kernel.h: Likewise.
23273 * include/grub/i386/qemu/boot.h: Likewise.
23274 * include/grub/mips/kernel.h: Likewise.
23275 * include/grub/mips/qemu-mips/kernel.h: Likewise.
23276 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
23277 * include/grub/powerpc/kernel.h: Likewise.
23278 * include/grub/sparc64/ieee1275/boot.h: Likewise.
23279 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
23280 * include/grub/sparc64/kernel.h: Likewise.
23281 * include/grub/x86_64/efi/kernel.h: Likewise.
23282 * include/grub/x86_64/kernel.h: Likewise.
23283 * include/grub/offsets.h: New file.
23284 * include/grub/kernel.h (grub_module_info): Split into ...
23285 (grub_module_info32): ... this.
23286 (grub_module_info64): ... and this.
23287 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
23288 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
23289 (grub_boot_blocklist): Moved from here ...
23290 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
23291 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
23292 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
23293 * include/grub/types.h (grub_target_to_host16): Removed.
23294 (grub_target_to_host32): Likewise.
23295 (grub_target_to_host64): Likewise.
23296 (grub_host_to_target16): Likewise.
23297 (grub_host_to_target32): Likewise.
23298 (grub_host_to_target64): Likewise.
23299 (grub_host_to_target_addr): Likewise.
23300
23301 Support grub-mkrescue for efi, coreboot and qemu.
23302
23303 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
23304 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
23305 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
23306 * util/grub-mkrawimage.c: Moved from here ...
23307 * util/grub-mkimage.c: ... here. All users updated.
23308 (ALIGN_ADDR): Use image_target.
23309 (TARGET_NO_FIELD): New const.
23310 (image_target_desc): New type.
23311 (image_targets): New array.
23312 (grub_target_to_host64): Use image_target.
23313 (grub_target_to_host32): Likewise.
23314 (grub_target_to_host16): Likewise.
23315 (grub_host_to_target64): Likewise.
23316 (grub_host_to_target32): Likewise.
23317 (grub_host_to_target16): Likewise.
23318 (grub_host_to_target_addr): Likewise.
23319 (generate_image): Handle multiimage.
23320 (main): Require -O parameter. All users updated.
23321 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
23322 util/efi/grub-mkimage.c
23323 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
23324 New option --rom-directory.
23325 Use xorriso.
23326 * util/i386/efi/grub-mkimage.c: Removed.
23327 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
23328 (grub_target_to_host32): Likewise.
23329 (grub_target_to_host64): Likewise.
23330 (grub_host_to_target16): Likewise.
23331 (grub_host_to_target32): Likewise.
23332 (grub_host_to_target64): Likewise.
23333 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
23334 (grub_target_to_host32): Likewise.
23335 (grub_target_to_host64): Likewise.
23336 (grub_host_to_target16): Likewise.
23337 (grub_host_to_target32): Likewise.
23338 (grub_host_to_target64): Likewise.
23339
23340 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
23341
23342 Source tree is reorganized for emu build.
23343
23344 * include/grub/util/console.h: Move from here...
23345 * include/grub/emu/console.h: ...to here.
23346 * include/grub/util/getroot.h: Move from here...
23347 * include/grub/emu/getroot.h: ...to here.
23348 * include/grub/util/hostdisk.h: Move from here...
23349 * include/grub/emu/hostdisk.h: ...to here.
23350 * util/console.c: Move from here...
23351 * kern/emu/console.c: ...to here.
23352 * util/getroot.c: Move from here...
23353 * kern/emu/getroot.c: ...to here.
23354 * util/grub-emu.c: Move from here...
23355 * kern/emu/main.c: ...to here.
23356 * util/hostdisk.c: Move from here...
23357 * kern/emu/hostdisk.c: ...to here.
23358 * util/hostfs.c: Move from here...
23359 * kern/emu/hostfs.c: ...to here.
23360 * util/mm.c: Move from here...
23361 * kern/emu/mm.c: ...to here.
23362 * util/pci.c: Move from here...
23363 * bus/emu/pci.c: ...to here.
23364 * util/sdl.c: Move from here...
23365 * video/emu/sdl.c: ...to here.
23366 * util/time.c: Move from here...
23367 * kern/emu/time.c: ...to here.
23368 * util/usb.c: Move from here...
23369 * bus/usb/emu/usb.c: ...to here.
23370
23371 * include/grub/emu/misc.h: New header for grub-emu functions.
23372 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
23373
23374 * conf/any-emu.rmk: Rule updates for above renames.
23375 * conf/common.rmk: Likewise.
23376 * conf/i386-pc.rmk: Likewise.
23377 * conf/i386-qemu.rmk: Likewise.
23378 * conf/mips.rmk: Likewise.
23379 * conf/sparc64-ieee1275.rmk: Likewise.
23380 * conf/x86-efi.rmk: Likewise.
23381
23382 * disk/lvm.h: #include updates for above renames.
23383 * util/grub-mkrelpath.c: Likewise.
23384 * util/grub-probe.c: Likewise.
23385 * util/i386/pc/grub-setup.c: Likewise.
23386 * util/sparc64/ieee1275/grub-setup.c: Likewise.
23387 * kern/emu/console.c: Likewise.
23388 * kern/emu/getroot.c: Likewise.
23389 * kern/emu/hostdisk.c: Likewise.
23390 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
23391
23392 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
23393 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
23394 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
23395 * util/misc.c: Remove grub-emu functions.
23396
23397 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
23398
23399 Fix gfxmenu crash.
23400 Reported by: Thorsten Grützmacher.
23401
23402 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
23403 timeout hook.
23404 (circprog_set_property): Register and unregister timeout hook.
23405 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
23406 (label_destroy): Free template. and unregister hook.
23407 (label_set_state): New function.
23408 (label_set_property): Handle templates and hooks.
23409 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
23410 timeout hook.
23411 (progress_bar_set_property): Register and unregister timeout hook.
23412 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
23413 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
23414 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
23415 (update_timeout_visit): Removed.
23416 (update_timeouts): New function.
23417 (redraw_timeouts): Likewise.
23418 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
23419 (grub_gfxmenu_clear_timeout): Likewise.
23420 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
23421 (grub_gfxmenu_timeout_notify): Likewise.
23422 (grub_gfxmenu_timeout_notifications): New external variable.
23423 (grub_gfxmenu_timeout_register): New function.
23424 (grub_gfxmenu_timeout_unregister): Likewise.
23425
23426 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
23427
23428 Transform (broken) vga terminal into (working) vga video driver.
23429
23430 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
23431 video/i386/pc/vga.c.
23432 * include/grub/video.h (grub_video_driver_id):
23433 Add GRUB_VIDEO_DRIVER_VGA.
23434 * term/i386/pc/vga.c: Renamed to ...
23435 * video/i386/pc/vga.c: ...this
23436 (DEBUG_VGA): Removed.
23437 (CHAR_WIDTH): Likewise.
23438 (CHAR_HEIGHT): Likewise.
23439 (TEXT_WIDTH): Likewise.
23440 (TEXT_HEIGHT): Likewise.
23441 (DEFAULT_FG_COLOR): Likewise.
23442 (DEFAULT_BG_COLOR): Likewise.
23443 (colored_char): Likewise.
23444 (xpos): Likewise.
23445 (ypos): Likewise.
23446 (cursor_state): Likewise.
23447 (fg_color): Likewise.
23448 (bg_color): Likewise.
23449 (text_buf): Likewise.
23450 (page): Likewise.
23451 (font): Likewise.
23452 (framebuffer): New variable.
23453 (set_read_map): Disabled.
23454 (setup): New variable.
23455 (is_target): Likewise.
23456 (grub_vga_mod_init): Likewise.
23457 (grub_vga_mod_fini): Likewise.
23458 (check_vga_mem): Likewise.
23459 (write_char): Likewise.
23460 (write_cursor): Likewise.
23461 (scroll_up): Likewise.
23462 (grub_vga_putchar): Likewise.
23463 (grub_vga_getcharwidth): Likewise.
23464 (grub_vga_getwh): Likewise.
23465 (grub_vga_getxy): Likewise.
23466 (grub_vga_gotoxy): Likewise.
23467 (grub_vga_cls): Likewise.
23468 (grub_vga_setcolorstate): Likewise.
23469 (grub_vga_setcursor): Likewise.
23470 (grub_video_vga_init): New function.
23471 (grub_video_vga_setup): Likewise.
23472 (grub_video_vga_fini): Likewise.
23473 (update_target): Likewise.
23474 (grub_video_vga_blit_bitmap): Likewise.
23475 (grub_video_vga_blit_render_target): Likewise.
23476 (grub_video_vga_set_active_render_target): Likewise.
23477 (grub_video_vga_get_active_render_target): Likewise.
23478 (grub_video_vga_swap_buffers): Likewise.
23479 (grub_video_vga_set_palette): Likewise.
23480 (grub_video_vga_get_info_and_fini): Likewise.
23481 (grub_vga_term): Removed.
23482 (grub_video_vga_adapter): New variable.
23483 (GRUB_MOD_INIT): Register a video driver instead of terminal.
23484 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
23485
23486 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
23487
23488 * video/readers/jpeg.c: Indented.
23489
23490 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
23491
23492 Various jpeg cleanups.
23493
23494 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
23495 (grub_jpeg_decode_quan_table): Use sizeof.
23496 (grub_jpeg_decode_du): Use ARRAY_SIZE.
23497
23498 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
23499
23500 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
23501 tables. Ignore non-last ac bit.
23502 (grub_jpeg_decode_quan_table): Likewise.
23503
23504 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
23505
23506 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
23507 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
23508 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
23509 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
23510 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
23511 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
23512
23513 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
23514
23515 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
23516 error.
23517
23518 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
23519
23520 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
23521
23522 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
23523
23524 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
23525 condition.
23526
23527 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
23528
23529 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
23530 part.
23531
23532 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
23533
23534 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
23535 pointers.
23536
23537 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
23538
23539 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
23540
23541 2010-05-01 Christian Franke <franke@computer.org>
23542
23543 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
23544 Remove broken Cygwin path conversion.
23545 * util/misc.c: [__CYGWIN__] Add include and define.
23546 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
23547 for Cygwin 1.7.
23548 (make_system_path_relative_to_its_root): Simplify loop, replace early
23549 return by break.
23550 [__CYGWIN__] Add conversion to win32 path.
23551 Include "/" case in trailing slash removal.
23552
23553 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23554
23555 * kern/main.c (grub_load_config): Fix copy-pasted comment.
23556 Reported by: Seth Goldberg
23557
23558 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23559
23560 * commands/help.c (grub_cmd_help): Fix a typo.
23561 Reported by: Seth Goldberg
23562
23563 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23564
23565 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
23566 name and add N_.
23567 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
23568 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
23569 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
23570 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
23571 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
23572 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
23573 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
23574 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
23575 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
23576 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
23577 * normal/context.c (GRUB_MOD_INIT): Likewise.
23578 * normal/main.c (GRUB_MOD_INIT): Likewise.
23579 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
23580 * term/serial.c (GRUB_MOD_INIT): Likewise.
23581 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
23582
23583 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23584
23585 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
23586 extra == 0.
23587
23588 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23589
23590 * commands/iorw.c: New file.
23591 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
23592 (iorw_mod_SOURCES): New variable.
23593 (iorw_mod_CFLAGS): Likewise.
23594 (iorw_mod_LDFLAGS): Likewise.
23595
23596 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23597
23598 Hotkey support
23599
23600 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
23601 * normal/main.c (hotkey_aliases): New variable.
23602 (grub_normal_add_menu_entry): Parse "--hotkey".
23603 * normal/menu_text.c (run_menu): Handle hotkeys.
23604
23605 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23606
23607 * kern/i386/coreboot/init.c (grub_machine_init): Call
23608 grub_machine_mmap_init on qemu.
23609
23610 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23611
23612 * boot/i386/qemu/boot.S: Add a missing .code16.
23613
23614 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23615
23616 Use LBIO on coreboot.
23617
23618 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
23619 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
23620 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
23621 New declaration.
23622 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
23623 grub_machine_mmap_init on coreboot.
23624 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
23625 GRUB_LINUXBIOS_MEMBER_LINK.
23626 (grub_machine_mmap_iterate): Fix declaration.
23627 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
23628
23629 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23630
23631 Split coreboot and multiboot ports.
23632
23633 * conf/i386-multiboot.rmk: New file.
23634 * configure.ac: Add multiboot port.
23635 * include/grub/i386/multiboot/boot.h: New file.
23636 * include/grub/i386/multiboot/console.h: Likewise.
23637 * include/grub/i386/multiboot/init.h: Likewise.
23638 * include/grub/i386/multiboot/kernel.h: Likewise.
23639 * include/grub/i386/multiboot/loader.h: Likewise.
23640 * include/grub/i386/multiboot/memory.h: Likewise.
23641 * include/grub/i386/multiboot/serial.h: Likewise.
23642 * include/grub/i386/multiboot/time.h: Likewise.
23643 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
23644 * loader/multiboot.c: Likewise.
23645 * loader/multiboot_mbi2.c: Likewise.
23646 * util/grub-mkrescue.in: Generate multiboot rescue.
23647
23648 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23649
23650 * kern/parser.c (grub_parser_execute): Cope with read-only config.
23651
23652 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
23653
23654 Merge handling of input and output terminals. Fix a hang.
23655
23656 * commands/terminal.c (abstract_terminal): New struct.
23657 (handle_command): New function. Based on grub_cmd_terminal_input.
23658 (grub_cmd_terminal_input): Use handle_command.
23659 (grub_cmd_terminal_output): Use handle_command.
23660
23661 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
23662
23663 Fix comment handling.
23664
23665 * tests/grub_script_comments.in: New testcase.
23666 * conf/tests.rmk: Rules for new testcase.
23667 * script/yylex.l: Updated flex rules.
23668
23669 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
23670
23671 * docs/grub.texi (play): Document that zero pitches produce rests.
23672 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
23673 if argc is 1.
23674
23675 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
23676
23677 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
23678 autogen issues.
23679
23680 2010-04-26 Christian Franke <franke@computer.org>
23681
23682 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
23683 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
23684 (grub_get_prefix): Remove function.
23685 * util/grub-emu.c (main): Replace grub_get_prefix () call by
23686 make_system_path_relative_to_its_root ().
23687 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
23688
23689 2010-04-24 Christian Franke <franke@computer.org>
23690
23691 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
23692 (kernel_img_LDFLAGS): Remove -static-libgcc.
23693
23694 2010-04-24 Christian Franke <franke@computer.org>
23695
23696 * configure.ac: Do not CHECK_BSS_START_SYMBOL
23697 and CHECK_END_SYMBOL if grub-emu is built.
23698 Unset TARGET_OBJ2ELF if grub-emu is built
23699 without module support.
23700
23701 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
23702
23703 Nilfs2 support.
23704
23705 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
23706 (grub_fstest_SOURCES): Likewise.
23707 (pkglib_MODULES): Add nilfs2.mod.
23708 (nilfs2_mod_SOURCES): New variable.
23709 (nilfs2_mod_CFLAGS): Likewise.
23710 (nilfs2_mod_LDFLAGS): Likewise.
23711 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
23712 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
23713 * fs/nilfs2.c: New file.
23714
23715 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
23716
23717 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
23718 is not supported.
23719
23720 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
23721
23722 Add grub-mkconfig support for NetBSD.
23723
23724 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
23725 * util/grub-mkconfig.in: export new NetBSD specific variables.
23726 * po/POTFILES-shell: added 10_netbsd.in.
23727 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
23728
23729 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
23730
23731 Fix emu build with grub-emu-pci and grub-emu-modules.
23732
23733 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
23734 functions.
23735 * include/grub/libpciaccess.h: New file.
23736 * conf/any-emu.rmk: Update kernel headers for emu build.
23737
23738 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
23739
23740 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
23741
23742 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
23743
23744 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
23745
23746 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
23747
23748 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
23749 Retrieve chosen/bootpath if bootpath isn't hardcoded.
23750 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
23751 util/ieee1275/ofpath.c.
23752 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
23753 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
23754 * include/grub/sparc64/ieee1275/boot.h
23755 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
23756 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
23757 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
23758 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
23759 const char *.
23760 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
23761 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
23762 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
23763 install.
23764
23765 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
23766
23767 * util/grub-mkconfig.in: Corrected two == equality tests.
23768 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
23769 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
23770 expect a number appended to it.
23771 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
23772 expects a number appended to it.
23773
23774 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
23775
23776 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
23777
23778 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
23779
23780 * util/hostdisk.c (make_device_name): Change to new partition naming.
23781
23782 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
23783
23784 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
23785
23786 2010-04-17 Christian Franke <franke@computer.org>
23787
23788 * Makefile.in: Add missing localedir setting.
23789
23790 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
23791
23792 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
23793 mistake in r2156. Noticed by Anthony Fok.
23794
23795 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
23796 @localedir@.
23797 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
23798
23799 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
23800
23801 Fix a spurious, uninitialized variable warning.
23802
23803 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
23804 Initialize variable, shdr.
23805 (grub_freebsd_load_elfmodule): Likewise.
23806 (grub_freebsd_load_elf_meta): Likewise.
23807
23808 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
23809
23810 Fix for escaped dollar in double quoted strings.
23811
23812 * script/yylex.l: Updated flex rules.
23813 * conf/tests.rmk: Rule for new testcase.
23814 * tests/grub_script_dollar.in: New testcase.
23815
23816 2010-04-13 Carles Pina i Estany <carles@pina.cat>
23817 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
23818
23819 Enclose all translated strings in grub.cfg in single quotes, and
23820 escape them appropriately (Ubuntu bug #552921).
23821
23822 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
23823 * util/grub.d/10_hurd.in: Use it.
23824 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
23825 * util/grub.d/10_linux.in (linux_entry): Likewise.
23826
23827 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
23828
23829 Fix cygwin compilation.
23830
23831 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
23832 * include/grub/misc.h (__register_frame_info)
23833 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
23834 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
23835 * kern/misc.c (__register_frame_info)
23836 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
23837 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
23838
23839 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
23840
23841 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
23842
23843 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
23844
23845 Unify libgcc processing.
23846
23847 * Makefile.in (kernel_img_LDFLAGS): New variable.
23848 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
23849 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
23850 overwriting.
23851 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
23852 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
23853 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
23854 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
23855 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
23856 overwriting. Remove -lgcc and -static-libgcc
23857 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
23858 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
23859 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
23860 (kernel_img_LDFLAGS): Append instead of overwriting.
23861 Remove -lgcc and -static-libgcc
23862 * conf/sparc64-ieee1275.rmk: Likewise.
23863 * include/grub/powerpc/libgcc.h: Move to ...
23864 * include/grub/libgcc.h: .. this.
23865 * include/grub/libgcc.h: Don't export most of the function on x86.
23866 (__bswapsi2): New export.
23867 (__bswapdi2): Likewise.
23868 * include/grub/mips/libgcc.h: Removed.
23869 * include/grub/sparc64/libgcc.h: Likewise.
23870
23871 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23872
23873 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
23874 disk_info_msg (conflicts with gettexting into languages with cases).
23875
23876 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
23877
23878 Add grub-probe support for NetBSD.
23879
23880 * util/getroot.c (find_root_device): Convert block device to
23881 character device on NetBSD.
23882 * util/probe.c (probe): Require character device on NetBSD.
23883 * util/hostdisk.c: NetBSD specific headers.
23884 (configure_device_driver): new function to tune device driver
23885 parameters (currently only for NetBSD floppy driver).
23886 (grub_util_biosdisk_open): NetBSD specific code (get disk size
23887 via disklabel ioctl).
23888 (open_device): call configure_device_driver on NetBSD.
23889 (convert_system_partition_to_system_disk): NetBSD specific code.
23890 (device_is_wholedisk): Likewise.
23891 (grub_util_biosdisk_get_grub_dev): Likewise.
23892 (make_device_name): Fixed a typo in bsd_part_str.
23893 * configure.ac: check for opendisk() and getrawpartition() on
23894 NetBSD and set LIBUTIL.
23895 * Makefile.in: add LIBUTIL to LIBS.
23896
23897 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
23898
23899 Documentation fix.
23900
23901 * util/grub-script-check.c: Better help message.
23902
23903 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
23904
23905 Fix FreeBSD build.
23906
23907 * configure.ac: Flex version check.
23908 * conf/common.rmk: Add -Wno-error to sh.mod.
23909 * script/yylex.l: Remove all #pragma.
23910
23911 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23912
23913 * include/grub/util/misc.h (canonicalise_file_name): Add missing
23914 prototype.
23915 Reported by: Seth Goldberg.
23916
23917 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23918
23919 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
23920 Rename "module" to "module2".
23921 Reported by: Seth Goldberg.
23922
23923 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23924
23925 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
23926 EXPORT_FUNC.
23927 Reported by: Seth Goldberg.
23928
23929 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23930
23931 * lib/posix_wrap/locale.h: Add missing file.
23932 Reported by: Seth Goldberg.
23933
23934 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
23935
23936 grub-emu module load support.
23937
23938 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
23939 NO_DYNAMIC_MODULES switched to this.
23940 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
23941 (CFLAGS): Likewise.
23942 * conf/any-emu.rmk: Generate symlist.
23943 (kernel_img_HEADERS): Add util/datetime.h.
23944 (kernel_img_HEADERS) [sdl]: Add sdl.h.
23945 (kernel_img_HEADERS) [libusb]: Add libusb.h.
23946 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
23947 kern/$(target_cpu)/cache.S.
23948 * configure.ac (grub-emu-modules): New option.
23949 * genmk.rb: Handle multiple source lists.
23950 * include/grub/sdl.h: New file.
23951 * include/grub/libusb.h: Likewise.
23952 * util/grub-emu.c (main): Hanle (host) root.
23953 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
23954 GRUB_ERR_UNKNOWN_DEVICE.
23955 * util/misc.c: Move mm functions to ...
23956 * util/mm.c: ... here. All users updated.
23957
23958 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23959
23960 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
23961 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
23962 missing files.
23963 (maintainer-clean): Remove libgcrypt-grub.
23964
23965 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23966
23967 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
23968
23969 2010-04-09 EFI Coder <eficoder@hotmail.com>
23970
23971 * normal/menu_text.c (print_message): Clean up the message and show
23972 the Fn information when on EFI
23973 * term/efi/console.c (grub_console_checkkey): Add F4 support.
23974
23975 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23976
23977 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
23978 All users updated.
23979 * normal/crypto.c (read_crypto_list): Likewise.
23980 * normal/dyncmd.c (read_command_list): Likewise.
23981 * normal/term.c (read_terminal_list): Likewise.
23982 * normal/main.c (read_lists): Use explicit prefix.
23983 (read_lists_hook): Use read_lists.
23984 (grub_normal_execute): Likewise.
23985
23986 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23987
23988 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
23989 Reported by: Thomas Schmitt.
23990 Add -no-emul-boot to grub-mkisofs parameters.
23991
23992 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23993
23994 * font/font.c: Indented.
23995
23996 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
23997
23998 Elif support to GRUB script (by Deepak Vankadaru).
23999
24000 * tests/grub_script_if.in: New testcase.
24001 * conf/tests.rmk: Rule for new testcase.
24002 * script/parser.y: Grammar rules for elif.
24003
24004 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
24005
24006 While and until loops support to GRUB script.
24007
24008 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
24009 (grub_script_create_cmdwhile): New function prototype.
24010 (grub_script_execute_cmdwhile): New function prototype.
24011 * script/execute.c (grub_script_execute_cmdwhile): New function.
24012 * script/parser.y (command): New commands.
24013 (whilecmd): New grammar rule.
24014 (untilcmd): New grammar rule.
24015 * script/script.c (grub_script_create_cmdwhile): New function.
24016 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
24017 function.
24018
24019 * tests/grub_script_while1.in: New testcase.
24020 * conf/tests.rmk: Rule for new testcase.
24021
24022 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24023
24024 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
24025 as *.jpg.
24026
24027 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
24028
24029 GRUB_BACKGROUND support.
24030
24031 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
24032 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
24033
24034 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24035
24036 Load fonts and modules for gfxmenu in grub-mkconfig.
24037 Idea by: Mario Vazquez
24038
24039 * util/grub.d/00_header.in: Load pf2 and image modules.
24040
24041 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24042
24043 grub-mkconfig multiple terminal support.
24044
24045 * util/grub-mkconfig.in: Handle multiple terminals correctly.
24046 * util/grub.d/00_header.in: Likewise.
24047
24048 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24049
24050 * Makefile.in: Specify files explicitly instead of using $< and $@ since
24051 we use cd $(srcdir).
24052
24053 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
24054
24055 * util/grub.d/10_linux.in: Only use the first word of
24056 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
24057 spaces in GRUB_DISTRIBUTOR.
24058 * util/grub.d/10_kfreebsd.in: Likewise.
24059 * util/grub.d/10_hurd.in: Likewise.
24060
24061 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
24062
24063 Fix unit testing framework for Qemu 0.12.
24064
24065 * tests/util/grub-shell.in: Remove -serial stdio option.
24066
24067 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
24068
24069 POSIX header file wrappers.
24070
24071 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
24072 equivalents.
24073 * lib/posix_wrap/ctype.h: Likewise.
24074 * lib/posix_wrap/errno.h: Likewise.
24075 * lib/posix_wrap/langinfo.h: Likewise.
24076 * lib/posix_wrap/limits.h: Likewise.
24077 * lib/posix_wrap/localcharset.h: Likewise.
24078 * lib/posix_wrap/stdint.h: Likewise.
24079 * lib/posix_wrap/stdio.h: Likewise.
24080 * lib/posix_wrap/stdlib.h: Likewise.
24081 * lib/posix_wrap/string.h: Likewise.
24082 * lib/posix_wrap/sys/types.h: Likewise.
24083 * lib/posix_wrap/unistd.h: Likewise.
24084 * lib/posix_wrap/wchar.h: Likewise.
24085 * lib/posix_wrap/wctype.h: Likewise.
24086 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
24087 (grub_script.yy.h): Likewise.
24088 * script/yylex.l: Remove POSIX emulation #defines.
24089 * Makefile.in (POSIX_CFLAGS): New variable.
24090 (GNULIB_UTIL_CFLAGS): Likewise.
24091
24092 Regexp support.
24093
24094 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
24095 (regexp_mod_SOURCES): New variable.
24096 (regexp_mod_CFLAGS): Likewise.
24097 (regexp_mod_LDFLAGS): Likewise.
24098 * commands/regexp.c: New file.
24099 * gnulib/regcomp.c: New file. Imported from gnulib.
24100 * gnulib/regex.c: Likewise.
24101 * gnulib/regex_internal.c: Likewise.
24102 * gnulib/regex_internal.h: Likewise.
24103 * gnulib/regexec.c: Likewise.
24104 * gnulib/regex.h: Likewise.
24105
24106 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
24107
24108 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
24109 unsupported video mode types.
24110
24111 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
24112
24113 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
24114
24115 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
24116
24117 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
24118 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
24119
24120 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
24121
24122 Remove unused grub_vga_get_font.
24123
24124 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
24125 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
24126
24127 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
24128
24129 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
24130 * include/grub/misc.h: Likewise.
24131
24132 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
24133
24134 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
24135 for which failure is fatal.
24136
24137 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
24138
24139 * util/grub-install.in: Use mkdir -p to create grub directory.
24140 * util/i386/efi/grub-install.in: Likewise.
24141 * util/ieee1275/grub-install.in: Likewise.
24142
24143 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
24144
24145 * Makefile.in (LEX): new variable.
24146
24147 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
24148
24149 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
24150 `=' and added double quotes on operands of this equality test.
24151
24152 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
24153
24154 * Makefile.in (uninstall): Remove a leftover debug echo.
24155 Reported by: Grégoire Sutre
24156
24157 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
24158
24159 MIPS multiboot2 support.
24160
24161 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
24162 (multiboot2_mod_SOURCES): New variable.
24163 (multiboot2_mod_CFLAGS): Likewise.
24164 (multiboot2_mod_LDFLAGS): Likewise.
24165 (multiboot2_mod_ASFLAGS): Likewise.
24166 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
24167 definition.
24168 (MULTIBOOT_ENTRY_REGISTER): Likewise.
24169 (MULTIBOOT_MBI_REGISTER): Likewise.
24170 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
24171 (MULTIBOOT_ELF32_MACHINE): Likewise.
24172 (MULTIBOOT_ELF64_MACHINE): Likewise.
24173 * include/grub/mips/multiboot.h: New file.
24174 * include/grub/video.h (grub_video_driver_id): New type
24175 GRUB_VIDEO_DRIVER_SM712.
24176 (grub_video_get_info_and_fini): Export.
24177 (grub_video_get_palette): Likewise.
24178 (grub_video_get_driver_id): Likewise.
24179 * include/multiboot2.h: Resynced with spec.
24180 * loader/i386/multiboot.c: Moved from here ...
24181 * loader/multiboot.c: ... here. All users updated.
24182 (grub_multiboot_boot): Use platform-specific macros.
24183 * loader/i386/multiboot_elfxx.c: Moved from here ...
24184 * loader/multiboot_elfxx.c: ... here. All users updated.
24185 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
24186 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
24187 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
24188
24189 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
24190
24191 Import gnulib argp module.
24192
24193 * gnulib/argp-ba.c: New file.
24194 * gnulib/argp-eexst.c: Likewise.
24195 * gnulib/argp-fmtstream.c: Likewise.
24196 * gnulib/argp-fmtstream.h: Likewise.
24197 * gnulib/argp-fs-xinl.c: Likewise.
24198 * gnulib/argp-help.c: Likewise.
24199 * gnulib/argp-namefrob.h: Likewise.
24200 * gnulib/argp-parse.c: Likewise.
24201 * gnulib/argp-pin.c: Likewise.
24202 * gnulib/argp-pv.c: Likewise.
24203 * gnulib/argp-pvh.c: Likewise.
24204 * gnulib/argp-version-etc.c: Likewise.
24205 * gnulib/argp-version-etc.h: Likewise.
24206 * gnulib/argp-xinl.c: Likewise.
24207 * gnulib/argp.h: Likewise.
24208
24209 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
24210
24211 * kern/device.c (grub_device_iterate): Clear errors after failed
24212 opening device.
24213
24214 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
24215
24216 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
24217 returned by firmware.
24218
24219 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
24220
24221 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
24222 compilation on coreboot and qemu
24223
24224 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
24225
24226 * include/multiboot2.h: Resync with spec.
24227
24228 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
24229
24230 Multiboot2 tag support
24231
24232 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
24233 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
24234 Remove loader/multiboot_loader.c.
24235 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
24236 (grub_multiboot2_real_boot): Likewise.
24237 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
24238 (grub_get_multiboot_mmap_count): New proto.
24239 (grub_fill_multiboot_mmap): Likewise.
24240 (grub_multiboot_set_video_mode): Likewise.
24241 (grub_multiboot_set_console): Likewise.
24242 (grub_multiboot_load): Likewise.
24243 (grub_multiboot_load_elf): Likewise.
24244 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
24245 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
24246 * include/multiboot.h: Resynced with specification.
24247 * include/multiboot2.h: Resynced with specification.
24248 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
24249 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
24250 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
24251 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
24252 users updated.
24253 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
24254 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
24255 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
24256 Removed.
24257 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
24258 Moved from here...
24259 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
24260 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
24261 Moved from here...
24262 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
24263 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
24264 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
24265 All users updated.
24266 * loader/i386/multiboot_mbi2.c: New file.
24267
24268 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
24269
24270 Resync with gnulib.
24271
24272 * Makefile.in (GNULIB_CFLAGS): New variable.
24273 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
24274 (grub_script_check_CFLAGS): New variable.
24275 * gnulib/alloca.h: Resync with gnulib.
24276 * gnulib/error.c: Likewise.
24277 * gnulib/error.h: Likewise.
24278 * gnulib/fnmatch.c: Likewise.
24279 * gnulib/fnmatch_loop.c: Likewise.
24280 * gnulib/getdelim.c: Likewise.
24281 * gnulib/getline.c: Likewise.
24282 * gnulib/getopt.c: Likewise.
24283 * gnulib/getopt1.c: Likewise.
24284 * gnulib/getopt_int.h: Likewise.
24285 * gnulib/gettext.h: Likewise.
24286 * gnulib/progname.c: Likewise.
24287 * gnulib/progname.h: Likewise.
24288
24289 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
24290
24291 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
24292 which is the case with --disabled-nls.
24293
24294 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
24295 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
24296 * util/misc.c: Likewise.
24297 * util/mkisofs/mkisofs.c: Likewise.
24298 * util/mkisofs/mkisofs.h: Likewise.
24299
24300 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
24301
24302 Simplify Apple CC support.
24303
24304 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
24305 Add 0 byte at the end not to have a symbol with empty target.
24306 * mmap/i386/pc/mmap_helper.S: Likewise.
24307 * genmk.rb: Ignore errors 2030 and 2050.
24308 * kern/i386/pc/startup.S: Use LOCAL when possible.
24309
24310 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
24311
24312 Testcase and the fix for final semicolon on cmdline.
24313
24314 * tests/grub_script_final_semicolon.in: New testcase.
24315 * conf/tests.rmk: Rules for the new testcase.
24316 * script/parser.y: Grammar fix.
24317
24318 2010-03-26 BVK Chaitanya <bvk@localhost>
24319
24320 Blank lines testcase for GRUB script.
24321
24322 * tests/grub_script_blanklines.in: New testcase.
24323 * conf/tests.rmk: Rules for the new testcase.
24324
24325 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
24326
24327 Don't use __FILE__.
24328
24329 * genmk.rb: Add -DGRUB_FILE to all C targets.
24330 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
24331 * include/grub/list.h: Likewise.
24332 * include/grub/misc.h: Likewise.
24333 * include/grub/mm.h: Likewise.
24334 * include/grub/test.h: Likewise.
24335 * kern/mm.c: Likewise.
24336 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
24337
24338 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
24339
24340 Sunpc partitions support.
24341
24342 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
24343 (grub_fstest_SOURCES): Likewise.
24344 (pkglib_MODULES): Add part_sunpc.mod.
24345 (part_sunpc_mod_SOURCES): New variable.
24346 (part_sunpc_mod_CFLAGS): Likewise.
24347 (part_sunpc_mod_LDFLAGS): Likewise.
24348 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
24349 * partmap/sunpc.c: New file.
24350
24351 2010-03-26 BVK Chaitanya <bvk@localhost>
24352
24353 For loop support to GRUB script.
24354
24355 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
24356 (grub_script_create_cmdfor): New function prototype.
24357 (grub_script_execute_cmdfor): New function prototype.
24358 * script/execute.c (grub_script_execute_cmdfor): New function.
24359 * script/parser.y (command): New for command.
24360 (forcmd): New grammar rule.
24361 * script/script.c (grub_script_create_cmdfor): New function.
24362 * util/grub-script-check.c (grub_script_execute_cmdfor): New
24363 function.
24364 * tests/grub_script_for1.in: New testcase.
24365 * conf/tests.rmk: Rules for new testcase.
24366
24367 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
24368
24369 Nested partitions
24370
24371 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
24372 'partition' is NULL, grub_partition_get_start already does that.
24373 * commands/loadenv.c (check_blocklists): Likewise.
24374 (write_blocklists): Likewise.
24375 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
24376 (grub_fstest_SOURCES): Likewise.
24377 (pkglib_MODULES): Add part_bsd.mod.
24378 (part_bsd_mod_SOURCES): New variable.
24379 (part_bsd_mod_CFLAGS): Likewise.
24380 (part_bsd_mod_LDFLAGS): Likewise.
24381 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
24382 (grub_emu_SOURCES): Likewise.
24383 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24384 * include/grub/bsdlabel.h: New file.
24385 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
24386 'get_name'.
24387 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
24388 (grub_partition_map_list): New variable.
24389 (grub_partition_map_register): Inline.
24390 (grub_partition_map_unregister): Likewise.
24391 (FOR_PARTITION_MAPS): New macro.
24392 (grub_partition_map_iterate): Removed.
24393 (grub_partition_get_start): Handle nested partitions.
24394 * include/grub/msdos_partition.h: Remove bsd-related entries.
24395 (grub_pc_partition): Remove.
24396 * kern/disk.c (grub_disk_close): Free partition data.
24397 (grub_disk_adjust_range): Handle nested partitions.
24398 * kern/partition.c (grub_partition_map_probe): New function.
24399 (grub_partition_probe): Parse name to number, handle subpartitions.
24400 (get_partmap): New function.
24401 (grub_partition_iterate): Handle subpartitions.
24402 (grub_partition_get_name): Likewise.
24403 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
24404 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
24405 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
24406 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
24407 Set 'number'.
24408 (acorn_partition_map_probe): Remove.
24409 (acorn_partition_map_get_name): Likewise.
24410 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
24411 Set 'number'.
24412 Set 'index' to 0 since there can be only one partition entry per sector.
24413 (amiga_partition_map_probe): Remove.
24414 (amiga_partition_map_get_name): Likewise.
24415 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
24416 Set 'number'.
24417 Set 'offset' and 'index' to real positions of partitions.
24418 (apple_partition_map_probe): Remove.
24419 (apple_partition_map_get_name): Likewise.
24420 * partmap/bsdlabel.c: New file.
24421 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
24422 Set 'number'.
24423 Allocate 'data' so it can be correctly freed.
24424 Set 'index' to offset inside sector.
24425 (gpt_partition_map_probe): Remove.
24426 (gpt_partition_map_get_name): Likewise.
24427 * partmap/msdos.c (grub_partition_parse): Remove.
24428 (pc_partition_map_iterate): Don't force raw access.
24429 Set 'number'.
24430 Make 'ext_offset' a local variable.
24431 (pc_partition_map_probe): Remove.
24432 (pc_partition_map_get_name): Remove.
24433 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
24434 Set 'number'.
24435 (sun_partition_map_probe): Remove.
24436 (sun_partition_map_get_name): Likewise.
24437 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
24438 (grub_pcpart_type): Likewise.
24439 * util/hostdisk.c (open_device): Handle new numbering scheme.
24440 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
24441 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
24442 * util/grub-probe.c (probe_partmap): Handle nested paritions.
24443 * util/grub-install.in: Insert all subpartition modules.
24444 * util/ieee1275/grub-install.in: Likewise.
24445
24446 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
24447
24448 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
24449 grammar.
24450
24451 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
24452
24453 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
24454
24455 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
24456
24457 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
24458 match where 'make install' puts them.
24459 * util/i386/efi/grub-install.in: Likewise.
24460
24461 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
24462
24463 * .bzrignore: Add gentrigtables, grub-script-check,
24464 grub_script_check_init.c, grub_script_check_init.h, and
24465 trigtables.c.
24466
24467 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
24468
24469 * kern/parser.c: Indented.
24470
24471 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
24472
24473 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
24474
24475 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
24476
24477 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
24478 alpha_mask_size == 0 case.
24479
24480 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
24481
24482 GRUB shell lexer and parser improvements.
24483
24484 * conf/any-emu.rmk: Build rule updates.
24485 * conf/common.rmk: Likewise.
24486 * conf/i386-coreboot.rmk: Likewise.
24487 * conf/i386-efi.rmk: Likewise.
24488 * conf/i386-ieee1275.rmk: Likewise.
24489 * conf/i386-pc.rmk: Likewise.
24490 * conf/powerpc-ieee1275.rmk: Likewise.
24491 * conf/x86_64-efi.rmk: Likewise.
24492
24493 * configure.ac: Configure check for flex.
24494
24495 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
24496 types.
24497 (grub_lexer_param): Struct member updates.
24498 (grub_parser_param): Likewise.
24499 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
24500 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
24501 (grub_script_lexer_init): Prototype update.
24502 (grub_script_lexer_record_start): Likewise.
24503 (grub_script_lexer_record_stop): Likewise.
24504 (grub_script_lexer_yywrap): New function prototype.
24505 (grub_script_lexer_fini): Likewise.
24506 (grub_script_execute_argument_to_string): Removed by...
24507 (grub_script_execute_argument_to_argv): ...better version.
24508
24509 * script/execute.c (ROUND_UPTO): New macro.
24510 (grub_script_execute_cmdline): Out of memory fixes.
24511 (grub_script_execute_menuentry): Likewise.
24512 (grub_script_execute_argument_to_string): Removed. Update all
24513 users by...
24514 (grub_script_execute_argument_to_argv): ...better version.
24515 * script/function.c (grub_script_function_create): Use
24516 grub_script_execute_argument_to_argv instead of
24517 grub_script_execute_argument_to_string.
24518
24519 * script/lexer.c (check_varstate): Removed.
24520 (check_textstate): Removed.
24521 (grub_script_lexer_record_start): Likewise.
24522 (grub_script_lexer_record_stop): Likewise.
24523 (recordchar): Replaced with...
24524 (grub_script_lexer_record): ...new function.
24525 (nextchar): Removed.
24526 (grub_script_lexer_init): Rewritten.
24527 (grub_script_yylex): Rewritten.
24528 (append_newline): New function.
24529 (grub_script_lexer_yywrap): New function.
24530 (grub_script_lexer_fini): New function.
24531 (grub_script_yyerror): Sets error flag.
24532
24533 * script/yylex.l: New file.
24534 (grub_lexer_yyfree): Wrapper for flex yyffre.
24535 (grub_lexer_yyalloc): Likewise.
24536 (grub_lexer_yyrealloc): Likewise.
24537 * script/parser.y: Refactored.
24538
24539 * script/script.c (grub_script_arg_add): Out of memory fixes.
24540 (grub_script_add_arglist): Likewise.
24541 (grub_script_create_cmdline): Likewise.
24542 (grub_script_create_cmdmenu): Likewise.
24543 (grub_script_add_cmd): Likewise.
24544 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
24545 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
24546 unnecessary code.
24547
24548 * tests/grub_script_echo1.in: New testcase.
24549 * tests/grub_script_vars1.in: New testcase.
24550 * tests/grub_script_echo_keywords.in: New testcase.
24551
24552 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24553
24554 Remove some redundancy in build system.
24555
24556 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
24557 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
24558 (TARGET_LDFLAGS): Add -nostdlib.
24559 (TARGET_IMG_LDFLAGS): Likewise.
24560 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
24561 anything since mmap isn't available.
24562 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
24563 Add util/time.c.
24564 (pkglib_MODULES): Remove reboot.mod.
24565 (reboot_mod_SOURCES): Removed.
24566 (reboot_mod_CFLAGS): Likewise.
24567 (reboot_mod_LDFLAGS): Likewise.
24568 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
24569 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
24570 (DEFSYMFILES): Add kernel_syms.lst.
24571 (kernel_img_HEADERS): Add common headers.
24572 (symlist.c): New target.
24573 (kernel_syms.lst): Likewise.
24574 (pkglib_MODULES): Add memdisk.mod.
24575 (memdisk_mod_SOURCES): New variable.
24576 (memdisk_mod_CFLAGS): Likewise.
24577 (memdisk_mod_LDFLAGS): Likewise.
24578 (pkglib_MODULES): Add reboot.mod.
24579 (reboot_mod_SOURCES): New variable.
24580 (reboot_mod_CFLAGS): Likewise.
24581 (reboot_mod_LDFLAGS): Likewise.
24582 (pkglib_MODULES): Add date.mod.
24583 (date_mod_SOURCES): New variable.
24584 (date_mod_CFLAGS): Likewise.
24585 (date_mod_LDFLAGS): Likewise.
24586 (pkglib_MODULES): Add datehook.mod.
24587 (datehook_mod_SOURCES): New variable.
24588 (datehook_mod_CFLAGS): Likewise.
24589 (datehook_mod_LDFLAGS): Likewise.
24590 (pkglib_MODULES): Add lsmmap.mod.
24591 (lsmmap_mod_SOURCES): New variable.
24592 (lsmmap_mod_CFLAGS): Likewise.
24593 (lsmmap_mod_LDFLAGS): Likewise.
24594 (pkglib_MODULES): Add boot.mod.
24595 (boot_mod_SOURCES): New variable.
24596 (boot_mod_CFLAGS): Likewise.
24597 (boot_mod_LDFLAGS): Likewise.
24598 * conf/i386-coreboot.rmk: Removed redundant parts.
24599 * conf/i386-ieee1275.rmk: Likewise.
24600 * conf/i386-pc.rmk: Likewise.
24601 * conf/mips-yeeloong.rmk: Likewise.
24602 * conf/mips.rmk: Likewise.
24603 * conf/powerpc-ieee1275.rmk: Likewise.
24604 * conf/sparc64-ieee1275.rmk: Likewise.
24605 * conf/x86_64-efi.rmk: Likewise.
24606 * conf/i386-coreboot.rmk: Moved qemu parts ..
24607 * conf/i386-qemu.rmk: ... here
24608 * conf/i386-efi.rmk: Moved common parts to...
24609 * conf/x86-efi.rmk: ... here.
24610 * conf/i386.rmk: Added modules common to all x86 variants.
24611 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
24612 * disk/memdisk.c: Remove grub/machine/kernel.h.
24613 * gensymlist.sh.in: Include symbol.h.
24614 * hook/datehook.c: Correct module name.
24615 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
24616 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
24617 * include/grub/i386/efi/serial.h: New file.
24618 * include/grub/x86_64/efi/serial.h: Likewise.
24619 * util/time.c: Likewise.
24620 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
24621
24622 2010-03-14 Colin King <colin.king@ubuntu.com>
24623 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
24624
24625 Shrink the pre-partition-table part of boot.img by eight bytes.
24626
24627 * boot/i386/pc/boot.S (ERR): New macro.
24628 (chs_mode): Use ERR.
24629 (geometry_error): Likewise.
24630 (hd_probe_error): Remove. This is only used once, so we wrwite
24631 it inline instead.
24632 (read_error): Instead of printing read_error_string, just set up
24633 %si and fall through to ...
24634 (error_message): ... this new function, also used by ERR.
24635
24636 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
24637
24638 Speed up consecutive hostdisk operations on the same device.
24639
24640 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
24641 (grub_util_biosdisk_open): Initialise disk->data.
24642 (struct linux_partition_cache): New structure.
24643 (linux_find_partition): Cache partition start positions; these are
24644 expensive to compute on every read and write.
24645 (open_device): Cache open file descriptor in disk->data, so that we
24646 don't have to reopen it and flush the buffer cache for consecutive
24647 operations on the same device.
24648 (grub_util_biosdisk_close): New function.
24649 (grub_util_biosdisk_dev): Set `close' member.
24650
24651 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
24652 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
24653 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
24654 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
24655 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
24656
24657 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24658
24659 Compile parts of grub-emu as modules.
24660
24661 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
24662 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
24663 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
24664 (all-local): Add $(GRUB_EMU).
24665 (install-local): Install $(GRUB_EMU).
24666 (uninstall): Uninstall $(GRUB_EMU).
24667 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
24668 * kern/dl.c: Likewise.
24669 * commands/sleep.c: Not include machine/time.h.
24670 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
24671 (COMMON_CFLAGS): Likewise.
24672 (sbin_UTILITIES): Remove grub-emu.
24673 (grub_emu_SOURCES): Removed.
24674 (kernel_img_RELOCATABLE): New variable.
24675 (pkglib_PROGRAMS): Add kernel.img.
24676 (kernel_img_SOURCES): New variable
24677 (kernel_img_CFLAGS): Likewise.
24678 (kernel_img_LDFLAGS): Likewise.
24679 (TARGET_NO_STRIP): Likewise.
24680 (TARGET_NO_DYNAMIC_MODULES): Likewise.
24681 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
24682 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
24683 (grub-emu): New target.
24684 (GRUB_EMU): New variable.
24685 * configure.ac: Whitelist -emu as possible x86_64 architecture.
24686 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
24687 * loader/xnu.c: Likewise.
24688 * include/grub/pci.h: Likewise.
24689 * genemuinit.sh: New file.
24690 * genemuinitheader.sh: Likewise.
24691 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
24692 Support TARGET_NO_DYNAMIC_MODULES.
24693 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
24694 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
24695 * disk/loopback.c: Likewise.
24696 * font/font_cmd.c: Likewise.
24697 * partmap/acorn.c: Likewise.
24698 * partmap/amiga.c: Likewise.
24699 * partmap/apple.c: Likewise.
24700 * partmap/gpt.c: Likewise.
24701 * partmap/msdos.c: Likewise.
24702 * partmap/sun.c: Likewise.
24703 * parttool/msdospart.c: Likewise.
24704 * term/gfxterm.c: Likewise.
24705 * video/bitmap.c: Likewise.
24706 * video/readers/jpeg.c: Likewise.
24707 * video/readers/png.c: Likewise.
24708 * video/readers/tga.c: Likewise.
24709 * video/video.c: Likewise.
24710 * util/grub-emu.c (read_command_list): Removed.
24711 (main): Don't call util_init_nls.
24712 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
24713 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
24714
24715 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24716
24717 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
24718 date.mod, datehook.mod.
24719 (datetime_mod_SOURCES): New variable.
24720 (datetime_mod_CFLAGS): Likewise.
24721 (datetime_mod_LDFLAGS): Likewise.
24722 (date_mod_SOURCES): Likewise.
24723 (date_mod_CFLAGS): Likewise.
24724 (date_mod_LDFLAGS): Likewise.
24725 (datehook_mod_SOURCES): Likewise.
24726 (datehook_mod_CFLAGS): Likewise.
24727 (datehook_mod_LDFLAGS): Likewise.
24728 * conf/sparc64-ieee1275.rmk: Likewise.
24729 * lib/ieee1275/datetime.c: New file.
24730
24731 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24732
24733 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
24734 (ieee1275_fb_mod_SOURCES): New variable.
24735 (ieee1275_fb_mod_CFLAGS): Likewise.
24736 (ieee1275_fb_mod_LDFLAGS): Likewise.
24737 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
24738 New proto.
24739 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
24740 (HEAP_MAX_ADDR): Likewise.
24741 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
24742 type.
24743 Correct stop condition.
24744 (grub_ieee1275_devices_iterate): New function.
24745 * video/ieee1275.c: New file.
24746
24747 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
24748
24749 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
24750
24751 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
24752 as scratch.
24753 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
24754 SCRATCH_PAD_DISKBOOT as scratch.
24755 (bootit): Pass Openfirmware pointer in %o4.
24756 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
24757 of 0x200000.
24758 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
24759 with util/grub-mkrawimage.c.
24760 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
24761 * include/grub/aout.h (AOUT_MID_SUN): New definition.
24762 (grub_aout_get_type) [GRUB_UTIL]: Removed.
24763 (grub_aout_load) [GRUB_UTIL]: Likewise.
24764 * include/grub/kernel.h (grub_modules_get_end): New proto.
24765 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
24766 (SCRATCH_PAD_BOOT): New definition.
24767 (SCRATCH_PAD_DISKBOOT): Likewise.
24768 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
24769 * include/grub/sparc64/ieee1275/ieee1275.h
24770 (grub_ieee1275_original_stack): New variable
24771 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
24772 New definition
24773 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
24774 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
24775 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
24776 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
24777 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
24778 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
24779 (grub_platform_image_format_t): New type.
24780 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
24781 * kern/main.c (grub_modules_get_end)
24782 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
24783 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
24784 (codestart): Switch stacks.
24785 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
24786 variable.
24787 (grub_heap_init): Use grub_modules_get_end.
24788 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
24789 stack.
24790 * util/grub-mkrawimage.c (generate_image): Support sparc64.
24791 (main): Likewise.
24792 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
24793
24794 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
24795
24796 * util/grub-mkrescue.in: Base ISO UUID on UTC.
24797
24798 2010-03-08 Matt Kraai <kraai@ftbfs.org>
24799
24800 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
24801 bug #559005).
24802
24803 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
24804
24805 * genmoddep.awk: Output all missing symbols and not only first.
24806
24807 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24808
24809 * NEWS: Put the date of 1.98 release.
24810
24811 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24812
24813 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
24814 ft2build.h.
24815
24816 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24817
24818 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
24819 completition in the middle of string.
24820
24821 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24822
24823 * util/grub-mkrescue.in: Use mktemp with explicit template.
24824
24825 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24826
24827 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
24828
24829 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
24830
24831 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
24832 right pointer.
24833
24834 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
24835
24836 Fix FreeBSD compilation.
24837
24838 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
24839 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
24840
24841 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
24842
24843 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
24844
24845 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24846
24847 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
24848
24849 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24850
24851 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
24852
24853 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
24854
24855 Support relative image path in theme file.
24856
24857 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
24858 (image_set_property): Handle theme_dir and relative path.
24859
24860 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24861
24862 * configure.ac: Alias amd64 to x86_64.
24863
24864 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24865
24866 * NEWS: mention multiboot on EFI.
24867
24868 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24869
24870 * kern/main.c (grub_load_modules): Handle errors from init functions of
24871 embeded modules.
24872
24873 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24874
24875 * normal/autofs.c (autoload_fs_module): Handle errors.
24876
24877 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24878
24879 Disable linux.mod on qemu-mips since it's not functional and leads
24880 to compilation failure.
24881
24882 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
24883 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
24884 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
24885 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
24886 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
24887 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
24888 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
24889 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
24890 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
24891 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
24892 Reported by: BVK Chaitanya
24893
24894 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
24895
24896 * INSTALL: Add gettext as a dependency and add qemu to a new section
24897 "Prerequisites for make-check".
24898
24899 2010-03-04 Christian Franke <franke@computer.org>
24900
24901 * util/grub-pe2elf.c: Add missing include "progname.h".
24902
24903 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24904
24905 * normal/crypto.c (read_crypto_list): Fix a typo.
24906 Reported by: Seth Goldberg.
24907
24908 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24909
24910 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
24911 Reported by: Seth Goldberg.
24912
24913 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24914
24915 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
24916 ascii.bitmaps.
24917
24918 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24919
24920 * genmk.rb: Remove terminal*.lst in make clean.
24921 Reported by: Seth Goldberg.
24922
24923 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
24924
24925 * util/i386/efi/grub-install.in: Copy gettext files.
24926
24927 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
24928
24929 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
24930
24931 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
24932
24933 Wait for user entry basing on presence of output rather than on errors.
24934
24935 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
24936 (grub_install_newline_hook): Likewise.
24937 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
24938 * normal/menu.c (show_menu): Check line_counter to determine presence
24939 of output.
24940 * normal/term.c (grub_normal_line_counter): New variable.
24941 (grub_normal_get_line_counter): New function.
24942 (grub_install_newline_hook): Likewise.
24943
24944 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
24945
24946 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
24947
24948 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
24949
24950 * configure.ac: Update version to 1.98.
24951
24952 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
24953
24954 * util/grub.d/10_linux.in (linux_entry): Don't default to
24955 gfxpayload=keep if Linux doesn't support video handover.
24956
24957 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
24958
24959 Don't compile video modules on yeeloong since video subsystem is part
24960 of kernel.
24961
24962 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
24963 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
24964 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
24965 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
24966 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
24967 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
24968 * include/grub/bitmap_scale.h: Likewise.
24969 * include/grub/bufio.h: Likewise.
24970 * include/grub/font.h: Likewise.
24971 * include/grub/gfxterm.h: Likewise.
24972 * include/grub/video.h: Likewise.
24973 * include/grub/vbe.h: Don't include video_fb.h.
24974 * video/i386/pc/vbe.c: Include video_fb.h.
24975 * commands/i386/pc/vbetest.c: Include video.h.
24976
24977 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
24978
24979 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
24980 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
24981 default entry if GRUB_SAVEDEFAULT=true. This allows using
24982 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
24983 saving a new default on every boot.
24984
24985 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
24986
24987 * normal/crypto.c (read_crypto_list): Fix a memory leak.
24988 * normal/term.c (read_terminal_list): Likewise.
24989 * normal/main.c (grub_normal_init_page): Likewise.
24990 (grub_normal_read_line_real): Likewise.
24991
24992 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
24993
24994 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
24995 memory leak.
24996 Reported by: Seth Goldberg.
24997
24998 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
24999
25000 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
25001 duplicate declaration of `start'.
25002
25003 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
25004
25005 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
25006 filename.
25007 Reported by: Georgy Buranov
25008
25009 2010-02-20 Carles Pina i Estany <carles@pina.cat>
25010
25011 * util/grub-mkrawimage.c (usage): Change string formatting to
25012 improve gettext.
25013
25014 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
25015
25016 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
25017 backspace keys.
25018
25019 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
25020
25021 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
25022 Reported by: Michael Suchanek.
25023
25024 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
25025
25026 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
25027 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
25028
25029 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
25030
25031 Remove any reference to non-free fonts.
25032
25033 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
25034 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
25035 uses non-free components.
25036 * font/font.c (grub_font_get_name): Remove example name.
25037 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
25038 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
25039 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
25040 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
25041
25042 2010-02-16 Georgy Buranov <gburanov@gmail.com>
25043
25044 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
25045
25046 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
25047
25048 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
25049 Double divisor.
25050 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
25051 features.
25052 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
25053
25054 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
25055
25056 * gensymlist.sh.in: Use TARGET_CC instead of CC.
25057
25058 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
25059
25060 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
25061 * docs/grub.texi (Command-line and menu entry commands): Document play
25062 command.
25063
25064 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
25065
25066 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
25067 parse arguments as inline tempo and notes. Move code for playing notes
25068 to...
25069 (play): ... new function.
25070
25071 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
25072
25073 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
25074 grub_uint16_t instead of short.
25075 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
25076 disk from little endian to cpu endianness.
25077
25078 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
25079
25080 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
25081 GRUB_TICKS_PER_SECOND instead of 120.
25082
25083 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
25084
25085 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
25086 escape sequence after \e.
25087
25088 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
25089
25090 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
25091 non-ASCII characters.
25092
25093 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
25094
25095 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
25096 set root in single quotes to prevent \, from being unescaped.
25097
25098 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
25099
25100 Prevent unknown commands from stopping menuentry execution.
25101
25102 * script/execute.c (grub_script_execute_cmdline): Print error after
25103 unknown command.
25104
25105 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
25106
25107 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
25108 Reported by: Pavel Pisa.
25109
25110 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25111
25112 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
25113
25114 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25115
25116 Merge grub_ieee1275_map_physical into grub_map and rename to
25117 grub_ieee1275_map
25118
25119 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
25120 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
25121 Remove.
25122 * kern/ieee1275/openfw.c (grub_map): Rename to ...
25123 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
25124 necessary.
25125 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
25126
25127 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25128
25129 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
25130 opening and not after.
25131
25132 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25133
25134 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
25135 constants.
25136
25137 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25138
25139 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
25140 (alloc_phys): Use ALIGN_UP instead of align_addr.
25141
25142 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25143
25144 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
25145
25146 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25147
25148 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
25149
25150 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25151
25152 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
25153 verbose dprintf.
25154
25155 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25156
25157 Fix over-4GiB seek on sparc64.
25158
25159 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
25160 Replace pos_i and pos_lo with pos. All users updated.
25161 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
25162 New constant.
25163 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
25164 Likewise.
25165 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
25166 and pos_lo.
25167
25168 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25169
25170 * util/grub-mkrawimage.c (main): Call set_program_name.
25171
25172 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25173
25174 Properly align 64-bit targets.
25175
25176 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
25177 (generate_image): Use ALIGN_ADDR.
25178
25179 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25180
25181 Properly create cross-endian images.
25182
25183 * include/grub/types.h (grub_host_to_target_addr): New macro
25184 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
25185
25186 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25187
25188 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
25189
25190 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
25191
25192 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
25193
25194 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
25195 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
25196 (grub_linux_boot): Divide by 64K when on VESA.
25197
25198 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
25199
25200 Support GRUB_GFXPAYLOAD_LINUX.
25201
25202 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
25203 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
25204
25205 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
25206
25207 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
25208 to show messages instead of discarding them.
25209 Process errors after executing command and not before. Keep old method
25210 too as precaution.
25211
25212 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
25213
25214 * configure.ac: Check for ft2build.h.
25215
25216 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25217
25218 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
25219
25220 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25221
25222 * genkernsyms.sh.in: Use TARGET_CC.
25223
25224 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
25225
25226 * NEWS: Update.
25227
25228 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25229
25230 * include/grub/multiboot2.h: Remove leftover file.
25231 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
25232 * include/grub/partition.h [GRUB_UTIL]: Likewise.
25233
25234 2010-02-07 Yves Blusseau <blusseau@zetam.org>
25235
25236 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
25237
25238 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25239
25240 Fix warnings in grub-emu when compiling with maximum warning options.
25241
25242 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
25243 (grub_arch_modules_addr): Return 0 and not NULL.
25244 * util/misc.c (ENABLE_RELOCATABLE): New definition.
25245 (xstrdup): Use newstr instead of dup.
25246 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
25247 of disk to dsk to avoid shadowing.
25248 (find_free_slot): Fix prototype.
25249 * util/getroot.c (grub_util_is_dmraid): Make static.
25250 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
25251 Add missing prototype.
25252 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
25253
25254 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25255
25256 * loader/i386/linux.c (grub_linux_setup_video): Handle error
25257 appropriately.
25258
25259 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25260
25261 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
25262 code out.
25263
25264 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25265
25266 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
25267 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
25268 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
25269 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
25270 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
25271 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
25272
25273 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25274
25275 * include/grub/err.h (grub_err_printf): Don't export.
25276
25277 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25278
25279 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
25280
25281 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25282
25283 * include/grub/i18n.h (grub_gettext_dummy): Removed.
25284 * kern/misc.c (grub_gettext_dummy): Make static.
25285
25286 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25287
25288 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
25289 by non-valid ones.
25290 * kern/term.c (grub_putchar): Likewise.
25291
25292 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25293
25294 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
25295 buggy hook call and memory leak.
25296
25297 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25298
25299 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
25300
25301 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25302
25303 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
25304
25305 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25306
25307 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
25308 modevar.
25309 Return grub_errno on allocation error.
25310
25311 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25312
25313 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
25314
25315 2010-02-06 Yves Blusseau <blusseau@zetam.org>
25316
25317 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
25318 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
25319
25320 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25321
25322 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
25323 non-pxe disk.
25324 (grub_pxefs_open): Likewise.
25325
25326 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
25327
25328 * util/grub.d/10_hurd.in: Add --class information to menuentries.
25329 * util/grub.d/10_kfreebsd.in: Likewise.
25330 * util/grub.d/10_linux.in: Likewise.
25331
25332 2010-02-06 Colin D Bennett <colin@gibibit.com>
25333
25334 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
25335 (gfxmenu_mod_SOURCES): New variable.
25336 (gfxmenu_mod_CFLAGS): Likewise.
25337 (gfxmenu_mod_LDFLAGS): Likewise.
25338 * include/grub/term.h (grub_term_set_current_output): Declare
25339 argument as const.
25340 * docs/gfxmenu-theme-example.txt: New file.
25341 * gfxmenu/gfxmenu.c: Likewise.
25342 * gfxmenu/gui_box.c: Likewise.
25343 * gfxmenu/gui_canvas.c: Likewise.
25344 * gfxmenu/gui_circular_progress.c: Likewise.
25345 * gfxmenu/gui_image.c: Likewise.
25346 * gfxmenu/gui_label.c: Likewise.
25347 * gfxmenu/gui_list.c: Likewise.
25348 * gfxmenu/gui_progress_bar.c: Likewise.
25349 * gfxmenu/gui_string_util.c: Likewise.
25350 * gfxmenu/gui_util.c: Likewise.
25351 * gfxmenu/icon_manager.c: Likewise.
25352 * gfxmenu/model.c: Likewise.
25353 * gfxmenu/named_colors.c: Likewise.
25354 * gfxmenu/theme_loader.c: Likewise.
25355 * gfxmenu/view.c: Likewise.
25356 * gfxmenu/widget-box.c: Likewise.
25357 * include/grub/gfxmenu_model.h: Likewise.
25358 * include/grub/gfxmenu_view.h: Likewise.
25359 * include/grub/gfxwidgets.h: Likewise.
25360 * include/grub/gui.h: Likewise.
25361 * include/grub/gui_string_util.h: Likewise.
25362 * include/grub/icon_manager.h: Likewise.
25363
25364 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25365
25366 Agglomerate scrolling in gfxterm.
25367
25368 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
25369 (grub_virtual_screen_setup): Initialise 'total_screen'.
25370 (write_char): Split to ...
25371 (paint_char): ... this ...
25372 (write_char): ... and this.
25373 (paint_char): Handle delayed scrolling.
25374 (draw_cursor): Likewise.
25375 (scroll_up): Split to ...
25376 (real_scroll): ... this ...
25377 (scroll_up): ... and this.
25378 (real_scroll): Handle multi-line scroll and draw below-the-bottom
25379 characters.
25380 (grub_gfxterm_refresh): Call real_scroll.
25381
25382 2010-02-06 Colin D Bennett <colin@gibibit.com>
25383
25384 * include/grub/misc.h (grub_iscntrl): New inline function.
25385 (grub_isalnum): Likewise.
25386 (grub_strtol): Likewise.
25387
25388 2010-02-06 Colin D Bennett <colin@gibibit.com>
25389
25390 * normal/menu_text.c (get_entry_number): Move from here ...
25391 * normal/menu.c (get_entry_number): ... moved here.
25392 * include/grub/menu.h (grub_menu_get_default_entry_index):
25393 New prototype.
25394 * normal/menu.c (grub_menu_get_default_entry_index): New function.
25395 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
25396 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
25397 (grub_menu_viewer_should_return): Likewise.
25398 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
25399 * normal/menu_text.c (run_menu): Enable menu switching.
25400 * normal/menu_viewer.c (should_return): New variable.
25401 (menu_viewer_changed): Likewise.
25402 (grub_menu_viewer_show_menu): Handle menu viewer changes.
25403 (grub_menu_viewer_should_return): New function.
25404 (menuviewer_write_hook): Likewise.
25405 (grub_menu_viewer_init): Likewise.
25406
25407 2010-02-06 Colin D Bennet <colin@gibibit.com>
25408 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25409
25410 Support for gfxterm in a window.
25411
25412 * include/grub/gfxterm.h: New file.
25413 * include/grub/video.h (struct grub_video_rect): New declaration.
25414 (grub_video_rect_t): Likewise.
25415 * term/gfxterm.c (struct grub_gfxterm_window): New type.
25416 (refcount): New variable.
25417 (render_target): Likewise.
25418 (window): Likewise.
25419 (repaint_callback): Likewise.
25420 (grub_virtual_screen_setup): Use 'render_target'.
25421 (init_window): New function.
25422 (grub_gfxterm_init_window): Likewise.
25423 (grub_gfxterm_init): Check reference counter.
25424 Use init_window.
25425 (destroy_window): New function.
25426 (grub_gfxterm_destroy_window): Likewise.
25427 (grub_gfxterm_fini): Check reference counter.
25428 Use destroy_window.
25429 (redraw_screen_rect): Restore viewport.
25430 Use 'render_target' and 'window'.
25431 Call 'repaint_callback'.
25432 (write_char): Use 'render_target'.
25433 (draw_cursor): Likewise.
25434 (scroll_up): Restore viewport.
25435 Use 'render_target' and 'window'.
25436 Call 'repaint_callback'.
25437 (grub_gfxterm_cls): Likewise.
25438 (grub_gfxterm_refresh): Use 'window'.
25439 (grub_gfxterm_set_repaint_callback): New function.
25440 (grub_gfxterm_background_image_cmd): Use 'window'.
25441 (grub_gfxterm_get_term): New function.
25442 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
25443
25444 2010-02-06 Colin D Bennett <colin@gibibit.com>
25445
25446 Bitmap scaling support.
25447
25448 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
25449 (bitmap_scale_mod_SOURCES): New variable.
25450 (bitmap_scale_mod_CFLAGS): Likewise.
25451 (bitmap_scale_mod_LDFLAGS): Likewise.
25452 * include/grub/bitmap_scale.h: New file.
25453 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
25454 (background_image_cmd_options): New variable.
25455 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
25456 (cmd): Rename and change type to ...
25457 (background_image_cmd_handle): ... this. All users updated.
25458 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
25459 * video/bitmap_scale.c: New file.
25460
25461 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25462
25463 SDL support.
25464
25465 * Makefile.in (LIBSDL): New variable.
25466 (enable_grub_emu_sdl): Likewise.
25467 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
25468 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
25469 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
25470 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
25471 * util/sdl.c: New file.
25472
25473 2010-02-06 Colin D Bennett <colin@gibibit.com>
25474 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25475
25476 Double buffering support.
25477
25478 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
25479 * include/grub/video.h: Update comment.
25480 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
25481 New type.
25482 (grub_video_fb_doublebuf_blit_init): New prototype.
25483 * term/gfxterm.c (scroll_up): Support double buffering.
25484 (grub_gfxterm_refresh): Likewise.
25485 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
25486 (grub_video_fb_doublebuf_blit_init): Likewise.
25487 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
25488 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
25489 'displayed_page', 'render_page' and 'update_screen'.
25490 (grub_video_vbe_fini): Free offscreen buffer.
25491 (doublebuf_pageflipping_commit): New function.
25492 (doublebuf_pageflipping_update_screen): Likewise.
25493 (doublebuf_pageflipping_init): Likewise.
25494 (double_buffering_init): Likewise.
25495 (grub_video_vbe_setup): Enable doublebuffering.
25496 (grub_video_vbe_swap_buffers): Implement.
25497 (grub_video_vbe_set_active_render_target): Handle double buffering.
25498 (grub_video_vbe_get_active_render_target): Likewise.
25499 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
25500 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
25501 (grub_video_vbe_enable_double_buffering): Likewise.
25502 (grub_video_vbe_swap_buffers): Use update_screen.
25503 (grub_video_set_mode): Use double buffering.
25504
25505 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
25506
25507 * maintainance/gentrigtables.py: Remove.
25508 * lib/trig.c: Likewise.
25509
25510 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
25511
25512 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
25513 `trigtables.c'.
25514 (trigtables.c): New rule.
25515 (gentrigtables): Likewise.
25516 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
25517
25518 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
25519
25520 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
25521 integer constants.
25522
25523 2010-02-06 Colin D Bennet <colin@gibibit.com>
25524
25525 Trigonometry support.
25526
25527 * include/grub/trig.h: New file.
25528 * lib/trig.c: Likewise.
25529 * maintainance/gentrigtables.py: Likewise.
25530 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
25531 (trig_mod_SOURCES): New variable.
25532 (trig_mod_CFLAGS): Likewise.
25533 (trig_mod_LDFLAGS): Likewise.
25534
25535 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25536
25537 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
25538 disk devices.
25539
25540 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25541
25542 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
25543 error.
25544
25545 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
25546
25547 * util/hostdisk.c (open_device): Don't use partition device when reading
25548 before the partition.
25549 (grub_util_biosdisk_read): Don't read from partition and before the
25550 partition in single operation.
25551 (grub_util_biosdisk_write): Don't write to partition and before the
25552 partition in single operation.
25553
25554 2010-02-03 Torsten Landschoff <torsten@debian.org>
25555
25556 * kern/disk.c (grub_disk_read): Fix offset computation when reading
25557 last sectors.
25558
25559 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
25560
25561 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
25562 CDROM reads.
25563 (grub_biosdisk_write): Refuse to write to CDROM.
25564
25565 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
25566
25567 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
25568
25569 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
25570
25571 * font/font.c (find_glyph): Check that bmp_idx is available before
25572 using it.
25573 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
25574 with (font == NULL).
25575
25576 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
25577
25578 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
25579
25580 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
25581
25582 * include/grub/script_sh.h (sourcecode): Add const qualifier.
25583 * util/grub-script-check.c (getline): Fix empty lines case.
25584
25585 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
25586
25587 * Makefile.in (check): Exit with fail status when one of the tests
25588 fails.
25589 * tests/example_functional_test.c (example_test): Fix reversed assert.
25590 * tests/example_unit_test.c (example_test): Likewise.
25591
25592 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
25593
25594 * util/grub.d/10_linux.in: This script does not use any of the
25595 contents of gettext.sh, only the external command `gettext', so stop
25596 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
25597 the same prefix as GRUB.)
25598 * util/grub.d/10_kfreebsd.in: Likewise.
25599
25600 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
25601
25602 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
25603 of the line.
25604
25605 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
25606
25607 * kern/disk.c (grub_disk_read): Fix offset computation when reading
25608 last sectors.
25609
25610 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
25611
25612 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
25613 having a 4KiB and not 32KiB buffer size.
25614
25615 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
25616
25617 * util/hostfs.c: Include `<errno.h>'.
25618 (grub_hostfs_read): Handle errors from fseeko() and fread().
25619
25620 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
25621
25622 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
25623 loop when using read hooks on files whose size isn't sector-aligned.
25624
25625 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
25626
25627 Remove unused parameter.
25628
25629 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
25630 (grub_iso9660_open): Remove initialization of `data->length'.
25631
25632 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
25633
25634 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
25635 memleak conditions.
25636
25637 2010-01-27 Carles Pina i Estany <carles@pina.cat>
25638
25639 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
25640 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
25641
25642 2010-01-26 Carles Pina i Estany <carles@pina.cat>
25643
25644 * util/bin2h.c (usage): Fix warning (space after backslash).
25645
25646 2010-01-26 Carles Pina i Estany <carles@pina.cat>
25647
25648 * font/font.c: Include `grub/fontformat.h.
25649 Remove font file format constants.
25650 (grub_font_load): Use the new macros.
25651 * include/grub/fontformat.h: New file.
25652 * util/grub-mkfont.c: Include `grub/fontformat.c'.
25653 (write_font_pf2): Use the new macros.
25654
25655 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
25656
25657 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
25658 does.
25659
25660 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
25661
25662 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
25663
25664 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
25665 (_start): Macroify `0x7F'.
25666
25667 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
25668 (make_install_device): Use "(pxe)" as fallback prefix when booting
25669 via PXE.
25670
25671 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
25672
25673 * configure.ac: Reset LIBS after check for libgcc symbols.
25674
25675 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
25676
25677 * util/hostdisk.c (open_device): Add trailing newline to debug
25678 message.
25679
25680 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
25681
25682 * configure.ac: Check for `limits.h'.
25683 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
25684
25685 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
25686
25687 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
25688 capitalize error strings.
25689
25690 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
25691
25692 * util/grub.d/10_hurd.in: Add a recovery mode.
25693
25694 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
25695
25696 * configure.ac: Check for libgcc symbols with -nostdlib.
25697
25698 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
25699
25700 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
25701
25702 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
25703
25704 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
25705 stack since heap may be unavailable at that point.
25706 (grub_ofconsole_gotoxy): Likewise.
25707
25708 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
25709
25710 * configure.ac: Check for _restgpr_14_x.
25711 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
25712 and _savegpr_* prototypes.
25713
25714 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
25715
25716 Use generic grub_reboot() for i386-efi.
25717
25718 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
25719 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
25720 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
25721
25722 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
25723
25724 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
25725 presence of "prefix" variable as it breaks when normal.mod is
25726 embedded.
25727
25728 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
25729
25730 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
25731 stack since heap is unavailable at that point.
25732
25733 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
25734
25735 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
25736 (grub_freebsd_bootinfo): Rewritten.
25737 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
25738
25739 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
25740
25741 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
25742
25743 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
25744
25745 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
25746 domain now.
25747
25748 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
25749
25750 * util/misc.c (make_system_path_relative_to_its_root): Change the work
25751 around for handling "/" to the correct fix. Fix a memory leak. Use
25752 xstrdup instead of strdup.
25753
25754 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25755
25756 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
25757
25758 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25759
25760 Optimise glyph lookup by Basic Multilingual Plane lookup array.
25761
25762 * font/font.c (struct grub_font): New member 'bmp_idx'.
25763 (font_init): Initialise 'bmp_idx'.
25764 (load_font_index): Fill 'bmp_idx'.
25765 (find_glyph): Make inline. Use bmp_idx for BMP characters.
25766
25767 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25768
25769 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
25770 unnecessary calls.
25771
25772 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25773
25774 Move context handling out of the kernel.
25775
25776 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
25777 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
25778 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
25779 * conf/i386-efi.rmk: Likewise.
25780 * conf/i386-ieee1275.rmk: Likewise.
25781 * conf/i386-pc.rmk: Likewise.
25782 * conf/powerpc-ieee1275.rmk: Likewise.
25783 * conf/sparc64-ieee1275.rmk: Likewise.
25784 * conf/x86_64-efi.rmk: Likewise.
25785 * include/grub/env.h: Include grub/menu.h.
25786 (grub_env_var_type): Removed.
25787 (grub_env_var): Replaced field 'type' with 'global'.
25788 (grub_env_find): New prototype.
25789 (grub_env_context_open): Remove EXPORT_FUNC.
25790 (grub_env_context_close): Likewise.
25791 (grub_env_export): Likewise.
25792 (grub_env_set_data_slot): Removed.
25793 (grub_env_get_data_slot): Likewise.
25794 (grub_env_unset_data_slot): Likewise.
25795 (grub_env_unset_menu): New prototype.
25796 (grub_env_set_menu): Likewise.
25797 (grub_env_get_menu): Likewise.
25798 * include/grub/env_private.h: New file.
25799 * include/grub/normal.h (grub_context_init): New prototype.
25800 (grub_context_fini): Likewise.
25801 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
25802 * normal/context.c (grub_cmd_export): ... to here.
25803 * kern/env.c: Include env_private.h.
25804 (HASHSZ): Moved to include/grub/env_private.h.
25805 (grub_env_context): Likewise.
25806 (grub_env_sorted_var): Likewise.
25807 (current_context): Renamed from this ...
25808 (grub_current_context): ...to this. 'static' removed. All users updated.
25809 (grub_env_find): Removed 'static'.
25810 (grub_env_context_open): Moved to normal/context.c.
25811 (grub_env_context_close): Likewise.
25812 (grub_env_export): Likewise.
25813 (mangle_data_slot_name): Removed.
25814 (grub_env_set_data_slot): Likewise.
25815 (grub_env_get_data_slot): Likewise.
25816 (grub_env_unset_data_slot): Likewise.
25817 * kern/main.c (grub_set_root_dev): Don't export root.
25818 It will be done later.
25819 (grub_main): Don't export prefix.
25820 It will be done later.
25821 * normal/context.c: New file.
25822 * normal/main.c (free_menu): Use grub_env_unset_menu.
25823 (grub_normal_add_menu_entry): Use grub_env_get_menu.
25824 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
25825 (GRUB_MOD_INIT(normal)): Call grub_context_init.
25826 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
25827
25828 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25829
25830 setpci support.
25831
25832 * commands/setpci.c: New file.
25833 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
25834 (setpci_mod_SOURCES): New variable.
25835 (setpci_mod_CFLAGS): Likewise.
25836 (setpci_mod_LDFLAGS): Likewise.
25837
25838 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25839
25840 Byte-addressable PCI configuration space.
25841
25842 * bus/pci.c (grub_pci_make_address): Use byte address instead of
25843 dword address.
25844 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
25845 GRUB_PCI_REG_CACHELINE.
25846 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
25847 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
25848 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
25849 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
25850 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
25851 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
25852 grub_pci_make_address.
25853 (lock_rom_area): Likewise.
25854 * commands/lspci.c (grub_lspci_iter): Use macroses
25855 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
25856 of grub_pci_make_address.
25857 * disk/ata.c (grub_ata_pciinit): Likewise.
25858 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
25859 (GRUB_PCI_REG_VENDOR): Likewise.
25860 (GRUB_PCI_REG_DEVICE): Likewise.
25861 (GRUB_PCI_REG_COMMAND): Likewise.
25862 (GRUB_PCI_REG_STATUS): Likewise.
25863 (GRUB_PCI_REG_REVISION): Likewise.
25864 (GRUB_PCI_REG_CLASS): Likewise.
25865 (GRUB_PCI_REG_CACHELINE): Likewise.
25866 (GRUB_PCI_REG_LAT_TIMER): Likewise.
25867 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
25868 (GRUB_PCI_REG_BIST): Likewise.
25869 (GRUB_PCI_REG_ADDRESSES): Likewise.
25870 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25871 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25872 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25873 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25874 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25875 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
25876 (GRUB_PCI_REG_CIS_POINTER): Likewise.
25877 (GRUB_PCI_REG_SUBVENDOR): Likewise.
25878 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
25879 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
25880 (GRUB_PCI_REG_CAP_POINTER): Likewise.
25881 (GRUB_PCI_REG_IRQ_LINE): Likewise.
25882 (GRUB_PCI_REG_IRQ_PIN): Likewise.
25883 (GRUB_PCI_REG_MIN_GNT): Likewise.
25884 (GRUB_PCI_REG_MAX_LAT): Likewise.
25885 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
25886 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
25887 * video/efi_uga.c (find_framebuf): Likewise.
25888 * video/sm712.c (grub_video_sm712_setup): Likewise.
25889 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
25890 space.
25891
25892 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25893
25894 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
25895 can be reliably determined to be supported.
25896
25897 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25898
25899 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
25900 that VESA is supported.
25901 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
25902 supported.
25903
25904 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25905
25906 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
25907
25908 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25909
25910 * util/misc.c (make_system_path_relative_to_its_root): Work around
25911 special-casing of "/", as previous incarnation of this routine did.
25912
25913 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25914
25915 Fix any-emu compilation.
25916
25917 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
25918 * grub_bin2h_SOURCES: New variable.
25919
25920 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25921
25922 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
25923
25924 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
25925
25926 * util/grub.d/00_header.in: Fix handling of locale_dir.
25927
25928 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25929
25930 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
25931 as possible unifont location (Gentoo).
25932 Reported by: Alexander Brüning
25933
25934 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25935
25936 Don't try to generate lists for kernel.img.
25937
25938 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
25939 (pkglib_MODULES): Remove kernel.img.
25940 (kernel_img_EXPORTS): Removed.
25941 (kernel_img_RELOCATABLE): New variable.
25942 * conf/x86_64-efi.rmk: Likewise.
25943 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
25944
25945 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25946
25947 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
25948 grub_xasprintf or grub_snprintf.
25949 (grub_vsprintf): Likewise.
25950 (grub_snprintf): New proto.
25951 (grub_vsnprintf): Likewise.
25952 (grub_xasprintf): Likewise.
25953 (grub_xvasprintf): Likewise.
25954 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
25955 (grub_sprintf): Removed.
25956 (grub_vsnprintf): New function.
25957 (grub_snprintf): Likewise.
25958 (grub_xvasprintf): Likewise.
25959 (grub_xasprintf): Likewise.
25960 (grub_vsprintf): Renamed to ...
25961 (grub_vsnprintf_real): ...this. New argument max_len.
25962
25963 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
25964
25965 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
25966 fix grub-script-check warning.
25967
25968 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25969
25970 * include/grub/font.h (grub_font_load): Fix prototype.
25971
25972 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25973
25974 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
25975
25976 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25977
25978 * include/grub/x86_64/at_keyboard.h: New file.
25979
25980 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25981
25982 * loader/mips/linux.c: Include missing grub/i18n.h.
25983
25984 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
25985
25986 * normal/menu.c (notify_execution_failure): Clarify error message.
25987
25988 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
25989
25990 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
25991 return value (and revert all return statements). Update users.
25992
25993 2010-01-20 Dan Merillat <debian@dan.merillat.org>
25994
25995 * kern/device.c (grub_device_iterate): Allocate new part_ent
25996 structure based on sizeof (*p) rather than sizeof (p->next), to
25997 account for structure padding.
25998
25999 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
26000 disk is NULL, which might happen for LVM physical volumes with no
26001 LVM signature.
26002
26003 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
26004
26005 * loader/mips/linux.c (grub_cmd_initrd)
26006 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
26007
26008 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
26009
26010 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
26011 (grub_video_video_init, grub_video_bitmap_init)
26012 (grub_font_manager_init, grub_term_gfxterm_init)
26013 (grub_at_keyboard_init): New extern declarations.
26014 (grub_machine_init): Initialize gfxterm and at_keyboard.
26015
26016 * kern/main.c (grub_main): Revert grub_printf delay kludge.
26017
26018 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
26019 `gfxterm.mod' into core image.
26020
26021 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
26022 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
26023 (kernel_img_FORMAT): Copy to ...
26024
26025 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
26026 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
26027 (kernel_img_FORMAT): ... here, and ...
26028
26029 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
26030 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
26031 (kernel_img_FORMAT): ... here.
26032
26033 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
26034 and input (at_keyboard) terminals in kernel.
26035 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
26036
26037 (pkglib_MODULES): Remove `pci.mod'.
26038 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
26039 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
26040 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
26041 (at_keyboard_mod_LDFLAGS): Remove variables.
26042
26043 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
26044
26045 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
26046
26047 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
26048
26049 * include/grub/mips/libgcc.h: Only export symbols for functions
26050 that libgcc provides.
26051
26052 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
26053
26054 MIPS support.
26055
26056 * bus/bonito.c: New file.
26057 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
26058 GRUB_PCI_NUM_DEVICES.
26059 * term/i386/pc/serial.c: Move to ...
26060 * term/serial.c: ... here. All users updated.
26061 * util/i386/pc/grub-mkimage.c: Move to ...
26062 * util/grub-mkrawimage.c: ... here. All users updated.
26063 * term/i386/pc/at_keyboard.c: Move to ...
26064 * term/at_keyboard.c: ... here. All users updated.
26065 * conf/mips-qemu-mips.rmk: New file.
26066 * conf/mips-yeeloong.rmk: Likewise.
26067 * conf/mips.rmk: Likewise.
26068 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
26069 mipsel-qemu-mips.
26070 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
26071 to port addresses.
26072 (grub_ata_pciinit): Support CS5536.
26073 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
26074 * font/font_cmd.c (loadfont_command): Open file before passing it to
26075 grub_font_load.
26076 (pseudo_file_read): New function.
26077 (pseudo_file_close): Likewise.
26078 (pseudo_fs): New structure.
26079 (load_font_module): New function.
26080 (GRUB_MOD_INIT(font_manager)): Load embedded font.
26081 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
26082 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
26083 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
26084 * include/grub/i386/at_keyboard.h: Split into ...
26085 * include/grub/at_keyboard.h: ... this ...
26086 * include/grub/i386/at_keyboard.h: ... and this.
26087 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
26088 New prototype.
26089 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
26090 updated.
26091 (grub_elf64_size): Likewise.
26092 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
26093 filename.
26094 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
26095 * include/grub/i386/coreboot/serial.h: Rewritten.
26096 * include/grub/i386/ieee1275/serial.h: Include
26097 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
26098 * include/grub/i386/pc/serial.h: Moved from here ...
26099 * include/grub/serial.h: ... to here. All users updated.
26100 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
26101 (GRUB_PCI_NUM_BUS): Likewise.
26102 (GRUB_PCI_NUM_DEVICES): Likewise.
26103 (grub_pci_device_map_range): Add missing volatile keyword.
26104 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
26105 * include/grub/mips/at_keyboard.h: New file.
26106 * include/grub/mips/cache.h: Likewise.
26107 * include/grub/mips/io.h: Likewise.
26108 * include/grub/mips/kernel.h: Likewise.
26109 * include/grub/mips/libgcc.h: Likewise.
26110 * include/grub/mips/pci.h: Likewise.
26111 * include/grub/mips/qemu-mips/boot.h: Likewise.
26112 * include/grub/mips/qemu-mips/kernel.h: Likewise.
26113 * include/grub/mips/qemu-mips/loader.h: Likewise.
26114 * include/grub/mips/qemu-mips/memory.h: Likewise.
26115 * include/grub/mips/qemu-mips/serial.h: Likewise.
26116 * include/grub/mips/qemu-mips/time.h: Likewise.
26117 * include/grub/mips/relocator.h: Likewise.
26118 * include/grub/mips/time.h: Likewise.
26119 * include/grub/mips/types.h: Likewise.
26120 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
26121 * include/grub/mips/yeeloong/boot.h: Likewise.
26122 * include/grub/mips/yeeloong/kernel.h: Likewise.
26123 * include/grub/mips/yeeloong/loader.h: Likewise.
26124 * include/grub/mips/yeeloong/memory.h: Likewise.
26125 * include/grub/mips/yeeloong/pci.h: Likewise.
26126 * include/grub/mips/yeeloong/serial.h: Likewise.
26127 * include/grub/mips/yeeloong/time.h: Likewise.
26128 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
26129 * kern/elf.c (grub_elf32_size): New parameter. All users
26130 updated.
26131 (grub_elf64_size): Likewise.
26132 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
26133 Load modules before saying "Welcome to GRUB!".
26134 Call grub_refresh after saying "Welcome to GRUB!".
26135 * kern/mips/cache.S: New file.
26136 * kern/mips/cache_flush.S: Likewise.
26137 * kern/mips/dl.c: Likewise.
26138 * kern/mips/init.c: Likewise.
26139 * kern/mips/qemu-mips/init.c: Likewise.
26140 * kern/mips/startup.S: Likewise.
26141 * kern/mips/yeeloong/init.c: Likewise.
26142 * kern/term.c (grub_putcode): Handle NULL terminal.
26143 (grub_getcharwidth): Likewise.
26144 (grub_getkey): Likewise.
26145 (grub_checkkey): Likewise.
26146 (grub_getkeystatus): Likewise.
26147 (grub_getxy): Likewise.
26148 (grub_getwh): Likewise.
26149 (grub_gotoxy): Likewise.
26150 (grub_cls): Likewise.
26151 (grub_setcolorstate): Likewise.
26152 (grub_setcolor): Likewise.
26153 (grub_getcolor): Likewise.
26154 (grub_refresh): Likewise.
26155 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
26156 (write_jump): Add hatch nop.
26157 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
26158 * lib/mips/setjmp.S: New file.
26159 * loader/mips/linux.c: Likewise.
26160 * term/i386/pc/at_keyboard.c: Move from here ...
26161 * term/at_keyboard.c: ... to here.
26162 * term/i386/pc/serial.c: Moved from here ...
26163 * term/serial.c: ... to here. All users updated.
26164 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
26165 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
26166 (serial_translate_key_sequence): Avoid deadlock.
26167 (grub_serial_getkey): Handle backspace.
26168 (grub_serial_putchar): Fix newline handling.
26169 * util/i386/pc/grub-mkimage.c: Move from here ...
26170 * util/grub-mkrawimage.c: ... to here. All users updated.
26171 (generate_image): New parameters 'font_path' and 'format'.
26172 Support embedding font.
26173 Use grub_host_to_target* instead of grub_cpu_to_le*.
26174 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
26175 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
26176 (options): New option "--font".
26177 (usage): Likewise.
26178 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
26179 (main): Handle "--font".
26180 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
26181 (grub_virtual_screen_setup): Set bg_color_display.
26182 (redraw_screen_rect): Use bg_color_display instead of incorrect
26183 bg_color.
26184 (grub_gfxterm_cls): Likewise.
26185 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
26186 Support embedding config file.
26187 (add_segments): Likewise.
26188 (options): New option "--config".
26189 (main): Handle "--config".
26190 * video/sm712.c: New file.
26191
26192 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26193
26194 Fix parallel builds.
26195
26196 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
26197 font.c depend on ascii.h).
26198
26199 2010-01-12 Carles Pina i Estany <carles@pina.cat>
26200
26201 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
26202
26203 2010-01-11 Carles Pina i Estany <carles@pina.cat>
26204
26205 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
26206 By default: disabled.
26207 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
26208 parameter.
26209
26210 2010-01-10 Carles Pina i Estany <carles@pina.cat>
26211
26212 * font/font.c: Update copyright years.
26213 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
26214
26215 2010-01-10 Carles Pina i Estany <carles@pina.cat>
26216
26217 * font/font.c: Include `ascii.h'.
26218 (ASCII_BITMAP_SIZE): New macro.
26219 (ascii_font_glyph): Define.
26220 (ascii_glyph_lookup): New function.
26221 (grub_font_get_string_width): Change comment. If glyph not found, use
26222 ascii_glyph_lookup.
26223 (grub_font_get_glyph_with_fallback): If glyph not available returns
26224 ascii_glyph_lookup.
26225 * util/grub-mkfont.c (file_formats): New enum.
26226 (options): Add `ascii-bitmaps' new option.
26227 (usage): Add `asii-bitmaps' new option.
26228 (write_font_ascii_bitmap): New function.
26229 (write_font): Rename to ...
26230 (write_font_p2): ... this. Remove print_glyphs call.
26231 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
26232 used. Call print_glyphs.
26233 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
26234
26235 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
26236
26237 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
26238 (grub_bin2h_SOURCES): New variable.
26239 * util/bin2h.c: New file.
26240
26241 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26242
26243 * include/multiboot.h: Resynced with spec.
26244 * include/multiboot2.h: Likewise.
26245 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
26246 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
26247
26248 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26249
26250 * include/grub/term.h (grub_term_register_input,
26251 grub_term_register_output): Check return of terminal init()
26252 routines, and abort if errors are raised.
26253
26254 * commands/terminal.c: Update copyright year.
26255
26256 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26257
26258 * commands/terminal.c (grub_cmd_terminal_input)
26259 (grub_cmd_terminal_output): Check return of terminal init()
26260 routines, and abort if errors are raised.
26261
26262 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
26263
26264 * include/grub/i386/bsd.h: Fix include pathes.
26265
26266 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
26267
26268 Add missing *BSD copyright headers.
26269
26270 * include/grub/aout.h: Add BSD licence.
26271 * include/grub/i386/bsd.h: Parts under different licences moved to ...
26272 * include/grub/i386/freebsd_linker.h: ... here,
26273 * include/grub/i386/freebsd_reboot.h: ... here,
26274 * include/grub/i386/netbsd_bootinfo.h: ... here,
26275 * include/grub/i386/netbsd_reboot.h: ... here,
26276 * include/grub/i386/openbsd_bootarg.h: ... here,
26277 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
26278 licence to each file.
26279
26280 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26281
26282 * acinclude.m4: Remove `nop' assembly instruction; it's not
26283 implemented by all architectures.
26284
26285 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26286
26287 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
26288 ELILO. This is no longer necessary.
26289
26290 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
26291
26292 Added new tool, grub-scrit-check to verify grub.cfg syntax.
26293
26294 * util/grub-script-check.c: grub-script-check tool.
26295 * conf/common.rmk: Make rules for grub-script-check.
26296
26297 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26298
26299 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
26300 spotting it back in 2008. Shame on me for forgetting he did.
26301
26302 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
26303
26304 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26305
26306 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
26307 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
26308 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
26309 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
26310 (GRUB_VIDEO_TYPE_EFI): Rename to ...
26311 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
26312
26313 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
26314
26315 * include/grub/test.h: Add license header.
26316 * tests/example_functional_test.c: Likewise.
26317 * tests/example_unit_test.c: Likewise.
26318 * tests/lib/functional_test.c: Likewise.
26319 * tests/lib/test.c: Likewise.
26320 * tests/lib/unit_test.c: Likewise.
26321
26322 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
26323
26324 Use flag-based instead of hook-based video mode selection and "auto"
26325 keyword.
26326
26327 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
26328 (grub_video_set_mode): Changed prototype. All users updated.
26329 (grub_video_check_mode_flag): New inline function.
26330 * video/video.c (parse_modespec): New function.
26331 (grub_video_set_mode): Parse flags and keywords.
26332
26333 2010-01-17 Carles Pina i Estany <carles@pina.cat>
26334
26335 * util/misc.c (grub_util_info): Fix the order of the parameters in a
26336 fprintf call.
26337
26338 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
26339
26340 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
26341
26342 2010-01-16 Carles Pina i Estany <carles@pina.cat>
26343
26344 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
26345 string.
26346 * util/grub-emu.c (usage): Likewise.
26347 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
26348 * util/i386/efi/grub-mkimage.c (usage): Likewise.
26349 * util/i386/pc/grub-mkimage.c (usage): Likewise.
26350 * util/i386/pc/grub-setup.c (usage): Likewise.
26351
26352 2010-01-16 Carles Pina i Estany <carles@pina.cat>
26353
26354 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
26355 the message.
26356 (grub_util_info): Likewise.
26357 (grub_util_error): Likewise.
26358 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
26359 and/or new lines in `grub_util_warna', `grub_util_info',
26360 `grub_util_error' calls.
26361 * util/getroot.c: Likewise.
26362 * util/grub-editenv.c: Likewise.
26363 * util/grub-emu.c: Likewise.
26364 * util/grub-fstest.c: Likewise.
26365 * util/grub-mkdevicemap.c: Likewise.
26366 * util/grub-mkfont.c: Likewise.
26367 * util/grub-mkpasswd-pbkdf2.c: Likewise.
26368 * util/grub-mkrelpath.c: Likewise.
26369 * util/grub-pe2elf.c: Likewise.
26370 * util/grub-probe.c: Likewise.
26371 * util/hostdisk.c: Likewise.
26372 * util/i386/efi/grub-mkimage.c: Likewise.
26373 * util/i386/pc/grub-mkimage.c: Likewise.
26374 * util/i386/pc/grub-setup.c: Likewise.
26375 * util/ieee1275/ofpath.c: Likewise.
26376 * util/mkisofs/eltorito.c: Likewise.
26377 * util/mkisofs/rock.c: Likewise.
26378 * util/mkisofs/write.c: Likewise.
26379 * util/raid.c: Likewise.
26380 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
26381 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26382
26383 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
26384
26385 Enable multiboot on non-pc.
26386
26387 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
26388 multiboot.mod and multiboot2.mod to ...
26389 * conf/i386.rmk (pkglib_MODULES): ... here.
26390 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
26391 Moved to ...
26392 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
26393 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
26394 Moved to ...
26395 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
26396 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
26397 Moved to ...
26398 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
26399 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
26400 Moved to ...
26401 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
26402 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
26403 relocator.mod.
26404 (ata_mod_SOURCES): Removed.
26405 (ata_mod_CFLAGS): Likewise.
26406 (ata_mod_LDFLAGS): Likewise.
26407 (relocator_mod_SOURCES): Removed.
26408 (relocator_mod_CFLAGS): Likewise.
26409 (relocator_mod_ASFLAGS): Likewise.
26410 (relocator_mod_LDFLAGS): Likewise.
26411 Include i386.mk.
26412 * include/grub/x86_64/multiboot.h: New file.
26413 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
26414 Terminate EFI.
26415
26416 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
26417
26418 Video multiboot support.
26419
26420 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
26421 New prototype.
26422 * include/multiboot.h: Resynced with multiboot specification.
26423 * include/multiboot2.h: Likewise.
26424 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
26425 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
26426 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
26427 (HAS_VGA_TEXT): Likewise.
26428 (accepts_video): New variable.
26429 (grub_multiboot_set_accepts_video): New function.
26430 (grub_multiboot_get_mbi_size): Account for video structures.
26431 (set_video_mode): New function.
26432 (retrieve_video_parameters): Likewise.
26433 (grub_multiboot_make_mbi): Fill video fields.
26434
26435 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
26436
26437 Video driver ids.
26438
26439 * include/grub/video.h (grub_video_driver_id): New type.
26440 (grub_video_adapter): New member 'id'. All users updated.
26441 (grub_video_get_driver_id): New proto.
26442 * video/video.c (grub_video_get_driver_id): New function.
26443
26444 2010-01-14 Carles Pina i Estany <carles@pina.cat>
26445
26446 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
26447 `var=val'.
26448
26449 2010-01-14 Carles Pina i Estany <carles@pina.cat>
26450
26451 * normal/cmdline.c (print_completion): Gettextizze.
26452
26453 2001-01-14 Carles Pina i Estany <carles@pina.cat>
26454
26455 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
26456
26457 2010-01-14 Carles Pina i Estany <carles@pina.cat>
26458
26459 * gettext/gettext.c (grub_gettext_translate): Push and pop
26460 grub_errno.
26461 (grub_gettext_delete_list): Change comment style.
26462 * kern/err.c (grub_error): Gettextizze.
26463 (grub_fatal): Gettextizze.
26464
26465 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
26466
26467 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
26468 (grub_linux16_real_boot): ... this.
26469 * kern/i386/loader.S: Likewise.
26470 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
26471 (grub_linux16_boot): New function. Switches to text mode and calls
26472 grub_linux16_real_boot().
26473
26474 * loader/i386/bsd.c: Include `<grub/video.h>'.
26475 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
26476 text mode before calling grub_unix_real_boot().
26477
26478 * loader/i386/multiboot.c: Include `<grub/video.h>'.
26479 (grub_multiboot_boot): Switch to text mode before calling
26480 grub_relocator32_boot().
26481
26482 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
26483 (grub_chainloader_boot): Switch to text mode before calling
26484 grub_chainloader_real_boot().
26485
26486 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
26487 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
26488
26489 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
26490 non-empty value.
26491
26492 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
26493 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
26494
26495 * util/grub.d/00_header.in: Define a "savedefault" function for use
26496 in menu entries.
26497 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
26498
26499 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
26500 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
26501
26502 * util/grub-mkconfig_lib.in (save_default_entry): Only set
26503 saved_entry if boot_once is unset.
26504 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
26505 previous saved entry (i.e. grub-reboot).
26506
26507 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
26508
26509 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
26510
26511 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
26512
26513 * util/grub.d/00_header.in: Use `set var=val' rather than plain
26514 `var=val'.
26515 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
26516
26517 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
26518
26519 * util/grub-reboot.in: Fix --version output.
26520 * util/grub-set-default.in: Likewise.
26521
26522 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
26523
26524 * util/grub.d/00_header.in: Silently ignore zero-sized environment
26525 blocks.
26526
26527 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
26528
26529 * util/grub.d/00_header.in: Quote the value assigned to `default',
26530 in case it contains spaces.
26531
26532 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
26533
26534 * util/grub.d/30_os-prober.in: Fix merge error that moved a
26535 `save_default_entry' call from the macosx case to the linux case.
26536
26537 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
26538 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
26539
26540 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
26541 in `chosen' environment variable.
26542 * normal/menu_text.c (get_entry_number): Check if the variable
26543 matches the title of a menu entry.
26544 (run_menu): Pass menu to get_entry_number.
26545
26546 * util/grub-reboot.in: New file.
26547 * util/grub-set-default.in: New file.
26548 * conf/common.rmk (grub-reboot): New utility.
26549 (grub-set-default): New utility.
26550
26551 * util/grub-mkconfig_lib.in (save_default_entry): New function.
26552 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
26553 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
26554 move it to `saved_entry' for the next boot. Load environment on
26555 initialisation.
26556 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
26557 * util/grub.d/10_hurd.in: Likewise.
26558 * util/grub.d/10_linux.in (linux_entry): Likewise.
26559 * util/grub.d/10_windows.in: Likewise.
26560 * util/grub.d/30_os-prober.in: Likewise.
26561
26562 * util/grub-install.in: Create environment block.
26563 * util/i386/efi/grub-install.in: Likewise.
26564 * util/ieee1275/grub-install.in: Likewise.
26565 * util/sparc64/ieee1275/grub-install.in: Likewise.
26566
26567 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
26568
26569 Unit testing framework for GRUB.
26570
26571 * Makefile.in: Test framework build rules for 'make check'.
26572 * conf/tests.rmk: Build rules for individual tests and framework.
26573
26574 * include/grub/test.h: Header file for whitebox tests.
26575 * tests/lib/functional_test.c: Framework support for whitebox
26576 functional tests.
26577 * tests/lib/test.c: Common whitebox testing code for unit and
26578 functional tests.
26579 * tests/lib/unit_test.c: Framework support for whitebox unit
26580 tests.
26581
26582 * tests/util/grub-shell-tester.in: Support utility for grub-script
26583 tests.
26584 * tests/util/grub-shell.in: Utility to execute grub-script
26585 commands in a Qemu instance.
26586
26587 * tests/example_functional_test.c: Example whitebox functional
26588 test.
26589 * tests/example_grub_script_test.in: Example grub-script test.
26590 * tests/example_scripted_test.in: Example scripted test.
26591 * tests/example_unit_test.c: Example whitebox unit test.
26592
26593 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
26594
26595 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
26596 Add loader/i386/multiboot_mbi.c.
26597 (multiboot2_mod_SOURCES): Likewise.
26598 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
26599 (multiboot2_mod_SOURCES): Likewise.
26600 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
26601 (grub_multiboot_make_mbi): Likewise.
26602 (grub_multiboot_free_mbi): Likewise.
26603 (grub_multiboot_init_mbi): Likewise.
26604 (grub_multiboot_add_module): Likewise.
26605 (grub_multiboot_set_bootdev): Likewise.
26606 * loader/i386/multiboot.c (mbi): Removed.
26607 (mbi_dest): Likewise.
26608 (alloc_mbi): New variable.
26609 (grub_multiboot_payload_size): Removed. All users updated.
26610 (grub_multiboot_pure_size): New variable.
26611 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
26612 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
26613 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
26614 (grub_fill_multiboot_mmap): Likewise.
26615 (grub_multiboot_get_bootdev): Likewise.
26616 (grub_multiboot): Use multiboot_mbi functions.
26617 * loader/i386/multiboot_mbi.c: New file.
26618
26619 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
26620
26621 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
26622 it would result in module crash.
26623
26624 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
26625
26626 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
26627 (grub_ofconsole_getwh): Split to ...
26628 (grub_ofconsole_getwh): ... this.
26629 (grub_ofconsole_dimensions): ...and this.
26630 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
26631
26632 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
26633
26634 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
26635
26636 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
26637
26638 * loader/i386/pc/multiboot2.c: Removed stalled file.
26639
26640 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
26641
26642 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
26643 Reported by: Grégoire Sutre
26644
26645 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
26646
26647 * util/misc.c (canonicalize_file_name): New function.
26648 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
26649 instead of realpath().
26650
26651 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
26652
26653 * util/grub-install.in (usage): Clarify meaning of --root-directory,
26654 and make it clearer that it's optional. Based on confusion
26655 witnessed on IRC.
26656
26657 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
26658
26659 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
26660 in premature implicit newline.
26661
26662 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
26663
26664 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
26665 which resulted in garbled command line at the end of screen.
26666
26667 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
26668
26669 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
26670 initialization with similar approach as with other Linux loaders.
26671
26672 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
26673
26674 Fix i386-ieee1275 build.
26675
26676 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
26677 and grub_term_height() for video_{width,height} initialization.
26678
26679 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
26680
26681 Fix grub-emu build.
26682
26683 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
26684
26685 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
26686 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
26687
26688 Support for multiple terminals.
26689
26690 * Makefile.in (pkglib_DATA): terminal.lst.
26691 (terminal.lst): New target.
26692 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
26693 (GRUB_MOD_INIT(handler)): Likewise.
26694 (GRUB_MOD_FINI(handler)): Likewise.
26695 * commands/help.c (grub_cmd_help): Handle multiple terminals.
26696 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
26697 * commands/sleep.c (do_print): Use grub_term_restore_pos.
26698 (grub_cmd_sleep): Use grub_term_save_pos.
26699 * commands/terminal.c: New file.
26700 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
26701 commands/terminal.c and lib/charset.c.
26702 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
26703 (pkglib_MODULES): Add terminal.mod.
26704 (terminal_mod_SOURCES): New variable.
26705 (terminal_mod_CFLAGS): Likewise.
26706 (terminal_mod_LDFLAGS): Likewise.
26707 * genhandlerlist.sh: Don't handle terminals.
26708 * genmk.rb: Generate terminal-*.lst.
26709 * genterminallist.sh: New file.
26710 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
26711 (grub_is_valid_utf8): Likewise.
26712 (grub_utf8_to_ucs4_alloc): Likewise.
26713 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
26714 (grub_menu_register_viewer): Changed argument.
26715 (grub_menu_try_text): New proto.
26716 (grub_gfxmenu_try_hook): New declaration.
26717 * include/grub/normal.h (grub_normal_exit_level): New declaration.
26718 (grub_menu_init_page): Additional argument term.
26719 (grub_normal_init_page): Likewise.
26720 (grub_cmdline_get): Arguments simplified.
26721 (grub_utf8_to_ucs4_alloc): Removed.
26722 (grub_print_ucs4): Additional argument term.
26723 (grub_getstringwidth): Likewise.
26724 (grub_print_message_indented): Likewise.
26725 (grub_menu_text_register_instances): New proto.
26726 (grub_show_menu): Likewise.
26727 (read_terminal_list): Likewise.
26728 (grub_set_more): Likewise.
26729 * include/grub/parser.h: Include handler.h.
26730 * include/grub/reader.h: Rewritten.
26731 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
26732 (GRUB_TERM_WIDTH): Changed to function.
26733 (GRUB_TERM_HEIGHT): Likewise.
26734 (GRUB_TERM_BORDER_WIDTH): Likewise.
26735 (GRUB_TERM_BORDER_HEIGHT): Likewise.
26736 (GRUB_TERM_NUM_ENTRIES): Likewise.
26737 (GRUB_TERM_ENTRY_WIDTH): Likewise.
26738 (GRUB_TERM_CURSOR_X): Likewise.
26739 (grub_term_input_class): Likewise.
26740 (grub_term_output_class): Likewise.
26741 (grub_term_outputs_disabled): New declaration.
26742 (grub_term_inputs_disabled): Likewise.
26743 (grub_term_outputs): Likewise.
26744 (grub_term_inputs): Likewise.
26745 (grub_term_register_input): Rewritten.
26746 (grub_term_register_output): Likewise.
26747 (grub_term_unregister_input): Likewise.
26748 (grub_term_unregister_output): Likewise.
26749 (FOR_ACTIVE_TERM_INPUTS): New macro.
26750 (FOR_DISABLED_TERM_INPUTS): Likewise.
26751 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
26752 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
26753 * include/grub/terminfo.h: Add oterm argument to all protypes.
26754 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
26755 Use grub_rescue_run.
26756 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
26757 All users updated.
26758 * kern/reader.c: Removed. All users updated.
26759 * kern/rescue_reader.c (grub_rescue_init): Removed.
26760 (grub_rescue_reader): Likewise.
26761 (grub_register_rescue_reader): Likewise.
26762 (grub_rescue_run): New function based on kern/reader.c.
26763 * kern/term.c: Adapted for multiterm.
26764 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
26765 (grub_is_valid_utf8): Likewise.
26766 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
26767 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
26768 right terminal.
26769 * loader/i386/linux.c (grub_linux_boot): Likewise.
26770 * normal/auth.c (grub_username_get): New function.
26771 (grub_auth_check_authentication): Use grub_username_get.
26772 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
26773 * normal/color.c: Adapt for multiterm.
26774 * normal/main.c (read_config_file): Don't use grub_reader_loop.
26775 (grub_normal_init_page): Additional argument term.
26776 (read_lists): Call read_terminal_lists.
26777 (grub_enter_normal_mode): Call grub_cmdline_run.
26778 Handle grub_normal_exit_level.
26779 (grub_cmd_normal): Make reentrant.
26780 (grub_cmd_normal_exit): New function.
26781 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
26782 * normal/menu.c: Adapt for multiterm.
26783 * normal/menu_entry.c: Likewise.
26784 * normal/menu_text.c: Likewise.
26785 * normal/menu_viewer.c: Removed. All users updated.
26786 * normal/term.c: New file.
26787 * util/console.c: Change order of includes to workaround a bug in
26788 ncurses headers.
26789 * term/terminfo.c: New argument oterm on all exported functions.
26790 All users updated.
26791 * util/grub-editenv.c (grub_term_input_class): Removed.
26792 (grub_term_output_class): Likewise.
26793
26794 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
26795
26796 Make loader output a bit more user-friendly.
26797
26798 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
26799 is being loaded. Likewise for the Hurd.
26800
26801 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
26802 that kernel of FreeBSD ${version} is being loaded.
26803
26804 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
26805 grub_dprintf().
26806 (grub_cmd_initrd): Likewise.
26807 * util/grub.d/10_linux.in (linux_entry): Print message indicating
26808 that Linux ${version} is being loaded. Likewise for initrd.
26809
26810 2010-01-09 Carles Pina i Estany <carles@pina.cat>
26811
26812 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
26813
26814 2010-01-08 Carles Pina i Estany <carles@pina.cat>
26815
26816 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
26817 (GRUB_MOD_INIT): Gettextizze.
26818 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
26819 (GRUB_MOD_INIT): Gettextizze.
26820 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
26821 (grub_cmd_linux): Capitalise Linux.
26822 (GRUB_MOD_INIT): Gettextizze.
26823 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
26824 (grub_cmd_linux): Capitalise Linux.
26825 (GRUB_MOD_INIT): Gettextizze.
26826 * loader/i386/linux.c: Include `<grub/i18n.h>'.
26827 (grub_cmd_linux): Capitalise Linux.
26828 (GRUB_MOD_INIT): Gettextizze.
26829 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
26830 (GRUB_MOD_INIT): Gettextizze.
26831 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
26832 (grub_cmd_linux): Capitalise Linux.
26833 (GRUB_MOD_INIT): Gettextizze.
26834 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
26835 (grub_cpu_xnu_init): Gettextizze.
26836 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
26837 (GRUB_MOD_INIT): Gettextizze.
26838 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
26839 (GRUB_MOD_INIT): Gettextizze.
26840 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
26841 (grub_linux_load64): Capitalise Linux.
26842 (GRUB_MOD_INIT): Gettextizze.
26843 * loader/xnu.c: Include `<grub/i18n.h>'.
26844 (GRUB_MOD_INIT): Gettextizze.
26845 * po/POTFILES: Add `loader/efi/appleloader.c',
26846 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
26847 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
26848 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
26849 `loader/i386/xnu.c', `loader/multiboot_loader.c',
26850 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
26851 and `loader/xnu.c'.
26852
26853 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
26854
26855 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
26856
26857 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
26858
26859 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
26860 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
26861 * util/mkisofs/mkisofs.c (main): Readjust --version output.
26862
26863 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
26864
26865 Reset Multiboot 2 support. New loader implements the draft in
26866 /branches/multiboot2 and shares as much code as possible with the
26867 production Multiboot 1 implementation.
26868
26869 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
26870 * loader/multiboot2.c: Likewise.
26871 * loader/i386/multiboot_helper.S: Likewise.
26872 * include/multiboot2.h: Replace with latest version from the draft
26873 in /branches/multiboot2.
26874
26875 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
26876 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
26877 and `loader/multiboot2.c'.
26878 (pkglib_MODULES): Add `multiboot2.mod'.
26879 (multiboot2_mod_SOURCES): New variable.
26880 (multiboot2_mod_LDFLAGS): Likewise.
26881 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
26882
26883 * conf/i386-pc.rmk: Likewise.
26884
26885 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
26886 (multiboot_mod_SOURCES): Remove variable.
26887 (multiboot_mod_LDFLAGS): Likewise.
26888 (multiboot_mod_CFLAGS): Likewise.
26889
26890 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
26891 `<multiboot2.h>' instead of `<multiboot.h>'.
26892 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
26893 (MULTIBOOT_HEADER_MAGIC): New macros.
26894
26895 * loader/multiboot_loader.c (module_version_status): Remove variable.
26896 (find_multi_boot2_header): Remove function.
26897 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
26898 logic. Always check for the Multiboot version we're compiling for.
26899 (grub_cmd_module_loader): Likewise.
26900 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
26901 command instead of `multiboot'.
26902
26903 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
26904
26905 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
26906 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
26907 all users.
26908
26909 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
26910 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
26911
26912 Fix breakage introduced with previous commit.
26913
26914 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
26915 commands.
26916 * normal/handler.c (read_handler_list): Revert part of previous commit
26917 affecting this file.
26918 * normal/main.c (read_lists): Move read_handler_list() call back to ...
26919 (grub_normal_execute): ... here.
26920
26921 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
26922
26923 Merge prefix-redefinition-fix branch.
26924
26925 * normal/autofs.c (read_fs_list): Make function capable of being
26926 run multiple times, gracefuly replacing the previous data
26927 structures.
26928 * normal/dyncmd.c (read_command_list): Likewise.
26929 * normal/handler.c (read_handler_list): Likewise.
26930 * normal/main.c (read_lists): New function. Calls all the
26931 list reading functions.
26932 (grub_normal_execute): Use read_lists() instead of calling all
26933 list reading functions explicitly. Register read_lists() as a
26934 variable hook attached to ${prefix}.
26935
26936 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
26937
26938 Merge crypto branch.
26939
26940 * Makefile.in (pkglib_DATA): Add crypto.lst.
26941 (crypto.lst): New target.
26942 * commands/hashsum.c: New file.
26943 * commands/password.c (check_password): Use grub_crypto_memcmp.
26944 * commands/password_pbkdf2.c: New file.
26945 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
26946 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
26947 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
26948 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
26949 -I$(srcdir)/lib/libgcrypt_wrap.
26950 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
26951 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
26952 password_pbkdf2.mod.
26953 (crypto_mod_SOURCES): New variable.
26954 (crypto_mod_CFLAGS): Likewise.
26955 (crypto_mod_LDFLAGS): Likewise.
26956 (hashsum_mod_SOURCES): New variable.
26957 (hashsum_mod_CFLAGS): Likewise.
26958 (hashsum_mod_LDFLAGS): Likewise.
26959 (pbkdf2_mod_SOURCES): New variable.
26960 (pbkdf2_mod_CFLAGS): Likewise.
26961 (pbkdf2_mod_LDFLAGS): Likewise.
26962 (password_pbkdf2_mod_SOURCES): New variable.
26963 (password_pbkdf2_mod_CFLAGS): Likewise.
26964 (password_pbkdf2_mod_LDFLAGS): Likewise.
26965 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
26966 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
26967 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
26968 Include conf/gcry.rmk.
26969 * include/grub/auth.h: Rewritten.
26970 * include/grub/crypto.h: New file.
26971 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
26972 * include/grub/normal.h (read_crypto_list): New prototype.
26973 * lib/crypto.c: New file.
26974 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
26975 * lib/pbkdf2.c: Likewise.
26976 * normal/auth.c (grub_auth_strcmp): Removed.
26977 (grub_iswordseparator): Likewise.
26978 (grub_auth_strword): Likewise.
26979 (is_authenticated): Use grub_strword.
26980 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
26981 and grub_strword. Pass entered password to authentication callback.
26982 * normal/crypto.c: New file.
26983 * normal/main.c: Call read_crypto_list.
26984 * util/grub-mkpasswd-pbkdf2.c: New file.
26985 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
26986
26987 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
26988
26989 Fix descent and ascent calculation.
26990
26991 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
26992 (options): New option "asce".
26993 (usage): Likewise.
26994 (add_char): Ignore invalid glyphs for descent calculation.
26995 Calculate ascent from actual content.
26996 (print_glyphs): Use 'asce'.
26997 (write_font): Likewise. Allow ascent override.
26998 (main): Handle "asce" option.
26999
27000 2010-01-06 Carles Pina i Estany <carles@pina.cat>
27001
27002 * kern/err.c: Include `<grub/i18n.h>'.
27003 (grub_print_error): Add full stop. Gettextizze.
27004 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
27005 (grub_bsd_load_elf): Capitalise ELF.
27006 (grub_cmd_freebsd_loadenv): Add `s' in error string.
27007 (grub_cmd_freebsd_module): Likewise.
27008 (grub_cmd_freebsd_module_elf): Likewise.
27009 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
27010
27011 2010-01-06 Carles Pina i Estany <carles@pina.cat>
27012
27013 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
27014 * commands/search_file.c (HELP_MESSAGE): New macro.
27015 * commands/search_label.c (HELP_MESSAGE): Likewise.
27016 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
27017 * po/POTFILES: Add `commands/search_file.c',
27018 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
27019 `commands/search.c'.
27020
27021 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
27022
27023 * config.rpath: Update from Gnulib.
27024
27025 2010-01-05 Yves Blusseau <blusseau@zetam.org>
27026
27027 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
27028
27029 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
27030
27031 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
27032
27033 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
27034
27035 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
27036 arguments to fread so that we get a return value in bytes, rather
27037 than something that will normally be rounded down to 0.
27038 Adjust error handling to avoid producing garbage when size_t is not
27039 the same size as long long.
27040
27041 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
27042
27043 * util/mkisofs/write.c (padblock_write): Check return value of
27044 fread.
27045
27046 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
27047
27048 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
27049 floppy images now.
27050
27051 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
27052
27053 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
27054
27055 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
27056 instead of manual alignment.
27057 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
27058 verbose). Avoid attempts to read past end of the device
27059 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
27060 but GRUB_DISK_CACHE_SIZE may exceed that).
27061
27062 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
27063
27064 * commands/crc.c (grub_cmd_crc): Abort on read errors.
27065 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
27066 it to upper layer.
27067
27068 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
27069
27070 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
27071 New constant.
27072 (grub_efi_piwg_device_path): New structure
27073 (grub_efi_piwg_device_path_t): New type.
27074 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
27075 (devpath_1): Transform to a structure. All users updated.
27076 (devpath_2): Likewise.
27077 (devpath_3): Likewise.
27078 (devpath_4): Likewise.
27079 (devpath_5): Likewise.
27080
27081 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
27082
27083 * loader/efi/appleloader.c: Restored. Update all users.
27084
27085 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
27086
27087 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
27088
27089 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
27090 (struct boot_blocklist): Move from here ...
27091 * include/grub/i386/pc/boot.h [ASM_FILE]
27092 (struct grub_boot_blocklist): ... to here. Update all users.
27093 (setup): Only initialize `start' member of `first_block'
27094 structure. Add assert() calls to verify the other members.
27095
27096 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
27097 (generate_image): Fix broken blocklist length initialization.
27098 Add assert() call to verify blocklist `segment' field.
27099
27100 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
27101
27102 * loader/efi/appleloader.c: Remove. Update all users.
27103
27104 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
27105
27106 * boot/i386/pc/boot.S: Update copyright year.
27107 * boot/i386/pc/cdboot.S: Likewise.
27108 * boot/i386/pc/diskboot.S: Likewise.
27109 * boot/i386/pc/lnxboot.S: Likewise.
27110 * boot/i386/pc/pxeboot.S: Likewise.
27111 * bus/pci.c: Likewise.
27112 * commands/cmp.c: Likewise.
27113 * commands/help.c: Likewise.
27114 * commands/hexdump.c: Likewise.
27115 * commands/i386/pc/halt.c: Likewise.
27116 * commands/i386/pc/play.c: Likewise.
27117 * commands/i386/pc/vbeinfo.c: Likewise.
27118 * commands/ls.c: Likewise.
27119 * commands/test.c: Likewise.
27120 * disk/dmraid_nvidia.c: Likewise.
27121 * disk/i386/pc/biosdisk.c: Likewise.
27122 * disk/ieee1275/nand.c: Likewise.
27123 * disk/ieee1275/ofdisk.c: Likewise.
27124 * disk/lvm.c: Likewise.
27125 * disk/raid.c: Likewise.
27126 * disk/raid6_recover.c: Likewise.
27127 * disk/scsi.c: Likewise.
27128 * fs/affs.c: Likewise.
27129 * fs/cpio.c: Likewise.
27130 * fs/ext2.c: Likewise.
27131 * fs/hfs.c: Likewise.
27132 * fs/iso9660.c: Likewise.
27133 * fs/ntfs.c: Likewise.
27134 * fs/sfs.c: Likewise.
27135 * fs/udf.c: Likewise.
27136 * fs/ufs.c: Likewise.
27137 * fs/xfs.c: Likewise.
27138 * gencmdlist.sh: Likewise.
27139 * genmk.rb: Likewise.
27140 * include/grub/disk.h: Likewise.
27141 * include/grub/efi/api.h: Likewise.
27142 * include/grub/efi/efi.h: Likewise.
27143 * include/grub/efi/pe32.h: Likewise.
27144 * include/grub/elf.h: Likewise.
27145 * include/grub/fs.h: Likewise.
27146 * include/grub/i386/at_keyboard.h: Likewise.
27147 * include/grub/i386/pc/memory.h: Likewise.
27148 * include/grub/i386/pc/vbe.h: Likewise.
27149 * include/grub/i386/pci.h: Likewise.
27150 * include/grub/i386/tsc.h: Likewise.
27151 * include/grub/ieee1275/ieee1275.h: Likewise.
27152 * include/grub/ntfs.h: Likewise.
27153 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
27154 * include/grub/sparc64/libgcc.h: Likewise.
27155 * include/grub/symbol.h: Likewise.
27156 * include/grub/types.h: Likewise.
27157 * include/multiboot2.h: Likewise.
27158 * io/gzio.c: Likewise.
27159 * kern/device.c: Likewise.
27160 * kern/disk.c: Likewise.
27161 * kern/efi/efi.c: Likewise.
27162 * kern/efi/mm.c: Likewise.
27163 * kern/elf.c: Likewise.
27164 * kern/file.c: Likewise.
27165 * kern/i386/dl.c: Likewise.
27166 * kern/i386/pc/init.c: Likewise.
27167 * kern/i386/pc/startup.S: Likewise.
27168 * kern/ieee1275/ieee1275.c: Likewise.
27169 * kern/ieee1275/init.c: Likewise.
27170 * kern/main.c: Likewise.
27171 * kern/mm.c: Likewise.
27172 * kern/powerpc/dl.c: Likewise.
27173 * kern/sparc64/dl.c: Likewise.
27174 * kern/x86_64/dl.c: Likewise.
27175 * lib/hexdump.c: Likewise.
27176 * loader/efi/appleloader.c: Likewise.
27177 * loader/i386/ieee1275/linux.c: Likewise.
27178 * loader/i386/pc/chainloader.c: Likewise.
27179 * loader/i386/pc/linux.c: Likewise.
27180 * loader/i386/pc/multiboot2.c: Likewise.
27181 * loader/ieee1275/multiboot2.c: Likewise.
27182 * loader/multiboot2.c: Likewise.
27183 * loader/multiboot_loader.c: Likewise.
27184 * loader/powerpc/ieee1275/linux.c: Likewise.
27185 * normal/completion.c: Likewise.
27186 * normal/menu_entry.c: Likewise.
27187 * partmap/apple.c: Likewise.
27188 * util/grub.d/10_hurd.in: Likewise.
27189 * util/hostfs.c: Likewise.
27190 * video/readers/png.c: Likewise.
27191
27192 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
27193
27194 * include/grub/misc.h (GNUC_PREREQ): New macro.
27195 (ATTRIBUTE_ERROR): New macro.
27196 * include/grub/list.h (grub_bad_type_cast_real): Use
27197 ATTRIBUTE_ERROR.
27198
27199 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27200
27201 * normal/menu_text.c (print_message): Change messages.
27202
27203 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27204
27205 * normal/menu_entry.c (store_completion): Gettextizze.
27206
27207 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27208
27209 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
27210
27211 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27212
27213 * po/POTFILES: Sort correctly.
27214
27215 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27216
27217 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
27218 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
27219 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
27220 full stop.
27221 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
27222 summary. Gettextizze the strings.
27223 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
27224 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
27225 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
27226 full stop.
27227 (GRUB_MOD_INIT): Remove command name from summary.
27228 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
27229 summary.
27230 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
27231 * term/i386/pc/serial.c (options): Add full stops.
27232 (GRUB_MOD_INIT): Remove command name from the summary.
27233
27234 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27235
27236 * commands/acpi.c: Gettextizze help strings and/or options. Include
27237 `grub/i18n.h' if needed.
27238 * commands/blocklist.c: Likewise.
27239 * commands/boot.c: Likewise.
27240 * commands/cat.c: Likewise.
27241 * commands/cmp.c: Likewise.
27242 * commands/configfile.c: Likewise.
27243 * commands/crc.c: Likewise.
27244 * commands/date.c: Likewise.
27245 * commands/echo.c: Likewise.
27246 * commands/efi/fixvideo.c: Likewise.
27247 * commands/efi/loadbios.c: Likewise.
27248 * commands/gptsync.c: Likewise.
27249 * commands/halt.c: Likewise.
27250 * commands/handler.c: Likewise.
27251 * commands/hdparm.c: Likewise.
27252 * commands/hexdump.c: Likewise.
27253 * commands/i386/cpuid.c: Likewise.
27254 * commands/i386/pc/drivemap.c: Likewise.
27255 * commands/i386/pc/halt.c: Likewise.
27256 * commands/i386/pc/pxecmd.c: Likewise.
27257 * commands/i386/pc/vbeinfo.c: Likewise.
27258 * commands/i386/pc/vbetest.c: Likewise.
27259 * commands/ieee1275/suspend.c: Likewise.
27260 * commands/keystatus.c: Likewise.
27261 * commands/loadenv.c: Likewise.
27262 * commands/ls.c: Likewise.
27263 * commands/lsmmap.c: Likewise.
27264 * commands/lspci.c: Likewise.
27265 * commands/memrw.c: Likewise.
27266 * commands/minicmd.c: Likewise.
27267 * commands/parttool.c: Likewise.
27268 * commands/password.c: Likewise.
27269 * commands/probe.c: Likewise.
27270 * commands/read.c: Likewise.
27271 * commands/reboot.c: Likewise.
27272 * commands/search.c: Likewise.
27273 * commands/sleep.c: Likewise.
27274 * commands/test.c: Likewise.
27275 * commands/true.c: Likewise.
27276 * commands/usbtest.c: Likewise.
27277 * commands/videotest.c: Likewise.
27278 * commands/xnu_uuid.c: Likewise.
27279 * disk/loopback.c: Likewise.
27280 * hello/hello.c: Likewise.
27281 * loader/i386/bsd.c: Likewise.
27282 * term/i386/pc/serial.c: Likewise.
27283 * po/POTFILES: Add new files.
27284
27285 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
27286
27287 * term/i386/pc/at_keyboard.c
27288 (keyboard_controller_wait_untill_ready): Rename to ...
27289 (keyboard_controller_wait_until_ready): ... this. Update all users.
27290
27291 2010-01-01 Carles Pina i Estany <carles@pina.cat>
27292
27293 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
27294 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
27295 string using string width.
27296 * normal/menu_text.c (grub_print_message_indented): Use
27297 grub_print_spaces and not print_spaces.
27298 (print_timeout): Likewise.
27299 (print_spaces): Move to...
27300 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
27301
27302 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
27303
27304 Import from Gnulib.
27305
27306 * gnulib/getdelim.c: New file.
27307 * gnulib/getline.c: Likewise.
27308
27309 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
27310
27311 * include/grub/list.h (grub_assert_fail): Removed.
27312 (grub_bad_type_cast_real): New function.
27313 (grub_bad_type_cast): New macro.
27314 (GRUB_AS_LIST): Use grub_bad_type_cast.
27315 (GRUB_AS_LIST_P): Likewise.
27316 (GRUB_AS_NAMED_LIST): Likewise.
27317 (GRUB_AS_NAMED_LIST_P): Likewise.
27318 (GRUB_AS_PRIO_LIST): Likewise.
27319 (GRUB_AS_PRIO_LIST_P): Likewise.
27320 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
27321
27322 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
27323
27324 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
27325 Fix syntax error.
27326
27327 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
27328
27329 * configure.ac: Check for TARGET_CFLAGS initialization before we
27330 initialize it ourselves (sigh).
27331 Move a few modifications to TARGET_CFLAGS to be unconditional
27332 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
27333 eh_frame)
27334
27335 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
27336 * term/i386/pc/at_keyboard.c
27337 (keyboard_controller_wait_untill_ready): Likewise.
27338 (keyboard_controller_led): Rename `led_status' paramter to avoid
27339 name conflict.
27340
27341 2009-12-28 Carles Pina i Estany <carles@pina.cat>
27342
27343 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
27344 quotes.
27345
27346 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
27347
27348 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
27349
27350 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
27351
27352 * normal/menu_text.c (grub_print_message_indented): Prevent
27353 past-the-end-of-array dereference.
27354
27355 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
27356
27357 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
27358 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
27359
27360 2009-12-27 Carles Pina i Estany <carles@pina.cat>
27361
27362 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
27363 * normal/main.c (grub_normal_read_line): Remove a space from the
27364 default prompt.
27365
27366 2009-12-27 Carles Pina i Estany <carles@pina.cat>
27367
27368 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
27369 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27370 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
27371 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
27372 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27373 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27374 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
27375
27376 2009-12-26 Carles Pina i Estany <carles@pina.cat>
27377
27378 * video/readers/jpeg.c (cmd): Declare.
27379 (grub_cmd_jpegtest): Use `grub_command_t' type.
27380 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
27381 Assign to `cmd'.
27382 (GRUB_MOD_FINI): Use `cmd' to unregister.
27383 * video/readers/png.c (cmd): Declare.
27384 (grub_cmd_pngtest): Use `grub_command_t' type.
27385 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
27386 Assign to `cmd'.
27387 (GRUB_MOD_FINI): Use `cmd' to unregister.
27388 * video/readers/tga.c (cmd): Declare.
27389 (grub_cmd_tgatest): Use `grub_command_t' type.
27390 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
27391 Assign to `cmd'.
27392 (GRUB_MOD_FINI): Use `cmd' to unregister.
27393
27394 2009-12-26 Carles Pina i Estany <carles@pina.cat>
27395
27396 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
27397 stops.
27398 * kern/corecmd.c (grub_register_core_commands): Likewise.
27399 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
27400 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
27401 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
27402 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27403 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
27404 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
27405 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
27406 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
27407 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27408 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27409 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
27410 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
27411 * normal/handler.c (insert_handler): Likewise.
27412 * normal/main.c (GRUB_MOD_INIT): Likewise.
27413 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
27414
27415 2009-12-26 Carles Pina i Estany <carles@pina.cat>
27416
27417 * commands/help.c (grub_cmd_help): Print the command name before the
27418 summary.
27419 (GRUB_MOD_INIT): Remove command name from the summary.
27420 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
27421 string as summary.
27422 * lib/arg.c (find_long): Print the command name before the summary.
27423 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
27424 summary.
27425 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
27426 * commands/cat.c (GRUB_MOD_INIT): Likewise.
27427 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
27428 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
27429 * commands/crc.c (GRUB_MOD_INIT): Likewise.
27430 * commands/date.c (GRUB_MOD_INIT): Likewise.
27431 * commands/echo.c (GRUB_MOD_INIT): Likewise.
27432 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
27433 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
27434 * commands/handler.c (GRUB_MOD_INIT): Likewise.
27435 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
27436 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
27437 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
27438 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
27439 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
27440 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
27441 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
27442 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
27443 * commands/ls.c (GRUB_MOD_INIT): Likewise.
27444 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
27445 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
27446 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
27447 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
27448 * commands/password.c (GRUB_MOD_INIT): Likewise.
27449 * commands/probe.c (GRUB_MOD_INIT): Likewise.
27450 * commands/read.c (GRUB_MOD_INIT): Likewise.
27451 * commands/search.c (GRUB_MOD_INIT): Likewise.
27452 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
27453 * commands/test.c (GRUB_MOD_INIT): Likewise.
27454 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
27455 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
27456 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
27457 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
27458 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
27459 * lib/arg.c (GRUB_MOD_INIT): Likewise.
27460 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
27461 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
27462 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
27463 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
27464 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
27465 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
27466 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
27467 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
27468
27469 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
27470
27471 Use search command for preliminar UUID search.
27472
27473 * commands/search.c: Split into ...
27474 * commands/search_wrap.c: ...this
27475 * commands/search.c: ...and this.
27476 * commands/search_file.c: New file.
27477 * commands/search_label.c: New file.
27478 * commands/search_uuid.c: New file.
27479 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
27480 Add commands/search_wrap.c, commands/search_file.c,
27481 commands/search_label.c and commands/search_uuid.c.
27482 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
27483 (search_mod_SOURCES): Set to commands/search_wrap.c.
27484 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
27485 search_label.mod.
27486 (search_fs_file_mod_SOURCES): New variable.
27487 (search_fs_file_mod_CFLAGS): Likewise.
27488 (search_fs_file_mod_LDFLAGS): Likewise.
27489 (search_label_mod_SOURCES): Likewise.
27490 (search_label_mod_CFLAGS): Likewise.
27491 (search_label_mod_LDFLAGS): Likewise.
27492 (search_fs_uuid_mod_SOURCES): New variable.
27493 (search_fs_uuid_mod_CFLAGS): Likewise.
27494 (search_fs_uuid_mod_LDFLAGS): Likewise.
27495 (fs_file_mod_SOURCES): Removed.
27496 (fs_file_mod_CFLAGS): Likewise.
27497 (fs_file_mod_LDFLAGS): Likewise.
27498 (fs_uuid_mod_SOURCES): Removed.
27499 (fs_uuid_mod_CFLAGS): Likewise.
27500 (fs_uuid_mod_LDFLAGS): Likewise.
27501 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
27502 Set to util/grub-install.in.
27503 * disk/fs_file.c: Removed.
27504 * disk/fs_uuid.c: Likewise.
27505 * include/grub/search.h: New file.
27506 * util/grub-install.in: Handle sparc64.
27507 Create and use load.cfg.
27508 * util/sparc64/ieee1275/grub-install.in: Removed.
27509
27510 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
27511
27512 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
27513 Ignore return status if CF is cleared.
27514 (grub_biosdisk_get_diskinfo_standard): Likewise.
27515
27516 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
27517
27518 * term/i386/pc/at_keyboard.c
27519 (keyboard_controller_wait_untill_ready): New function.
27520 (grub_keyboard_controller_write, grub_keyboard_controller_read)
27521 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
27522 for keyboard polling, rather than duplicate the same loop. This
27523 saves a few bytes in code size.
27524
27525 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
27526
27527 Support for (pxe[:server[:gateway]]) syntax and
27528 use environment variable for PXE.
27529
27530 * commands/i386/pc/pxecmd.c (options): Removed.
27531 (print_ip): Removed.
27532 (grub_cmd_pxe): Removed
27533 (grub_cmd_pxe_unload): New function.
27534 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
27535 (grub_pxe_your_ip): Made static.
27536 (grub_pxe_default_server_ip): Likewise.
27537 (grub_pxe_default_gateway_ip): Likewise.
27538 (grub_pxe_blksize): Likewise.
27539 (parse_ip): New function.
27540 (grub_pxe_open): Support server and gateway specification.
27541 (grub_pxe_close): Free disk->data.
27542 (grub_pxefs_open): Use disk->data.
27543 (grub_pxefs_read): Likewise.
27544 (grub_env_write_readonly): New function.
27545 (set_mac_env): Likewise.
27546 (set_env_limn_ro): Likewise.
27547 (parse_dhcp_vendor): Likewise.
27548 (grub_pxe_detect): Set the environment variables.
27549 (set_ip_env): New function.
27550 (write_ip_env): Likewise.
27551 (grub_env_write_pxe_default_server): Likewise.
27552 (grub_env_write_pxe_default_gateway): Likewise.
27553 (grub_env_write_pxe_blocksize): Likewise.
27554 (GRUB_MOD_INIT(pxe)): Set environment variables.
27555 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
27556 (grub_pxe_mac_addr_t): ... this. All users updated.
27557 (grub_pxe_your_ip): Removed.
27558 (grub_pxe_server_ip): Likewise.
27559 (grub_pxe_gateway_ip): Likewise.
27560 (grub_pxe_blksize): Likewise.
27561
27562 2009-12-25 Carles Pina i Estany <carles@pina.cat>
27563
27564 * commands/help.c: Include `<grub/i18n.h>'.
27565 (grub_cmd_help): Gettextizze.
27566 (GRUB_MOD_INIT): Likewise.
27567 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
27568 (GRUB_MOD_INIT): Gettextizze.
27569 * commands/search.c: Include `<grub/i18n.h>'.
27570 (options): Gettextizze.
27571 (GRUB_MOD_INIT): Gettextizze.
27572 * lib/arg.c: Include `<grub/i18n.h>'.
27573 (help_options): Gettextizze.
27574 (find_long): Likewise.
27575 (grub_arg_show_help): Likewise.
27576 * normal/dyncmd.c: Include `<grub/i18n.h>'.
27577 (read_command_list): Gettextizze.
27578 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
27579 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
27580
27581 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
27582
27583 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
27584 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
27585 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
27586 (led_status): New variable.
27587 (keyboard_controller_led): New function.
27588 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
27589 update led status for caps lock, num lock and scroll lock.
27590
27591 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
27592
27593 * util/hostdisk.c (open_device): Fix a comment.
27594
27595 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27596
27597 * util/grub-install.in (host_os): New variable.
27598 * util/i386/efi/grub-install.in (host_os): Likewise.
27599
27600 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27601
27602 * util/mkisofs/write.c (padblock_write): Abort when given an
27603 excedingly large embed image, instead of silently truncating it.
27604
27605 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27606
27607 * include/multiboot.h: Indentation fixes.
27608
27609 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27610
27611 * include/multiboot.h (struct multiboot_aout_symbol_table)
27612 (struct multiboot_elf_section_header_table): New structure
27613 declarations (stolen from GRUB Legacy).
27614 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
27615 table information.
27616
27617 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
27618 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
27619 type aliases.
27620
27621 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27622
27623 * include/multiboot.h: Make comments src2texi-friendly.
27624
27625 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27626
27627 For consistency with [multiboot]/docs/boot.S.
27628
27629 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
27630 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
27631 (MULTIBOOT_MAGIC2): Rename from this ...
27632 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
27633
27634 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
27635
27636 * include/multiboot.h: Remove `<grub/types.h>'.
27637 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
27638 types. Update all users.
27639
27640 2009-12-25 Carles Pina i Estany <carles@pina.cat>
27641
27642 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
27643 `couldn't' and `can not' by `cannot'.
27644 * commands/i386/pc/drivemap.c: Likewise.
27645 * disk/ata.c: Likewise.
27646 * disk/ieee1275/nand.c: Likewise.
27647 * fs/affs.c: Likewise.
27648 * fs/fat.c: Likewise.
27649 * fs/hfs.c: Likewise.
27650 * fs/hfsplus.c: Likewise.
27651 * fs/iso9660.c: Likewise.
27652 * fs/jfs.c: Likewise.
27653 * fs/minix.c: Likewise.
27654 * fs/reiserfs.c: Likewise.
27655 * fs/sfs.c: Likewise.
27656 * fs/udf.c: Likewise.
27657 * fs/ufs.c: Likewise.
27658 * fs/xfs.c: Likewise.
27659 * loader/powerpc/ieee1275/linux.c: Likewise.
27660 * loader/sparc64/ieee1275/linux.c: Likewise.
27661 * util/grub-probe.c: Likewise.
27662 * util/misc.c: Likewise.
27663
27664 2009-12-24 Carles Pina i Estany <carles@pina.cat>
27665
27666 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
27667 grub_errno calls.
27668 * commands/acpi.c: Likewise.
27669 * commands/blocklist.c: Likewise.
27670 * commands/efi/loadbios.c: Likewise.
27671 * commands/i386/pc/drivemap.c: Likewise.
27672 * commands/loadenv.c: Likewise.
27673 * commands/memrw.c: Likewise.
27674 * commands/password.c: Likewise.
27675 * commands/videotest.c: Likewise.
27676 * disk/ata.c: Likewise.
27677 * disk/ata_pthru.c: Likewise.
27678 * disk/dmraid_nvidia.c: Likewise.
27679 * disk/ieee1275/nand.c: Likewise.
27680 * disk/ieee1275/ofdisk.c: Likewise.
27681 * disk/loopback.c: Likewise.
27682 * disk/lvm.c: Likewise.
27683 * disk/mdraid_linux.c: Likewise.
27684 * disk/raid.c: Likewise.
27685 * disk/raid6_recover.c: Likewise.
27686 * disk/scsi.c: Likewise.
27687 * efiemu/main.c: Likewise.
27688 * efiemu/mm.c: Likewise.
27689 * efiemu/pnvram.c: Likewise.
27690 * efiemu/symbols.c: Likewise.
27691 * font/font.c: Likewise.
27692 * fs/cpio.c: Likewise.
27693 * fs/hfsplus.c: Likewise.
27694 * fs/iso9660.c: Likewise.
27695 * fs/jfs.c: Likewise.
27696 * fs/minix.c: Likewise.
27697 * fs/ntfs.c: Likewise.
27698 * fs/ntfscomp.c: Likewise.
27699 * fs/reiserfs.c: Likewise.
27700 * fs/ufs.c: Likewise.
27701 * fs/xfs.c: Likewise.
27702 * gettext/gettext.c: Likewise.
27703 * include/grub/auth.h: Likewise.
27704 * kern/elf.c: Likewise.
27705 * kern/file.c: Likewise.
27706 * kern/ieee1275/init.c: Likewise.
27707 * kern/ieee1275/mmap.c: Likewise.
27708 * kern/ieee1275/openfw.c: Likewise.
27709 * kern/powerpc/dl.c: Likewise.
27710 * kern/sparc64/dl.c: Likewise.
27711 * lib/arg.c: Likewise.
27712 * loader/i386/bsd.c: Likewise.
27713 * loader/i386/bsdXX.c: Likewise.
27714 * loader/i386/efi/linux.c: Likewise.
27715 * loader/i386/efi/xnu.c: Likewise.
27716 * loader/i386/ieee1275/linux.c: Likewise.
27717 * loader/i386/linux.c: Likewise.
27718 * loader/i386/multiboot.c: Likewise.
27719 * loader/i386/pc/linux.c: Likewise.
27720 * loader/i386/pc/multiboot2.c: Likewise.
27721 * loader/i386/xnu.c: Likewise.
27722 * loader/ieee1275/multiboot2.c: Likewise.
27723 * loader/macho.c: Likewise.
27724 * loader/machoXX.c: Likewise.
27725 * loader/multiboot2.c: Likewise.
27726 * loader/multiboot_loader.c: Likewise.
27727 * loader/powerpc/ieee1275/linux.c: Likewise.
27728 * loader/sparc64/ieee1275/linux.c: Likewise.
27729 * loader/xnu.c: Likewise.
27730 * loader/xnu_resume.c: Likewise.
27731 * mmap/i386/pc/mmap.c: Likewise.
27732 * normal/menu_viewer.c: Likewise.
27733 * partmap/acorn.c: Likewise.
27734 * partmap/amiga.c: Likewise.
27735 * partmap/apple.c: Likewise.
27736 * script/lexer.c: Likewise.
27737 * term/gfxterm.c: Likewise.
27738 * term/i386/pc/serial.c: Likewise.
27739 * term/i386/pc/vga.c: Likewise.
27740 * term/ieee1275/ofconsole.c: Likewise.
27741 * term/terminfo.c: Likewise.
27742 * video/bitmap.c: Likewise.
27743 * video/efi_gop.c: Likewise.
27744 * video/efi_uga.c: Likewise.
27745 * video/fb/video_fb.c: Likewise.
27746 * video/i386/pc/vbe.c: Likewise.
27747 * video/readers/tga.c: Likewise.
27748 * video/video.c: Likewise.
27749
27750 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
27751
27752 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
27753 * commands/lspci.c: Likewise.
27754 * commands/probe.c: Likewise.
27755 * commands/xnu_uuid.c: Likewise.
27756 * conf/i386-coreboot.rmk: Likewise.
27757 * conf/i386-efi.rmk: Likewise.
27758 * conf/i386-ieee1275.rmk: Likewise.
27759 * conf/i386-pc.rmk: Likewise.
27760 * conf/powerpc-ieee1275.rmk: Likewise.
27761 * conf/sparc64-ieee1275.rmk: Likewise.
27762 * conf/x86_64-efi.rmk: Likewise.
27763 * fs/i386/pc/pxe.c: Likewise.
27764 * gettext/gettext.c: Likewise.
27765 * include/grub/efi/graphics_output.h: Likewise.
27766 * include/grub/i386/pc/memory.h: Likewise.
27767 * kern/env.c: Likewise.
27768 * kern/i386/qemu/startup.S: Likewise.
27769 * lib/i386/pc/biosnum.c: Likewise.
27770 * lib/i386/relocator.c: Likewise.
27771 * lib/i386/relocator_asm.S: Likewise.
27772 * lib/relocator.c: Likewise.
27773 * loader/i386/bsd.c: Likewise.
27774 * loader/i386/multiboot.c: Likewise.
27775 * loader/i386/pc/chainloader.c: Likewise.
27776 * loader/i386/xnu.c: Likewise.
27777 * loader/xnu.c: Likewise.
27778 * normal/main.c: Likewise.
27779 * normal/menu_text.c: Likewise.
27780 * util/getroot.c: Likewise.
27781 * util/grub-mkconfig_lib.in: Likewise.
27782 * util/grub.d/00_header.in: Likewise.
27783 * util/i386/pc/grub-mkimage.c: Likewise.
27784 * util/mkisofs/eltorito.c: Likewise.
27785 * util/mkisofs/exclude.h: Likewise.
27786 * util/mkisofs/hash.c: Likewise.
27787 * util/mkisofs/iso9660.h: Likewise.
27788 * util/mkisofs/joliet.c: Likewise.
27789 * util/mkisofs/mkisofs.c: Likewise.
27790 * util/mkisofs/mkisofs.h: Likewise.
27791 * util/mkisofs/multi.c: Likewise.
27792 * util/mkisofs/name.c: Likewise.
27793 * util/mkisofs/rock.c: Likewise.
27794 * util/mkisofs/tree.c: Likewise.
27795 * util/mkisofs/write.c: Likewise.
27796 * video/efi_gop.c: Likewise.
27797
27798 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
27799
27800 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
27801 size counting.
27802
27803 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
27804
27805 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
27806 * genmk.rb (class SCRIPT): Modify the target file instead of source.
27807
27808 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
27809
27810 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
27811 (GRUB_MOD_INIT(memrw)): Update help line.
27812
27813 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
27814
27815 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
27816 Use grub_extcmd_t. All users updated.
27817 (options): New variable.
27818 (grub_cmd_read): Restructure for readability. Support "-v" option.
27819 (grub_cmd_write): Restructure for readability.
27820
27821 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
27822
27823 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
27824
27825 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
27826
27827 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
27828 with the actual contents of the correspondending make variable.
27829 * util/grub-mkrescue.in (pkglib_DATA): New variable.
27830 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
27831 specifying `*.lst' and `efiemu??.o'
27832
27833 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
27834
27835 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
27836 after function name.
27837 Noticed by Rene Engelhard <rene@debian.org>.
27838
27839 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
27840
27841 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
27842 (options): New variable.
27843 (iospace): Likewise.
27844 (grub_lspci_iter): List IO spaces if "-i" was given.
27845 (grub_cmd_lspci): Parse options.
27846 (GRUB_MOD_INIT(lspci)): Use extcmd.
27847 (GRUB_MOD_FINI(lspci)): Likewise.
27848
27849 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
27850
27851 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
27852 `function' keyword.
27853 Patch by Tony Mancill <tmancill@debian.org>.
27854
27855 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
27856
27857 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
27858 (grub_uhci_portstatus): Likewise.
27859 (grub_uhci_portstatus): Add necessary delay.
27860 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
27861
27862 2009-12-21 Carles Pina i Estany <carles@pina.cat>
27863
27864 * commands/acpi.c (options): Fix capitalizations and/or full stops.
27865 (GRUB_MOD_INIT): Likewise.
27866 * commands/boot.c (GRUB_MOD_INIT): Likewise.
27867 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
27868 * commands/echo.c (options): Fix capitalizations and/or full stops.
27869 * commands/efi/loadbios.c (enable_rom_area): Likewise.
27870 (enable_rom_area): Likewise.
27871 (GRUB_MOD_INIT): Likewise.
27872 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
27873 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
27874 * commands/handler.c (GRUB_MOD_INIT): Likewise.
27875 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
27876 * commands/hexdump.c (options): Likewise.
27877 * commands/i386/cpuid.c (options): Likewise.
27878 (GRUB_MOD_INIT): Likewise.
27879 * commands/i386/pc/drivemap.c (options): Likewise.
27880 (GRUB_MOD_INIT): Likewise.
27881 * commands/i386/pc/halt (options): Likewise.
27882 (GRUB_MOD_INIT): Likewise.
27883 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
27884 * commands/i386/pc/pxecmd.c (options): Likewise.
27885 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
27886 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
27887 * commands/keystatus.c (options): Likewise.
27888 (GRUB_MOD_INIT): Likewise.
27889 * commands/loadenv.c (options): Likewise.
27890 * commands/ls.c (options): Likewise.
27891 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
27892 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
27893 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
27894 * commands/parttool.c (helpmsg): Likewise.
27895 * commands/probe.c (options): Likewise.
27896 * commands/read.c (GRUB_MOD_INIT): Likewise.
27897 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
27898 * commands/search.c (options): Likewise.
27899 * commands/sleep.c (options): Likewise.
27900 * commands/test.c (GRUB_MOD_INIT): Likewise.
27901 * commands/true.c (GRUB_MOD_INIT): Likewise.
27902 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
27903 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
27904 * lib/arg.c (help_options): Likewise.
27905 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
27906 `$(XGETTEXT)'.
27907 * po/POTFILES: Add `commands/loadenv.c'.
27908
27909 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
27910
27911 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
27912 instead of specifying them explicit.
27913
27914 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27915
27916 * NEWS: Add grub-probe support for GNU/Hurd.
27917
27918 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27919
27920 * NEWS: gettext was added after 1.97.
27921
27922 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27923
27924 * util/mkisofs/msdos_partition.h: New file (based on
27925 include/grub/msdos_partition.h).
27926 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
27927 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
27928 (ld_options, main): Recognize --protective-msdos-label.
27929 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
27930 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
27931 (padblock_write): If `use_protective_msdos_label' is set, patch a
27932 protective DOS-style label in the output image.
27933
27934 * util/grub-mkrescue.in: Use --protective-msdos-label.
27935
27936 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27937
27938 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
27939 boot.
27940
27941 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27942
27943 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
27944 variables.
27945 (ld_options, main): Recognize `--embedded-boot'.
27946 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
27947 declarations.
27948 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
27949 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
27950 (padblock_write): Likewise. Rewrite to support embedded boot image.
27951
27952 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
27953 for BIOS-based disk boot instead of only ElTorito.
27954
27955 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27956
27957 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
27958 build (not needed for bootstrap).
27959
27960 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27961
27962 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
27963 from i386-pc build (not needed for bootstrap).
27964 Rewrite a pair of strings.
27965
27966 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27967
27968 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
27969
27970 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
27971
27972 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
27973
27974 2009-12-21 Andreas Born <futur.andy@googlemail.com>
27975
27976 * kern/env.c (grub_env_context_open): Mark exported variable for
27977 reexport.
27978
27979 2009-12-21 Andreas Born <futur.andy@googlemail.com>
27980
27981 * kern/env.c (grub_env_export): Create nonexistent variables before
27982 exporting.
27983
27984 2009-12-20 Carles Pina i Estany <carles@pina.cat>
27985
27986 * include/grub/auth.h: Include `<grub/i18n.h>'.
27987 (GRUB_GET_PASSWORD): Gettextizze string.
27988 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
27989 menu_text.c.
27990 (grub_utf8_to_ucs4_alloc): Fix indentation.
27991 (grub_print_ucs4): Likewise.
27992 (grub_getstringwidth): Likewise.
27993 (print_message_indented): New declaration.
27994 * normal/auth.c: Include `<grub/i18n.h>'.
27995 (grub_auth_check_authentication): Gettexttize string.
27996 * normal/cmdline.c: Include `<grub/i18n.h>'.
27997 (grub_cmdline_get): Gettextizze.
27998 * normal/color.c: Include `<grub/i18n.h>'.
27999 (grub_parse_color_name_pair): Gettexttize strings.
28000 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
28001 string (use `print_message_indented').
28002 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
28003 `include/grub/normal.h'.
28004 (print_message_indented): Renamed to ...
28005 (grub_print_message_indented): ... this. Remove `static' qualifer (now
28006 used in normal/main.c).
28007 (print_message): Use `grub_print_message_indented' instead of
28008 `print_message_indented'.
28009 (print_timeout): Likewise.
28010 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
28011 (grub_normal_print_device_info): Gettexttize strings.
28012 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
28013
28014 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
28015
28016 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
28017 of arguments. Return number of tokens and not arguments. All users
28018 updated.
28019
28020 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
28021
28022 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
28023 non-MSDOS paritions.
28024
28025 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
28026
28027 * include/grub/types.h (UNUSED): Removed since it conflicts with
28028 NetBSD headers. All users changed to direct __attribute__ ((unused)).
28029 Reported by Grégoire Sutre.
28030
28031 2009-12-19 Carles Pina i Estany <carles@pina.cat>
28032
28033 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
28034 (grub_print_ucs4_alloc): Likewise.
28035 (grub_getstringwidth): Likewise.
28036 * normal/main.c (grub_normal_init_page): Gettextize version string.
28037 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
28038 (getstringwidth): Renamed to ...
28039 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
28040 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
28041 (grub_print_ucs4): Remove `static' qualifer (now used in
28042 normal/main.c).
28043 * po/POTFILES: Add normal/main.c.
28044
28045 2009-12-19 Carles Pina i Estany <carles@pina.cat>
28046
28047 * normal/menu_text.c (STANDARD_MARGIN): New macro.
28048 (print_message_indented): Add `margin_left' and `margin_right'
28049 parameters.
28050 (print_message): Update `print_message_indented' calls. Adds '\n' to the
28051 strings.
28052 (print_timeout): Use `print_message_indented' to print the message.
28053 Deletes `second_stage' parameter.
28054 (run_menu): Update `print_timeout' calls.
28055
28056 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
28057
28058 Fix console palette on OpenFirmware.
28059
28060 * term/ieee1275/ofconsole.c (MAX): Removed.
28061 (colors): Redone based on VGA palette.
28062 (grub_ofconsole_setcolor): Discard brightness bit since only 8
28063 colors are supported.
28064 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
28065
28066 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
28067
28068 Fix potential EfiEmu double prepare.
28069
28070 * efiemu/main.c (prepared): New variable
28071 (grub_efiemu_unload): Set prepare to '0'.
28072 (grub_efiemu_prepare): Return if already prepared. Set prepared.
28073
28074 set_virtual_address_map support.
28075
28076 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
28077 prototype.
28078 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
28079 prototype.
28080 (grub_efiemu_crc32): Likewise.
28081 (grub_efiemu_crc64): Likewise.
28082 (grub_efiemu_set_virtual_address_map): Likewise.
28083 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
28084 New definition.
28085 (grub_autoefi_set_virtual_address_map): Likewise.
28086 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
28087 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
28088 Restructure flow to accomodate it.
28089 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
28090 (grub_efiemu_crc): Recompute CRC32.
28091 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
28092 (efiemu_ptv_relocated): ... this. Made global. All users updated.
28093 * efiemu/symbols.c (relocated_handle): New variable.
28094 (grub_efiemu_free_syms): Free relocated_handle.
28095 (grub_efiemu_alloc_syms): Allocate relocated_handle.
28096 (grub_efiemu_write_sym_markers): New function.
28097 (grub_efiemu_set_virtual_address_map): Likewise.
28098
28099 Newer XNU parameters.
28100
28101 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
28102 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
28103 (grub_xnu_fill_devicetree): New prototype.
28104 (grub_xnu_heap_real_start): New variable.
28105 * loader/xnu.c (get_name_ptr): New function.
28106 (grub_xnu_load_driver): Fill namelen and name.
28107
28108 64-bit xnu support.
28109
28110 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
28111 and 'loader/macho64.c'.
28112 * conf/i386-pc.rmk: Likewise.
28113 * conf/x86_64-efi.rmk: Likewise.
28114 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
28115 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
28116 * include/grub/macho.h (grub_macho_segment64): New structure.
28117 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
28118 (grub_macho_size32): ... to this.
28119 (grub_macho32_get_entry_point): Renamed from ...
28120 (grub_macho_get_entry_point32): ... to this.
28121 (grub_macho_contains_macho64): New prototype.
28122 (grub_macho_size64): Likewise.
28123 (grub_macho_get_entry_point64): Likewise.
28124 (grub_macho32_load): Renamed from ...
28125 (grub_macho_load32): ... to this.
28126 (grub_macho32_filesize): Renamed from ...
28127 (grub_macho_filesize32): ... to this.
28128 (grub_macho32_readfile): Renamed from ...
28129 (grub_macho_readfile32): ... to this.
28130 (grub_macho_filesize64): New prototype.
28131 (grub_macho_readfile64): Likewise.
28132 (grub_macho_parse32): Likewise.
28133 (grub_macho_parse64): Likewise.
28134 * loader/macho.c: Split into ...
28135 * loader/machoXX.c: ... and this. Replace 32 with XX.
28136 * loader/macho32.c: New file.
28137 * loader/macho64.c: Likewise.
28138 * loader/xnu.c (grub_xnu_is_64bit): New variable.
28139 (grub_cmd_xnu_kernel): Make 32-bit only.
28140 (grub_cmd_xnu_kernel64): New function.
28141 (grub_xnu_load_driver): Support Mach-O 64.
28142 (grub_cmd_xnu_mkext): Likewise.
28143 * util/grub.d/30_os-prober.in (osx_entry): New function.
28144 Generate entries for 64-bit boot too.
28145
28146 Eliminate ad-hoc tree format in XNU and EfiEmu.
28147
28148 * efiemu/main.c (grub_efiemu_prepare): Update comment.
28149 * efiemu/pnvram.c: Rewritten to use environment variables.
28150 All users updated.
28151
28152 Inline utf16_to_utf8.
28153
28154 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
28155 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
28156 All users updated.
28157 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
28158
28159 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
28160 * commands/usbtest.c (grub_usb_get_string): ... move here.
28161 (usb_print_str): Fix error handling.
28162 * include/grub/usb.h (grub_usb_get_string): Remove.
28163
28164 UTF-8 to UTF-16 transformation.
28165
28166 * conf/common.rmk (pkglib_MODULES): Add charset.mod
28167 (charset_mod_SOURCES): New variable.
28168 (charset_mod_CFLAGS): Likewise.
28169 (charset_mod_LDFLAGS): Likewise.
28170 * include/grub/utf.h: New file.
28171 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
28172
28173 Support for device properties.
28174
28175 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
28176 (grub_xnu_devprop_device_header): Likewise.
28177 (grub_xnu_devprop_device_descriptor): Likewise.
28178 (grub_xnu_devprop_add_device): New prototype.
28179 (grub_xnu_devprop_remove_device): Likewise.
28180 (grub_xnu_devprop_remove_property): Likewise.
28181 (grub_xnu_devprop_add_property_utf8): Likewise.
28182 (grub_xnu_devprop_add_property_utf16): Likewise.
28183 (grub_cpu_xnu_init): Likewise.
28184 (grub_cpu_xnu_fini): Likewise.
28185 (grub_cpu_xnu_unload): Likewise.
28186 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
28187 (property_descriptor): Likewise.
28188 (devices): New variable.
28189 (grub_xnu_devprop_remove_property): New function.
28190 (grub_xnu_devprop_add_device): Likewise.
28191 (grub_xnu_devprop_remove_device): Likewise.
28192 (grub_xnu_devprop_add_property): Likewise.
28193 (grub_xnu_devprop_add_property_utf8): Likewise.
28194 (grub_xnu_devprop_add_property_utf16): Likewise.
28195 (hextoval): Likewise.
28196 (grub_cpu_xnu_fill_devprop): Likewise.
28197 (grub_cmd_devprop_load): Likewise.
28198 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
28199 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
28200 (cmd_devprop_load): New variable.
28201 (grub_cpu_xnu_init): New function.
28202 (grub_cpu_xnu_fini): Likewise.
28203 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
28204 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
28205 (grub_cmd_xnu_devtree): Likewise.
28206 (hextoval): New function.
28207 (unescape): Likewise.
28208 (grub_xnu_fill_devicetree): Likewise.
28209
28210 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
28211 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
28212
28213 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
28214
28215 Workaround for broken ATI VBE.
28216
28217 * video/i386/pc/vbe.c (last_set_mode): New variable.
28218 (grub_vbe_set_video_mode): Set 'last_set_mode'.
28219 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
28220 (grub_video_vbe_setup): Don't check for reserved flag.
28221
28222 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
28223
28224 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
28225 the `find' command.
28226
28227 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
28228
28229 UUID support for HFS.
28230
28231 * fs/hfs.c (grub_hfs_uuid): New function.
28232 (grub_hfs_fs): New value .uuid.
28233 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
28234
28235 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
28236
28237 Fix a segfault with parsing unknown long options.
28238
28239 * util/grub-mkrelpath.c (options): Zero terminate it.
28240
28241 2009-12-13 Carles Pina i Estany <carles@pina.cat>
28242
28243 * include/grub/misc.h (grub_puts): New declaration.
28244 (grub_puts_): Likewise.
28245 * kern/misc.c (grub_puts): New definition.
28246 (grub_puts_): Likewise.
28247
28248 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
28249
28250 * util/grub-probe.c (probe): Improve error message.
28251
28252 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
28253
28254 * loader/i386/multiboot_elfxx.c
28255 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
28256 initialization.
28257
28258 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
28259
28260 Relocator framework
28261
28262 * loader/i386/xnu_helper.S: Removed. All users updated.
28263 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
28264 (relocator_mod_SOURCES): New variable.
28265 (relocator_mod_CFLAGS): Likewise.
28266 (relocator_mod_LDFLAGS): Likewise.
28267 (relocator_mod_ASFLAGS): Likewise.
28268 * conf/x86_64.rmk: Likewise.
28269 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
28270 (grub_multiboot_payload_entry_offset): Likewise.
28271 (grub_multiboot_forward_relocator): Likewise.
28272 (grub_multiboot_forward_relocator_end): Likewise.
28273 (grub_multiboot_backward_relocator): Likewise.
28274 (grub_multiboot_backward_relocator_end): Likewise.
28275 (grub_multiboot_payload_eip): New variable.
28276 (grub_multiboot_payload_orig): Likewise.
28277 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
28278 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
28279 * include/grub/i386/memory.h
28280 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
28281 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
28282 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
28283 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
28284 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
28285 * include/grub/i386/relocator.h: New file.
28286 * include/grub/x86_64/relocator.h: Likewise.
28287 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
28288 (XNU_RELOCATOR): New macro.
28289 (grub_xnu_launcher_start): Remove.
28290 (grub_xnu_launcher_end): Likewise.
28291 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
28292 (grub_xnu_heap_real_start): Remove.
28293 (grub_xnu_heap_start): Change to void *. All users updated.
28294 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
28295 * lib/i386/relocator.c: New file.
28296 * lib/i386/relocator_asm.S: Likewise.
28297 * lib/i386/relocator_backward.S: Likewise.
28298 * lib/mips/relocator.c: Likewise.
28299 * lib/mips/relocator_asm.S: Likewise.
28300 * lib/relocator.c: Likewise.
28301 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
28302 (entry): Removed.
28303 (playground): Likewise.
28304 (grub_multiboot_payload_orig): New variable.
28305 (grub_multiboot_payload_dest): Likewise.
28306 (grub_multiboot_payload_size): Likewise.
28307 (grub_multiboot_payload_eip): Likewise.
28308 (grub_multiboot_payload_esp): Likewise.
28309 (grub_multiboot_boot): Use grub_relocator32_boot.
28310 (grub_multiboot_unload): Free relocators.
28311 (grub_multiboot): Setup stack. Use relocators.
28312 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
28313 (grub_multiboot_load_elfXX): Use relocators.
28314 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
28315 (grub_multiboot_payload_size): Likewise.
28316 (grub_multiboot_payload_dest): Likewise.
28317 (grub_multiboot_payload_entry_offset): Likewise.
28318 (grub_multiboot_forward_relocator): Likewise.
28319 (grub_multiboot_backward_relocator): Likewise.
28320 (grub_multiboot_real_boot): Likewise.
28321 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
28322 (grub_xnu_entry_point): Likewise.
28323 (grub_xnu_arg1): Likewise.
28324 (grub_xnu_stack): Likewise.
28325 (grub_xnu_launch): Removed.
28326 (grub_xnu_boot_resume): New function.
28327 (grub_xnu_boot): Use relocators.
28328 * loader/i386/xnu_helper.S: Removed.
28329 * loader/xnu.c (grub_xnu_heap_start): New variable.
28330 (grub_xnu_heap_size): Likewise.
28331 (grub_xnu_heap_malloc): Use relocators.
28332 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
28333
28334 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
28335
28336 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
28337 anything.
28338
28339 2009-12-13 Carles Pina i Estany <carles@pina.cat>
28340
28341 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
28342 GRUB_ERR_NONE before calling grub_env_set.
28343
28344 2009-12-12 Robert Millan <rmh@aybabtu.com>
28345
28346 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
28347 * genmk.rb (video): New variable.
28348 (CLEANFILES, VIDEOFILES): Add #{video}.
28349 (#{video}): New target rule.
28350 * genvideolist.sh: New file.
28351 * Makefile.in (pkglib_DATA): Add video.lst.
28352 (video.lst): New target rule.
28353 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
28354 `video.lst'.
28355 * util/grub.d/30_os-prober.in: Replace `vbe' with
28356 ${GRUB_VIDEO_BACKEND}.
28357
28358 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
28359
28360 * THANKS: Add David Miller.
28361
28362 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
28363
28364 libpciaccess support.
28365
28366 * Makefile.in (LIBPCIACCESS): New variable.
28367 (enable_grub_emu_pci): Likewise.
28368 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
28369 util/pci.c and commands/lspci.c.
28370 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
28371 * configure.ac (grub-emu-pci): New option.
28372 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
28373 (grub_pci_device_unmap_range): Likewise.
28374 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
28375 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
28376 (grub_pci_address_t) [!GRUB_UTIL]: New type.
28377 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
28378 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
28379 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
28380 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
28381 * include/grub/pciutils.h: New file.
28382 * util/pci.c: Likewise.
28383
28384 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
28385
28386 * util/misc.c: Don't include <errno.h> twice.
28387
28388 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
28389
28390 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
28391 name in an error message.
28392 (grub_biosdisk_rw): Likewise.
28393
28394 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
28395
28396 Eliminate NTFS 4Gib barrier.
28397
28398 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
28399 (read_run_data): Likewise.
28400 (grub_ntfs_read_run_list): Likewise.
28401 (grub_ntfs_read_block): Likewise.
28402 (grub_ntfs_iterate_dir): Likewise.
28403 (read_mft): Likewise.
28404 (read_data): Likewise.
28405 Use COM_LOG_LEN.
28406 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
28407 to avoid 64-bit division
28408 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
28409 (grub_ntfs_rlst): Use grub_disk_addr_t.
28410
28411 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
28412
28413 Eliminate grub-fstest 4Gib barrier.
28414
28415 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
28416 (read_file): Fix error reporting.
28417
28418 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
28419
28420 Eliminate hexdump 4Gib barrier.
28421
28422 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
28423 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
28424
28425 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
28426
28427 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
28428 Fixes amarsh bug.
28429
28430 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
28431
28432 Remove miscellaneous files in distclean target.
28433
28434 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
28435
28436 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
28437
28438 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
28439 if they're already set. This resolves the conflict between my
28440 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
28441 fixing the --grub-probe option again.
28442 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
28443 change on 2009-10-06, so that we now once again source
28444 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
28445
28446 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
28447
28448 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
28449 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
28450 `util/devicemap.c'.
28451
28452 2009-12-08 Carles Pina i Estany <carles@pina.cat>
28453
28454 * include/grub/misc.h (grub_printf_): New declaration.
28455 * kern/misc.c (grub_printf_): New definition.
28456 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
28457 instead of `grub_printf' and `_'.
28458 * normal/menu_entry.c (store_completion): Likewise.
28459 (run): Likewise.
28460 (grub_menu_entry_run): Likewise.
28461 * normal/menu_text.c (grub_wait_after_message): Likewise.
28462 (notify_booting): Likewise.
28463 (notify_fallback): Likewise.
28464 (notify_execution_failure): Likewise.
28465
28466 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
28467
28468 * configure.ac: Check for vasprintf.
28469 * util/misc.c (asprintf): Move allocation from here ...
28470 (vasprintf): ... to here. New function.
28471 (xasprintf): New function.
28472 * include/grub/util/misc.h (vasprintf, xasprintf): Add
28473 prototypes.
28474 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
28475 * util/grub-mkfont.c (write_font): Likewise.
28476 * util/grub-probe.c (probe): Likewise.
28477 * util/hostdisk.c (make_device_name): Likewise.
28478
28479 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
28480
28481 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
28482 anything even prefixed with 'cdrom' as a cdrom.
28483
28484 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
28485
28486 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
28487 mount points.
28488
28489 2009-12-05 Carles Pina i Estany <carles@pina.cat>
28490
28491 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
28492 grub_gettext_msg_list.
28493 (grub_gettext_gettranslation_from_position): Return const char *
28494 and not char *.
28495 (grub_gettext_translate): Add the translated strings into a list,
28496 returns from the list if existing there.
28497 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
28498 (grub_gettext_delete_list): Delete the list.
28499 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
28500 lang environment variable is changed.
28501 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
28502
28503 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
28504
28505 Rename kernel.mod to kernel.img.
28506
28507 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
28508 (kernel_mod_EXPORTS): Rename to ...
28509 (kernel_img_EXPORTS): ... this.
28510 (kernel_mod_SOURCES): Rename to ...
28511 (kernel_img_SOURCES): ... this.
28512 (kernel_mod_HEADERS): Rename to ...
28513 (kernel_img_HEADERS): ... this. All users updated.
28514 (kernel_mod_CFLAGS): Rename to ...
28515 (kernel_img_CFLAGS): ... this.
28516 (kernel_mod_ASFLAGS): Rename to ...
28517 (kernel_img_ASFLAGS): ... this.
28518 (kernel_mod_LDFLAGS): Rename to ...
28519 (kernel_img_LDFLAGS): ... this.
28520 * conf/x86_64-efi.rmk: Likewise.
28521 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
28522 (read_kernel_image): ... this. All users updated.
28523 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
28524
28525 2009-12-05 Carles Pina i Estany <carles@pina.cat>
28526
28527 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
28528 (print_spaces): New function.
28529 (grub_print_ucs4): New function.
28530 (getstringwidth): New function.
28531 (print_message_indented): New function.
28532 (print_message): Gettexttize strings using print_message_indented.
28533 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
28534 width.
28535 (get_entry_number): Gettextize and uses dynamic terminal width.
28536 (notify_booting, notify_fallback, notify_execution_failure):
28537 Gettextize.
28538 * normal/menu_entry.c (store_completion): Cleanup the gettextized
28539 string.
28540 (run): Likewise.
28541 (grub_menu_entry_run): Likewise.
28542 * PO/POTFILES: Add normal/menu_entry.c.
28543
28544 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
28545
28546 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
28547
28548 2009-12-05 Carles Pina i Estany <carles@pina.cat>
28549
28550 * util/grub-install.in: Install gettext .mo files.
28551 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
28552
28553 2009-12-05 Carles Pina i Estany <carles@pina.cat>
28554
28555 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
28556 grub_dprintf.
28557
28558 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
28559
28560 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
28561 non-firmware-dependant one in realmode.S takes precedence.
28562
28563 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
28564
28565 * commands/halt.c: Replace misc arch-specific headers with
28566 `<grub/misc.h>'.
28567 * commands/reboot.c: Likewise.
28568 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
28569 `<grub/misc.h>'.
28570 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
28571 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
28572 (kernel_img_SOURCES): ... to here.
28573
28574 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
28575 * include/grub/i386/pc/init.h: Likewise.
28576 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28577 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28578
28579 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
28580
28581 * include/grub/i386/halt.h: Remove.
28582 * include/grub/i386/reboot.h: Likewise.
28583
28584 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
28585
28586 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
28587
28588 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
28589 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
28590 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
28591 "progname.h"
28592 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
28593 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28594 (usage): Add missing comma in printf.
28595
28596 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
28597
28598 Use the same reboot approach on i386 coreboot and qemu as we do on
28599 BIOS.
28600
28601 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
28602 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
28603 * kern/i386/reboot.c: Remove.
28604 * include/grub/i386/reboot.h (grub_reboot): Export function.
28605 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
28606 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
28607 0xf000:0xfff0 instead of 0xffff:0x0000.
28608 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
28609 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
28610
28611 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
28612
28613 Fix $srcdir != $objdir build.
28614
28615 * Makefile.in (po/%.po): Rewrite as ...
28616 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
28617
28618 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
28619
28620 Fix GNU/Hurd grub-install crash.
28621 * util/grub-probe.c (probe): Try to access `path' only when it is not
28622 NULL.
28623
28624 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
28625
28626 Correct module naming.
28627
28628 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
28629 (GRUB_MOD_INIT(efi_uga)): ... to this
28630 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
28631 (GRUB_MOD_FINI(efi_uga)): ... to this
28632 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
28633 (GRUB_MOD_INIT(efi_gop)): ... to this
28634 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
28635 (GRUB_MOD_FINI(efi_gop)): ... to this
28636
28637 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
28638
28639 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
28640 translatable.
28641 (usage): Translate `arg' strings using gettext().
28642 Thanks to Jordi Mallach for the suggestion.
28643
28644 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
28645
28646 GOP support. Based on patch from Bean
28647 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
28648
28649 * video/efi_gop.c: New file.
28650 * include/grub/efi/graphics_output.h: Likewise.
28651 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
28652 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
28653 variables.
28654 * conf/x86_64-efi.rmk: Likewise.
28655
28656 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
28657
28658 Rename efi_fb to efi_uga.
28659
28660 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
28661 'efi_uga.mod'.
28662 (efi_fb_mod_SOURCES): Rename this ...
28663 (efi_uga_mod_SOURCES): ... to this.
28664 (efi_fb_mod_CFLAGS): Rename this ...
28665 (efi_uga_mod_CFLAGS): ... to this.
28666 (efi_fb_mod_LDFLAGS): Rename this ...
28667 (efi_uga_mod_LDFLAGS): ... to this.
28668 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
28669 'efi_uga.mod'.
28670 (efi_fb_mod_SOURCES): Rename this ...
28671 (efi_uga_mod_SOURCES): ... to this.
28672 (efi_fb_mod_CFLAGS): Rename this ...
28673 (efi_uga_mod_CFLAGS): ... to this.
28674 (efi_fb_mod_LDFLAGS): Rename this ...
28675 (efi_uga_mod_LDFLAGS): ... to this.
28676 * video/efi_fb.c: Move this ...
28677 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
28678
28679 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
28680
28681 * po/README: New file. Explain our PO file workflow.
28682
28683 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
28684
28685 * po/ChangeLog: Remove. Move relevant entries back to ...
28686 * ChangeLog: ... here.
28687 * po/ca.po: Remove (now handled by TLP).
28688 * po/id.po: Likewise.
28689 * po/zh_CN.po: Likewise.
28690 * Makefile.in (LINGUAS): Initialize in a way that supports
28691 empty set.
28692
28693 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
28694
28695 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
28696 reliing on po/LINGUAS.
28697 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
28698 (po/%.po): ... this.
28699
28700 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
28701
28702 * util/i386/efi/grub-mkimage.c: Include "progname.h".
28703 (main): Use `program_name' instead of nonexistent `progname'.
28704
28705 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
28706
28707 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
28708 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
28709
28710 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
28711
28712 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
28713 commit.
28714 * conf/i386-efi.rmk: Likewise.
28715 * conf/i386-ieee1275.rmk: Likewise.
28716 * conf/powerpc-ieee1275.rmk: Likewise.
28717 * conf/sparc64-ieee1275.rmk: Likewise.
28718 * conf/x86_64-efi.rmk: Likewise.
28719
28720 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
28721
28722 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
28723
28724 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
28725
28726 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
28727
28728 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
28729
28730 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
28731 (grub_mkdevicemap_SOURCES): New variable.
28732 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
28733 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
28734 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
28735 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
28736 (grub_mkdevicemap_SOURCES): Remove.
28737 * conf/i386-efi.rmk: Likewise.
28738 * conf/i386-ieee1275.rmk: Likewise.
28739 * conf/i386-pc.rmk: Likewise.
28740 * conf/powerpc-ieee1275.rmk: Likewise.
28741 * conf/sparc64-ieee1275.rmk: Likewise.
28742 * conf/x86_64-efi.rmk: Likewise.
28743 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
28744 (usage): Fix strings to use `program_name'.
28745 (main): Initialize gettext.
28746 * util/grub-editenv.c: Likewise.
28747 * util/grub-emu.c: Likewise.
28748 * util/grub-fstest.c: Likewise.
28749 * util/grub-mkdevicemap.c: Likewise.
28750 * util/grub-mkfont.c: Likewise.
28751 * util/grub-mkrelpath.c: Likewise.
28752 * util/grub-pe2elf.c: Likewise.
28753 * util/grub-probe.c: Likewise.
28754 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
28755 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
28756 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28757
28758 * util/misc.c: Include `"progname.h"'.
28759 (progname): Remove variable.
28760 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
28761
28762 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
28763
28764 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
28765 printf and print a newline after the menuentry header line.
28766 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28767
28768 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
28769
28770 autoconf >= 2.60 support $(localedir).
28771
28772 * INSTALL: Note that autoconf 2.60 is required.
28773 * configure.ac (AC_PREREQ): Bump to 2.60.
28774 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
28775 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
28776
28777 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
28778
28779 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
28780 aclocal is run.
28781
28782 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
28783
28784 * normal/main.c (grub_normal_read_line): Fix off-by-one
28785 buffer overflow.
28786
28787 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
28788
28789 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
28790 "parser.grub" in grub_command_execute() call.
28791
28792 2009-11-24 Carles Pina i Estany <carles@pina.cat>
28793
28794 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
28795 * conf/i386-efi.rmk: Likewise.
28796 * conf/i386-ieee1275.rmk: Likewise.
28797 * conf/i386-pc.rmk: Likewise.
28798 * conf/powerpc-ieee1275.rmk: Likewise.
28799 * conf/sparc64-ieee1275.rmk: Likewise.
28800 * conf/x86_64-efi.rmk: Likewise.
28801 * gettext/gettex.c: Include <grub/i18n.h>.
28802 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
28803 here ...
28804 * include/grub/i18n.h: ... to here
28805 * include/grub/i18n.h: ... to here.
28806 * kern/misc.c: Include <grub/i18n.h>
28807 (grub_gettext_dummy): Move above user.
28808
28809 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
28810
28811 * util/Makefile.in (install-local): Convert a `for' into a normal
28812 shell expansion.
28813
28814 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
28815
28816 * autogen.sh: Add automake call.
28817 * config.guess: Remove.
28818 * config.sub: Likewise.
28819 * install-sh: Likewise.
28820
28821 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
28822
28823 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
28824
28825 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
28826
28827 * util/Makefile.in (install-local): Convert a make `$(foreach)'
28828 function to a normal shell `for'.
28829
28830 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
28831
28832 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
28833
28834 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
28835
28836 * util/grub-mkrelpath.c: New file.
28837 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
28838 (grub_mkrelpath_SOURCES): New variable.
28839 * include/grub/util/misc.h: New function prototype.
28840 * util/misc.c (make_system_path_relative_to_its_root): New function.
28841
28842 * util/grub-mkconfig_lib.in (bindir): New variable.
28843 (grub_mkrelpath): Likewise.
28844 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
28845
28846 * util/probe.c (probe): Make the file path relative to its root.
28847 Change a info message to use the GRUB path. Enable again the
28848 check if we can read the file with GRUB facilities.
28849
28850 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
28851 to its root.
28852
28853 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
28854
28855 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
28856 platform.
28857
28858 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
28859
28860 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
28861 strncmp().
28862
28863 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
28864
28865 * util/getroot.c (grub_util_is_dmraid): New function.
28866 (grub_util_get_dev_abstraction): Treat dmraid and multipath
28867 devices as normal ones, not as LVM.
28868
28869 2009-11-23 Carles Pina i Estany <carles@pina.cat>
28870
28871 * conf/common.rmk: Add grub-gettext_lib target and updates
28872 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
28873 LDFLAGS.
28874 * gettext/gettext.c: New file. (Reads mo files).
28875 * include/grub/file.h (grub_file_pread): New prototype.
28876 * include/grub/i18n.h (_): New prototype.
28877 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
28878 prototypes.
28879 * kern/misc.c (grub_gettext_dummy): New function.
28880 * normal/menu_text.c: Include <grub/i18n.h>.
28881 * normal/menu_text.c (print_timeout): Gettexttize string.
28882 * normal/menu_text.c (print_message): Gettexttize string.
28883 * po/POTFILES: Add `normal/menu_text.c'.
28884 * po/ca.po: Add new translations.
28885 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
28886 gettext module and defines locale_dir and lang in grub.cfg.
28887 * NEWS: Add gettext support.
28888
28889 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28890
28891 * util/hostdisk.c: Include `<grub/i18n.h>'.
28892 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
28893 (make_device_name): Rewrite using asprintf.
28894 (convert_system_partition_to_system_disk): Replace 0 with NULL.
28895 (find_system_device): If a device is not found, generate one just
28896 by reusing the OS path name.
28897 (read_device_map): Make it permissible for device.map not to exist.
28898
28899 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28900
28901 * script/sh/execute.c: Move from here ...
28902 * script/execute.c: ... to here. Update all users.
28903 * script/sh/function.c: Move from here ...
28904 * script/function.c: ... to here. Update all users.
28905 * script/sh/lexer.c: Move from here ...
28906 * script/lexer.c: ... to here. Update all users.
28907 * script/sh/main.c: Move from here ...
28908 * script/main.c: ... to here. Update all users.
28909 * script/sh/parser.y: Move from here ...
28910 * script/parser.y: ... to here. Update all users.
28911 * script/sh/script.c: Move from here ...
28912 * script/script.c: ... to here. Update all users.
28913
28914 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28915
28916 * configure.ac: Detect all `emu' platforms. Define
28917 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
28918 --enable-grub-emu logic. Disable include/grub/machine
28919 symlink on `emu' platforms.
28920
28921 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
28922 * gensymlist.sh.in: Likewise.
28923
28924 * include/grub/i386/coreboot/machine.h: Remove file.
28925 * include/grub/i386/efi/machine.h: Likewise.
28926 * include/grub/i386/ieee1275/machine.h: Likewise.
28927 * include/grub/i386/pc/machine.h: Likewise.
28928 * include/grub/i386/qemu/machine.h: Likewise.
28929 * include/grub/powerpc/ieee1275/machine.h: Likewise.
28930 * include/grub/sparc64/ieee1275/machine.h: Likewise.
28931 * include/grub/x86_64/efi/machine.h: Likewise.
28932
28933 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
28934 * commands/halt.c: Likewise.
28935 * commands/reboot.c: Likewise.
28936 * include/grub/autoefi.h: Likewise.
28937 * include/grub/i386/at_keyboard.h: Likewise.
28938 * include/grub/i386/kernel.h: Likewise.
28939 * include/grub/i386/loader.h: Likewise.
28940 * include/grub/i386/pc/memory.h: Likewise.
28941 * kern/dl.c: Likewise.
28942 * kern/i386/coreboot/init.c: Likewise.
28943 * loader/i386/bsd.c: Likewise.
28944 * loader/i386/linux.c: Likewise.
28945 * loader/multiboot_loader.c: Likewise.
28946 * term/i386/pc/serial.c: Likewise.
28947 * term/usb_keyboard.c: Likewise.
28948
28949 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
28950 `<grub/machine/machine.h>'
28951 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
28952 * util/misc.c: Remove `<grub/machine/machine.h>' and
28953 `<grub/machine/time.h>'.
28954
28955 * Makefile.in (enable_grub_emu): Remove variable.
28956 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
28957
28958 * conf/any-emu.rmk: New file.
28959 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
28960 (grub_emu_init.c): Move from here ...
28961 * conf/any-emu.rmk: ... to here.
28962
28963 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
28964 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
28965 * conf/any-emu.rmk: ... to here.
28966
28967 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28968
28969 * include/grub/parser.h (grub_parser_register): Document need
28970 of `name' parameter.
28971 * normal/main.c (grub_normal_read_line): Simplify prompt string.
28972 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
28973 "sh" to "grub".
28974
28975 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28976
28977 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
28978 `$(XGETTEXT)'.
28979 * include/grub/i18n.h (N_): New macro.
28980 * util/mkisofs/mkisofs.h: Likewise.
28981 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
28982 around N_().
28983 (usage): Use gettext() to translate help strings when printing them.
28984
28985 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28986
28987 Based on patch from Bean
28988 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
28989
28990 * video/efi_fb.c: New file.
28991 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
28992 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
28993 variables.
28994 * conf/x86_64-efi.rmk: Likewise.
28995
28996 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
28997
28998 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
28999 * util/i386/pc/grub-setup.c: Likewise.
29000
29001 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
29002
29003 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
29004 <hurd/fs.h>
29005 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
29006 file_get_storage_info to implement grub_guess_root_device.
29007
29008 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
29009
29010 * Makefile.in (target): Use make's builtin $(shell) function
29011 instead of calling directly $(SHELL) to create the locale directories,
29012 inside the $(foreach) function.
29013
29014 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
29015
29016 * util/grub-mkrescue.in: Print an error and usage if output option
29017 has not been given.
29018
29019 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
29020
29021 Patch from Loïc Minier <loic.minier@ubuntu.com>.
29022 * util/grub.d/30_os-prober.in: Cope with Linux entries where
29023 root and /boot are on different devices.
29024
29025 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
29026
29027 Fix build for srcdir != objdir.
29028
29029 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
29030 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
29031 $(srcdir).
29032 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
29033 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
29034 reference for input.
29035
29036 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
29037
29038 * util/grub-mkrescue.in: Use source directory direcly (without copiing
29039 or hardlinking it). Remove -J option, Joliet is not compatible with
29040 multiple source directories.
29041
29042 2009-11-21 Carles Pina i Estany <carles@pina.cat>
29043 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
29044
29045 * util/grub-mkrescue.in: Recognize `--override-directory' option.
29046 (process_input_dir): New function. Process an arbitrary input
29047 directory.
29048 Misc adjustments to support both "override mode" and system-wide mode.
29049
29050 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
29051
29052 * configure.ac (UNIFONT_BDF): Rename to ...
29053 (FONT_SOURCE): ... this. Update all users.
29054
29055 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
29056
29057 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
29058 to the list of unifont files to look for.
29059
29060 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
29061
29062 Patch from Joe Auricchio <jauricchio@gmail.com>
29063 * commands/minicmd.c (grub_mini_cmd_clear): New function.
29064 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
29065 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
29066
29067 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
29068
29069 * Makefile.in (install-local): Add a missing backslash.
29070
29071 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
29072
29073 * include/grub/x86_64/io.h: New file.
29074
29075 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
29076
29077 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
29078 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
29079 Include `"progname.h"'.
29080 (main): Initialize gettext.
29081 * util/i386/pc/grub-setup.c: Gettexttize.
29082 * util/i386/pc/grub-mkimage.c: Likewise.
29083
29084 * Makefile.in (po/*.po): Redefine as ...
29085 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
29086
29087 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
29088
29089 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
29090
29091 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
29092 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
29093 (program_name): Remove.
29094 (main): Initialize gettext support.
29095 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
29096 Include `<libintl.h>'.
29097 (_): New macro.
29098
29099 * util/mkisofs/eltorito.c: Gettexttize.
29100 * util/mkisofs/joliet.c: Likewise.
29101 * util/mkisofs/mkisofs.c: Likewise.
29102 * util/mkisofs/multi.c: Likewise.
29103 * util/mkisofs/rock.c: Likewise.
29104 * util/mkisofs/tree.c: Likewise.
29105 * util/mkisofs/write.c: Likewise.
29106
29107 * po/POTFILES: Update with new files.
29108
29109 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
29110
29111 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
29112 * util/mkisofs/iso9660.h: Likewise.
29113 * util/mkisofs/joliet.c: Likewise.
29114 * util/mkisofs/mkisofs.c: Likewise.
29115 * util/mkisofs/mkisofs.h: Likewise.
29116 * util/mkisofs/rock.c: Likewise.
29117 * util/mkisofs/tree.c: Likewise.
29118 * util/mkisofs/write.c: Likewise.
29119
29120 * util/mkisofs/eltorito.c (rcsid): Remove.
29121 * util/mkisofs/hash.c: Likewise.
29122 * util/mkisofs/joliet.c: Likewise.
29123 * util/mkisofs/name.c: Likewise.
29124 * util/mkisofs/rock.c: Likewise.
29125 * util/mkisofs/tree.c: Likewise.
29126 * util/mkisofs/write.c: Likewise.
29127
29128 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
29129
29130 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
29131 instead of static allocation.
29132 * util/mkisofs/match.h: Likewise.
29133
29134 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
29135
29136 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
29137 and `util/grub.d/10_linux.in'.
29138 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
29139 translatable Shell files.
29140
29141 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
29142
29143 * Makefile.in ($(srcdir)/aclocal.m4): New target.
29144
29145 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29146
29147 * INSTALL: Document Automake is needed for bootstrap.
29148 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
29149 * util/grub.d/10_kfreebsd.in (bindir): New variable.
29150 Add gettext initialization.
29151 (kfreebsd_entry): Make menuentry output translatable.
29152
29153 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29154
29155 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
29156 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
29157 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
29158 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
29159 (LINGUAS): Auto-generate using `po/LINGUAS'.
29160 * po/LINGUAS: New file.
29161
29162 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29163
29164 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
29165 other things).
29166 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
29167 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
29168 bindtextdomain() calls for gettext initialization.
29169
29170 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29171
29172 * gnulib/progname.c: New file (imported from Gnulib).
29173 * gnulib/progname.h: Likewise.
29174 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
29175 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
29176 (usage): Replace `progname' with `program_name'.
29177 (main): Use set_program_name() for program name initialization.
29178
29179 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29180
29181 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
29182 from here ...
29183 * Makefile.in (CPPFLAGS): ... to here.
29184
29185 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
29186
29187 * aclocal.m4: Move from here ...
29188 * acinclude.m4: ... to here.
29189 * autogen.sh: Add call to `aclocal'.
29190 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
29191
29192 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
29193
29194 * Makefile.in (CLEANFILES): Add `po/*.mo'.
29195 (LINGUAS): New variable.
29196 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
29197 (install-local): Install MO files.
29198 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
29199 * include/grub/i18n.h: New file.
29200 * po/POTFILES: New file.
29201 * po/ca.po: New file.
29202 * util/grub.d/10_linux.in (bindir): New variable.
29203 Add gettext initialization.
29204 (linux_entry): Make menuentry output translatable.
29205 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
29206 (usage): Make --help output translatable.
29207 (main): Initialize gettext.
29208
29209 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29210
29211 * import_gcry.py: New file (written by Vladimir with minor
29212 adjustments).
29213 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
29214 ciphers.
29215 * INSTALL: Document that Python is required for bootstrap.
29216
29217 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29218
29219 Import ciphers from libgcrypt 1.4.4.
29220
29221 * lib/libgcrypt/cipher/ChangeLog
29222 * lib/libgcrypt/cipher/ac.c
29223 * lib/libgcrypt/cipher/arcfour.c
29224 * lib/libgcrypt/cipher/bithelp.h
29225 * lib/libgcrypt/cipher/blowfish.c
29226 * lib/libgcrypt/cipher/camellia-glue.c
29227 * lib/libgcrypt/cipher/camellia.c
29228 * lib/libgcrypt/cipher/camellia.h
29229 * lib/libgcrypt/cipher/cast5.c
29230 * lib/libgcrypt/cipher/cipher.c
29231 * lib/libgcrypt/cipher/crc.c
29232 * lib/libgcrypt/cipher/des.c
29233 * lib/libgcrypt/cipher/dsa.c
29234 * lib/libgcrypt/cipher/ecc.c
29235 * lib/libgcrypt/cipher/elgamal.c
29236 * lib/libgcrypt/cipher/hash-common.c
29237 * lib/libgcrypt/cipher/hash-common.h
29238 * lib/libgcrypt/cipher/hmac-tests.c
29239 * lib/libgcrypt/cipher/md.c
29240 * lib/libgcrypt/cipher/md4.c
29241 * lib/libgcrypt/cipher/md5.c
29242 * lib/libgcrypt/cipher/primegen.c
29243 * lib/libgcrypt/cipher/pubkey.c
29244 * lib/libgcrypt/cipher/rfc2268.c
29245 * lib/libgcrypt/cipher/rijndael-tables.h
29246 * lib/libgcrypt/cipher/rijndael.c
29247 * lib/libgcrypt/cipher/rmd.h
29248 * lib/libgcrypt/cipher/rmd160.c
29249 * lib/libgcrypt/cipher/rsa.c
29250 * lib/libgcrypt/cipher/seed.c
29251 * lib/libgcrypt/cipher/serpent.c
29252 * lib/libgcrypt/cipher/sha1.c
29253 * lib/libgcrypt/cipher/sha256.c
29254 * lib/libgcrypt/cipher/sha512.c
29255 * lib/libgcrypt/cipher/tiger.c
29256 * lib/libgcrypt/cipher/twofish.c
29257 * lib/libgcrypt/cipher/whirlpool.c
29258
29259 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
29260
29261 Fix build for systems without error().
29262
29263 * gnulib/error.c: New file (imported from Gnulib).
29264 * gnulib/error.h: Likewise.
29265 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
29266 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
29267 (this variable is now used by error()).
29268
29269 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
29270
29271 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
29272 instead of relying that char is signed.
29273
29274 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
29275
29276 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
29277 blocksize different from specified.
29278 (grub_pxefs_read): Likewise.
29279
29280 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
29281
29282 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
29283
29284 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
29285 (grub_ata_readwrite): Likewise. Update 2 format strings.
29286 (grub_atapi_read): Likewise.
29287
29288 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
29289 * conf/i386.rmk (pkglib_MODULES): ... to here ...
29290 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
29291 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
29292 (ata_mod_LDFLAGS): Move from here ...
29293 * conf/i386.rmk: ... to here ...
29294 * conf/x86_64-efi.rmk: ... and here.
29295 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
29296 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
29297
29298 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
29299
29300 Relicense multiboot.h, with RMS' blessing.
29301
29302 * include/multiboot.h: Change to X11 license.
29303
29304 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
29305
29306 Support --version in grub-mkisofs.
29307
29308 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
29309 (OPTION_VERSION): New macro.
29310 (ld_options): Recognize --version.
29311 (usage): Move `program_name' from here ...
29312 (program_name): ... to here. Add `static' qualifier.
29313 (main): Recognize `OPTION_VERSION'.
29314
29315 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
29316
29317 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
29318 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
29319
29320 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
29321
29322 Fix help2man generation for mkisofs.
29323
29324 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
29325 (usage): Send output to stdout (rather than stderr).
29326
29327 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
29328
29329 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
29330 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
29331 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
29332 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
29333 (bin_SCRIPTS): Add `grub-mkfloppy'.
29334 (grub_mkfloppy_SOURCES): New variable.
29335
29336 * util/grub-mkrescue.in: New file.
29337 * util/i386/pc/grub-mkfloppy.in: New file.
29338
29339 * util/i386/coreboot/grub-mkrescue.in: Remove.
29340 * util/i386/pc/grub-mkrescue.in: Remove.
29341
29342 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
29343
29344 * include/grub/multiboot.h (struct grub_multiboot_header): Move
29345 from here ...
29346 * include/multiboot.h (struct multiboot_header): ... to here. Update
29347 all users.
29348 * include/grub/multiboot.h (struct grub_multiboot_info): Move
29349 from here ...
29350 * include/multiboot.h (struct multiboot_info): ... to here. Update
29351 all users.
29352 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
29353 from here ...
29354 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
29355 Update all users.
29356 * include/grub/multiboot.h (struct grub_mod_list): Move
29357 from here ...
29358 * include/multiboot.h (struct multiboot_mod_list): ... to here.
29359 Update all users.
29360
29361 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
29362
29363 * include/multiboot2.h (multiboot_word): Rename from this ...
29364 (multiboot2_word): ... to this. Update all users.
29365 (multiboot_header): Rename from this ...
29366 (multiboot2_header): ... to this. Update all users.
29367 (multiboot_tag_header): Rename from this ...
29368 (multiboot2_tag_header): ... to this. Update all users.
29369 (multiboot_tag_start): Rename from this ...
29370 (multiboot2_tag_start): ... to this. Update all users.
29371 (multiboot_tag_name): Rename from this ...
29372 (multiboot2_tag_name): ... to this. Update all users.
29373 (multiboot_tag_module): Rename from this ...
29374 (multiboot2_tag_module): ... to this. Update all users.
29375 (multiboot_tag_memory): Rename from this ...
29376 (multiboot2_tag_memory): ... to this. Update all users.
29377 (multiboot_tag_unused): Rename from this ...
29378 (multiboot2_tag_unused): ... to this. Update all users.
29379 (multiboot_tag_end): Rename from this ...
29380 (multiboot2_tag_end): ... to this. Update all users.
29381
29382 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
29383
29384 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
29385 this platform we should support Multiboot1 first.
29386
29387 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
29388 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
29389 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
29390
29391 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
29392
29393 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
29394 of write calls (converting them to fwrite() if they aren't already).
29395 (get_torito_desc): Likewise.
29396 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
29397
29398 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
29399
29400 * util/i386/pc/grub-install.in: Move from here ...
29401 * util/grub-install.in: ... to here. Update all users.
29402
29403 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
29404
29405 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
29406
29407 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
29408
29409 Support for El Torito without floppy emulation.
29410
29411 * util/mkisofs/eltorito.c: Include `<errno.h>'.
29412 (init_boot_catalog): Improve error handling.
29413 (get_torito_desc): Don't use floppy emulation unless requested by
29414 user. Patch boot information table when requested via
29415 `-boot-info-table'.
29416 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
29417 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
29418 (use_boot_info_table): New variables.
29419 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
29420 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
29421 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
29422 `--eltorito-emul-floppy'.
29423 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
29424 and `OPTION_ELTORITO_EMUL_FLOPPY'.
29425 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
29426 (use_boot_info_table, get_731): New prototypes.
29427 * util/mkisofs/write.c (get_731): New function.
29428
29429 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
29430
29431 Fix the generation of the man page.
29432
29433 * util/pc/i386/grub-install.in: Source
29434 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
29435
29436 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
29437
29438 Large file support for grub-mkisofs.
29439
29440 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
29441 * util/mkisofs/mkisofs.c (next_extent, last_extent)
29442 (session_start): Upgrade type to `uint64_t'. Update all users.
29443 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
29444 (struct directory_entry): Upgrade type of `starting_block' and
29445 `size' to `uint64_t'. Update all users.
29446 (struct deferred): Remove unused structure.
29447 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
29448 Update all users.
29449 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
29450 file is larger than `UINT32_MAX'.
29451 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
29452 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
29453 return value.
29454 (struct deferred_write): Upgrade type of `extent' and `size' to
29455 `uint64_t'. Update all users.
29456 (last_extent_written): Upgrade type to `uint64_t'. Update all
29457 users.
29458 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
29459 Update all users. Upgrade type of `remain' to `int64_t' and
29460 `use' to `size_t'. Use error() to handle fread() errors.
29461 (write_files): Rely on write_one_file() rather than calling
29462 xfwrite() directly.
29463
29464 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
29465
29466 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
29467
29468 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29469
29470 * util/mkisofs/fnmatch.c: Remove.
29471 * util/mkisofs/getopt1.c: Likewise.
29472 * util/mkisofs/getopt.c: Likewise.
29473 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
29474 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
29475 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
29476 `gnulib/getopt1.c' and `gnulib/getopt.c'.
29477 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
29478
29479 * configure.ac: Detect `mingw32msvc' host_os.
29480 Check for lstat(), getuid() and getgid().
29481
29482 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
29483 instances of `u_char' with `uint8_t'.
29484
29485 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
29486 [!HAVE_GETUID] (getuid): New function (stub).
29487 [!HAVE_GETGID] (getgid): Likewise.
29488 [!HAVE_LSTAT] (lstat): Likewise.
29489 [!S_IROTH] (S_IROTH): New macro (dummy).
29490 [!S_IRGRP] (S_IRGRP): Likewise.
29491
29492 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29493
29494 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
29495 conditional expression).
29496
29497 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29498
29499 Import from Gnulib.
29500
29501 * gnulib/fnmatch.c: New file.
29502 * gnulib/fnmatch.h: Likewise.
29503 * gnulib/fnmatch_loop.c: Likewise.
29504 * gnulib/getopt.c: Likewise.
29505 * gnulib/getopt.h: Likewise.
29506 * gnulib/getopt1.c: Likewise.
29507 * gnulib/getopt_int.h: Likewise.
29508 * gnulib/gettext.h: Likewise.
29509
29510 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29511
29512 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
29513 * normal/handler.c (read_handler_list): Likewise.
29514
29515 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29516
29517 Misc cleanup.
29518
29519 * kern/command.c (grub_register_command_prio): Use
29520 grub_zalloc() instead of explicitly zeroing data.
29521 * kern/list.c: Include `<grub/mm.h>'.
29522 (grub_named_list_find): Replace `0' with `NULL'.
29523 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
29524 (fs_module_list): Change type to `grub_named_list_t'. Update all
29525 users.
29526 * normal/dyncmd.c (read_command_list): Add space between function
29527 call and parenthesis.
29528 * normal/handler.c (read_handler_list): Likewise.
29529
29530 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29531
29532 * normal/auth.c (punishment_delay): Moved from here ...
29533 (grub_auth_strcmp): ... to here (inside function).
29534
29535 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29536
29537 * include/grub/list.h (struct grub_named_list): Remove `const'
29538 qualifier from `name'.
29539 (struct grub_prio_list): Likewise.
29540
29541 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29542
29543 * normal/auth.c: Include `<grub/time.h>'.
29544 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
29545
29546 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29547
29548 * normal/auth.c (punishment_delay): New variable.
29549 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
29550 (grub_auth_check_authentication): Punish failed login attempts with
29551 an incremental (2^N) delay.
29552
29553 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29554
29555 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
29556 path with $(srcdir).
29557
29558 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
29559
29560 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
29561
29562 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
29563
29564 * util/i386/coreboot/grub-mkrescue.in: New file.
29565 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
29566 variables.
29567
29568 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
29569 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
29570 * configure.ac: Add header and function checks to satisfy grub-mkisofs
29571 requirements.
29572 * util/mkisofs/defaults.h: New file.
29573 * util/mkisofs/eltorito.c: Likewise.
29574 * util/mkisofs/exclude.h: Likewise.
29575 * util/mkisofs/fnmatch.c: Likewise.
29576 * util/mkisofs/getopt.c: Likewise.
29577 * util/mkisofs/getopt1.c: Likewise.
29578 * util/mkisofs/hash.c: Likewise.
29579 * util/mkisofs/include/fctldefs.h: Likewise.
29580 * util/mkisofs/include/mconfig.h: Likewise.
29581 * util/mkisofs/include/prototyp.h: Likewise.
29582 * util/mkisofs/include/statdefs.h: Likewise.
29583 * util/mkisofs/iso9660.h: Likewise.
29584 * util/mkisofs/joliet.c: Likewise.
29585 * util/mkisofs/match.c: Likewise.
29586 * util/mkisofs/match.h: Likewise.
29587 * util/mkisofs/mkisofs.c: Likewise.
29588 * util/mkisofs/mkisofs.h: Likewise.
29589 * util/mkisofs/multi.c: Likewise.
29590 * util/mkisofs/name.c: Likewise.
29591 * util/mkisofs/rock.c: Likewise.
29592 * util/mkisofs/tree.c: Likewise.
29593 * util/mkisofs/write.c: Likewise.
29594
29595 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
29596
29597 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
29598 being insecure.
29599
29600 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
29601
29602 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
29603 `grub-mkimage' (and use $0 when possible).
29604
29605 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
29606
29607 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
29608 error message for excessively large memory map.
29609
29610 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
29611
29612 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
29613 executable bit.
29614
29615 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
29616
29617 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
29618 message for coreboot users.
29619
29620 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
29621
29622 Fix build with GNU gold.
29623
29624 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
29625 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
29626 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
29627 link addresses.
29628 * aclocal.m4: Likewise.
29629
29630 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
29631
29632 * configure.ac (AC_PREREQ): Bump to 2.59d.
29633 * INSTALL: Make it more clear when Autoconf and Ruby are
29634 needed and when to run `./autogen.sh'.
29635
29636 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
29637
29638 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
29639 OSes.
29640
29641 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
29642
29643 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
29644
29645 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
29646
29647 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
29648 giving it to GNU Mach.
29649
29650 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
29651
29652 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
29653 GNU partition number to get internal GRUB partition number.
29654
29655 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
29656
29657 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
29658 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
29659
29660 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
29661
29662 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
29663 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
29664 case.
29665
29666 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
29667
29668 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
29669
29670 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
29671
29672 Fix build problem.
29673
29674 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
29675 `-isystem=$(srcdir)/include'.
29676
29677 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
29678
29679 * util/i386/pc/grub-install.in: Remove hint that device.map should be
29680 checked (grub-install doesn't currently rely on it).
29681
29682 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
29683
29684 Revert SVN r2660.
29685
29686 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
29687 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
29688 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
29689 * conf/i386-ieee1275.rmk: Likewise.
29690 * conf/i386-pc.rmk: Likewise.
29691 * conf/powerpc-ieee1275.rmk: Likewise.
29692 * conf/sparc64-ieee1275.rmk: Likewise.
29693 * conf/x86_64-efi.rmk: Likewise.
29694
29695 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
29696
29697 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
29698
29699 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
29700
29701 * include/grub/misc.h: Stop checking for APPLE_CC.
29702
29703 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
29704
29705 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
29706 doesn't cause an infinite call loop.
29707
29708 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
29709
29710 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
29711 strings.
29712
29713 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29714
29715 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
29716 variable.
29717 * Makefile.in: Likewise.
29718
29719 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29720
29721 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
29722
29723 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29724
29725 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
29726
29727 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29728
29729 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
29730
29731 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29732
29733 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
29734 from here ...
29735 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
29736
29737 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29738
29739 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
29740 in $(MAKEINFO) invocation. This makes it clear in output that
29741 errors are being ignored.
29742
29743 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29744
29745 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
29746 from here ...
29747 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
29748 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
29749 * conf/i386-ieee1275.rmk: Likewise.
29750 * conf/i386-pc.rmk: Likewise.
29751 * conf/powerpc-ieee1275.rmk: Likewise.
29752 * conf/sparc64-ieee1275.rmk: Likewise.
29753 * conf/x86_64-efi.rmk: Likewise.
29754
29755 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
29756
29757 * util/grub-editenv.c (main): If only a command is given, use
29758 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
29759 (usage): FILENAME is now optional and has a default.
29760
29761 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
29762
29763 Improve grub-mkconfig performance when there are several menu
29764 entries on a single filesystem.
29765
29766 * util/grub.d/10_linux.in (linux_entry): Cache the output of
29767 prepare_grub_to_access_device.
29768 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29769 * util/grub.d/30_os-prober.in: Likewise.
29770
29771 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29772
29773 * util/grub.d/10_freebsd.in: Remove.
29774 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
29775 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
29776
29777 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
29778
29779 * docs/grub.cfg: Fix example usage of *BSD loaders.
29780
29781 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29782
29783 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
29784 grub_util_error() call.
29785
29786 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29787
29788 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
29789 `reserved_first_sector' member.
29790 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
29791 `reserved_first_sector' to 1.
29792 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
29793 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
29794 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
29795 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
29796 filesystems which begin at first sector.
29797 (options): New option --skip-fs-probe.
29798 (main): Handle --skip-fs-probe and pass it to setup().
29799
29800 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29801
29802 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
29803 (memset): Fix function prototype.
29804
29805 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29806 2009-10-25 Vasily Averin <vvs@parallels.com>
29807
29808 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
29809 `dirent.direntlen == 0'.
29810
29811 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29812
29813 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
29814 `cpio'.
29815 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
29816
29817 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29818
29819 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
29820 `__trampoline_setup' and `__ucmpdi2'.
29821 * include/grub/powerpc/libgcc.h: Only export symbols for functions
29822 that libgcc provides.
29823
29824 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29825
29826 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
29827 * include/grub/sparc64/libgcc.h (memset): Likewise.
29828 * include/grub/misc.h (memset, memcmp): New function prototypes.
29829
29830 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29831
29832 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
29833 `cpio'.
29834 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
29835
29836 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
29837
29838 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
29839 * docs/grub.cfg: Compensate for recent change in multiboot
29840 loader (since 2009-08-14 it won't pass filename to payload).
29841 * util/grub.d/10_hurd.in: Likewise.
29842
29843 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
29844
29845 * config.guess: Update to latest version from config git
29846 repository.
29847 * config.sub: Likewise.
29848
29849 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
29850
29851 Fix build on sparc64.
29852
29853 * configure.ac: Perform checks for libgcc symbols before
29854 adding `-nostdlib' to LDFLAGS.
29855
29856 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
29857
29858 Let user specify OpenBSD root device.
29859
29860 * loader/i386/bsd.c (openbsd_root): New variable.
29861 (openbsd_opts): New option 'root'.
29862 (OPENBSD_ROOT_ARG): New macro.
29863 (grub_openbsd_boot): Use 'openbsd_root'.
29864 (grub_cmd_openbsd): Fill 'openbsd_root'.
29865
29866 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
29867
29868 * NEWS: Misc adjustments.
29869
29870 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
29871
29872 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
29873
29874 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
29875
29876 * configure.ac: Bump version to 1.97.
29877
29878 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
29879
29880 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
29881 -mno-3dnow on x86 architectures. Some toolchains enable these
29882 features by default, but they rely on registers that aren't enabled
29883 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
29884
29885 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
29886
29887 Make entry text a bit more readable.
29888
29889 * util/grub.d/10_linux.in: Add `with' before `Linux'.
29890
29891 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
29892
29893 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
29894
29895 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
29896
29897 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
29898 operations.
29899
29900 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
29901
29902 * configure.ac: Add missing dollar.
29903
29904 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
29905
29906 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
29907
29908 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
29909 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
29910 exports.
29911 * include/grub/sparc64/libgcc.h: Likewise. Use
29912 preprocessor conditionals.
29913
29914 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
29915
29916 * conf/common.rmk (grub-dumpbios): Remove rule.
29917 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
29918 * util/grub-dumpbios.in: Remove file.
29919
29920 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
29921
29922 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
29923 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
29924
29925 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
29926 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
29927 users.
29928
29929 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
29930 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
29931 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
29932 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
29933 users.
29934
29935 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
29936
29937 * term/tparm.c: Switch to GPLv3.
29938
29939 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
29940
29941 * include/grub/i386/cpuid.h: Add header protection.
29942
29943 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
29944
29945 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
29946
29947 * include/grub/i386/cpuid.h: New file.
29948 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
29949 (has_longmode): Rename to ...
29950 (grub_cpuid_has_longmode): ... this. Update all users. Remove
29951 `static' attribute.
29952 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
29953 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
29954 on a CPU that doesn't implement AMD64 instruction set.
29955
29956 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
29957
29958 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
29959 that version.texi is rebuilt on version number changes.
29960
29961 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
29962
29963 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
29964 Fixes bug #27602.
29965
29966 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
29967
29968 * util/i386/pc/grub-install.in: Source
29969 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
29970 that the --grub-probe option will work.
29971 * util/sparc64/ieee1275/grub-install.in: Likewise.
29972
29973 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
29974
29975 * configure.ac: Bump version to 1.97~beta4.
29976
29977 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
29978
29979 Resync grub-mkdevicemap in x86_64-efi.
29980
29981 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
29982 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
29983 `util/devicemap.c'.
29984
29985 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
29986
29987 * util/grub-editenv.c (create_envblk_file): Write new block with a
29988 .new suffix and then rename it into place, to ensure atomic
29989 creation.
29990
29991 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
29992
29993 Do not automatically install headers.
29994
29995 * Makefile.in (include_DATA): Remove. Update all users.
29996
29997 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
29998
29999 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
30000 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
30001
30002 * util/osdetect.lua: Remove.
30003 * script/lua/lauxlib.c: Likewise.
30004 * script/lua/ldebug.c: Likewise.
30005 * script/lua/grub_main.c: Likewise.
30006 * script/lua/lauxlib.h: Likewise.
30007 * script/lua/ldebug.h: Likewise.
30008 * script/lua/ltablib.c: Likewise.
30009 * script/lua/liolib.c: Likewise.
30010 * script/lua/lstrlib.c: Likewise.
30011 * script/lua/lualib.h: Likewise.
30012 * script/lua/ldo.c: Likewise.
30013 * script/lua/ldump.c: Likewise.
30014 * script/lua/ldo.h: Likewise.
30015 * script/lua/loslib.c: Likewise.
30016 * script/lua/lundump.c: Likewise.
30017 * script/lua/grub_lib.c: Likewise.
30018 * script/lua/ldblib.c: Likewise.
30019 * script/lua/lundump.h: Likewise.
30020 * script/lua/lmem.c: Likewise.
30021 * script/lua/grub_lib.h: Likewise.
30022 * script/lua/lmathlib.c: Likewise.
30023 * script/lua/lstate.c: Likewise.
30024 * script/lua/ltm.c: Likewise.
30025 * script/lua/lvm.c: Likewise.
30026 * script/lua/lmem.h: Likewise.
30027 * script/lua/lstate.h: Likewise.
30028 * script/lua/ltm.h: Likewise.
30029 * script/lua/ltable.c: Likewise.
30030 * script/lua/lvm.h: Likewise.
30031 * script/lua/llex.c: Likewise.
30032 * script/lua/lgc.c: Likewise.
30033 * script/lua/grub_lua.h: Likewise.
30034 * script/lua/loadlib.c: Likewise.
30035 * script/lua/lfunc.c: Likewise.
30036 * script/lua/lopcodes.c: Likewise.
30037 * script/lua/lparser.c: Likewise.
30038 * script/lua/ltable.h: Likewise.
30039 * script/lua/llex.h: Likewise.
30040 * script/lua/lgc.h: Likewise.
30041 * script/lua/lfunc.h: Likewise.
30042 * script/lua/lbaselib.c: Likewise.
30043 * script/lua/lopcodes.h: Likewise.
30044 * script/lua/lparser.h: Likewise.
30045 * script/lua/lzio.c: Likewise.
30046 * script/lua/linit.c: Likewise.
30047 * script/lua/lobject.c: Likewise.
30048 * script/lua/llimits.h: Likewise.
30049 * script/lua/lstring.c: Likewise.
30050 * script/lua/lzio.h: Likewise.
30051 * script/lua/lapi.c: Likewise.
30052 * script/lua/lcode.c: Likewise.
30053 * script/lua/lua.h: Likewise.
30054 * script/lua/lobject.h: Likewise.
30055 * script/lua/lstring.h: Likewise.
30056 * script/lua/lapi.h: Likewise.
30057 * script/lua/lcode.h: Likewise.
30058 * script/lua/luaconf.h: Likewise.
30059
30060 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
30061
30062 * docs/grub.texi (Command-line and menu entry commands): Document
30063 date and echo commands.
30064
30065 2009-09-24 Pavel Roskin <proski@gnu.org>
30066
30067 * include/grub/kernel.h (struct grub_module_header): Remove
30068 `grub_module_header_types'. Make `type' unsigned. Make `size'
30069 32-bit on all platforms.
30070 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
30071 8-bit field. Use grub_host_to_target32() for `size'.
30072 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
30073 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
30074 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
30075
30076 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
30077
30078 Fix "lost keypress" bug in at_keyboard.
30079
30080 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
30081 Checks for readyness of input buffer (without flushing it).
30082 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
30083 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
30084
30085 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
30086
30087 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
30088 size check within GRUB_MACHINE_PCBIOS section.
30089
30090 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
30091
30092 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
30093 return value.
30094 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
30095 KEYBOARD_ISREADY check.
30096 (grub_at_keyboard_checkkey): Rename to ...
30097 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
30098 Remove gratuitous cast.
30099
30100 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
30101
30102 * configure.ac: Call AC_PROG_MKDIR_P.
30103 * Makefile.in (docs/stamp-vti): Create docs directory. Create
30104 version.texi in $(builddir) rather than $(srcdir).
30105 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
30106 to makeinfo's @include search path.
30107
30108 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
30109
30110 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
30111
30112 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
30113
30114 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
30115 for `*.dpkg-new'.
30116
30117 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
30118
30119 Build info documentation. Some code borrowed from Automake.
30120
30121 * configure.ac: Check for makeinfo.
30122 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
30123 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
30124 docs/version.texi.
30125 (MOSTLYCLEANFILES): Add vti.tmp.
30126 (docs/version.texi, docs/stamp-vti): Update automatically.
30127 (docs/grub.info): Build info documentation. Use --force and ignore
30128 errors for now.
30129 (all-local): Add $(INFOS).
30130 (install-local): Install info files.
30131 (uninstall): Uninstall info files.
30132 * docs/version.texi: Remove from revision control. This file is
30133 automatically generated on build now.
30134 * gendistlist.sh: Add `*.info'.
30135
30136 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
30137
30138 * kern/term.c: Fix indentation.
30139
30140 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
30141
30142 * util/hostdisk.c: Fix a comment.
30143
30144 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
30145
30146 Fix regression introduced in r2539.
30147
30148 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
30149 to 0xA1.
30150
30151 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
30152
30153 * util/grub.d/30_os-prober.in: Don't throw away stderr from
30154 os-prober. Under normal operation, it does not print anything to
30155 stderr; if it does, we need to debug it, and throwing away stderr
30156 makes that excessively difficult.
30157
30158 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
30159
30160 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
30161
30162 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
30163
30164 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
30165 AC_LANG_PROGRAM from autoconf.
30166 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
30167 prototypes (fixes warning).
30168
30169 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
30170 `--disable-werror' was used.
30171
30172 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
30173
30174 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
30175 uninitialized `lastaddr'.
30176
30177 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
30178
30179 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
30180
30181 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
30182
30183 * commands/test.c (get_fileinfo): Return immediately if
30184 grub_fs_probe fails.
30185
30186 2009-09-14 José Martínez <xosemp@gmail.com>
30187
30188 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
30189
30190 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
30191
30192 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
30193 output.
30194
30195 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
30196
30197 * configure.ac: Remove --enable-grub-pe2elf. Only build
30198 grub-pe2elf when needed by the build system itself.
30199 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
30200
30201 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
30202
30203 * configure.ac: Bump version to 1.97~beta3.
30204 * docs/version.texi: Likewise.
30205
30206 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
30207
30208 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
30209 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
30210 from here ...
30211 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
30212 (grub_linux_setup_video): ... to here (with some adjustments).
30213
30214 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
30215
30216 Fix memory corruption issue (spotted by Colin Watson).
30217
30218 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
30219 causing returned size to be stored in an incorrect memory location.
30220 Fix use of uninitialized value when storing the returned size.
30221
30222 2009-09-12 Yves Blusseau <blusseau@zetam.org>
30223
30224 Change clean rules to properly remove files
30225
30226 * genmk.rb: add new clean rules
30227 * Makefile.in (clean): add the new targets
30228 (mostlyclean): likewise
30229
30230 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
30231
30232 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
30233 to grub_uint64_t.
30234 * fs/ntfs.c (init_file): Understand 64-bit sizes for
30235 non-resident files.
30236
30237 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
30238
30239 * configure.ac: Don't look for help2man when cross-compiling. Fixes
30240 part of bug #27349.
30241
30242 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
30243
30244 * util/grub-mkconfig.in: Make the created config mode 400 and
30245 print a warning if it fails.
30246
30247 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
30248
30249 * util/grub.d/40_custom.in: Ask user to type custom entries below
30250 comment, rather than below 'exec tail' line.
30251
30252 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
30253
30254 * util/grub.d/40_custom.in: Make sure that the explanatory text is
30255 visible in grub.cfg.
30256
30257 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
30258
30259 * util/grub.d/40_custom.in: Make it a little clearer how to use this
30260 file.
30261
30262 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
30263
30264 * docs/grub.cfg: Add an example menu entry for memtest86+.
30265
30266 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
30267
30268 * config.guess: Update to latest version from config git.
30269 * config.sub: Likewise.
30270
30271 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
30272
30273 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
30274 unknown-command case. Fixes bug #27320.
30275
30276 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
30277
30278 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
30279 `help' if the command exists.
30280
30281 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
30282
30283 * INSTALL: Require GCC 4.1.3 or later.
30284
30285 2009-09-06 Yves Blusseau <blusseau@zetam.org>
30286
30287 * Makefile.in (RMKFILES): add i386-qemu.rmk
30288 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
30289 $(srcdir)/stamp-h.in
30290
30291 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
30292
30293 * util/grub-probe.c (probe): Comment out buggy codepath, which
30294 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
30295 should be re-enabled after 1.97.
30296
30297 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
30298
30299 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
30300 find searches for.
30301
30302 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
30303
30304 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
30305 unnecessary calls to grub_error.
30306
30307 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
30308
30309 * NEWS: Mention `keystatus' and Unicode fonts.
30310
30311 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
30312
30313 * configure.ac: Bump version to 1.97~beta2.
30314 * docs/version.texi: Likewise.
30315
30316 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
30317
30318 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
30319 containing unwind information in some cases where it previously did
30320 not. Use -fno-dwarf2-cfi-asm if available to restore the old
30321 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
30322 discussion.
30323
30324 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
30325
30326 Embedding loadenv module into grub-emu
30327
30328 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
30329 commands/loadenv.c
30330 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
30331 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
30332 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
30333 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
30334 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
30335 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
30336
30337 2009-09-03 Magnus Granberg <zorry@ume.nu>
30338
30339 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
30340 include -fPIE in the default specs.
30341 * configure.ac: Check if pie_possible is yes and add -fno-PIE
30342 to TARGET_CFLAGS.
30343
30344 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
30345
30346 * INSTALL: Note that GNU Bison 2.3 or later is required.
30347
30348 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
30349
30350 * kern/i386/pc/startup.S: Fix typo.
30351
30352 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
30353
30354 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
30355 according to GCS.
30356
30357 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
30358
30359 * docs/grub.texi (Naming convention): Describe one-based partition
30360 numbering.
30361 (Device syntax): Likewise.
30362 (File name syntax): Likewise.
30363 (Block list syntax): Likewise.
30364 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
30365 menu.lst.
30366 (File name syntax): Likewise.
30367 (Command-line and menu entry commands): Document acpi, blocklist,
30368 crc, export, insmod, keystatus, ls, set, and unset commands.
30369
30370 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
30371
30372 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
30373 to avoid implying that only one of --shift, --ctrl, or --alt may be
30374 used.
30375
30376 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
30377
30378 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
30379 rather than comparing against S_IFREG, which will almost never work.
30380
30381 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
30382
30383 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
30384 (write_blocklists): Likewise.
30385
30386 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
30387
30388 * script/lua/grub_lua.h (fputs): Supply a format string as the first
30389 argument to grub_printf.
30390
30391 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
30392
30393 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
30394 non GNU test.
30395
30396 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
30397
30398 * kern/file.c (grub_file_read): Spelling fix
30399
30400 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
30401
30402 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
30403 loading of headers in some cases.
30404
30405 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
30406
30407 * configure.ac: Bump version to 1.97~beta1.
30408 * docs/version.texi: Likewise.
30409
30410 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
30411
30412 * include/grub/i386/xnu.h: Add license header.
30413 include grub/err.h explicitly.
30414
30415 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
30416
30417 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
30418 to `ufs' in the vfs.root.mountfrom kernel parameter.
30419
30420 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
30421
30422 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
30423
30424 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
30425 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
30426
30427 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
30428 `ARRAY_SIZE' macro.
30429
30430 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
30431
30432 * kern/file.c (grub_file_read): Check offset.
30433 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
30434 * fs/jfs.c (grub_jfs_read_file): Likewise.
30435 * fs/ntfs.c (grub_ntfs_read): Likewise.
30436 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
30437 * fs/minix.c (grub_minix_read_file): Correct offset check.
30438 * fs/ufs.c (grub_ufs_read_file): Likewise.
30439
30440 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
30441
30442 * term/i386/pc/console.c (bios_data_area): Cast
30443 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
30444
30445 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
30446
30447 1-bit optimised blitters.
30448
30449 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
30450 prototype.
30451 (grub_video_fbblit_replace_24bit_1bit): Likewise.
30452 (grub_video_fbblit_replace_16bit_1bit): Likewise.
30453 (grub_video_fbblit_replace_8bit_1bit): Likewise.
30454 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
30455 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
30456 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
30457 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
30458 function.
30459 (grub_video_fbblit_replace_24bit_1bit): Likewise.
30460 (grub_video_fbblit_replace_16bit_1bit): Likewise.
30461 (grub_video_fbblit_replace_8bit_1bit): Likewise.
30462 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
30463 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
30464 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
30465 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
30466 when possible.
30467 * video/video.c (grub_video_get_blit_format): Return
30468 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
30469
30470 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
30471
30472 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
30473 the first argument to grub_printf.
30474
30475 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
30476 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
30477
30478 Add `getkeystatus' terminal method. Add a new `keystatus' command
30479 to query it.
30480
30481 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
30482 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
30483 modifier key bitmasks.
30484 (struct grub_term_input): Add `getkeystatus' member.
30485 (grub_getkeystatus): Add prototype.
30486 * kern/term.c (grub_getkeystatus): New function.
30487
30488 * include/grub/i386/pc/memory.h
30489 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
30490 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
30491 Data Area layout.
30492 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
30493 (grub_console_term_input): Set `getkeystatus' member.
30494 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
30495 constants.
30496 (grub_usb_keyboard_getreport): Likewise.
30497 (grub_usb_keyboard_checkkey): Likewise.
30498 (grub_usb_keyboard_getkeystatus): New function.
30499 (grub_usb_keyboard_term): Set `getkeystatus' member.
30500
30501 * commands/keystatus.c: New file.
30502 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
30503 (keystatus_mod_SOURCES): New variable.
30504 (keystatus_mod_CFLAGS): Likewise.
30505 (keystatus_mod_LDFLAGS): Likewise.
30506 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
30507 commands/keystatus.c.
30508 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30509 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30510 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30511 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30512 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30513 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
30514
30515 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
30516
30517 Split befs.mod and afs.mod into *_be.mod and *.mod
30518
30519 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
30520 (grub_fstest_SOURCES): Likewise.
30521 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
30522 (afs_be_mod_SOURCES): New variable.
30523 (afs_be_mod_CFLAGS): Likewise.
30524 (afs_be_mod_LDFLAGS): Likewise.
30525 (befs_be_mod_SOURCES): Likewise.
30526 (befs_be_mod_CFLAGS): Likewise.
30527 (befs_be_mod_LDFLAGS): Likewise.
30528 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
30529 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30530 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30531 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
30532 (grub_emu_SOURCES): Likewise.
30533 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30534 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30535 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
30536 * fs/afs_be.c: New file.
30537 * fs/befs_be.c: New file.
30538 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
30539 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
30540 (U16): Replaced with ...
30541 (grub_afs_to_cpu16): ...this. All users updated.
30542 (U32): Replaced with ...
30543 (grub_afs_to_cpu32): ...this. All users updated.
30544 (U64): Replaced with ...
30545 (grub_afs_to_cpu64): ...this. All users updated.
30546 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
30547 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
30548 (grub_afs_validate_sblock): Check only one endianness.
30549 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
30550 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
30551 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
30552 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
30553 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
30554 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
30555 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
30556 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
30557
30558 2009-08-26 Bean <bean123ch@gmail.com>
30559
30560 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
30561 64-bit number.
30562 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
30563 (grub_xfs_inode_block): Change return type to grub_uint64_t.
30564 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
30565
30566 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
30567
30568 NetBSD memory map support.
30569
30570 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
30571 (grub_netbsd_btinfo_mmap_header): New structure.
30572 (grub_netbsd_btinfo_mmap_entry): Likewise.
30573 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
30574
30575 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
30576
30577 Enable bsd.mod on coreboot.
30578
30579 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
30580 (bsd_mod_SOURCES): New variable.
30581 (bsd_mod_CFLAGS): Likewise.
30582 (bsd_mod_LDFLAGS): Likewise.
30583 (bsd_mod_ASFLAGS): Likewise.
30584 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
30585 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
30586
30587 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
30588
30589 Cleanup NetBSD root support.
30590
30591 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
30592 grub_bsd_get_device.
30593 Fix typo.
30594
30595 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
30596
30597 * util/grub.d/00_header.in: Move check for the video backend of
30598 gfxterm from here ...
30599 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
30600 a suitable video backend.
30601
30602 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
30603
30604 Fix breakage in grub-setup.
30605
30606 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
30607 "msdos_partition_map".
30608
30609 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
30610
30611 Fix breakage in normal/auth.c.
30612
30613 * normal/auth.c (grub_iswordseparator): New function.
30614
30615 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
30616
30617 Authentication support.
30618
30619 * commands/password.c: New file.
30620 * conf/common.rmk (pkglib_MODULES): Add password.mod.
30621 (password_mod_SOURCES): New variable.
30622 (password_mod_CFLAGS): Likewise.
30623 (password_mod_LDFLAGS): Likewise.
30624 (normal_mod_SOURCES): Add normal/auth.c.
30625 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
30626 normal/auth.c.
30627 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30628 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30629 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30630 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30631 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30632 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
30633 * include/grub/auth.h: New file.
30634 * include/grub/err.h (grub_err_t): New enum value
30635 GRUB_ERR_ACCESS_DENIED.
30636 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
30637 'users'.
30638 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
30639 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
30640 users updated.
30641 * normal/auth.c: New file.
30642 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
30643 (grub_cmdline_run): Don't allow to go to command line without
30644 authentication.
30645 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
30646 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
30647 menuentry without superuser rights.
30648 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
30649 user isn't a superuser.
30650
30651 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30652
30653 Save space by inlining misc.c functions.
30654
30655 * kern/misc.c (grub_iswordseparator): Made static.
30656 * kern/misc.c (grub_strcat): Moved from here ...
30657 * include/grub/misc.h (grub_strcat): ... here. Inlined.
30658 * kern/misc.c (grub_strncat): Moved from here ...
30659 * include/grub/misc.h (grub_strncat): ... here. Inlined.
30660 * kern/misc.c (grub_strcasecmp): Moved from here ...
30661 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
30662 * kern/misc.c (grub_strncasecmp): Moved from here ...
30663 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
30664 * kern/misc.c (grub_isalpha): Moved from here ...
30665 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
30666 * kern/misc.c (grub_isdigit): Moved from here ...
30667 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
30668 * kern/misc.c (grub_isgraph): Moved from here ...
30669 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
30670 * kern/misc.c (grub_tolower): Moved from here ...
30671 * include/grub/misc.h (grub_tolower): ... here. Inlined.
30672
30673 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30674
30675 * script/sh/function.c (grub_script_function_find): Cut error message
30676 not to flood terminal.
30677 * script/sh/lexer.c (grub_script_yylex): Remove command line length
30678 limit.
30679 * script/sh/script.c (grub_script_arg_add): Duplicate string.
30680
30681 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
30682
30683 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
30684 `report' grub_uint8_t *.
30685 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
30686 Use a 50-millisecond timeout rather than just repeating
30687 grub_usb_keyboard_getreport 50 times.
30688 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
30689
30690 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30691
30692 Rename *_partition_map to part_*
30693
30694 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
30695 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
30696 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
30697 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
30698 All users updated.
30699 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
30700 All users updated.
30701 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
30702 * util/grub-probe.c (probe_partmap): Don't transform partition name
30703 to get module name.
30704
30705 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30706
30707 Fix OpenBSD and NetBSD support.
30708
30709 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
30710 memory address conflict.
30711 (OPENBSD_MMAP_ACPI): New definition.
30712 (OPENBSD_MMAP_NVS): Likewise.
30713 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
30714 and OPENBSD_MMAP_NVS.
30715 Add memory map terminator
30716 Explicit cast when calling grub_unix_real_boot.
30717 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
30718
30719 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30720
30721 Let user specify NetBSD root device.
30722
30723 * loader/i386/bsd.c (netbsd_root): New variable.
30724 (netbsd_opts): New option 'root'.
30725 (NETBSD_ROOT_ARG): New macro.
30726 (grub_netbsd_boot): Use 'netbsd_root'.
30727 (grub_bsd_unload): Free 'netbsd_root'.
30728 (grub_cmd_netbsd): Fill 'netbsd_root'.
30729
30730 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30731
30732 Support for 64-bit NetBSD.
30733
30734 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
30735 point when booting non-FreeBSD.
30736
30737 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
30738
30739 Support --no-smp and --no-acpi for NetBSD.
30740
30741 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
30742 (NETBSD_AB_NOACPI): Likewise.
30743 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
30744 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
30745
30746 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
30747
30748 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
30749 errors.
30750 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
30751 errors. Call grub_error when needed.
30752
30753 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
30754
30755 * commands/search.c (search_fs): Try searching without autoload first.
30756 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
30757 filesystem module explicitly for faster booting.
30758
30759 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
30760
30761 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
30762
30763 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
30764
30765 * util/grub.d/30_os-prober.in: Disable os-prober if
30766 `GRUB_DISABLE_OS_PROBER' was set to true.
30767
30768 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
30769
30770 * partmap/pc.c: Rename to ...
30771 * partmap/msdos.c: ... this. Update all users.
30772 (grub_pc_partition_map): Rename to ...
30773 (grub_msdos_partition_map): ... this. Update all users.
30774
30775 * parttool/pcpart.c: Rename to ...
30776 * parttool/msdospart.c: ... this. Update all users.
30777
30778 * include/grub/pc_partition.h: Rename to ...
30779 * include/grub/msdos_partition.h: ... this. Update all users.
30780 (grub_pc_partition_bsd_entry): Rename to ...
30781 (grub_msdos_partition_bsd_entry): ... this. Update all users.
30782 (grub_pc_partition_disk_label): Rename to ...
30783 (grub_msdos_partition_disk_label): ... this. Update all users.
30784 (grub_pc_partition_entry): Rename to ...
30785 (grub_msdos_partition_entry): ... this. Update all users.
30786 (grub_pc_partition_mbr): Rename to ...
30787 (grub_msdos_partition_mbr): ... this. Update all users.
30788 (grub_pc_partition): Rename to ...
30789 (grub_msdos_partition): ... this. Update all users.
30790 (grub_pc_partition_is_empty): Rename to ...
30791 (grub_msdos_partition_is_empty): ... this. Update all users.
30792 (grub_pc_partition_is_extended): Rename to ...
30793 (grub_msdos_partition_is_extended): ... this. Update all users.
30794 (grub_pc_partition_is_bsd): Rename to ...
30795 (grub_msdos_partition_is_bsd): ... this. Update all users.
30796
30797 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
30798 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
30799 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
30800 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
30801 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
30802 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
30803 (gpt_mod_LDFLAGS): Rename to ...
30804 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
30805 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
30806 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
30807 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
30808 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
30809 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
30810 (part_gpt_mod_LDFLAGS): ... this.
30811 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
30812 `pcpart.mod' to `msdospart.mod'.
30813 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
30814 to ...
30815 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
30816 (msdospart_mod_LDFLAGS): ... this.
30817
30818 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
30819
30820 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
30821 (openbsd_opts): Likewise.
30822 (netbsd_opts): Likewise.
30823 (freebsd_flags): Added 0 terminator.
30824 (openbsd_flags): Likewise.
30825 (netbsd_flags): Likewise.
30826 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
30827 (grub_cmd_freebsd): Transformed into extended command.
30828 (grub_cmd_openbsd): Likewise.
30829 (grub_cmd_netbsd): Likewise.
30830 (cmd_freebsd): Changed type to grub_extcmd_t.
30831 (cmd_openbsd): Likewise.
30832 (cmd_netbsd): Likewise.
30833 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
30834 grub_cmd_openbsd as extended commands.
30835 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
30836 cmd_netbsd and cmd_openbsd
30837
30838 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
30839
30840 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
30841
30842 2009-08-21 Pavel Roskin <proski@gnu.org>
30843
30844 * Makefile.in (install-local): When checking if a file is in the
30845 build directory, use "test -e" to detect symlinks.
30846
30847 * Makefile.in (install-local): Remove all files in
30848 $(DESTDIR)$(pkglibdir) before installing new files there.
30849
30850 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
30851
30852 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
30853 grub-mkelfimage.
30854
30855 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
30856
30857 * util/grub-mkconfig.in: Don't use gfxterm by default if not
30858 explicitly specified by the user.
30859
30860 2009-08-18 Pavel Roskin <proski@gnu.org>
30861
30862 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
30863 grub_uint8_t pointer for data.
30864 * include/grub/fbutil.h (struct grub_video_fbblit_info):
30865 Likewise.
30866 * video/fb/fbutil.c: Remove unnecessary casts.
30867
30868 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
30869
30870 VBE cleanup.
30871
30872 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
30873 (grub_vbe_set_video_mode): Save active mode info
30874 only after setting the mode.
30875 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
30876 second argument.
30877
30878 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
30879
30880 Rename variables for clarity.
30881
30882 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
30883 (active_vbe_mode_info): ... this. All users updated.
30884 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
30885 All users updated.
30886 (initial_mode): Rename to ...
30887 (initial_vbe_mode): ... this. All users updated.
30888 (mode_in_use): Rename to ..
30889 (vbe_mode_in_use): ... this. All users updated.
30890 (mode_list): Rename to ..
30891 (vbe_mode_list): ... this. All users updated.
30892 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
30893 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
30894 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
30895 'mode_list_size' to 'vbe_mode_list_size'.
30896 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
30897 'best_mode_info' to 'best_vbe_mode_info' and
30898 'best_mode' to 'best_vbe_mode'
30899
30900 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
30901
30902 Remove duplicate grub_video_fb_get_video_ptr.
30903
30904 * include/grub/fbutil.h (get_data_ptr): Rename to ...
30905 (grub_video_fb_get_video_ptr): ... this.
30906 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
30907 * video/fb/fbutil.c: Add comment about addressing.
30908 (get_data_ptr): Rename to ...
30909 (grub_video_fb_get_video_ptr): ... this. All users updated.
30910 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
30911
30912 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
30913
30914 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
30915 grub_dprintf() that was just added.
30916
30917 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
30918
30919 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
30920 (DEFAULT_VIDEO_MODE): Remove macros.
30921 (grub_linux_boot): Remove assumption that Linux has FB support,
30922 and use "text" as default video mode.
30923
30924 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
30925
30926 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
30927 grub_dprintf.
30928 * fs/fat.c (grub_fat_read_data): Likewise.
30929
30930 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30931
30932 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
30933 payload.
30934 (grub_module): Likewise.
30935
30936 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30937
30938 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
30939 mbi->cmdline but free playground.
30940
30941 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30942
30943 Handle group offset on UFS1.
30944
30945 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
30946 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
30947
30948 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30949
30950 Split ufs.mod into ufs1.mod and ufs2.mod.
30951
30952 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
30953 (grub_fstest_SOURCES): Likewise.
30954 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
30955 (ufs_mod_SOURCES): Remove.
30956 (ufs_mod_CFLAGS): Likewise.
30957 (ufs_mod_LDFLAGS): Likewise.
30958 (ufs1_mod_SOURCES): New variable.
30959 (ufs1_mod_CFLAGS): Likewise.
30960 (ufs1_mod_LDFLAGS): Likewise.
30961 (ufs2_mod_SOURCES): New variable.
30962 (ufs2_mod_CFLAGS): Likewise.
30963 (ufs2_mod_LDFLAGS): Likewise.
30964 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
30965 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
30966 Likewise.
30967 (grub_emu_SOURCES): Likewise.
30968 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30969 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30970 (grub_setup_SOURCES): Likewise.
30971 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30972 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
30973 (grub_setup_SOURCES): Likewise.
30974 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
30975 Likewise.
30976 * fs/ufs2.c: New file.
30977 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
30978
30979 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30980
30981 Framebuffer split.
30982
30983 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
30984 subsystem at the end.
30985 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
30986 (video_fb_mod_SOURCES): New variable.
30987 (video_fb_mod_CFLAGS): Likewise.
30988 (video_fb_mod_LDFLAGS): Likewise.
30989 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
30990 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
30991 * video/i386/pc/vbeblit.c: Moved from here ...
30992 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
30993 * video/i386/pc/vbefill.c: Moved from here ...
30994 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
30995 * video/i386/pc/vbeutil.c: Moved from here ...
30996 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
30997 * include/grub/i386/pc/vbeblit.h: Moved from here ...
30998 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
30999 * include/grub/i386/pc/vbefill.h: Moved from here ...
31000 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
31001 * include/grub/i386/pc/vbeutil.h: Moved from here ...
31002 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
31003 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
31004 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
31005 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
31006 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
31007 (grub_video_adapter): Added 'get_info_and_fini'.
31008 (grub_video_get_info_and_fini): New prototype.
31009 (grub_video_set_mode): make modestring const char *.
31010 * loader/i386/linux.c (grub_linux_setup_video): Use
31011 grub_video_get_info_and_fini.
31012 (grub_linux_boot): Move modesetting just before booting.
31013 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
31014 grub_video_get_info_and_fini.
31015 * video/i386/pc/vbe.c: Moved framebuffer part ...
31016 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
31017 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
31018 grub_video_fbstd_colors and grub_video_fb_set_palette.
31019 (grub_video_vbe_init): Clear 'framebuffer' variable and use
31020 grub_video_fb_init.
31021 (grub_video_vbe_fini): Use grub_video_fb_fini.
31022 (grub_video_vbe_setup): Use framebuffer.render_target instead of
31023 render_target and use grub_video_fb_set_active_render_target and
31024 grub_video_fb_set_palette.
31025 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
31026 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
31027 (grub_video_vbe_adapter): Use framebuffer.
31028 * video/video.c (grub_video_get_info_and_fini): New function.
31029 (grub_video_set_mode): Make modestring const char *.
31030 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
31031 values are already initialised.
31032
31033 2009-08-14 Pavel Roskin <proski@gnu.org>
31034
31035 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
31036 ABS and APPLE_CC.
31037 * boot/i386/pc/diskboot.S: Likewise.
31038 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
31039 sectors allow compilation on MacOSX.
31040 * conf/i386-pc.rmk: Enable unconditional compilation of
31041 lnxboot.img.
31042
31043 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
31044
31045 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
31046 * util/grub.d/00_header.in: Enter interruptible sleep if
31047 GRUB_HIDDEN_TIMEOUT is set.
31048
31049 2009-08-13 Yves Blusseau <blusseau@zetam.org>
31050
31051 * include/grub/symbol.h: Add the LOCAL macro.
31052 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
31053 starting with "L_".
31054
31055 2009-08-13 Pavel Roskin <proski@gnu.org>
31056
31057 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
31058 any modern compilers we support.
31059
31060 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
31061 Use local labels starting with "L_" so that Apple assembler
31062 knows they are local.
31063
31064 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
31065
31066 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
31067 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
31068 (bsd_kernel_types): ... this enum.
31069
31070 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
31071 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
31072 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
31073
31074 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
31075 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
31076 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
31077 messages.
31078
31079 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
31080
31081 * util/grub-dumpdevtree: Moved from here ...
31082 * util/i386/efi/grub-dumpdevtree: ... to here.
31083 (hexify): New function. Converts a string to its hex version.
31084 Generate hex versions of "efi" and "device-properties" by calling
31085 hexify() on the ASCII strings rather than by hardcoding numbers.
31086
31087 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
31088
31089 * fs/jfs.c: Update copyright year.
31090
31091 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
31092
31093 * util/grub.d/00_header.in: Fix a comment.
31094 * util/grub.d/10_linux.in: Likewise.
31095 * util/grub.d/10_windows.in: Likewise.
31096 * util/grub.d/10_hurd.in: Likewise.
31097
31098 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
31099
31100 * util/grub-mkconfig.in: Allow the user to specify the used font
31101 with GRUB_FONT.
31102
31103 2009-08-08 Pavel Roskin <proski@gnu.org>
31104
31105 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
31106 available, xfs.mod needs it now.
31107
31108 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
31109 the "g" modifier in sed when the intention is to strip something
31110 once. This fixes comparison of kernels with multiple dashes.
31111
31112 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
31113 on it. Add missing space before closing bracket. Fix
31114 misleading formatting.
31115
31116 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
31117
31118 * docs/grub.texi: Major overhaul. Remove all sections that are
31119 specific to GRUB Legacy, or mostly composed of Legacy-specific
31120 information.
31121
31122 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
31123
31124 * docs/version.texi: New file. Provides version information for
31125 grub.texi.
31126
31127 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
31128
31129 * docs/grub.texi: Update CVS information to SVN.
31130 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
31131
31132 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
31133
31134 * util/grub-mkconfig.in: Remove a wrong `fi'.
31135
31136 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
31137
31138 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
31139 (grub_jfs_uuid): New function.
31140 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
31141
31142 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
31143
31144 * util/grub-mkconfig_lib.in (font_path): Move the functionality
31145 of it to ...
31146 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
31147 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
31148
31149 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
31150
31151 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
31152 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
31153 Update all users.
31154
31155 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
31156 not just "vmlinu[zx]".
31157 Moved from here ...
31158 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
31159 all users.
31160
31161 * util/grub.d/10_linux.in (find_latest): Moved from here ...
31162 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
31163 all users.
31164
31165 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
31166
31167 * util/grub.d/10_freebsd.in: Use an absolute device path for
31168 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
31169
31170 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
31171
31172 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
31173 handling of multiple abstraction modules.
31174
31175 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
31176
31177 Fix a bug resulting in black screen when loading Linux using a
31178 packed video mode.
31179
31180 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
31181 function.
31182
31183 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
31184 (grub_vbe_bios_getset_dac_palette_width): New function.
31185 (grub_vbe_bios_get_dac_palette_width)
31186 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
31187 grub_vbe_bios_getset_dac_palette_width()).
31188
31189 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
31190 check for return status.
31191 (grub_vbe_get_video_mode_info): When getting information for a packed
31192 mode (<= 8 bpp), obtain DAC palette width using
31193 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
31194 {red,green,blue}_mark_size.
31195
31196 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
31197
31198 * commands/search.c (options): Fix help output to match actual code.
31199
31200 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
31201
31202 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
31203 of homegrown code.
31204
31205 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
31206
31207 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
31208 on XFS or ReiserFS.
31209
31210 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
31211
31212 Support Apple partition map with sector size different from 512 bytes.
31213
31214 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
31215 (apple_partition_map_iterate): Respect 'aheader.blocksize'
31216 and 'apart.partmap_size'.
31217
31218 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
31219 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
31220
31221 Fix cpuid command.
31222
31223 * commands/i386/cpuid.c (options): New variable.
31224 (grub_cmd_cpuid): Return real error.
31225 (GRUB_MOD_INIT(cpuid)): Declare options.
31226
31227 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
31228
31229 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
31230 valid.
31231
31232 2009-07-31 Bean <bean123ch@gmail.com>
31233
31234 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
31235 log2_inode.
31236 (grub_fshelp_node): Move inode field to the end.
31237 (grub_xfs_data): Remove inode field.
31238 (grub_xfs_inode_block): Calculate inode size using sblock.
31239 (grub_xfs_inode_offset): Likewise.
31240 (grub_xfs_read_inode): Calculate inode size using sblock.
31241 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
31242 (grub_xfs_iterate_dir): Calculate inode size using sblock.
31243 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
31244 to match inode size.
31245 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
31246 not accessible when data is null.
31247 (grub_xfs_open): Likewise.
31248
31249 2009-07-31 Bean <bean123ch@gmail.com>
31250
31251 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
31252 Don't change pv->disk if it's already set.
31253
31254 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
31255 (grub_raid_register): ... here.
31256 (grub_raid_rescan): Removed.
31257
31258 * include/grub/raid.h (grub_raid_rescan): Removed.
31259
31260 * util/grub-fstest.c: Remove include file <grub/raid.h>.
31261 (fstest): Replace grub_raid_rescan with module fini function followed
31262 by init function.
31263
31264 * util/grub-probe.c: Add include file <grub/raid.h>.
31265 (probe_raid_level): New function.
31266 (probe): Detect abstraction by walking the disk device, support two
31267 level of abstraction (LVM on RAID) when detecting partition map.
31268
31269 2009-07-31 Pavel Roskin <proski@gnu.org>
31270
31271 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
31272 to grub_zalloc(), it was erroneous.
31273 Reported by Bean <bean123ch@gmail.com>
31274
31275 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
31276
31277 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
31278 embedding zone, not only the first one.
31279
31280 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
31281
31282 * term/gfxterm.c (clear_char): New function.
31283 (grub_virtual_screen_setup): Use clear_char.
31284 (scroll_up): Likewise.
31285 (grub_virtual_screen_cls): Likewise.
31286
31287 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
31288
31289 * util/deviceiter.c (get_acceleraid_disk_name): New static
31290 function.
31291 (grub_util_iterate_devices): Handle Accelraid devices.
31292 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
31293
31294 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
31295
31296 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
31297 separator for the suggested gfxpayload string (';' collides with the
31298 parser and needs escaping).
31299
31300 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
31301
31302 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
31303 Clear direction flag before jumping to OS.
31304 (grub_multiboot2_real_boot): Likewise.
31305
31306 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
31307
31308 * util/i386/pc/grub-install: Fix parsing of --disk-module
31309 option.
31310
31311 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
31312
31313 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
31314 when embedding.
31315
31316 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
31317
31318 * util/grub-mkconfig.in (package_version): New variable.
31319 Use it do display the version.
31320
31321 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
31322
31323 * kern/file.c (grub_file_open): Revert to previous check with
31324 grub_errno.
31325
31326 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
31327
31328 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
31329 from help line. It's out of sync with code.
31330
31331 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
31332
31333 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
31334 entries on failed boot.
31335
31336 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
31337
31338 * kern/file.c (grub_file_open): Fix an error check.
31339
31340 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
31341
31342 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
31343 partition map couldn't be identified.
31344
31345 2009-07-23 Pavel Roskin <proski@gnu.org>
31346
31347 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
31348 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
31349 case of little endian words becomes just an optimization.
31350 Respect const modifier.
31351 (md5_final): Use code that doesn't depend on endianness.
31352
31353 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
31354 to avoid loss of upper bits if align is unsigned and shorter
31355 than addr.
31356
31357 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
31358
31359 UUID support for UFS
31360
31361 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
31362 (grub_ufs_uuid): New function.
31363 (grub_ufs_fs): add .uuid
31364
31365 2009-07-21 Pavel Roskin <proski@gnu.org>
31366
31367 * kern/dl.c (grub_dl_check_header): Make static.
31368
31369 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
31370
31371 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
31372 add drivemap for Vista. It breaks Windows 7.
31373
31374 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
31375
31376 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
31377 128 bytes
31378
31379 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
31380
31381 Add BFS support
31382
31383 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
31384 (grub_fstest_SOURCES): Likewise.
31385 (pkglib_MODULES): Add befs.mod.
31386 (befs_mod_SOURCES): New variable.
31387 (befs_mod_CFLAGS): Likewise.
31388 (befs_mod_LDFLAGS): Likewise.
31389 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
31390 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31391 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31392 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31393 (grub_setup_SOURCES): Likewise.
31394 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31395 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31396 (grub_setup_SOURCES): Likewise.
31397 * fs/befs.c: New file.
31398 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
31399 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
31400 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
31401 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
31402 (B_KEY_INDEX_ALIGN): New declaration.
31403 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
31404 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
31405 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
31406 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
31407 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
31408 (grub_afs_mount) [MODE_BFS]: Likewise.
31409 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
31410 (grub_afs_fs): Use GRUB_AFS_FSNAME
31411 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
31412 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
31413 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
31414 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
31415
31416 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
31417
31418 * util/getroot.c (find_root_device): Add support for MacOSX.
31419 * util/hostdisk.c: Likewise.
31420
31421 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
31422
31423 * font/font.c (find_glyph): Check whether a font is present to avoid
31424 segmentation fault.
31425
31426 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
31427
31428 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
31429
31430 2009-07-20 Pavel Roskin <proski@gnu.org>
31431
31432 * configure.ac: Trim excessively wordy excuses.
31433
31434 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
31435
31436 Add symlink, mtime and label support to AtheFS.
31437
31438 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
31439 (grub_afs_iterate_dir): Handle symlinks.
31440 (grub_afs_open): Use grub_afs_read_symlink.
31441 (grub_afs_dir): Likewise.
31442 Pass mtime.
31443 (grub_afs_label): New function.
31444 (grub_afs_fs): Add grub_afs_label.
31445 (grub_afs_read_symlink): New function.
31446
31447 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
31448
31449 Fix AtheFS support.
31450
31451 * fs/afs.c: Fix comments style.
31452 (grub_afs_blockrun): Declare as packed.
31453 (grub_afs_datastream): Likewise.
31454 (grub_afs_bnode): Likewise.
31455 (grub_afs_btree): Likewise.
31456 (grub_afs_sblock): Likewise.
31457 Declare `name' as char.
31458 (grub_afs_inode): Declare as packed.
31459 Change void *vnode to grub_uint32_t unused.
31460 (grub_afs_iterate_dir): Check that key_size is positive.
31461 (grub_afs_mount): Don't read superblock twice.
31462 (grub_afs_dir): Don't free node in case of error,
31463 grub_fshelp_find_file already handles this.
31464 (grub_afs_open): Likewise.
31465
31466 2009-07-19 Pavel Roskin <proski@gnu.org>
31467
31468 * Makefile.in: Remove LIBLZO and enable_lzo.
31469 * conf/i386-pc.rmk: Remove lzo support.
31470 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
31471 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
31472 support.
31473 * kern/i386/pc/lzo1x.S: Remove.
31474 * kern/i386/pc/startup.S: Remove lzo support.
31475 * util/i386/pc/grub-mkimage.c: Likewise.
31476
31477 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
31478
31479 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
31480 * fs/xfs.c (grub_xfs_dir): Likewise.
31481 * fs/afs.c (grub_afs_dir): Likewise.
31482 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
31483 (grub_iso9660_open): Likewise.
31484 * fs/jfs.c (grub_jfs_open): Likewise.
31485 * fs/ext2.c (grub_ext2_dir): Likewise.
31486 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
31487 * script/sh/lexer.c (grub_script_yylex): Likewise.
31488
31489 2009-07-16 Pavel Roskin <proski@gnu.org>
31490
31491 * configure.ac: Never add "-c" to CFLAGS.
31492
31493 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
31494
31495 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
31496 grub_cv_cc_efiemu should be used.
31497
31498 * configure.ac: Typo fixes.
31499
31500 * kern/mm.c (grub_zalloc): New function.
31501 (grub_debug_zalloc): Likewise.
31502 * include/grub/mm.h: Declare grub_zalloc() and
31503 grub_debug_zalloc().
31504 * util/misc.c (grub_zalloc): New function.
31505 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
31506 instead of grub_malloc(), remove unneeded initializations.
31507 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
31508 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
31509 * commands/parttool.c (grub_cmd_parttool): Likewise.
31510 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
31511 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
31512 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
31513 * disk/usbms.c (grub_usbms_finddevs): Likewise.
31514 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
31515 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
31516 (grub_cmd_efiemu_pnvram): Likewise.
31517 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
31518 * fs/iso9660.c (grub_iso9660_mount): Likewise.
31519 (grub_iso9660_iterate_dir): Likewise.
31520 * fs/jfs.c (grub_jfs_opendir): Likewise.
31521 * fs/ntfs.c (list_file): Likewise.
31522 (grub_ntfs_mount): Likewise.
31523 * kern/disk.c (grub_disk_open): Likewise.
31524 * kern/dl.c (grub_dl_load_core): Likewise.
31525 * kern/elf.c (grub_elf_file): Likewise.
31526 * kern/env.c (grub_env_context_open): Likewise.
31527 (grub_env_set): Likewise.
31528 (grub_env_set_data_slot): Likewise.
31529 * kern/file.c (grub_file_open): Likewise.
31530 * kern/fs.c (grub_fs_blocklist_open): Likewise.
31531 * loader/i386/multiboot.c (grub_module): Likewise.
31532 * loader/xnu.c (grub_xnu_create_key): Likewise.
31533 (grub_xnu_create_value): Likewise.
31534 * normal/main.c (grub_normal_add_menu_entry): Likewise.
31535 (read_config_file): Likewise.
31536 * normal/menu_entry.c (make_screen): Likewise.
31537 * partmap/sun.c (sun_partition_map_iterate): Likewise.
31538 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
31539 * script/sh/script.c (grub_script_parse): Likewise.
31540 * video/bitmap.c (grub_video_bitmap_create): Likewise.
31541 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
31542 * video/readers/png.c (grub_png_output_byte): Likewise.
31543 (grub_video_reader_png): Likewise.
31544
31545 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
31546
31547 Enable all targets that can be built by default
31548
31549 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
31550 grub-mkfont and grub-fstest if they can be built
31551
31552 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
31553
31554 Fix hang and segmentation fault in grub-emu-usb
31555
31556 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
31557 * util/usb.c (grub_libusb_devices): likewise
31558 (grub_libusb_init): rename to ...
31559 (GRUB_MOD_INIT (libusb)):...this
31560 (grub_libusb_fini): rename to ..
31561 (GRUB_MOD_FINI (libusb)):...this
31562 * disk/usbms.c (grub_usbms_transfer): fix retry logic
31563 * include/grub/disk.h (grub_raid_init): removed, it's useless
31564 (grub_raid_fini): likewise
31565 (grub_lvm_init): likewise
31566 (grub_lvm_fini): likewise
31567 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
31568 by grub_init_all
31569
31570 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
31571
31572 Fix libusb
31573
31574 * Makefile.in (LIBUSB): new macro
31575 * genmk.rb (Utility/print_tail): new method
31576 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
31577 (top level): call util.print_tail at the end.
31578
31579 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
31580
31581 Make FreeBSD accept zpool.cache
31582
31583 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
31584 type is /boot/zfs/zpool.cache
31585
31586 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
31587
31588 Fix 64-bit efiemu
31589
31590 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
31591 correct wrong typedef
31592 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
31593
31594 2009-07-15 Pavel Roskin <proski@gnu.org>
31595
31596 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
31597 * kern/disk.c (struct grub_disk_cache): Likewise.
31598
31599 * commands/probe.c (options): Typo fix.
31600
31601 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
31602 Increase to 0x5a to accommodate FAT32. Adjust other offsets
31603 accordingly.
31604 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
31605
31606 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
31607 the end of "Error" to make the message more readable.
31608
31609 * boot/i386/pc/boot.S (kernel_segment): Remove.
31610 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
31611 for destination.
31612
31613 * boot/i386/pc/boot.S (boot_version): Remove.
31614 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
31615 Remove.
31616
31617 * include/grub/i386/pc/boot.h: Sort all offsets.
31618 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
31619 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
31620 * boot/i386/pc/boot.S: Assert location of every offset listed in
31621 include/grub/i386/pc/boot.h.
31622
31623 2009-07-13 Pavel Roskin <proski@gnu.org>
31624
31625 * include/grub/i386/coreboot/machine.h: Rename
31626 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
31627 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
31628 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
31629
31630 * kern/dl.c: Force native word size to suppress warnings when
31631 compiling grub-emu.
31632
31633 * kern/device.c (grub_device_iterate): Change struct part_ent to
31634 hold the name, not a pointer to it. Use one grub_malloc() per
31635 partition, not two. Free partition_name if grub_malloc() fails.
31636 Set ents to NULL only before grub_partition_iterate() is called.
31637
31638 2009-07-11 Bean <bean123ch@gmail.com>
31639
31640 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
31641 childname.
31642
31643 2009-07-10 Bean <bean123ch@gmail.com>
31644 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
31645
31646 * kern/ieee1275/openfw.c (grub_children_iterate)
31647 (grub_devalias_iterate): Fix size evaluation for property or path
31648 strings, which was broken since r2132.
31649
31650 2009-07-07 Pavel Roskin <proski@gnu.org>
31651
31652 * commands/search.c (search_file): Merge into ...
31653 (search_fs): ... this. Accept search type as argument.
31654 (grub_cmd_search): Pass search type to search_fs().
31655
31656 * include/grub/util/console.h: New file.
31657 * util/console.c: Use it instead of grub/machine/console.h.
31658 * util/grub-emu.c: Likewise.
31659
31660 * lib/arg.c (find_long_option): Remove.
31661 (find_long): Add `len' argument, make `s' const char *.
31662 (grub_arg_parse): Parse long options in place, not in a
31663 temporary buffer.
31664
31665 2009-07-06 Pavel Roskin <proski@gnu.org>
31666
31667 * commands/search.c (search_fs): Fix potential NULL pointer
31668 dereference.
31669
31670 * commands/search.c (search_fs): Replace QUID macro with quid_fn
31671 function pointer.
31672
31673 2009-07-06 Daniel Mierswa <impulze@impulze.org>
31674
31675 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
31676 comparison.
31677
31678 2009-07-05 Pavel Roskin <proski@gnu.org>
31679
31680 * include/grub/i386/linux.h (struct linux_kernel_params):
31681 Restore padding3, it's still needed.
31682
31683 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
31684 FreeBSD.
31685 * util/osdetect.lua: Likewise.
31686
31687 2009-07-05 Bean <bean123ch@gmail.com>
31688
31689 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
31690
31691 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
31692 (grub_lua_getenv): Likewise.
31693 (grub_lua_setenv): Likewise.
31694 (save_errno): New function.
31695 (push_result): Likewise.
31696 (grub_lua_enum_device): Likewise.
31697 (grub_lua_enum_file): Likewise.
31698 (grub_lua_file_open): Likewise.
31699 (grub_lua_file_close): Likewise.
31700 (grub_lua_file_seek): Likewise.
31701 (grub_lua_file_read): Likewise.
31702 (grub_lua_file_getline): Likewise.
31703 (grub_lua_file_getsize): Likewise.
31704 (grub_lua_file_getpos): Likewise.
31705 (grub_lua_file_eof): Likewise.
31706 (grub_lua_file_exist): Likewise.
31707 (grub_lua_add_menu): Likewise.
31708
31709 * script/lua/grub_lua.h (isupper): New inline function.
31710 (islower): Likewise.
31711 (ispunct): Likewise.
31712 (isxdigit): Likewise.
31713 (strcspn): Change to normal function.
31714 (strpbkr): New function declaration.
31715 (memchr): Likewise.
31716
31717 * script/lua/grub_main.c (scan_str): New function.
31718 (strcspn): Likewise.
31719 (strpbrk): Likewise.
31720 (memchr): Likewise.
31721
31722 * script/lua/linit.c (lualibs): Enable the string library.
31723
31724 * util/osdetect.lua: New file.
31725
31726 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
31727
31728 * include/grub/i386/linux.h (struct linux_kernel_params): Add
31729 `capabilities' member.
31730
31731 2009-07-02 Pavel Roskin <proski@gnu.org>
31732
31733 * genparttoollist.sh: Add missing newline at the end.
31734
31735 2009-07-01 Pavel Roskin <proski@gnu.org>
31736
31737 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
31738
31739 * util/hostdisk.c (open_device): Remove `const' from
31740 `sysctl_size', as sysctlbyname() can change it (in this case it
31741 doesn't actually happen).
31742
31743 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
31744 using signed long int constants.
31745
31746 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
31747 constant to avoid a warning on FreeBSD.
31748
31749 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
31750 where it's needed.
31751
31752 * Makefile.in: Install include/grub/machine symlink.
31753
31754 * Makefile.in: When installing symlinks, use "cp -fR", which
31755 works on FreeBSD and MacOSX.
31756 From Yves Blusseau <cl7m42e02@sneakemail.com>
31757
31758 * kern/dl.c (grub_dl_resolve_symbol): Make static.
31759 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
31760
31761 * util/misc.c: Move grub_reboot() and grub_halt() ...
31762 * util/grub-emu.c: ... here. Make main_env static.
31763 * include/grub/util/misc.h: Remove main_env.
31764
31765 * kern/mm.c: Use correct format to print size_t.
31766
31767 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
31768 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
31769 * kern/powerpc/dl.c: Likewise.
31770 * kern/sparc64/dl.c: Likewise.
31771 * kern/x86_64/dl.c: Likewise.
31772
31773 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
31774
31775 Fix grub-emu build on sparc64-ieee1275.
31776
31777 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
31778 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
31779
31780 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
31781
31782 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
31783 (grub_reboot, grub_halt): New functions.
31784
31785 * util/i386/pc/misc.c: Delete. Update all users.
31786 * util/sparc64/ieee1275/misc.c: Likewise.
31787 * util/powerpc/ieee1275/misc.c: Likewise.
31788
31789 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
31790
31791 * conf/i386.rmk (setjmp_mod_SOURCES)
31792 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
31793 * conf/common.rmk (setjmp_mod_SOURCES)
31794 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
31795 to use $(target_cpu).
31796 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
31797 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
31798 * conf/powerpc-ieee1275.rmk: Likewise.
31799 * conf/sparc64-ieee1275.rmk: Likewise.
31800
31801 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
31802 $(target_cpu) for kern/$(target_cpu)/dl.c.
31803 * conf/i386-efi.rmk: Likewise.
31804 * conf/i386-ieee1275.rmk: Likewise.
31805 * conf/x86_64-efi.rmk: Likewise.
31806 * conf/i386-coreboot.rmk: Likewise.
31807 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
31808 $(target_cpu) for kern/$(target_cpu)/dl.c and for
31809 kern/$(target_cpu)/cache.S.
31810 * conf/sparc64-ieee1275.rmk: Likewise.
31811
31812 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
31813
31814 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
31815 type to `grub_uint8_t', and adjust `padding9' accordingly.
31816
31817 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
31818
31819 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
31820
31821 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
31822 assembly in final jump, using register constraints.
31823
31824 (grub_linux_boot): For text mode, initialize `have_vga' using
31825 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
31826
31827 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
31828 right before the final jump.
31829
31830 Set `video_mode' to 0x3.
31831
31832 Document initialization of `video_page', `video_mode' and
31833 `video_ega_bx'.
31834
31835 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
31836
31837 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
31838 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
31839 and set GRUB_LINUX_FLAG_QUIET appropriately.
31840
31841 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
31842
31843 Fix build on Debian / sparc.
31844
31845 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
31846
31847 2009-06-28 Pavel Roskin <proski@gnu.org>
31848
31849 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
31850 fix a warning.
31851
31852 * util/grub.d/10_linux.in: Match SUSE style initrd names.
31853
31854 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
31855
31856 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
31857 `err'.
31858
31859 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
31860
31861 Revert r2338.
31862
31863 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
31864 file can't be opened. grub_file_open() is already supposed to set
31865 grub_errno / grub_errmsg appropriately.
31866 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
31867
31868 2009-06-27 Pavel Roskin <proski@gnu.org>
31869 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
31870
31871 * include/grub/dl.h: Include grub/elf.h.
31872 (struct grub_dl): Add symtab field.
31873 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
31874 GRUB_MODULES_MACHINE_READONLY.
31875 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
31876 of the header for read-only modules.
31877 (grub_dl_unload): Free mod->symtab for read-only modules.
31878 * kern/i386/dl.c: Use mod->symtab.
31879 * kern/powerpc/dl.c: Likewise.
31880 * kern/sparc64/dl.c: Likewise.
31881 * kern/x86_64/dl.c: Likewise.
31882
31883 * conf/i386-qemu.rmk: New file.
31884 * kern/i386/qemu/startup.S: Likewise.
31885 * kern/i386/qemu/mmap.c: Likewise.
31886 * boot/i386/qemu/boot.S: Likewise.
31887 * include/grub/i386/qemu/time.h: Likewise.
31888 * include/grub/i386/qemu/serial.h: Likewise.
31889 * include/grub/i386/qemu/kernel.h: Likewise.
31890 * include/grub/i386/qemu/console.h: Likewise.
31891 * include/grub/i386/qemu/boot.h: Likewise.
31892 * include/grub/i386/qemu/init.h: Likewise.
31893 * include/grub/i386/qemu/machine.h: Likewise.
31894 * include/grub/i386/qemu/loader.h: Likewise.
31895 * include/grub/i386/qemu/memory.h: Likewise.
31896
31897 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
31898 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
31899 [qemu] (pkglib_IMAGES): Add `boot.img'.
31900 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
31901 [qemu] (boot_img_FORMAT): New variables.
31902 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
31903 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
31904 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
31905 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31906 [qemu] (kernel_img_FORMAT): New variables.
31907
31908 * configure.ac: Recognise `i386-qemu'.
31909
31910 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
31911 (for no compression).
31912 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
31913 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
31914 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
31915 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
31916 ifdefs).
31917
31918 2009-06-27 Pavel Roskin <proski@gnu.org>
31919
31920 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
31921 read.
31922 * efiemu/prepare32.c: Likewise.
31923 * efiemu/prepare64.c: Likewise.
31924
31925 2009-06-26 Pavel Roskin <proski@gnu.org>
31926
31927 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
31928 * include/grub/elf.h: Define symbols without "32" or "64" based
31929 on GRUB_TARGET_WORDSIZE.
31930 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
31931 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
31932 ELF definitions.
31933 * efiemu/loadcore64.c: Likewise.
31934 * loader/i386/bsd32.c: Likewise.
31935 * loader/i386/bsd64.c: Likewise.
31936 * kern/dl.c: Remove own ELF definitions.
31937 * util/i386/efi/grub-mkimage.c: Likewise.
31938
31939 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
31940
31941 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
31942 segment 0x0 unconditionally, because the reference generated by
31943 GAS is an absolute address.
31944
31945 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31946
31947 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
31948 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
31949
31950 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31951
31952 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
31953 indexes. Check for -f explicitly.
31954 (search_file): Improve error message.
31955 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
31956
31957 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31958
31959 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
31960 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
31961
31962 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31963
31964 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
31965 * conf/i386-ieee1275.rmk: Likewise.
31966 * conf/i386-coreboot.rmk: Likewise.
31967
31968 * kern/i386/pc/startup.S (grub_stop): Remove function.
31969 * kern/i386/ieee1275/startup.S: Likewise.
31970 * kern/i386/coreboot/startup.S: Likewise.
31971 * kern/i386/misc.S (grub_stop): New function.
31972
31973 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31974
31975 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
31976 * kern/i386/realmode.S (real_to_prot): ... to here.
31977
31978 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31979
31980 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
31981 with `kernel.img'.
31982 (kernel_elf_SOURCES): Rename to ...
31983 (kernel_img_SOURCES): ... this.
31984 (kernel_elf_HEADERS): Rename to ...
31985 (kernel_img_HEADERS): ... this. Update all users.
31986 (kernel_elf_ASFLAGS): Rename to ...
31987 (kernel_img_ASFLAGS): ... this.
31988 (kernel_elf_CFLAGS): Rename to ...
31989 (kernel_img_CFLAGS): ... this.
31990 (kernel_elf_LDFLAGS): Rename to ...
31991 (kernel_img_LDFLAGS): ... this.
31992 * conf/i386-coreboot.rmk: Likewise.
31993 * conf/powerpc-ieee1275.rmk: Likewise.
31994
31995 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
31996 with "kernel.img".
31997
31998 2009-06-21 Pavel Roskin <proski@gnu.org>
31999
32000 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
32001 to match nested functions.
32002 * loader/sparc64/ieee1275/linux.c: Likewise.
32003
32004 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
32005
32006 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
32007
32008 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
32009 all i386 platforms.
32010
32011 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
32012
32013 Fix asm file handling on ELF, and remove workarounds.
32014
32015 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
32016 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
32017 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
32018 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
32019
32020 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
32021
32022 Load BSD ELF modules
32023
32024 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
32025 and loader/i386/bsd64.c
32026 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
32027 (FREEBSD_MODTYPE_ELF_MODULE): New definition
32028 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
32029 (grub_freebsd_load_elfmodule32): New declaration
32030 (grub_freebsd_load_elfmoduleobj64): Likewise
32031 (grub_freebsd_load_elf_meta32): Likewise
32032 (grub_freebsd_load_elf_meta64): Likewise
32033 (grub_freebsd_add_meta): Likewise
32034 (grub_freebsd_add_meta_module): Likewise
32035 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
32036 (grub_freebsd_add_meta_module): Likewise and move module-specific
32037 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
32038 (grub_cmd_freebsd): Add elf-kernel specific parts
32039 based on grub_freebsd_add_meta_module
32040 (grub_cmd_freebsd_module): Add type parsing moved from
32041 grub_freebsd_add_meta_module
32042 (grub_cmd_freebsd_module_elf): New function
32043 (cmd_freebsd_module_elf): New variable
32044 (GRUB_MOD_INIT): Register freebsd_module_elf
32045 * loader/i386/bsd32.c: New file
32046 * loader/i386/bsd64.c: Likewise
32047 * loader/i386/bsdXX.c: Likewise
32048 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
32049 (grub_elf64_load): Likewise
32050 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
32051 All users updated
32052 (grub_elf64_load_hook_t): Likewise
32053
32054 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
32055
32056 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
32057 variable.
32058 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
32059 don't write a menu entry for recovery mode.
32060
32061 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
32062
32063 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
32064 after it's no longer needed.
32065
32066 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
32067
32068 * include/grub/i386/loader.h (grub_linux_prot_size)
32069 (grub_linux_tmp_addr, grub_linux_real_addr)
32070 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
32071 GRUB_MACHINE_PCBIOS.
32072 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
32073 common grub_util_info() call to ...
32074 (generate_image): ... here.
32075 Fix use of uninitialized memory, comparison of signed with
32076 unsigned integers and memory leak.
32077 Remove bogus module address message.
32078
32079 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
32080
32081 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
32082 grub_raid_register
32083 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
32084
32085 2009-06-19 Pavel Roskin <proski@gnu.org>
32086
32087 * configure.ac: Remove stray AC_MSG_CHECKING.
32088
32089 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
32090
32091 * disk/scsi.c (grub_scsi_open): use continue instead of big if
32092
32093 2009-06-18 Pavel Roskin <proski@gnu.org>
32094
32095 * conf/common.rmk: Add fs_file.mod.
32096 * disk/fs_file.c: New file.
32097 * include/grub/disk.h (enum grub_disk_dev_id): Add
32098 GRUB_DISK_DEVICE_FILE_ID.
32099
32100 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
32101
32102 Fix build with Apple's toolchain. Part 2
32103
32104 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
32105 a fake start
32106
32107 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
32108
32109 Fix build with Apple's toolchain. Part 1
32110
32111 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
32112 for long calls
32113 * configure.ac: remove a leftover AC_MSG_RESULT
32114 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
32115 Apple's toolchain
32116
32117 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
32118
32119 Fix warnings
32120
32121 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
32122 (decomp_block): initialize ch
32123 use grub_memcpy instead of memcpy
32124
32125 2009-06-17 Pavel Roskin <proski@gnu.org>
32126
32127 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
32128 version, use declarations needed to use vga_text as the startup
32129 console.
32130
32131 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
32132 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
32133 the kernel.
32134 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
32135 and grub_at_keyboard_fini(), it's done on module load and
32136 unload.
32137
32138 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
32139
32140 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
32141 file can't be found.
32142 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
32143
32144 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
32145
32146 Fix newline handling
32147
32148 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
32149 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
32150 (grub_script_yylex): don't segfault on unterminated script
32151 newline terminates command and variable
32152
32153 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
32154
32155 avoid double grub_adjust_range call. Bug reported by David Simner
32156
32157 * kern/disk.c (grub_disk_write): change to raw disk access before
32158 calling disk_read
32159
32160 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
32161
32162 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
32163 spaces, for the benefit of help2man.
32164 * util/i386/efi/grub-mkimage.c (usage): Likewise.
32165
32166 2009-06-16 Pavel Roskin <proski@gnu.org>
32167
32168 * kern/i386/halt.c: Include grub/machine/init.h.
32169 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
32170
32171 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
32172
32173 * util/grub.d/30_os-prober.in: Use ${root} in the generated
32174 drivemap menuentry.
32175
32176 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
32177
32178 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
32179 `echo' command.
32180
32181 2009-06-16 Pavel Roskin <proski@gnu.org>
32182
32183 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
32184 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
32185 save %dx, we only need %dl and we never change it.
32186 * boot/i386/pc/cdboot.S: Don't set the root drive.
32187 * boot/i386/pc/pxeboot.S: Likewise.
32188 * include/grub/i386/pc/boot.h: Remove
32189 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
32190 GRUB_BOOT_MACHINE_DRIVE_CHECK.
32191 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
32192 * kern/i386/pc/init.c (make_install_device): Remove references
32193 to grub_root_drive.
32194 * kern/i386/pc/startup.S: Likewise.
32195 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
32196
32197 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
32198
32199 xnu_uuid command
32200
32201 * commands/xnu_uuid.c: new file
32202 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
32203 (xnu_uuid_mod_SOURCES): new variable
32204 (xnu_uuid_mod_CFLAGS): likewise
32205 (xnu_uuid_mod_LDFLAGS): likewise
32206 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
32207 * conf/i386-ieee1275.rmk: likewise
32208 * conf/i386-pc.rmk: likewise
32209 * conf/powerpc-ieee1275.rmk: likewise
32210 * conf/sparc64-ieee1275.rmk: likewise
32211 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
32212
32213 2009-06-16 Pavel Roskin <proski@gnu.org>
32214
32215 * configure.ac: Avoid '==' in test command, it's not portable.
32216
32217 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
32218
32219 Probe command
32220
32221 * commands/probe.c: new file
32222 * conf/common.rmk (pkglib_MODULES): add probe.mod
32223 (probe_mod_SOURCES): new variable
32224 (probe_mod_CFLAGS): likewise
32225 (probe_mod_LDFLAGS): likewise
32226 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
32227 * conf/i386-ieee1275.rmk: likewise
32228 * conf/i386-pc.rmk: likewise
32229 * conf/powerpc-ieee1275.rmk: likewise
32230 * conf/sparc64-ieee1275.rmk: likewise
32231
32232 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
32233
32234 Fix handling of string like \"hello\" and "a
32235 b"
32236
32237 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
32238 (grub_script_yylex): fix parsing of quoting, escaping and newline
32239
32240 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
32241
32242 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
32243 handling
32244
32245 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
32246
32247 * util/grub-mkconfig.in: Fix parsing of --output option.
32248
32249 2009-06-12 Pavel Roskin <proski@gnu.org>
32250
32251 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
32252 genmk.rb don't need to be generated or installed.
32253
32254 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
32255
32256 * commands/i386/pc/drivemap_int13h.S: add more comments
32257
32258 2009-06-11 Pavel Roskin <proski@gnu.org>
32259
32260 * Makefile.in (uninstall): Uninstall manuals.
32261
32262 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
32263 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
32264 and update-grub_lib in two places.
32265 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
32266
32267 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
32268 a compiler warning.
32269
32270 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
32271 `entry_lo' to fix variable shadowing.
32272
32273 2009-06-11 Christian Franke <franke@computer.org>
32274
32275 * kern/misc.c (__enable_execute_stack): Add missing return type
32276 to prevent gcc warning.
32277
32278 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
32279
32280 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
32281
32282 2009-06-11 Pavel Roskin <proski@gnu.org>
32283
32284 * Makefile.in: Don't rely on any scripts being executable.
32285 Always use $(SHELL) to run shell scripts.
32286
32287 * configure.ac: Always define ___main if using -nostdlib. This
32288 fixes tests on Cygwin.
32289
32290 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
32291
32292 UDF fix
32293
32294 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
32295 is in bytes and not in blocks
32296
32297 2009-06-11 Pavel Roskin <proski@gnu.org>
32298
32299 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
32300 warning.
32301
32302 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
32303
32304 * util/grub.d/30_os-prober.in: Fix a comment. Source
32305 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
32306 to set the root device. Place drivemap command in the generated
32307 chain entry.
32308
32309 2009-06-11 Pavel Roskin <proski@gnu.org>
32310
32311 * configure.ac: Remove host_m32. Issues with 64-bit utilities
32312 have long been resolved.
32313
32314 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
32315
32316 * util/grub.d/10_linux.in: Capitalise "Linux".
32317
32318 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
32319
32320 2009-06-11 Pavel Roskin <proski@gnu.org>
32321
32322 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
32323 fix a gcc warning and ensure that the function won't ever exit.
32324
32325 * kern/i386/ieee1275/init.c: Add missing prototype for
32326 grub_stop_floppy().
32327
32328 * loader/ieee1275/multiboot2.c [__i386__]: Include
32329 grub/cpu/multiboot.h.
32330
32331 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
32332 casts to short - they are not portable and cause warnings. Fix
32333 use of uninitialized values in input_buf. Use ARRAY_SIZE.
32334
32335 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
32336
32337 Drivemap fixes
32338
32339 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
32340 new function
32341 (grub_get_root_biosnumber_saved): new variable
32342 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
32343 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
32344 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
32345 %dx after the call if necessary
32346 * conf/common.rmk (pkglib_MODULES): remove boot.mod
32347 (boot_mod_SOURCES): remove
32348 (boot_mod_CFLAGS): remove
32349 (boot_mod_LDFLAGS): remove
32350 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
32351 (boot_mod_SOURCES): new variable
32352 (boot_mod_CFLAGS): likewise
32353 (boot_mod_LDFLAGS): likewise
32354 * conf/i386-efi.rmk: likewise
32355 * conf/i386-ieee1275.rmk: likewise
32356 * conf/i386-pc.rmk: likewise
32357 * conf/powerpc-ieee1275.rmk: likewise
32358 * conf/sparc64-ieee1275.rmk: likewise
32359 * conf/x86_64-efi.rmk: likewise
32360 * include/grub/i386/pc/biosnum.h: new file
32361 * lib/i386/pc/biosnum.c: likewise
32362 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
32363 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
32364 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
32365
32366 2009-06-10 Pavel Roskin <proski@gnu.org>
32367
32368 * io/gzio.c (test_header): Don't reuse one buffer for all data.
32369 Use separate variables. Read only the file size at the end, but
32370 not the checksum that we don't use.
32371
32372 * kern/file.c (grub_file_read): Use void pointer for the buffer.
32373 Adjust all callers.
32374
32375 * kern/ieee1275/openfw.c: Remove libc includes.
32376 * kern/ieee1275/cmain.c: Likewise.
32377 * include/grub/ieee1275/ieee1275.h: Likewise.
32378
32379 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
32380 compiler warnings.
32381
32382 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
32383
32384 * Makefile.in: Remove all trailing whitespace.
32385 * conf/i386-pc.rmk: Likewise.
32386 * conf/powerpc-ieee1275.rmk: Likewise.
32387 * conf/sparc64-ieee1275.rmk: Likewise.
32388 * docs/grub.texi: Likewise.
32389 * docs/texinfo.tex: Likewise.
32390 * disk/fs_uuid.c: Likewise.
32391 * disk/lvm.c: Likewise.
32392 * disk/scsi.c: Likewise.
32393 * disk/ata.c: Likewise.
32394 * disk/ieee1275/ofdisk.c: Likewise.
32395 * disk/i386/pc/biosdisk.c: Likewise.
32396 * disk/host.c: Likewise.
32397 * disk/raid.c: Likewise.
32398 * disk/efi/efidisk.c: Likewise.
32399 * disk/usbms.c: Likewise.
32400 * disk/memdisk.c: Likewise.
32401 * disk/loopback.c: Likewise.
32402 * kern/powerpc/dl.c: Likewise.
32403 * kern/device.c: Likewise.
32404 * kern/dl.c: Likewise.
32405 * kern/sparc64/dl.c: Likewise.
32406 * kern/ieee1275/ieee1275.c: Likewise.
32407 * kern/term.c: Likewise.
32408 * kern/fs.c: Likewise.
32409 * kern/i386/dl.c: Likewise.
32410 * kern/i386/pc/startup.S: Likewise.
32411 * kern/i386/pc/init.c: Likewise.
32412 * kern/i386/pc/mmap.c: Likewise.
32413 * kern/i386/pc/lzo1x.S: Likewise.
32414 * kern/i386/ieee1275/init.c: Likewise.
32415 * kern/i386/realmode.S: Likewise.
32416 * kern/i386/tsc.c: Likewise.
32417 * kern/partition.c: Likewise.
32418 * kern/corecmd.c: Likewise.
32419 * kern/file.c: Likewise.
32420 * kern/efi/efi.c: Likewise.
32421 * kern/efi/init.c: Likewise.
32422 * kern/efi/mm.c: Likewise.
32423 * kern/main.c: Likewise.
32424 * kern/err.c: Likewise.
32425 * kern/env.c: Likewise.
32426 * kern/disk.c: Likewise.
32427 * kern/generic/millisleep.c: Likewise.
32428 * kern/generic/rtc_get_time_ms.c: Likewise.
32429 * kern/misc.c: Likewise.
32430 * kern/parser.c: Likewise.
32431 * genmk.rb: Likewise.
32432 * configure.ac: Likewise.
32433 * boot/i386/pc/diskboot.S: Likewise.
32434 * boot/i386/pc/pxeboot.S: Likewise.
32435 * boot/i386/pc/boot.S: Likewise.
32436 * boot/i386/pc/lnxboot.S: Likewise.
32437 * boot/i386/pc/cdboot.S: Likewise.
32438 * parttool/pcpart.c: Likewise.
32439 * video/readers/tga.c: Likewise.
32440 * video/video.c: Likewise.
32441 * video/bitmap.c: Likewise.
32442 * lib/envblk.c: Likewise.
32443 * lib/i386/setjmp.S: Likewise.
32444 * fs/xfs.c: Likewise.
32445 * fs/afs.c: Likewise.
32446 * fs/fat.c: Likewise.
32447 * fs/ntfs.c: Likewise.
32448 * fs/udf.c: Likewise.
32449 * fs/affs.c: Likewise.
32450 * fs/iso9660.c: Likewise.
32451 * fs/hfs.c: Likewise.
32452 * fs/fshelp.c: Likewise.
32453 * fs/ext2.c: Likewise.
32454 * fs/jfs.c: Likewise.
32455 * fs/reiserfs.c: Likewise.
32456 * fs/hfsplus.c: Likewise.
32457 * fs/minix.c: Likewise.
32458 * fs/cpio.c: Likewise.
32459 * fs/sfs.c: Likewise.
32460 * fs/ufs.c: Likewise.
32461 * efiemu/prepare.c: Likewise.
32462 * efiemu/loadcore_common.c: Likewise.
32463 * efiemu/runtime/efiemu.sh: Likewise.
32464 * efiemu/runtime/efiemu.S: Likewise.
32465 * efiemu/runtime/efiemu.c: Likewise.
32466 * efiemu/pnvram.c: Likewise.
32467 * efiemu/main.c: Likewise.
32468 * efiemu/i386/pc/cfgtables.c: Likewise.
32469 * efiemu/i386/loadcore64.c: Likewise.
32470 * efiemu/i386/loadcore32.c: Likewise.
32471 * efiemu/loadcore.c: Likewise.
32472 * efiemu/symbols.c: Likewise.
32473 * efiemu/mm.c: Likewise.
32474 * include/grub/autoefi.h: Likewise.
32475 * include/grub/datetime.h: Likewise.
32476 * include/grub/term.h: Likewise.
32477 * include/grub/hfs.h: Likewise.
32478 * include/grub/lvm.h: Likewise.
32479 * include/grub/i386/tsc.h: Likewise.
32480 * include/grub/i386/linux.h: Likewise.
32481 * include/grub/i386/xnu.h: Likewise.
32482 * include/grub/i386/efiemu.h: Likewise.
32483 * include/grub/i386/pc/biosdisk.h: Likewise.
32484 * include/grub/i386/pc/memory.h: Likewise.
32485 * include/grub/i386/pc/vbe.h: Likewise.
32486 * include/grub/parttool.h: Likewise.
32487 * include/grub/video.h: Likewise.
32488 * include/grub/memory.h: Likewise.
32489 * include/grub/fs.h: Likewise.
32490 * include/grub/partition.h: Likewise.
32491 * include/grub/xnu.h: Likewise.
32492 * include/grub/efi/api.h: Likewise.
32493 * include/grub/efi/pe32.h: Likewise.
32494 * include/grub/efi/memory.h: Likewise.
32495 * include/grub/multiboot.h: Likewise.
32496 * include/grub/usbdesc.h: Likewise.
32497 * include/grub/multiboot2.h: Likewise.
32498 * include/grub/acpi.h: Likewise.
32499 * include/grub/efiemu/efiemu.h: Likewise.
32500 * include/grub/disk.h: Likewise.
32501 * include/grub/ieee1275/ieee1275.h: Likewise.
32502 * include/grub/net.h: Likewise.
32503 * include/grub/machoload.h: Likewise.
32504 * include/grub/macho.h: Likewise.
32505 * include/multiboot.h: Likewise.
32506 * genmoddep.awk: Likewise.
32507 * normal/main.c: Likewise.
32508 * normal/menu_entry.c: Likewise.
32509 * normal/menu_viewer.c: Likewise.
32510 * normal/completion.c: Likewise.
32511 * normal/cmdline.c: Likewise.
32512 * normal/misc.c: Likewise.
32513 * normal/datetime.c: Likewise.
32514 * bus/usb/usbtrans.c: Likewise.
32515 * bus/usb/ohci.c: Likewise.
32516 * bus/usb/uhci.c: Likewise.
32517 * bus/usb/usb.c: Likewise.
32518 * mmap/efi/mmap.c: Likewise.
32519 * mmap/i386/pc/mmap_helper.S: Likewise.
32520 * mmap/i386/pc/mmap.c: Likewise.
32521 * mmap/i386/mmap.c: Likewise.
32522 * mmap/i386/uppermem.c: Likewise.
32523 * mmap/mmap.c: Likewise.
32524 * commands/acpi.c: Likewise.
32525 * commands/echo.c: Likewise.
32526 * commands/blocklist.c: Likewise.
32527 * commands/loadenv.c: Likewise.
32528 * commands/usbtest.c: Likewise.
32529 * commands/boot.c: Likewise.
32530 * commands/parttool.c: Likewise.
32531 * commands/search.c: Likewise.
32532 * commands/cat.c: Likewise.
32533 * commands/i386/pc/play.c: Likewise.
32534 * commands/i386/pc/drivemap.c: Likewise.
32535 * commands/i386/pc/vbeinfo.c: Likewise.
32536 * commands/i386/pc/acpi.c: Likewise.
32537 * commands/i386/pc/vbetest.c: Likewise.
32538 * commands/ls.c: Likewise.
32539 * commands/cmp.c: Likewise.
32540 * commands/test.c: Likewise.
32541 * commands/efi/acpi.c: Likewise.
32542 * commands/gptsync.c: Likewise.
32543 * commands/help.c: Likewise.
32544 * partmap/amiga.c: Likewise.
32545 * partmap/apple.c: Likewise.
32546 * partmap/acorn.c: Likewise.
32547 * partmap/pc.c: Likewise.
32548 * partmap/sun.c: Likewise.
32549 * partmap/gpt.c: Likewise.
32550 * script/sh/lexer.c: Likewise.
32551 * script/sh/function.c: Likewise.
32552 * font/font.c: Likewise.
32553 * font/font_cmd.c: Likewise.
32554 * loader/powerpc/ieee1275/linux.c: Likewise.
32555 * loader/efi/chainloader.c: Likewise.
32556 * loader/multiboot_loader.c: Likewise.
32557 * loader/macho.c: Likewise.
32558 * loader/i386/multiboot.c: Likewise.
32559 * loader/i386/linux.c: Likewise.
32560 * loader/i386/pc/linux.c: Likewise.
32561 * loader/i386/pc/multiboot2.c: Likewise.
32562 * loader/i386/pc/chainloader.c: Likewise.
32563 * loader/i386/pc/xnu.c: Likewise.
32564 * loader/i386/bsd_trampoline.S: Likewise.
32565 * loader/i386/efi/linux.c: Likewise.
32566 * loader/i386/multiboot_elfxx.c: Likewise.
32567 * loader/i386/bsd_helper.S: Likewise.
32568 * loader/i386/bsd.c: Likewise.
32569 * loader/i386/linux_trampoline.S: Likewise.
32570 * loader/i386/xnu_helper.S: Likewise.
32571 * loader/i386/xnu.c: Likewise.
32572 * loader/i386/bsd_pagetable.c: Likewise.
32573 * loader/i386/multiboot_helper.S: Likewise.
32574 * loader/xnu.c: Likewise.
32575 * loader/xnu_resume.c: Likewise.
32576 * io/gzio.c: Likewise.
32577 * term/efi/console.c: Likewise.
32578 * term/terminfo.c: Likewise.
32579 * term/ieee1275/ofconsole.c: Likewise.
32580 * term/i386/pc/serial.c: Likewise.
32581 * term/i386/pc/vesafb.c: Likewise.
32582 * term/i386/pc/vga.c: Likewise.
32583 * term/usb_keyboard.c: Likewise.
32584 * term/gfxterm.c: Likewise.
32585 * aclocal.m4: Likewise.
32586 * util/lvm.c: Likewise.
32587 * util/grub.d/30_os-prober.in: Likewise.
32588 * util/grub.d/10_hurd.in: Likewise.
32589 * util/console.c: Likewise.
32590 * util/grub-macho2img.c: Likewise.
32591 * util/grub-probe.c: Likewise.
32592 * util/hostfs.c: Likewise.
32593 * util/i386/pc/grub-mkimage.c: Likewise.
32594 * util/i386/pc/grub-setup.c: Likewise.
32595 * util/i386/efi/grub-mkimage.c: Likewise.
32596 * util/grub-mkconfig.in: Likewise.
32597 * util/raid.c: Likewise.
32598 * util/resolve.c: Likewise.
32599 * util/grub-mkdevicemap.c: Likewise.
32600 * util/grub-emu.c: Likewise.
32601 * util/getroot.c: Likewise.
32602 * util/hostdisk.c: Likewise.
32603 * util/usb.c: Likewise.
32604 * util/grub-editenv.c: Likewise.
32605 * util/misc.c: Likewise.
32606
32607 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
32608
32609 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
32610 `genparttoollist.sh'.
32611 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
32612 Add `*.sh' to the list find searches for and change `mdate.sh'
32613 to `mdate-sh'.
32614
32615 2009-06-10 Pavel Roskin <proski@gnu.org>
32616
32617 * include/grub/multiboot2.h: Provide compatibility defines for
32618 multiboot2.h.
32619 * include/multiboot2.h: Include stdint.h only if needed, using
32620 angle brackets.
32621 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
32622 grub/multiboot2.h.
32623 * loader/ieee1275/multiboot2.c: Likewise.
32624 * loader/multiboot2.c: Likewise.
32625 * loader/multiboot_loader.c: Likewise.
32626
32627 * configure.ac: Use -nostdlib when probing for the target. It
32628 should not be required to have libc for the target.
32629
32630 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
32631 they fail without libc headers for the target.
32632 * include/grub/powerpc/libgcc.h: Use weak attribute for all
32633 exports.
32634 * include/grub/sparc64/libgcc.h: Likewise. Don't use
32635 preprocessor conditionals.
32636
32637 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
32638 build system doesn't need to be aware of the tar.c internals.
32639
32640 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
32641
32642 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
32643
32644 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
32645
32646 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
32647 disk limit to 26 for IDE, Virtio, Xen and SCSI.
32648
32649 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
32650
32651 * util/i386/pc/grub-install.in: Change the error message if UUIDs
32652 aren't available if ata.mod gets used.
32653
32654 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
32655
32656 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
32657 initialising controller.
32658 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
32659
32660 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
32661
32662 * util/i386/pc/grub-install.in: Add a parameter --disk-module
32663 to choose between ata and biosdisk module on i386-pc.
32664
32665 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
32666
32667 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
32668 Subclass and Programming Interface fields in terms of the 3 byte
32669 Class Code register.
32670 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
32671
32672 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
32673 interface is OHCI. Add grub_dprintf for symmetry with
32674 bus/usb/uhci.c.
32675 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
32676 interface is UHCI. Add interf variable for programming
32677 interface. Print interface with class/subclass.
32678
32679 * bus/usb/ohci.c: Set interf with correct field.
32680
32681 * bus/usb/uhci.c: Remove unneeded doubled lines.
32682 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
32683 Remove whitespace inside comment.
32684
32685 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
32686
32687 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
32688 as fallback an equivalent option without depth.
32689
32690 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
32691
32692 Not fail if unable to retrieve C/H/S on LBA disks
32693
32694 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
32695 if unable to retrieve C/H/S on LBA disks
32696
32697 2009-06-08 Pavel Roskin <proski@gnu.org>
32698
32699 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
32700 about aliasing.
32701
32702 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
32703
32704 * Makefile.in (uninstall): Remove all $lib_DATA files.
32705
32706 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
32707
32708 Bugfix: install on partitionless device
32709
32710 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
32711 is a whole disk
32712
32713 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
32714
32715 * Makefile.in (uninstall): Remove all $include_DATA files.
32716
32717 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
32718
32719 * commands/true.c: New file. Implement the true and false commands.
32720 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
32721 (true_mod_SOURCES): New variable.
32722 (true_mod_CFLAGS): Likewise.
32723 (true_mod_LDFLAGS): Likewise.
32724
32725 2009-06-05 Colin D Bennett <colin@gibibit.com>
32726
32727 Optimized font character lookup using binary search instead of linear
32728 search. Fonts now are required to have the character index ordered by
32729 code point.
32730
32731 * font/font.c (load_font_index): Verify that fonts have ordered
32732 character indices.
32733 (find_glyph): Use binary search instead of linear search to find a
32734 character in a font.
32735
32736 2009-06-05 Michael Scherer <misc@mandriva.org>
32737
32738 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
32739 uses case sensitive btree.
32740 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
32741 only for case insensitive filesystems.
32742
32743 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
32744
32745 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
32746 * conf/common.rmk (search_mod_CFLAGS): likewise
32747
32748 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32749
32750 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
32751 compensate a compiler bug
32752
32753 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32754
32755 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
32756 instead of '\b'
32757
32758 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32759
32760 Definitions for creating asm symbols with Apple's CC
32761
32762 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
32763 [APPLE_CC] (VARIABLE): likewise
32764
32765 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32766
32767 Disable lnxboot.img when compiled
32768 with Apple's CC
32769
32770 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
32771 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
32772 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
32773 [! APPLE_CC] (CODE_LENG): skip
32774 [! APPLE_CC] (setup_sects): likewise
32775 [! APPLE_CC]: skip filling
32776
32777 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32778
32779 Address in trampolines based on 32-bit registers when compiled
32780 with Apple's CC
32781
32782 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
32783 for addresses
32784 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
32785
32786 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32787
32788 Avoid aliases when compiling with Apple's CC for PCBIOS machine
32789
32790 * kern/misc.c [APPLE_CC] (memcpy): new function
32791 [APPLE_CC] (memmove): likewise
32792 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
32793 (memcpy): define alias conditionally on !APPLE_CC
32794 (memset): likewise
32795 (abort): likewise
32796 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
32797 APPLE_CC are defined
32798 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
32799 (grub_assert_fail): make prototype conditional
32800
32801 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32802
32803 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
32804
32805 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
32806 grub-macho2img
32807 (CLEANFILES): add grub-macho2img
32808 (grub_macho2img_SOURCES): new variable
32809 * kern/i386/pc/startup.S (bss_start): new variable
32810 (bss_end): likewise
32811 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
32812 * util/grub-macho2img.c: new file
32813
32814 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32815
32816 Use objconv when compiling with Apple's CC
32817
32818 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
32819 (efiemu64.o): likewise
32820 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
32821 when compiling with Apple's CC
32822 (efiemu64_s.o): likewise
32823 * configure.ac: check for objconv when compiling with Apple's CC
32824 * genmk.rb: use objconv for modules when compiled with Apple's CC
32825
32826 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32827
32828 Define segment as well as section when compiling with
32829 Apple's CC
32830
32831 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
32832 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
32833 (efiemu_convert_pointer): likewise
32834 (efiemu_set_virtual_address_map): likewise
32835 (efiemu_convert_pointer): likewise
32836 (efiemu_getcrc32): likewise
32837 (init_crc32_table): likewise
32838 (reflect): likewise
32839 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
32840 (GRUB_MOD_DEP): likewise
32841
32842 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32843
32844 Allow a compilation without -mcmodel=large
32845
32846 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
32847 when compiled without -mcmodel=large
32848 (filter_memory_map): remove memory post 4 GiB when compiled
32849 without -mcmodel=large
32850 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
32851 TARGET_CFLAGS when -mcmodel=large isn't supported
32852
32853 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32854
32855 Remove nested functions in efiemu core
32856
32857 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
32858
32859 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32860
32861 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
32862
32863 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
32864 temporary storage
32865 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
32866 using Apple's CC
32867 (grub_cpu_is_tsc_supported): likewise
32868 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
32869
32870 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32871
32872 Absolute addressing through constant with Apple's cc
32873
32874 * kern/i386/pc/startup.S: Define necessary constants
32875 and address through it when using ABS with Apple's CC
32876 * boot/i386/pc/diskboot.S: likewise
32877 * boot/i386/pc/boot.S: likewise
32878 * boot/i386/pc/lnxboot.S: likewise
32879 * boot/i386/pc/cdboot.S: likewise
32880 * mmap/i386/pc/mmap_helper.S: likewise
32881 * commands/i386/pc/drivemap_int13h.S: likewise
32882
32883 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32884
32885 Check if compiler is apple cc
32886
32887 * Makefile.in (ASFLAGS): new variable
32888 (TARGET_ASFLAGS): likewise
32889 (TARGET_MODULE_FORMAT): likewise
32890 (TARGET_APPLE_CC): likewise
32891 (OBJCONV): likewise
32892 (TARGET_IMG_CFLAGS): likewise
32893 (TARGET_CPPFLAGS): add includedir
32894 * configure.ac: call grub_apple_cc and grub_apple_target_cc
32895 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
32896 Check for linker script only if compiler isn't Apple's CC
32897 (TARGET_MODULE_FORMAT): set
32898 (TARGET_APPLE_CC): likewise
32899 (TARGET_ASFLAGS): likewise
32900 (ASFLAGS): likewise
32901 Check for objcopy only if compiler isn't Apple's CC
32902 Check for BSS symbol only if compiler isn't Apple's CC
32903 * genmk.rb: adapt nm options if we use Apple's utils
32904 * aclocal.m4 (grub_apple_cc): new test
32905 (grub_apple_target_cc): likewise
32906
32907 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32908
32909 Simplify sed expressions and improve awk
32910
32911 * Makefile.in (install-local): simplify sed expression
32912 * gencmdlist.sh: likewise
32913 * genmoddep.awk: avoid adding module as a dependency of itself
32914
32915 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32916
32917 Add missing start symbols
32918
32919 * boot/i386/pc/boot.S: add start
32920 * boot/i386/pc/pxeboot.S: likewise
32921
32922 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32923
32924 Fix wrong assumptions with grub-mkimage on EFI
32925
32926 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
32927 (relocate_addresses): consider both r_addend and value at offset
32928 (make_mods_section): zerofill modinfo and header
32929 (convert_elf): write prefix here
32930
32931 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32932
32933 Use .asciz instead of .string
32934
32935 * i386/pc/diskboot.S: use .asciz instead of .string
32936 * i386/pc/boot.S: likewise
32937 * include/grub/dl.h (GRUB_MOD_DEP): likewise
32938 (GRUB_MOD_NAME): likewise
32939
32940 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32941
32942 gfxpayload support
32943
32944 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
32945 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
32946 (grub_video_setup): remove
32947 (grub_video_set_mode): new prototype
32948 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
32949 (vid_mode): remove
32950 (linux_vesafb_res): compile only on PCBIOS
32951 (grub_linux_boot): support gfxpayload
32952 * loader/i386/pc/xnu.c (video_hook): new function
32953 (grub_xnu_set_video): support gfxpayload
32954 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
32955 (DEFAULT_VIDEO_HEIGHT): likewise
32956 (DEFAULT_VIDEO_FLAGS): likewise
32957 (DEFAULT_VIDEO_MODE): new definition
32958 (video_hook): new function
32959 (grub_gfxterm_init): use grub_video_set_mode
32960 * util/grub.d/30_os-prober.in: remove explicit modesetting before
32961 loading xnu
32962 * video/video.c (grub_video_setup): removed
32963 (grub_video_set_mode): new function based on grub_gfxterm_init and
32964 grub_video_setup
32965
32966 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32967
32968 Avoid calling biosdisk in drivemap
32969
32970 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
32971 (revparse_biosdisk): likewise
32972 (list_mappings): derive name from id directly
32973 (grub_cmd_drivemap): use tryparse_diskstring
32974
32975 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32976
32977 Script fixes
32978
32979 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
32980 (grub_lexer_param): add tokenonhold
32981 (grub_script_create_cmdline): remove cmdline. All callers updated
32982 (grub_script_function_create): make functionname
32983 grub_script_arg. All callers updated
32984 (grub_script_execute_argument_to_string): new prototype
32985 * kern/parser.c (state_transitions): reorder
32986 (grub_parser_cmdline_state): fix a bug and make more compact
32987 * script/sh/execute.c (grub_script_execute_argument_to_string):
32988 make global
32989 (grub_script_execute_cmdline): use new format
32990 * script/sh/function.c (grub_script_function_create): make functionname
32991 grub_script_arg. All callers updated
32992 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
32993 (grub_script_yylex): remove
32994 (grub_script_yylex2): renamed to ...
32995 (grub_script_yylex): ...renamed
32996 parse the expressions like a${b}c
32997 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
32998 (GRUB_PARSER_TOKEN_VAR): remove
32999 (GRUB_PARSER_TOKEN_NAME): likewise
33000 ("if"): declare as typeless
33001 ("while"): likewise
33002 ("function"): likewise
33003 ("else"): likewise
33004 ("then"): likewise
33005 ("fi"): likewise
33006 (text): remove
33007 (argument): likewise
33008 (script): accept empty scripts and make exit on error
33009 (arguments): use GRUB_PARSER_TOKEN_ARG
33010 (function): likewise
33011 (command): move error handling to script
33012 (menuentry): move grub_script_lexer_ref before
33013 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
33014 argument. All callers updated
33015
33016 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
33017
33018 Prevent GRUB from probing floppies during boot.
33019
33020 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
33021 * commands/search.c (options): Add --no-floppy.
33022 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
33023 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
33024 --no-floppy when searching for UUIDs.
33025
33026 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
33027
33028 Simplify the code duplication in commands/search.c.
33029
33030 * commands/search.c (search_label, search_fs_uuid): Merge into ...
33031 (search_fs): ... this. Update all users.
33032
33033 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
33034
33035 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
33036
33037 2009-05-28 Pavel Roskin <proski@gnu.org>
33038
33039 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
33040 Remove the original symlink explicitly.
33041
33042 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
33043 just one slash. That's how grub_fshelp_find_file() does it.
33044
33045 2009-05-26 Pavel Roskin <proski@gnu.org>
33046
33047 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
33048 to `str'.
33049
33050 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
33051 possibly unused.
33052
33053 2009-05-25 Christian Franke <franke@computer.org>
33054
33055 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
33056 register.
33057 (grub_atapi_identify): Add wait after drive select.
33058 (grub_ata_identify): Do more strict status register check before
33059 calling grub_atapi_identify (). Suppress error message if status
33060 register is 0x00 after command failure. Add status register
33061 check after PIO read to avoid bogus identify due to stuck DRQ.
33062 Thanks to Pavel Roskin for testing.
33063 (grub_device_initialize): Remove unsafe status register check.
33064 Thanks to 'phcoder' for problem report and patch.
33065 Prevent sign extension in debug message.
33066
33067 2009-05-23 Colin D Bennett <colin@gibibit.com>
33068
33069 Cleaned up `include/grub/normal.h'. Grouped prototypes by
33070 definition file, and functions defined in `normal/menu.c' have had
33071 their prototypes moved to `include/grub/menu.h' for consistency.
33072
33073 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
33074 from normal.h.
33075 (grub_menu_get_entry): Likewise.
33076 (grub_menu_get_timeout): Likewise.
33077 (grub_menu_set_timeout): Likewise.
33078 (grub_menu_execute_entry): Likewise.
33079 (grub_menu_execute_with_fallback): Likewise.
33080 (grub_menu_entry_run): Likewise.
33081
33082 * include/grub/normal.h: Re-ordered and grouped function
33083 prototypes by file that the function is defined in.
33084 (grub_menu_execute_callback): Removed; moved to menu.h.
33085 (grub_menu_get_entry): Likewise.
33086 (grub_menu_get_timeout): Likewise.
33087 (grub_menu_set_timeout): Likewise.
33088 (grub_menu_execute_entry): Likewise.
33089 (grub_menu_execute_with_fallback): Likewise.
33090 (grub_menu_entry_run): Likewise.
33091 (grub_menu_addentry): Renamed from this ...
33092 (grub_normal_add_menu_entry): ... to this.
33093
33094 * normal/main.c (grub_menu_addentry): Renamed from this ...
33095 (grub_normal_add_menu_entry): ... to this.
33096
33097 * script/sh/execute.c (grub_script_execute_menuentry): Update
33098 reference to renamed grub_menu_addentry function.
33099
33100 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
33101
33102 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
33103
33104 2009-05-22 Pavel Roskin <proski@gnu.org>
33105
33106 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
33107 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
33108 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
33109 compiling for the i386 targets, but not for the utilities.
33110
33111 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
33112 to grub_uint8_t.
33113 (grub_root_drive): Likewise.
33114 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
33115 remove alignment.
33116 (grub_root_drive): Change size to byte.
33117 (grub_start_addr): Remove.
33118 (grub_end_addr): Likewise.
33119 (grub_apm_bios_info): Likewise.
33120
33121 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
33122
33123 * normal/i386: Remove.
33124 * normal/powerpc: Likewise.
33125 * normal/sparc64: Likewise.
33126 * normal/x86_64: Likewise.
33127
33128 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
33129
33130 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
33131 * loader/i386/linux_trampoline.S: Fix indentation
33132 * loader/i386/xnu_helper.S: Likewise
33133
33134 2009-05-18 Colin D Bennett <colin@gibibit.com>
33135
33136 Display error messages when parsing a Lua statement fails.
33137 Previously, executing a syntactically invalid statement like
33138 ")foo" or "bar;" would silently fail.
33139
33140 * script/lua/grub_main.c (handle_lua_error): New function.
33141 (grub_lua_parse_line): Improved reporting of Lua parser and
33142 execution errors.
33143
33144 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
33145
33146 Remove -Werror which causes build to fail on some systems
33147
33148 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
33149 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
33150 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
33151
33152 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
33153
33154 trampoline for linux on 64-bit platform
33155
33156 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
33157 loader/i386/efi/linux_trampoline.S
33158 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
33159 declaration
33160 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
33161 here
33162 * loader/i386/linux_trampoline.S: moved here
33163 * loader/i386/efi/linux.c (allocate_pages): reserve space for
33164 trampoline
33165 (jumpvector): removed
33166 (grub_linux_trampoline_start): new declaration
33167 (grub_linux_trampoline_end): likewise
33168 (grub_linux_boot): use trampoline when on 64-bit platform
33169 * loader/i386/linux.c: likewise
33170
33171 2009-05-16 Pavel Roskin <proski@gnu.org>
33172
33173 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
33174 const to avoid a warning.
33175 (grub_lua_setenv): Likewise.
33176 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
33177 lmsg to fix a warning.
33178
33179 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
33180
33181 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
33182 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
33183 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
33184 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
33185 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
33186 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
33187 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
33188 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
33189
33190 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
33191
33192 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
33193
33194 2009-05-16 Bean <bean123ch@gmail.com>
33195
33196 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
33197 (lua_mod_SOURCES): New variable.
33198 (lua_mod_CFLAGS): Likewise.
33199 (lua_mod_LDFLAGS): Likewise.
33200
33201 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
33202 (setjmp_mod_SOURCES): New variable.
33203 (setjmp_mod_CFLAGS): Likewise.
33204 (setjmp_LDFLAGS): Likewise.
33205
33206 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
33207 (setjmp_mod_SOURCES): New variable.
33208 (setjmp_mod_CFLAGS): Likewise.
33209 (setjmp_LDFLAGS): Likewise.
33210
33211 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
33212 (setjmp_mod_SOURCES): New variable.
33213 (setjmp_mod_CFLAGS): Likewise.
33214 (setjmp_LDFLAGS): Likewise.
33215
33216 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
33217 (setjmp_mod_SOURCES): New variable.
33218 (setjmp_mod_CFLAGS): Likewise.
33219 (setjmp_LDFLAGS): Likewise.
33220
33221 * normal/i386/setjmp.S: Moved from here ...
33222 * lib/i386/setjmp.S: ... Moved here
33223 * normal/x86_64/setjmp.S: Moved from here ...
33224 * lib/x86_64/setjmp.S: ... Moved here
33225 * normal/powerpc/setjmp.S: Moved from here ...
33226 * lib/powerpc/setjmp.S: ... Moved here
33227 * normal/sparc64/setjmp.S: Moved from here ...
33228 * lib/sparc64/setjmp.S: ... Moved here
33229
33230 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
33231 returns_twice in mingw.
33232
33233 * script/lua/grub_lib.c: New file.
33234 * script/lua/grub_lib.h: Likewise.
33235 * script/lua/grub_lua.h: Likewise.
33236 * script/lua/grub_main.c: Likewise.
33237 * script/lua/lapi.c: Likewise.
33238 * script/lua/lapi.h: Likewise.
33239 * script/lua/lauxlib.c: Likewise.
33240 * script/lua/lauxlib.h: Likewise.
33241 * script/lua/lbaselib.c: Likewise.
33242 * script/lua/lcode.c: Likewise.
33243 * script/lua/lcode.h: Likewise.
33244 * script/lua/ldblib.c: Likewise.
33245 * script/lua/ldebug.c: Likewise.
33246 * script/lua/ldebug.h: Likewise.
33247 * script/lua/ldo.c: Likewise.
33248 * script/lua/ldo.h: Likewise.
33249 * script/lua/ldump.c: Likewise.
33250 * script/lua/lfunc.c: Likewise.
33251 * script/lua/lfunc.h: Likewise.
33252 * script/lua/lgc.c: Likewise.
33253 * script/lua/lgc.h: Likewise.
33254 * script/lua/linit.c: Likewise.
33255 * script/lua/liolib.c: Likewise.
33256 * script/lua/llex.c: Likewise.
33257 * script/lua/llex.h: Likewise.
33258 * script/lua/llimits.h: Likewise.
33259 * script/lua/lmathlib.c: Likewise.
33260 * script/lua/lmem.c: Likewise.
33261 * script/lua/lmem.h: Likewise.
33262 * script/lua/loadlib.c: Likewise.
33263 * script/lua/lobject.c: Likewise.
33264 * script/lua/lobject.h: Likewise.
33265 * script/lua/lopcodes.c: Likewise.
33266 * script/lua/lopcodes.h: Likewise.
33267 * script/lua/loslib.c: Likewise.
33268 * script/lua/lparser.c: Likewise.
33269 * script/lua/lparser.h: Likewise.
33270 * script/lua/lstate.c: Likewise.
33271 * script/lua/lstate.h: Likewise.
33272 * script/lua/lstring.c: Likewise.
33273 * script/lua/lstring.h: Likewise.
33274 * script/lua/lstrlib.c: Likewise.
33275 * script/lua/ltable.c: Likewise.
33276 * script/lua/ltable.h: Likewise.
33277 * script/lua/ltablib.c: Likewise.
33278 * script/lua/ltm.c: Likewise.
33279 * script/lua/ltm.h: Likewise.
33280 * script/lua/lua.h: Likewise.
33281 * script/lua/luaconf.h: Likewise.
33282 * script/lua/lualib.h: Likewise.
33283 * script/lua/lundump.c: Likewise.
33284 * script/lua/lundump.h: Likewise.
33285 * script/lua/lvm.c: Likewise.
33286 * script/lua/lvm.h: Likewise.
33287 * script/lua/lzio.c: Likewise.
33288 * script/lua/lzio.h: Likewise.
33289
33290 2009-05-16 Bean <bean123ch@gmail.com>
33291
33292 * include/grub/kernel.h (grub_module_header_types): Add type
33293 OBJ_TYPE_CONFIG.
33294
33295 * kern/main.c (grub_load_config): New function.
33296 (grub_main): Call grub_load_config to read boot config.
33297
33298 * grub-mkimage (generate_image): New parameter config_path.
33299 (options): New option --config.
33300 (main): Parse --config option, and pass it to generate_image.
33301
33302 2009-05-14 Christian Franke <franke@computer.org>
33303
33304 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
33305 This fixes build on Cygwin.
33306
33307 2009-05-14 Pavel Roskin <proski@gnu.org>
33308
33309 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
33310 jump. This saves two bytes, so the typical case of 2 swapped
33311 drives would fit 32 bytes.
33312
33313 2009-05-13 Pavel Roskin <proski@gnu.org>
33314
33315 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
33316 grub_uint32_t to avoid a warning.
33317
33318 * loader/i386/linux.c (allocate_pages): When assigning
33319 real_mode_mem, cast through grub_size_t to fix a warning. The
33320 code already makes sure that the value would fit a pointer.
33321 (grub_linux_setup_video): Cast render_target->data to
33322 grub_size_t to fix a warning.
33323
33324 2009-05-13 Javier Martín <lordhabbit@gmail.com>
33325
33326 * commands/i386/pc/drivemap.c: New file - implement drivemap
33327 command.
33328 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
33329 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
33330
33331 2009-05-13 Pavel Roskin <proski@gnu.org>
33332
33333 * util/i386/pc/grub-setup.c (setup): Remove unused variable
33334 embedding_area_exists.
33335
33336 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
33337
33338 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
33339 it easier to understand / work with.
33340 Improve warning messages for cases where there's no embedding area,
33341 or when it is too small (or core.img too large).
33342
33343 2009-05-13 Pavel Roskin <proski@gnu.org>
33344
33345 * loader/i386/pc/multiboot2.c: Add necessary includes for
33346 grub_multiboot2_real_boot().
33347
33348 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
33349 PX record is always little-endian. We only need the lower 2
33350 bytes of the mode.
33351
33352 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
33353 facilitate code reuse.
33354 (grub_cpio_mount): Use "struct head", not a char buffer. This
33355 fixes a warning reported by gcc 4.4.
33356
33357 * kernel/disk.c (grub_disk_read): Use void pointer for the
33358 buffer.
33359 (grub_disk_write): Use const void pointer for the buffer.
33360 Adjust all callers. Remove unnecessary casts.
33361
33362 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
33363
33364 * util/i386/pc/grub-install.in: Update copyright year.
33365
33366 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
33367
33368 gptsync
33369
33370 * commands/gptsync.c: new file
33371 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
33372 (gptsync_mod_SOURCES): new variable
33373 (gptsync_mod_CFLAGS): likewise
33374 (gptsync_mod_LDFLAGS): likewise
33375 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
33376 new definition
33377 (GRUB_PC_PARTITION_TYPE_HFS): likewise
33378 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
33379 * conf/i386-ieee1275.rmk: likewise
33380 * conf/i386-pc.rmk: likewise
33381 * conf/powerpc-ieee1275.rmk: likewise
33382
33383 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
33384
33385 Fixed grub-emu
33386
33387 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
33388 (grub_dl_ref): likewise
33389
33390 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
33391
33392 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
33393 split in two functions (one for msdos and one for gpt).
33394
33395 2009-05-08 Pavel Roskin <proski@gnu.org>
33396
33397 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
33398 not modified.
33399
33400 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
33401 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
33402 Initialize them with -1. Add sanity check for bad1. Eliminate
33403 nerr variable.
33404
33405 2009-05-08 David S. Miller <davem@davemloft.net>
33406
33407 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
33408
33409 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
33410
33411 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
33412 existence.
33413
33414 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
33415
33416 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
33417 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
33418
33419 2009-05-05 David S. Miller <davem@davemloft.net>
33420
33421 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
33422
33423 2009-05-05 Pavel Roskin <proski@gnu.org>
33424
33425 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
33426 of grub_dl_ref() and grub_dl_unref().
33427 * commands/parttool.c: Remove preprocessor conditionals around
33428 grub_dl_ref() and grub_dl_unref().
33429 * fs/affs.c: Likewise.
33430 * fs/afs.c: Likewise.
33431 * fs/cpio.c: Likewise.
33432 * fs/ext2.c: Likewise.
33433 * fs/fat.c: Likewise.
33434 * fs/hfs.c: Likewise.
33435 * fs/hfsplus.c: Likewise.
33436 * fs/iso9660.c: Likewise.
33437 * fs/jfs.c: Likewise.
33438 * fs/minix.c: Likewise.
33439 * fs/ntfs.c: Likewise.
33440 * fs/reiserfs.c: Likewise.
33441 * fs/sfs.c: Likewise.
33442 * fs/udf.c: Likewise.
33443 * fs/ufs.c: Likewise.
33444 * fs/xfs.c: Likewise.
33445 * include/grub/dl.h: Likewise.
33446 * loader/xnu.c: Likewise.
33447
33448 2009-05-04 Pavel Roskin <proski@gnu.org>
33449
33450 * commands/acpi.c: Remove unused variable my_mod.
33451 * partmap/amiga.c: Likewise.
33452 * partmap/apple.c: Likewise.
33453 * partmap/gpt.c: Likewise.
33454 * partmap/pc.c: Likewise.
33455 * partmap/sun.c: Likewise.
33456 * term/gfxterm.c: Likewise.
33457 * term/i386/pc/vesafb.c: Likewise.
33458 * term/i386/pc/vga.c: Likewise.
33459
33460 2009-05-04 David S. Miller <davem@davemloft.net>
33461
33462 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
33463 pointer args to grub_ieee1275_get_property().
33464
33465 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
33466
33467 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
33468 devices, and do not traverse down under controller nodes.
33469
33470 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
33471 (grub_ofdisk_open): Use it to un-escape "," characters.
33472 * kern/disk.c (find_part_sep): New.
33473 (grub_disk_open): Use it to find the first non-escaped ','
33474 character in the disk name.
33475 * util/ieee1275/devicemap.c (escape_of_path): New.
33476 (grub_util_emit_devicemap_entry): Use it.
33477 * util/sparc64/ieee1275/grub-install.in: Update script to
33478 strip partition specifiers properly by not triggering on
33479 '\' escaped ',' characters.
33480
33481 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
33482
33483 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
33484 to 0x300.
33485 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
33486 resolutions.
33487 (linux_vesafb_modes): Add a lot of additional modes to the list (based
33488 on documentation from Wikipedia).
33489
33490 2009-05-04 Pavel Roskin <proski@gnu.org>
33491
33492 * disk/ata.c: Spelling fixes.
33493 * disk/raid.c: Likewise.
33494 * disk/usbms.c: Likewise.
33495 * disk/dmraid_nvidia.c: Likewise.
33496 * kern/ieee1275/openfw.c: Likewise.
33497 * kern/ieee1275/init.c: Likewise.
33498 * kern/ieee1275/cmain.c: Likewise.
33499 * boot/i386/pc/cdboot.S: Likewise.
33500 * video/readers/png.c: Likewise.
33501 * video/i386/pc/vbe.c: Likewise.
33502 * fs/udf.c: Likewise.
33503 * fs/hfs.c: Likewise.
33504 * fs/reiserfs.c: Likewise.
33505 * efiemu/runtime/efiemu.c: Likewise.
33506 * efiemu/main.c: Likewise.
33507 * efiemu/mm.c: Likewise.
33508 * include/grub/elf.h: Likewise.
33509 * include/grub/xnu.h: Likewise.
33510 * include/grub/usbdesc.h: Likewise.
33511 * include/grub/usb.h: Likewise.
33512 * include/grub/script_sh.h: Likewise.
33513 * include/grub/lib/LzmaEnc.h: Likewise.
33514 * include/grub/efiemu/efiemu.h: Likewise.
33515 * include/grub/command.h: Likewise.
33516 * normal/menu.c: Likewise.
33517 * normal/main.c: Likewise.
33518 * normal/datetime.c: Likewise.
33519 * bus/usb/uhci.c: Likewise.
33520 * mmap/i386/uppermem.c: Likewise.
33521 * mmap/mmap.c: Likewise.
33522 * commands/acpi.c: Likewise.
33523 * commands/test.c: Likewise.
33524 * partmap/apple.c: Likewise.
33525 * font/font.c: Likewise.
33526 * loader/sparc64/ieee1275/linux.c: Likewise.
33527 * loader/macho.c: Likewise.
33528 * loader/i386/bsd_trampoline.S: Likewise.
33529 * loader/i386/bsd.c: Likewise.
33530 * loader/xnu.c: Likewise.
33531 * term/i386/pc/vesafb.c: Likewise.
33532 * term/usb_keyboard.c: Likewise.
33533 * util/resolve.c: Likewise.
33534 * util/getroot.c: Likewise.
33535
33536 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
33537
33538 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
33539
33540 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
33541
33542 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
33543 build error.
33544
33545 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
33546
33547 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
33548 parameter only available on BIOS.
33549
33550 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
33551
33552 Removed wrong semicolon in declaration
33553
33554 * grub/misc.h (grub_dprintf): remove semicolon
33555
33556 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
33557
33558 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
33559 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
33560 is done by grub_cmd_linux() now).
33561 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
33562 restore video to text mode.
33563 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
33564 indicates lack of "vga=" parameter. "vga=0" is mapped to
33565 `GRUB_LINUX_VID_MODE_NORMAL'.
33566
33567 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
33568
33569 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
33570 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
33571 and `normal/script.c'. Add `kern/rescue_reader.c',
33572 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
33573 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
33574 `grub_script.tab.c'.
33575
33576 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33577 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33578 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33579 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33580 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33581
33582 * Makefile.in: Remove duplicated 2008 in Copyright line.
33583
33584 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
33585
33586 * util/misc.c (grub_util_warn): New function. Emits a warning
33587 unconditionally.
33588 * include/grub/util/misc.h (grub_util_warn): New declaration.
33589
33590 * util/i386/pc/grub-install.in: Understand --force and pass it down
33591 to grub-setup.
33592
33593 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
33594 down to setup().
33595 (setup): Improve error messages and add warnings when requested to
33596 install in odd layouts. Refuse to install using blocklists unless
33597 --force was set.
33598
33599 2009-05-04 martin f. krafft <madduck@madduck.net>
33600
33601 * disk/raid.c (grub_raid_scan_device): Improve debug message.
33602
33603 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
33604
33605 Updated copyright year
33606
33607 * fs/hfsplus.c: updated copyright year
33608
33609 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
33610
33611 HFS+ UUID
33612
33613 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
33614 in the space previously used by unused3
33615 (grub_hfsplus_uuid): new function
33616 (grub_hfsplus_fs): added uuid field
33617
33618 2009-05-03 Pavel Roskin <proski@gnu.org>
33619
33620 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
33621 suppress warnings. It's no longer needed.
33622 * disk/host.c: Likewise.
33623 * disk/ata_pthru.c: Likewise.
33624 * disk/loopback.c: Likewise.
33625 * hook/datehook.c: Likewise.
33626 * parttool/pcpart.c: Likewise.
33627 * fs/i386/pc/pxe.c: Likewise.
33628 * fs/ntfscomp.c: Likewise.
33629 * efiemu/main.c: Likewise.
33630 * mmap/mmap.c: Likewise.
33631 * commands/crc.c: Likewise.
33632 * commands/hexdump.c: Likewise.
33633 * commands/hdparm.c: Likewise.
33634 * commands/acpi.c: Likewise.
33635 * commands/echo.c: Likewise.
33636 * commands/minicmd.c: Likewise.
33637 * commands/blocklist.c: Likewise.
33638 * commands/memrw.c: Likewise.
33639 * commands/loadenv.c: Likewise.
33640 * commands/usbtest.c: Likewise.
33641 * commands/lsmmap.c: Likewise.
33642 * commands/boot.c: Likewise.
33643 * commands/parttool.c: Likewise.
33644 * commands/configfile.c: Likewise.
33645 * commands/search.c: Likewise.
33646 * commands/ieee1275/suspend.c: Likewise.
33647 * commands/cat.c: Likewise.
33648 * commands/i386/pc/pxecmd.c: Likewise.
33649 * commands/i386/pc/play.c: Likewise.
33650 * commands/i386/pc/halt.c: Likewise.
33651 * commands/i386/pc/vbeinfo.c: Likewise.
33652 * commands/i386/pc/vbetest.c: Likewise.
33653 * commands/lspci.c: Likewise.
33654 * commands/date.c: Likewise.
33655 * commands/handler.c: Likewise.
33656 * commands/ls.c: Likewise.
33657 * commands/test.c: Likewise.
33658 * commands/cmp.c: Likewise.
33659 * commands/efi/loadbios.c: Likewise.
33660 * commands/efi/fixvideo.c: Likewise.
33661 * commands/halt.c: Likewise.
33662 * commands/help.c: Likewise.
33663 * commands/reboot.c: Likewise.
33664 * hello/hello.c: Likewise.
33665 * script/sh/main.c: Likewise.
33666 * loader/xnu.c: Likewise.
33667 * term/terminfo.c: Likewise.
33668 * term/i386/pc/serial.c: Likewise.
33669 * term/usb_keyboard.c: Likewise.
33670
33671 2009-05-03 David S. Miller <davem@davemloft.net>
33672
33673 * normal/menu.c: Include grub/parser.h
33674
33675 2009-05-03 Pavel Roskin <proski@gnu.org>
33676
33677 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
33678 not char*.
33679 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
33680 Suggested by Javier Martín <lordhabbit@gmail.com>
33681
33682 * util/i386/pc/grub-mkrescue.in: Allow for the case when
33683 efiemu??.o doesn't exist.
33684 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
33685 copying.
33686
33687 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
33688
33689 FreeBSD 64-bit support
33690
33691 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
33692 and loader/i386/bsd_trampoline.S
33693 (bsd_mod_ASFLAGS): new variable
33694 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
33695 (FREEBSD_MODTYPE_KERNEL64): likewise
33696 (grub_bsd64_trampoline_start): likewise
33697 (grub_bsd64_trampoline_end): likewise
33698 (grub_bsd64_trampoline_selfjump): likewise
33699 (grub_bsd64_trampoline_gdt): likewise
33700 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
33701 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
33702 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
33703 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
33704 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
33705 of "attrib" member
33706 * loader/i386/bsd_pagetable.c: new file
33707 * loader/i386/bsd_trampoline.S: likewise
33708 * loader/i386/bsd.c (ALIGN_QWORD): new macro
33709 (ALIGN_VAR): likewise
33710 (entry_hi): new variable
33711 (kern_end_mdofs): likewise
33712 (is_64bit): likewise
33713 (grub_freebsd_add_meta): use ALIGN_VAR
33714 (grub_e820_mmap): new declaration
33715 (grub_freebsd_add_mmap): new function
33716 (grub_freebsd_add_meta_module): support 64 bit kernels
33717 (grub_freebsd_list_modules): use ALIGN_VAR
33718 (gdt_descriptor): new declaration
33719 (grub_freebsd_boot): support 64 bit kernels
33720 (grub_bsd_elf64_hook): new function
33721 (grub_bsd_load_elf): support elf64
33722
33723 2009-05-03 Bean <bean123ch@gmail.com>
33724
33725 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
33726 after we get the result of if statement.
33727
33728 2009-05-03 Bean <bean123ch@gmail.com>
33729
33730 * Makefile.in (enable_efiemu): New variable.
33731
33732 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
33733 set.
33734 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
33735 path.
33736 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
33737 path, add -mno-red-zone option.
33738 (efiemu64_s.o): Likewise.
33739 (efiemu64.o): Use macro $^ for source file.
33740
33741 * configure.ac (--enable-efiemu): New option.
33742
33743 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
33744
33745 xnu support
33746
33747 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
33748 (pkglib_MODULES): add xnu.mod
33749 (xnu_mod_SOURCES): new variable
33750 (xnu_mod_CFLAGS): likewise
33751 (xnu_mod_LDFLAGS): likewise
33752 (xnu_mod_ASFLAGS): likewise
33753 * conf/i386-pc.rmk: likewise
33754 * conf/x86_64-efi.rmk: likewise
33755 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
33756 new declaration
33757 * include/grub/i386/macho.h: new file
33758 * include/grub/i386/xnu.h: likewise
33759 * include/grub/macho.h: likewise
33760 * include/grub/machoload.h: likewise
33761 * include/grub/x86_64/macho.h: likewise
33762 * include/grub/x86_64/xnu.h: likewise
33763 * include/grub/xnu.h: likewise
33764 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
33765 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
33766 * loader/i386/efi/xnu.c: new file
33767 * loader/i386/pc/xnu.c: likewise
33768 * loader/i386/xnu.c: likewise
33769 * loader/i386/xnu_helper.S: likewise
33770 * loader/macho.c: likewise
33771 * loader/xnu.c: likewise
33772 * loader/xnu_resume.c: likewise
33773 * util/grub-dumpdevtree: likewise
33774 * include/grub/i386/pit.h: include grub/err.h
33775 (grub_pit_wait): export
33776 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
33777
33778 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
33779
33780 Efiemu
33781
33782 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
33783 _linux_efi, linux_efi.
33784 new files in grub-emu
33785 new targets efiemu32.o and efiemu64.o
33786 * loader/linux_normal_efiemu.c: likewise
33787 * loader/i386/efi/linux.c: added preliminary efiemu support
33788 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
33789 files to copy
33790 * include/grub/autoefi.h: new file
33791 * include/grub/i386/efiemu.h: likewise
33792 * include/grub/i386/pc/efiemu.h: likewise
33793 * include/grub/efi/api.h: add LL suffix when necessary
33794 new definitions relating to tables
33795 * include/grub/efiemu/efiemu.h: new file
33796 * include/grub/efiemu/runtime.h: likewise
33797 * efiemu/prepare.c: likewise
33798 * efiemu/loadcore_common.c: likewise
33799 * efiemu/loadcore64.c: likewise
33800 * efiemu/runtime/efiemu.sh: likewise
33801 * efiemu/runtime/efiemu.S: likewise
33802 * efiemu/runtime/efiemu.c: likewise
33803 * efiemu/runtime/config.h: likewise
33804 * efiemu/prepare32.c: likewise
33805 * efiemu/main.c: likewise
33806 * efiemu/modules/pnvram.c: likewise
33807 * efiemu/modules/i386: likewise
33808 * efiemu/modules/i386/pc: likewise
33809 * efiemu/modules/acpi.c: likewise
33810 * efiemu/i386/pc/cfgtables.c: likewise
33811 * efiemu/i386/loadcore64.c: likewise
33812 * efiemu/i386/loadcore32.c: likewise
33813 * efiemu/prepare64.c: likewise
33814 * efiemu/loadcore.c: likewise
33815 * efiemu/symbols.c: likewise
33816 * efiemu/mm.c: likewise
33817 * efiemu/loadcore32.c: likewise
33818
33819 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
33820
33821 ACPI spoofing
33822
33823 * commands/acpi.c: new file
33824 * commands/i386/pc/acpi.c: likewise
33825 * commands/efi/acpi.c: likewise
33826 * include/grub/acpi.h: likewise
33827 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
33828 (acpi_mod_SOURCES): new variable
33829 (acpi_mod_CFLAGS): likewise
33830 (acpi_mod_LDFLAGS): likewise
33831 * conf/i386-efi.rmk: likewise
33832 * conf/x86_64-efi.rmk: likewise
33833
33834 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
33835
33836 Missing part from mmap patch
33837
33838 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
33839 (grub_mmap_unregister)
33840 (grub_mmap_free_and_unregister): use grub_mmap_register
33841
33842 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
33843
33844 Mmap services
33845
33846 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
33847 * loader/i386/linux.c (find_mmap_size): likewise
33848 (allocate_pages): likewise
33849 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
33850 (grub_fill_multiboot_mmap): likewise
33851 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
33852 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
33853 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
33854 (OPENBSD_MMAP_RESERVED): likewise
33855 * include/grub/i386/pc/memory.h: include grub/memory.h
33856 (grub_lower_mem): removed
33857 (grub_upper_mem): likewise
33858 (GRUB_MACHINE_MEMORY_ACPI): new definition
33859 (GRUB_MACHINE_MEMORY_NVS): likewise
33860 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
33861 (GRUB_MACHINE_MEMORY_HOLE): likewise
33862 (grub_machine_mmap_register): likewise
33863 (grub_machine_mmap_unregister): likewise
33864 (grub_machine_get_upper): likewise
33865 (grub_machine_get_lower): likewise
33866 (grub_machine_get_post64): likewise
33867 * include/grub/i386/efi/memory.h: new file
33868 * include/grub/x86_64/efi/memory.h: likewise
33869 * include/grub/efi/memory.h: likewise
33870 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
33871 (mmap_mod_SOURCES): new variable
33872 (mmap_mod_LDFLAGS): likewise
33873 (mmap_mod_ASFLAGS): likewise
33874 * conf/i386-coreboot.rmk: likewise
33875 * conf/i386-ieee1275.rmk: likewise
33876 * conf/i386-efi.rmk: likewise
33877 * conf/x86_64-efi.rmk: likewise
33878 * include/grub/types.h (UINT_TO_PTR): new macro
33879 (PTR_TO_UINT32): likewise
33880 (PTR_TO_UINT64): likewise
33881 * include/grub/memory.h: new file
33882 * mmap/i386/pc/mmap.c: likewise
33883 * mmap/i386/pc/mmap_helper.S: likewise
33884 * mmap/i386/uppermem.c: likewise
33885 * mmap/mmap.c: likewise
33886 * mmap/efi/mmap.c: likewise
33887 * kern/i386/coreboot/init.c (grub_machine_init): don't use
33888 grub_upper_mem
33889 * kern/i386/pc/init.c (grub_lower_mem): removed variable
33890 (grub_upper_mem): likewise
33891 (grub_machine_init): don't use grub_upper_mem,
33892 make grub_lower_mem local
33893 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
33894 grub_mmap_iterate and grub_mmap_get_upper
33895 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
33896
33897 2009-05-02 Bean <bean123ch@gmail.com>
33898
33899 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
33900 script/sh/parser.y.
33901 (pkglib_MODULES): Add normal.mod and sh.mod.
33902 (normal_SOURCES): New variable.
33903 (normal_mod_CFLAGS): Likewise.
33904 (normal_mod_LDFLAGS): Likewise.
33905 (sh_mod_SOURCES): Likewise.
33906 (sh_mod_CFLAGS): Likewise.
33907 (sh_mod_LDFLAGS): Likewise.
33908
33909 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
33910 script/sh/lexer.c_DEPENDENCIES.
33911 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
33912 kern/rescue_reader.c and kern/rescue_parser.c.
33913 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
33914 (grub_emu_SOURCES): Change source files.
33915 (pkglib_MODULES): Remove normal.mod.
33916 (normal_SOURCES): Removed.
33917 (normal_mod_CFLAGS): Likewise.
33918 (normal_mod_LDFLAGS): Likewise.
33919 * conf/i386-coreboot.rmk: Likewise.
33920 * conf/i386-efi.rmk: Likewise.
33921 * conf/i386-ieee1276.rmk: Likewise.
33922 * conf/powerpc-ieee1275.rmk: Likewise.
33923 * conf/sparc64-ieee1275.rmk: Likewise.
33924 * conf/x86_64-efi.rmk: Likewise.
33925
33926 * include/grub/command.h (grub_command_execute): New inline function.
33927
33928 * include/grub/menu.h (grub_menu_entry): Removed commands field.
33929
33930 * include/grub/normal.h: Remove <grub/setjmp.h>.
33931 (grub_fs_module_list): Moved to normal/autofs.c.
33932 (grub_exit_env): Removed.
33933 (grub_command_execute): Likewise.
33934 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
33935 parameter script.
33936 (read_command_list): New function declaration.
33937 (read_fs_list): Likewise.
33938
33939 * include/parser.h: Include <grub/reader.h>.
33940 (grub_parser_split_cmdline): Change type of getline parameter.
33941 (grub_parser): New structure.
33942 (grub_parser_class): New variable.
33943 (grub_parser_execute): New function declaration.
33944 (grub_register_rescue_parser): Likewise.
33945 (grub_parser_register): New inline function.
33946 (grub_parser_unregister): Likewise.
33947 (grub_parser_get_current): Likewise.
33948 (grub_parser_set_current): Likewise.
33949
33950 * include/grub/reader.h: New file.
33951 * kern/reader.c: Likewise.
33952 * kern/rescue_parser.c: Likewise.
33953 * kern/rescue_reader.c: Likewise.
33954 * normal/autofs.c: Likewise.
33955 * normal/dyncmd.c: Likewise.
33956
33957 * include/grub/rescue.h: Removed.
33958 * normal/command.h: Likewise.
33959
33960 * include/grub/script.h: Moved to ...
33961 * include/grub/script_sh.h: ... Moved here.
33962 * normal/execute.c: Moved to ...
33963 * script/sh/execute.c: ... Moved here.
33964 * normal/function.c: Moved to ...
33965 * script/sh/function.c: ... Moved here.
33966 * normal/lexer.c: Moved to ...
33967 * script/sh/lexer.c: ... Moved here.
33968 * normal/parser.y: Moved to ...
33969 * script/sh/parser.y: ... Moved here.
33970 * normal/script.c: Moved to ...
33971 * script/sh/script.c: ... Moved here.
33972
33973 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
33974 <grub/reader.h>.
33975 (grub_exit_env): Removed.
33976 (fs_module_list): Moved to normal/autofs.c.
33977 (grub_file_getline): Don't handle comment here.
33978 (free_menu): Skip removed field entry->commands.
33979 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
33980 script parameter.
33981 (read_config_file): Removed nested parameter, change getline function.
33982 (grub_enter_normal_mode): Removed.
33983 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
33984 (read_command_list): Likewise.
33985 (autoload_fs_module): Moved to normal/autofs.c.
33986 (read_fs_list): Likewise.
33987 (reader_nested): New variable.
33988 (grub_normal_execute): Run parser.sh to switch to sh parser.
33989 (grub_cmd_rescue): Removed.
33990 (cmd_normal): Removed.
33991 (grub_cmd_normal): Unregister itself at the beginning. Don't register
33992 rescue command.
33993 (grub_cmdline_run): New function.
33994 (grub_normal_reader_init): Likewise.
33995 (grub_normal_read_line): Likewise.
33996 (grub_env_write_pager): Likewise.
33997 (cmdline): New variable.
33998 (grub_normal_reader): Likewise.
33999 (GRUB_MOD_INIT): Register normal reader and set as current, register
34000 pager hook, register normal command with grub_register_command_prio,
34001 so that it won't show up in command.lst.
34002 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
34003 grub_fs_autoload_hook.
34004
34005 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
34006 (grub_menu_execute_entry): Replace grub_script_execute with
34007 grub_parser_execute, change parameter to grub_command_execute.
34008
34009 * normal/menu_text.c: Remove <grub/script.h>.
34010
34011 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
34012 and <grub/parser.h>.
34013 (run): Change editor_getline to use new parser interface. Change
34014 parameter to grub_command_execute.
34015
34016 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
34017 <grub/reader.h> and <grub/parser.h>.
34018 (grub_load_normal_mode): Execute normal command.
34019 (grub_main): Call grub_register_core_commands,
34020 grub_register_rescue_parser and grub_register_rescue_reader, use
34021 grub_reader_loop to enter input loop.
34022
34023 * kern/parser.c (grub_parser_split_cmdline): Change type of
34024 getline parameter.
34025 (grub_parser_class): New variable.
34026 (grub_parser_execute): New function.
34027
34028 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
34029 * loader/multiboot2.c: Likewise.
34030 * loader/sparc64/ieee1275/linux.c: Likewise.
34031
34032 * util/grub-emu.c (read_command_list): New dummy function.
34033
34034 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
34035
34036 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
34037 count to 16 for CCISS and IDA.
34038
34039 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
34040
34041 * normal/menu_text.c (grub_wait_after_message): Print a newline
34042 after waiting for user input.
34043
34044 * loader/i386/linux.c: Include `<grub/normal.h>'.
34045 (grub_cmd_linux): Improve the error message about `ask' mode, by
34046 waiting for user input so it's not missed (we can do this, since
34047 user requested interaction).
34048
34049 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
34050
34051 Added missing lst to grub-mkrescue
34052
34053 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
34054 and ${input_dir}/parttool.lst
34055
34056 2009-04-30 David S. Miller <davem@davemloft.net>
34057
34058 * util/hostdisk.c (device_is_wholedisk): New function.
34059 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
34060 zero only if device_is_wholedisk() returns true.
34061
34062 * util/hostdisk.c (convert_system_partition_to_system_disk):
34063 Handle virtual disk devices named /dev/vdiskX as found on sparc
34064 and powerpc.
34065
34066 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
34067 lettered partition specifier is found, convert to numbered.
34068
34069 2009-04-29 David S. Miller <davem@davemloft.net>
34070
34071 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
34072 * include/grub/sparc64/ieee1275/memory.h: Likewise.
34073
34074 * normal/command.c: Add missing newline at end of file.
34075
34076 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
34077 warnings.
34078 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
34079 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
34080 grub_ofdisk_read): Likewise, and deal similarly with the fact that
34081 ihandles have a 32-bit type but need to be stored in a "void *".
34082
34083 2009-04-28 Pavel Roskin <proski@gnu.org>
34084
34085 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
34086 not disk. Adjust all dependencies.
34087 (grub_fs_uuid_close): Use grub_device_close(), not
34088 grub_disk_close().
34089
34090 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
34091 parent's partition, don't copy it by reference, as it gets freed
34092 on close.
34093
34094 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
34095
34096 Preboot hooks support
34097
34098 * commands/boot.c (struct grub_preboot_t): new declaration
34099 (preboots_head): new variable
34100 (preboots_tail): likewise
34101 (grub_loader_register_preboot_hook): new function
34102 (grub_loader_unregister_preboot_hook): likewise
34103 (grub_loader_set): launch preboot hooks
34104 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
34105 (grub_loader_register_preboot_hook): new declaration
34106 (grub_loader_unregister_preboot_hook): likewise
34107
34108 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
34109
34110 Warning fix
34111
34112 * disk/scsi.c (grub_scsi_open): added missing cast when
34113 calling grub_dprintf
34114
34115 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
34116
34117 Bug and warning fixes
34118
34119 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
34120 declaration
34121 * commands/test.c (test_parse): fixed bug with file tests and corrected
34122 declaration of find_file
34123
34124 2009-04-26 Pavel Roskin <proski@gnu.org>
34125
34126 * Makefile.in: Don't install empty manual pages if help2man is
34127 missing. Use help2man option for output, not shell redirection.
34128
34129 2009-04-26 David S. Miller <davem@davemloft.net>
34130
34131 * util/grub-mkdevicemap.c (make_device_map): Add missing
34132 NESTED_FUNC_ATTR to process_device().
34133
34134 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
34135
34136 Test command
34137
34138 * commands/test.c: rewritten to use bash-like test
34139
34140 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
34141
34142 Parttool autoloading and improvements
34143
34144 * Makefile.in (pkglib_DATA): add parttool.lst
34145 (parttool.lst): new target
34146 * genmk.rb: generate parttool-*
34147 (CLEANFILES): add #{parttool}
34148 (PARTTOOLFILES): new variable
34149 * genparttoollist.sh: new file
34150 * parttool/pcpart.c (grub_pcpart_boot): more feedback
34151 (grub_pcpart_type): likewise
34152 * commands/parttool.c (helpmsg): new variable
34153 (grub_cmd_parttool): output help if not enough arguments are supplied
34154 autoload modules
34155 (GRUB_MOD_INIT(parttool)): use helpmsg
34156
34157 2009-04-24 David S. Miller <davem@davemloft.net>
34158
34159 Avoiding opening same device multiple times in device iterator.
34160
34161 * kern/device.c: (grub_device_iterate): Define struct part_ent,
34162 and use it to build a list of partitions in iterate_disk() and
34163 iterate_partition().
34164
34165 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
34166 on disk->data.
34167
34168 * disk/ieee1275/nand.c (grub_nand_iterate): Return
34169 grub_devalias_iterate() result instead of unconditional 0.
34170 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
34171 Also, capture hook return value, either directly or via
34172 grub_children_iterate(), and propagate to caller.
34173 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
34174 grub_children_iterate): Return value is now 'int' instead of
34175 'grub_err_t'.
34176 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
34177 like a proper iterator, stopping when hooks return non-zero.
34178 (grub_devalias_iterate): Likewise.
34179
34180 2009-04-23 David S. Miller <davem@davemloft.net>
34181
34182 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
34183
34184 2009-04-22 David S. Miller <davem@davemloft.net>
34185
34186 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
34187 is larger than address_cells, use that value for address_cells too.
34188
34189 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
34190 IEEE1275_MAX_PATH_LEN): Define.
34191 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
34192 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
34193 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
34194 'devtype'. Explicitly NULL terminate devalias expansion.
34195
34196 * util/sparc64/ieee1275/misc.c: New file.
34197 * util/sparc64/ieee1275/grub-setup.c: New file.
34198 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
34199 * util/sparc64/ieee1275/grub-mkimage.c: New file.
34200 * util/sparc64/ieee1275/grub-install.in: New file.
34201 * util/ieee1275/ofpath.c: New file.
34202 * util/ieee1275/devicemap.c: New file.
34203 * util/devicemap.c: New file.
34204 * util/deviceiter.c: New file.
34205 * kern/sparc64/ieee1275/init.c: New file.
34206 * include/grub/util/ofpath.h: New file.
34207 * include/grub/util/deviceiter.h: New file.
34208 * util/grub-mkdevicemap.c: Include deviceiter.h.
34209 Implement using grub_util_emit_devicemap_entry and
34210 grub_util_iterate_devices.
34211 * conf/i386-corebook.rmk: Build util/deviceiter.c and
34212 util/devicemap.c into grub-mkdevicemap
34213 * conf/i386-efi.rmk: Likewise.
34214 * conf/i386-ieee1275.rmk: Likewise.
34215 * conf/i386-pc.rmk: Likewise.
34216 * conf/powerpc-ieee1275.rmk: Likewise.
34217 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
34218 images and installation utilities. Build kernel as image
34219 instead of as elf binary. Use common rules as much as possible.
34220
34221 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
34222
34223 Correct GPT definition
34224
34225 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
34226 of "attrib" member
34227
34228 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
34229
34230 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
34231
34232 2009-04-19 David S. Miller <davem@davemloft.net>
34233
34234 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
34235 (grub_rescue_cmd_linux): Rename to...
34236 (grub_cmd_linux): and fix prototype.
34237 (grub_rescue_cmd_initrd): Rename to...
34238 (grub_cmd_initrd): and fix prototype.
34239 (cmd_linux, cmd_initrd): New.
34240 (GRUB_MOD_INIT(linux)): Use grub_register_command().
34241 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
34242
34243 2009-04-17 Pavel Roskin <proski@gnu.org>
34244
34245 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
34246 format.
34247 (grub_ohci_transfer): Likewise.
34248
34249 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
34250
34251 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
34252 return without a value. Fix inconsistent indentation.
34253
34254 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
34255 match struct grub_fs.
34256
34257 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
34258 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
34259 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
34260 * commands/lspci.c (grub_lspci_iter): Likewise.
34261
34262 2009-04-16 Bean <bean123ch@gmail.com>
34263
34264 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
34265 value.
34266
34267 2009-04-15 Pavel Roskin <proski@gnu.org>
34268
34269 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
34270 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
34271 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
34272 definitions.
34273
34274 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
34275
34276 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
34277 that no multiple data or metadata areas are supported and `Unknown
34278 metadata header'.
34279
34280 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
34281
34282 Move loader out of the kernel
34283
34284 * kern/loader.c: moved to ...
34285 * commands/boot.c: ... moved here
34286 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
34287 * commands/boot.c (grub_cmd_boot): moved here. All users updated
34288 * include/grub/kernel.h (grub_machine_fini): export
34289 * include/grub/loader.h (grub_loader_is_loaded): update declaration
34290 (grub_loader_set): likewise
34291 (grub_loader_unset): likewise
34292 (grub_loader_boot): likewise
34293 * conf/common.rmk: new module boot.mod
34294 (pkglib_MODULES): add boot.mod
34295 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
34296 (grub_emu_SOURCES): likewise
34297 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
34298 (grub_emu_SOURCES): likewise
34299 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
34300 (grub_emu_SOURCES): likewise
34301 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
34302 (grub_emu_SOURCES): likewise
34303 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
34304 (grub_emu_SOURCES): likewise
34305 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
34306 (grub_emu_SOURCES): likewise
34307 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
34308 (grub_emu_SOURCES): likewise
34309
34310 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
34311
34312 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
34313
34314 * kern/misc.c (grub_itoa): Removed function
34315 (grub_ltoa): likewise
34316 (grub_vsprintf): use grub_lltoa
34317
34318 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
34319
34320 Restore grub-emu
34321
34322 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
34323 * conf/i386-coreboot.rmk: likewise
34324 * conf/i386-ieee1275.rmk: likewise
34325 * conf/powerpc-ieee1275.rmk: likewise
34326
34327 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
34328
34329 * INSTALL: Add that `./autogen.sh' needs to be run before
34330 `./configure.'.
34331
34332 2009-04-14 Bean <bean123ch@gmail.com>
34333
34334 * Makefile.in (pkglib_DATA): Add handler.lst.
34335 (handler.lst): New rule.
34336
34337 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
34338 * conf/i386-coreboot.rmk: Likewise.
34339 * conf/i386-ieee1275.rmk: Likewise.
34340 * conf/i386-efi.rmk: Likewise.
34341 * conf/x86_64-efi.rmk: Likewise.
34342 * conf/powerpc-ieee1275.rmk: Likewise.
34343 * conf/sparc64-ieee1275.rmk: Likewise.
34344
34345 * genhandlerlist.sh: New file.
34346
34347 * genmk.rb: Add rules to generate handler.lst.
34348
34349 * include/grub/normal.h (grub_file_getline): New function definition.
34350 (read_handler_list): Likewise.
34351 (free_handler_list): Likewise.
34352
34353 * include/grub/term.h (grub_term_register_input): Add name parameter
34354 for auto generation of handler.lst.
34355 (grub_term_register_output): Likewise.
34356
34357 * normal/handler.c: New file.
34358
34359 * normal/main.c (get_line): Renamed to grub_file_getline.
34360 (read_config_file): Use the newly renamed grub_file_getline.
34361 (read_command_list): Likewise.
34362 (read_fs_list): Likewise.
34363 (grub_normal_execute): Call read_handler_list to parse handler.lst.
34364 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
34365
34366 * term/efi/console.c (grub_console_init): Add name parameter for auto
34367 generation of handler.lst.
34368 * term/gfxterm.c: Likewise.
34369 * term/i386/pc/at_keyboard.c: Likewise.
34370 * term/i386/pc/console.c: Likewise.
34371 * term/i386/pc/serial.c: Likewise.
34372 * term/i386/pc/vesafb.c: Likewise.
34373 * term/i386/pc/vga.c: Likewise.
34374 * term/i386/pc/vga_text.c: Likewise.
34375 * term/ieee1275/ofconsole.c: Likewise.
34376 * term/usb_keyboard.c: Likewise.
34377
34378 2009-04-14 Bean <bean123ch@gmail.com>
34379
34380 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
34381 properly with null character.
34382
34383 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
34384
34385 * configure: Remove.
34386 * config.h.in: Likewise.
34387 * stamp-h.in: Likewise.
34388 * DISTLIST: Likewise.
34389 * conf/common.mk: Likewise.
34390 * conf/i386-coreboot.mk: Likewise.
34391 * conf/i386-efi.mk: Likewise.
34392 * conf/i386-ieee1275.mk: Likewise.
34393 * conf/i386.mk: Likewise.
34394 * conf/i386-pc.mk: Likewise.
34395 * conf/powerpc-ieee1275.mk: Likewise.
34396 * conf/sparc64-ieee1275.mk: Likewise.
34397 * conf/x86_64-efi.mk: Likewise.
34398
34399 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
34400 develop on GRUB.
34401
34402 2009-04-14 John Stanley <jpsinthemix@verizon.net>
34403 David S. Miller <davem@davemloft.net>
34404
34405 * util/hostdisk.c (make_device_name): Fix buffer length
34406 calculations.
34407
34408 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
34409
34410 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
34411 <sys/param.h> and <sys/sysctl.h>.
34412 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
34413 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
34414 opening the device and reset them afterwards.
34415
34416 2009-04-13 Pavel Roskin <proski@gnu.org>
34417
34418 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
34419 Reported by John Stanley <jpsinthemix@verizon.net>
34420
34421 2009-04-13 Robert Millan <rmh@aybabtu.com>
34422
34423 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
34424 that name for menuentries when appropriate.
34425
34426 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
34427
34428 * util/grub.d/10_freebsd.in: Add a missing `fi'.
34429
34430 2009-04-13 Robert Millan <rmh@aybabtu.com>
34431
34432 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
34433 to Linux, simply abort telling the user it's no longer supported.
34434
34435 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
34436
34437 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
34438 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
34439 `freebsd_loadenv' only when devices.hints exist.
34440
34441 2009-04-13 Pavel Roskin <proski@gnu.org>
34442
34443 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
34444
34445 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
34446
34447 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
34448 partition number.
34449 (grub_drive): Likewise.
34450
34451 2009-04-13 David S. Miller <davem@davemloft.net>
34452
34453 * kern/sparc64/ieee1275/ieee1275.c: New file.
34454 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
34455 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
34456 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
34457 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
34458 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
34459 grub_ieee1275_alloc_physmem): Declare new exported functions.
34460
34461 * include/grub/sparc64/ieee1275/loader.h: New file.
34462 * include/grub/sparc64/ieee1275/memory.h: Likewise.
34463 * include/grub/sparc64/kernel.h: Likewise.
34464 * loader/sparc64/ieee1275/linux.c: Likewise.
34465
34466 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
34467 (grub_fstest_SOURCES): Likewise.
34468
34469 * util/hostdisk.c (make_device_name): Do not make any assumptions
34470 about the length of drive names.
34471
34472 * kern/dl.c (grub_dl_load_file): Close file immediately when
34473 we are done using it.
34474
34475 2009-04-12 David S. Miller <davem@davemloft.net>
34476
34477 * kern/misc.c (grub_ltoa): Fix cast when handling negative
34478 values. Noticed by Pavel Roskin.
34479
34480 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
34481 target compiler.
34482
34483 * genmk.rb: Add more flexible image type specification, also
34484 pass --strip-unneeded to objcopy.
34485 * conf/i386-pc.rmk: Use *_FORMAT.
34486 * conf/i386-pc.mk: Rebuilt.
34487
34488 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
34489 (OFDISK_HASH_SZ): Define.
34490 (ofdisk_hash): New hash table.
34491 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
34492 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
34493 instead of device phandle which is not unique.
34494
34495 * kern/sparc64/ieee1275/init.c: Delete, replace with...
34496 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
34497 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
34498 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
34499 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
34500 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
34501 GRUB_KERNEL_MACHINE_DATA_END): Define.
34502 (grub_kernel_image_size, grub_total_module_size): Declare.
34503
34504 2009-04-12 Pavel Roskin <proski@gnu.org>
34505
34506 * configure.ac: Change the logic when we check for target tools.
34507 Do it when the target is specified and it's different from the
34508 specified value of the host.
34509
34510 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
34511
34512 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
34513 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
34514 GNU/kFreeBSD. Check if a device is a character device. Use
34515 DIOCGMEDIASIZE to get the size.
34516 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
34517 support for GNU/kFreeBSD.
34518 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
34519 is a character device instead of a block device. Add support for
34520 FreeBSD device names.
34521
34522 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
34523 is a character device instead of a block device.
34524
34525 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
34526 is a character device instead of a block device.
34527
34528 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
34529
34530 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
34531 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
34532 FreeBSD. Check if a device is a character device. Use
34533 DIOCGMEDIASIZE to get the size.
34534 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
34535 support for FreeBSD.
34536 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
34537 is a character device instead of a block device. Add support for
34538 FreeBSD device names.
34539
34540 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
34541 a character device instead of a block device.
34542 (grub_util_check_char_device): New function.
34543
34544 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
34545 a character device instead of a block device.
34546
34547 * include/grub/util/getroot.h (grub_util_check_char_device): New
34548 prototype.
34549
34550 2009-04-11 David S. Miller <davem@davemloft.net>
34551
34552 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
34553 static libgcc.
34554 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
34555 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
34556 function, if present.
34557 (__bswapdi2): Likewise.
34558
34559 * include/grub/sparc64/ieee1275/boot.h: New file.
34560 * boot/sparc64/ieee1275/boot.S: Likewise.
34561 * boot/sparc64/ieee1275/diskboot.S: Likewise.
34562
34563 * kern/misc.c (grub_ltoa): New function.
34564 (grub_vsprintf): Use it to format 'long' integers.
34565
34566 2009-04-10 David S. Miller <davem@davemloft.net>
34567
34568 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
34569 slots are of type grub_ieee1275_cell_t.
34570 (grub_nand_read): Likewise.
34571 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
34572 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
34573 macros are used to compare values in arg/ret block of the call.
34574 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
34575 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
34576 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
34577 grub_ieee1275_instance_to_path, grub_ieee1275_write,
34578 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
34579 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
34580 grub_ieee1275_close, grub_ieee1275_set_property,
34581 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
34582 grub_ieee1275_cell_t.
34583 * kern/ieee1275/openfw.c (grub_map): Likewise.
34584 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
34585 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
34586
34587 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
34588 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
34589 (grub_devalias_iterate): Likewise.
34590
34591 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
34592
34593 UFS improvements
34594
34595 * fs/ufs.c (INODE_NBLOCKS): new definition
34596 (struct grub_ufs_dirent): added fields for non-BSD dirents
34597 (grub_ufs_get_file_block): fixed double indirect handling
34598 (grub_ufs_lookup_symlink): use more robust way to determine whether
34599 symlink is inline
34600 (grub_ufs_find_file): support for non-BSD dirents
34601 (grub_ufs_dir): support for non-BSD dirents
34602
34603 2009-04-10 Bean <bean123ch@gnail.com>
34604
34605 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
34606 attribute, otherwise the size would be wrong for i386 platform.
34607
34608 * include/grub/pci.h (grub_pci_read_word): New inline function.
34609 (grub_pci_read_byte): Likewise.
34610 (grub_pci_write): Likewise.
34611 (grub_pci_write_word): Likewise.
34612 (grub_pci_write_byte): Likewise.
34613
34614 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
34615
34616 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
34617 (find_framebuf): Scan pci to locate the frame buffer address.
34618
34619 * commands/efi/fixvideo.c: New file.
34620
34621 * commands/efi/loadbios.c: Likewise.
34622
34623 * commands/memrw.c: Likewise.
34624
34625 * util/grub-dumpbios.in: Likewise.
34626
34627 * conf/common.rmk (grub-dumpbios): New utility.
34628 (pkglib_MODULES): New module memrw.mod.
34629 (memrw_mod_SOURCE): New macro.
34630 (memrw_mod_CFLAGS): Likewise.
34631 (memrw_mod_LDFLAGS): Likewise.
34632
34633 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
34634 fixvideo.mod.
34635 (loadbios_mod_SOURCE): New macro.
34636 (loadbios_mod_CFLAGS): Likewise.
34637 (loadbios_mod_LDFLAGS): Likewise.
34638 (fixvideo_mod_SOURCE): Likewise.
34639 (fixvideo_mod_CFLAGS): Likewise.
34640 (fixvideo_mod_LDFLAGS): Likewise.
34641
34642 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
34643 fixvideo.mod.
34644 (loadbios_mod_SOURCE): New macro.
34645 (loadbios_mod_CFLAGS): Likewise.
34646 (loadbios_mod_LDFLAGS): Likewise.
34647 (fixvideo_mod_SOURCE): Likewise.
34648 (fixvideo_mod_CFLAGS): Likewise.
34649 (fixvideo_mod_LDFLAGS): Likewise.
34650
34651 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
34652
34653 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
34654
34655 2009-04-07 David S. Miller <davem@davemloft.net>
34656
34657 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
34658 support for R_SPARC_OLO10 relocations. Fix compile warning for
34659 R_SPARC_WDISP30 case.
34660 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
34661
34662 2009-04-06 Pavel Roskin <proski@gnu.org>
34663
34664 * include/grub/misc.h (ARRAY_SIZE): New macro.
34665 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
34666 New macro.
34667 * loader/i386/linux.c (allocate_pages): Use free_pages().
34668 (grub_linux_unload): Don't use free_pages().
34669 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
34670 wrong index. Treat all other modes as text modes.
34671 (grub_cmd_linux): Initialize vid_mode unconditionally to
34672 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
34673
34674 * commands/help.c (print_command_help): Use cmd->prio, not
34675 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
34676
34677 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
34678
34679 Parttool
34680
34681 * parttool/pcpart.c: new file
34682 * commands/parttool.c: likewise
34683 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
34684 (parttool_mod_SOURCES): new variable
34685 (parttool_mod_CFLAGS): likewise
34686 (parttool_mod_LDFLAGS): likewise
34687 (pcpart_mod_SOURCES): likewise
34688 (pcpart_mod_CFLAGS): likewise
34689 (pcpart_mod_LDFLAGS): likewise
34690 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
34691 and parttool/pcpart.c
34692 * conf/i386-efi.rmk: likewise
34693 * conf/i386-ieee1275.rmk: likewise
34694 * conf/i386-pc.rmk: likewise
34695 * conf/powerpc-ieee1275.rmk: likewise
34696 * conf/sparc64-ieee1275.rmk: likewise
34697 * conf/x86_64-ieee1275.rmk: likewise
34698
34699 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
34700
34701 Support for mtime and further expandability of dir command
34702
34703 * include/grub/lib/datetime.h: moved to ...
34704 * include/grub/datetime.h: ... moved here and added
34705 declaration of grub_unixtime2datetime. All users updated
34706 * include/grub/fs.h: new syntax for dir and mtime functions in
34707 struct grub_fs
34708 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
34709 and GRUB_FSHELP_FLAGS_MASK
34710 * commands/ls.c (grub_ls_list_files): Write mtime in long format
34711 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
34712 (grub_ext2_mtime): new function
34713 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
34714 (grub_hfsplus_mtime): new function
34715 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
34716 (GRUB_UFS_ATTR_FILE): likewise
34717 (GRUB_UFS_ATTR_LNK): likewise
34718 (struct grub_ufs_sblock): new fields mtime
34719 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
34720 all users updated
34721 (grub_ufs_dir): mtime support
34722 (grub_ufs_mtime): new function
34723 * fs/affs.c (grub_affs_dir): use new dir syntax
34724 * fs/afs.c (grub_afs_dir): likewise
34725 * fs/cpio.c (grub_cpio_dir): likewise
34726 * fs/fat.c (grub_fat_find_dir): likewise
34727 * fs/hfs.c (grub_hfs_dir): likewise
34728 * fs/iso9660.c (grub_iso9660_dir): likewise
34729 * fs/jfs.c (grub_jfs_dir): likewise
34730 * fs/minix.c (grub_minix_dir): likewise
34731 * fs/ntfs.c (grub_ntfs_dir): likewise
34732 * fs/reiserfs.c (grub_reiserfs_dir): likewise
34733 * fs/sfs.c (grub_sfs_dir): likewise
34734 * fs/xfs.c (grub_xfs_dir): likewise
34735 * util/hostfs.c (grub_hostfs_dir): likewise
34736 * lib/datetime.c: moved to ...
34737 * normal/datetime.c: ... moved here
34738 (grub_unixtime2datetime): new function
34739 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
34740 * normal/completion.c (iterate_dir): use new dir syntax
34741 * normal/misc.c (grub_normal_print_device_info): tell the
34742 last modification time of a volume
34743 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
34744 * conf/common.rmk: added lib/datetime.c to ls.mod
34745 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
34746 (normal_mod_SOURCES): likewise
34747 (datetime_mod_SOURCES): Removed lib/datetime.c
34748 * conf/i386-efi.rmk: likewise
34749 * conf/i386-ieee1275.rmk: likewise
34750 * conf/i386-pc.rmk: likewise
34751 * conf/powerpc-ieee1275.rmk: likewise
34752 * conf/sparc64-ieee1275.rmk: likewise
34753 * conf/x86_64-efi.rmk: likewise
34754
34755 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
34756
34757 Trim trailing spaces in FAT label and support mtools-like labels
34758
34759 * fs/fat.c (grub_fat_iterate_dir): New function based
34760 on grub_fat_find_dir
34761 (grub_fat_find_dir): use grub_fat_iterate_dir
34762 (grub_fat_label): likewise
34763
34764 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
34765
34766 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
34767 and command.h
34768 remove extraneous kernel_elf_HEADERS
34769
34770 2009-04-04 Bean <bean123ch@gnail.com>
34771
34772 * include/grub/util/misc.h: Add dummy function fsync for mingw.
34773
34774 * util/misc.c: Likewise.
34775
34776 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
34777
34778 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
34779 instead of grub_printf.
34780
34781 2009-04-03 Robert Millan <rmh@aybabtu.com>
34782
34783 * loader/i386/linux.c (grub_linux_setup_video): Fill
34784 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
34785 values from `mode info' structure instead of hardcoded
34786 values.
34787
34788 2009-04-01 Pavel Roskin <proski@gnu.org>
34789
34790 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
34791 unused now.
34792 * genmk.rb: Likewise.
34793 * configure.ac: Likewise.
34794
34795 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
34796
34797 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
34798 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
34799
34800 2009-04-01 David S. Miller <davem@davemloft.net>
34801
34802 * normal/sparc64/setjmp.S: Fix setjmp implementation.
34803 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
34804 (grub_setjmp): Mark with 'returns_twice' attribute.
34805 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
34806 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
34807 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
34808
34809 2009-04-01 Robert Millan <rmh@aybabtu.com>
34810
34811 Reapply fix from 2008-07-28 which was accidentally reverted; also
34812 perform the same fix to a similar check in same function.
34813
34814 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
34815 with the same number are found, just use issue a warning with
34816 grub_dprintf(), as this error has been reported to be non-fatal.
34817
34818 2009-03-31 Pavel Roskin <proski@gnu.org>
34819
34820 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
34821 for cross-compilation.
34822
34823 2009-03-30 Robert Millan <rmh@aybabtu.com>
34824
34825 Fix i386-ieee1275 build.
34826
34827 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
34828 Remove declaration.
34829
34830 2009-03-30 Pavel Roskin <proski@gnu.org>
34831
34832 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
34833 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
34834 zero-terminated, rely only on the strlen value. Fix comparison
34835 of strings differing in length.
34836
34837 2009-03-30 Robert Millan <rmh@aybabtu.com>
34838
34839 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
34840 checking for abi version. Improve error messages on BIOS to notify
34841 user about `linux16' command.
34842
34843 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
34844
34845 Leak fixes
34846
34847 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
34848 in case of collision
34849 * disk/scsi.c (grub_scsi_open): free scsi in case of error
34850
34851 2009-03-29 Robert Millan <rmh@aybabtu.com>
34852
34853 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
34854 set `vid_mode' accordingly.
34855 (grub_linux_boot): Process `vid_mode' and set video mode.
34856
34857 2009-03-29 Robert Millan <rmh@aybabtu.com>
34858
34859 * util/grub.d/10_linux.in (linux_entry): New function.
34860 Factorize generation of Linux boot entries.
34861
34862 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
34863
34864 Make the format of Environment Block plain text. The boot loader
34865 part is not tested well yet.
34866
34867 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
34868 (buffer): Removed.
34869 (envblk): Likewise.
34870 (usage): Remove "info" and "clear". Add "unset". Update the
34871 description of "set", as this does not delete variables any
34872 longer.
34873 (create_envblk_file): Complete rewrite.
34874 (open_envblk_file): Likewise.
34875 (cmd_info): Removed.
34876 (cmd_list): Likewise.
34877 (cmd_set): Likewise.
34878 (cmd_clear): Likewise.
34879 (list_variables): New function.
34880 (write_envblk): Likewise.
34881 (set_variables): Likewise.
34882 (unset_variables): Likewise.
34883 (main): Complete rewrite.
34884
34885 * commands/loadenv.c (buffer): Removed.
34886 (envblk): Likewise.
34887 (open_envblk_file): New function.
34888 (read_envblk_file): Complete rewrite.
34889 (grub_cmd_load_env): Likewise.
34890 (grub_cmd_list_env): Likewise.
34891 (struct blocklist): New struct.
34892 (free_blocklists): New function.
34893 (check_blocklists): Likewise.
34894 (write_blocklists): Likewise.
34895 (grub_cmd_save_env): Complete rewrite.
34896
34897 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
34898 a plain text signature.
34899 (GRUB_ENVBLK_MAXLEN): Removed.
34900 (struct grub_envblk): Complete rewrite.
34901 (grub_envblk_find): Removed.
34902 (grub_envblk_insert): Likewise.
34903 (grub_envblk_open): New prototype.
34904 (grub_envblk_set): Likewise.
34905 (grub_envblk_delete): Put const to VALUE.
34906 (grub_envblk_iterate): Put const to NAME and VALUE.
34907 (grub_envblk_close): New prototype.
34908 (grub_envblk_buffer): New inline function.
34909 (grub_envblk_size): Likewise.
34910
34911 * lib/envblk.c: Include grub/mm.h.
34912 (grub_env_find): Removed.
34913 (grub_envblk_open): New function.
34914 (grub_envblk_close): Likewise.
34915 (escaped_value_len): Likewise.
34916 (find_next_line): Likewise.
34917 (grub_envblk_insert): Removed.
34918 (grub_envblk_set): New function.
34919 (grub_envblk_delete): Complete rewrite.
34920 (grub_envblk_iterate): Likewise.
34921
34922 2009-03-28 Robert Millan <rmh@aybabtu.com>
34923
34924 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
34925 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
34926 variables. Use 16-bit loader.
34927 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
34928 loader.
34929 * kern/i386/loader.S (grub_linux_boot): Rename to ...
34930 (grub_linux16_boot): ... this. Update all users.
34931 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
34932 (grub_linux_boot): ... this. Update all users.
34933
34934 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
34935 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
34936 commands to `linux16' and `initrd16'.
34937 (GRUB_MOD_FINI(linux)): Rename to ...
34938 (GRUB_MOD_FINI(linux16)): ... this.
34939
34940 2009-03-24 Pavel Roskin <proski@gnu.org>
34941
34942 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
34943 not just for compilation.
34944
34945 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
34946
34947 Move multiboot helper out of kernel
34948
34949 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
34950 `loader/i386/multiboot_helper.S'.
34951 * conf/i386-coreboot.rmk: Likewise
34952 * conf/i386-ieee1275.rmk: Likewise
34953
34954 * kern/i386/loader.S: Move multiboot helpers from here...
34955 * loader/i386/multiboot_helper.S: ...moved here
34956 * include/grub/i386/loader.h: Move declarations of multiboot
34957 helpers from here...
34958 * include/grub/i386/multiboot.h: ...moved here
34959 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
34960
34961 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
34962
34963 * kern/env.c (grub_env_context_open): Added an argument to specify
34964 whether a new context inherits exported variables from current
34965 one. This is useful when making a sandbox to interpret a config
34966 file.
34967 All callers updated.
34968
34969 * include/grub/env.h (grub_env_context_open): Updated the prototype.
34970
34971 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
34972
34973 * kern/env.c (grub_env_context_close): Fix memory leaks.
34974
34975 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
34976
34977 * normal/main.c (grub_normal_execute): Added an argument
34978 BATCH to specify if an interactive interface should be provided
34979 after reading a config file.
34980 All callers updated.
34981 (read_command_list): Prevent being executed twice.
34982 (read_fs_list): Likewise.
34983
34984 * include/grub/normal.h (grub_normal_execute): Updated the
34985 prototype.
34986
34987 2009-03-22 Pavel Roskin <proski@gno.org>
34988
34989 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
34990 _start.
34991 * kern/i386/pc/startup.S: Likewise.
34992 * kern/i386/efi/startup.S: Likewise.
34993 * kern/i386/ieee1275/startup.S: Likewise.
34994 * kern/i386/coreboot/startup.S: Likewise.
34995 * kern/x86_64/efi/startup.S: Likewise.
34996
34997 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
34998 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
34999 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
35000
35001 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
35002
35003 Bugfixes in multiboot for bugs uncovered by solaris kernel.
35004
35005 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
35006 limit detection.
35007 Use vaddr of correct segment for entry_point.
35008
35009 2009-03-21 Bean <bean123ch@gmail.com>
35010
35011 * commands/blocklist.c: Add include file <grub/command.h>, remove
35012 <grub/normal.h> and <grub/arg.h>.
35013 (grub_cmd_blocklist): Use the new command interface.
35014 (GRUB_MOD_INIT): Likewise.
35015 (GRUB_MOD_FINI): Likewise.
35016 * commands/boot.c: Likewise.
35017 * commands/cat.c: Likewise.
35018 * commands/cmp.c: Likewise.
35019 * commands/configfile.c: Likewise.
35020 * commands/crc.c: Likewise.
35021 * commands/echo.c: Likewise.
35022 * commands/halt.c: Likewise.
35023 * commands/handler.c: Likewise.
35024 * commands/hdparm.c: Likewise.
35025 * commands/help.c: Likewise.
35026 * commands/hexdump.c: Likewise.
35027 * commands/loadenv.c: Likewise.
35028 * commands/ls.c: Likewise.
35029 * commands/lsmmap.c: Likewise.
35030 * commands/lspci.c: Likewise.
35031 * commands/loadenv.c: Likewise.
35032 * commands/read.c: Likewise.
35033 * commands/reboot.c: Likewise.
35034 * commands/search.c: Likewise.
35035 * commands/sleep.c: Likewise.
35036 * commands/test.c: Likewise.
35037 * commands/usbtest.c: Likewise.
35038 * commands/videotest.c: Likewise.
35039 * commands/i386/cpuid.c: Likewise.
35040 * commands/i386/pc/halt.c: Likewise.
35041 * commands/i386/pc/play.c: Likewise.
35042 * commands/i386/pc/pxecmd.c: Likewise.
35043 * commands/i386/pc/vbeinfo.c: Likewise.
35044 * commands/i386/pc/vbetest.c: Likewise.
35045 * commands/ieee1275/suspend.c: Likewise.
35046 * disk/loopback.c: Likewise.
35047 * font/font_cmd.c: Likewise.
35048 * hello/hello.c: Likewise.
35049 * loader/efi/appleloader.c: Likewise.
35050 * loader/efi/chainloader.c: Likewise.
35051 * loader/i386/bsd.c: Likewise.
35052 * loader/i386/efi/linux.c: Likewise.
35053 * loader/i386/ieee1275/linux.c: Likewise.
35054 * loader/i386/linux.c: Likewise.
35055 * loader/i386/pc/chainloader.c: Likewise.
35056 * loader/i386/pc/linux.c: Likewise.
35057 * loader/powerpc/ieee1275/linux.c: Likewise.
35058 * loader/multiboot_loader.c: Likewise.
35059 * term/gfxterm.c: Likewise.
35060 * term/i386/pc/serial.c: Likewise.
35061 * term/terminfo.c: Likewise.
35062
35063 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
35064 * term/i386/pc/vga.c: Likewise.
35065 * video/readers/jpeg.c: Likewise.
35066 * video/readers/png.c: Likewise.
35067 * video/readers/tga.c: Likewise.
35068
35069 * util/grub-fstest (cmd_loopback): Removed.
35070 (cmd_blocklist): Likewise.
35071 (cmd_ls): Likewise.
35072 (grub_register_command): Likewise.
35073 (grub_unregister_command): Likewise.
35074 (execute_command): Use grub_command_find to locate command and execute
35075 it.
35076
35077 * include/grub/efi/chainloader.h: Removed.
35078 * loader/efi/chainloader_normal.c: Likewise.
35079 * loader/i386/bsd_normal.c: Likewise.
35080 * loader/i386/pc/chainloader_normal.c: Likewise.
35081 * loader/i386/pc/multiboot_normal.c: Likewise.
35082 * loader/linux_normal.c: Likewise.
35083 * loader/multiboot_loader_normal.c: Likewise.
35084 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
35085
35086 * gencmdlist.sh: Scan new registration command grub_register_extcmd
35087 and grub_register_command_p1.
35088
35089 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
35090 kern/command.c, lib/arg.c and commands/extcmd.c.
35091 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
35092 (minicmd_mod_SOURCES): New variable.
35093 (minicmd_mod_CFLAGS): Likewise.
35094 (minicmd_mod_LDFLAGS): Likewise.
35095 (extcmd_mod_SOURCES): Likewise.
35096 (extcmd_mod_CFLAGS): Likewise.
35097 (extcmd_mod_LDFLAGS): Likewise.
35098 (boot_mod_SOURCES): Removed.
35099 (boot_mod_CFLAGS): Likewise.
35100 (boot_mod_LDFLAGS): Likewise.
35101
35102 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
35103 kern/corecmd.c.
35104 (kernel_img_HEADERS): Add command.h.
35105 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
35106 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
35107 and lib/arg.c.
35108 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
35109 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
35110 remove the corresponding normal mode command.
35111 (normal_mod_SOURCES): Remove normal/arg.c.
35112 * conf/i386-coreboot.rmk: Likewise.
35113 * conf/i386-efi.rmk: Likewise.
35114 * conf/i386-ieee1275.rmk: Likewise.
35115 * conf/powerpc-ieee1275.rmk: Likewise.
35116 * conf/x86_64-efi.rmk: Likewise.
35117
35118 * include/grub/arg.h: Move from here ...
35119 * include/grub/lib/arg.h: ... to here.
35120
35121 * normal/arg.c: Move from here ...
35122 * lib/arg.c: ... to here.
35123
35124 * commands/extcmd.c: New file.
35125 * commands/minicmd.c: Likewise.
35126 * include/grub/command.h: Likewise.
35127 * include/grub/extcmd.h: Likewise.
35128 * kern/command.c: Likewise.
35129 * kern/corecmd.c: Likewise.
35130
35131 * kern/list.c (grub_list_iterate): Return int instead of void.
35132 (grub_list_insert): New function.
35133 (grub_prio_list_insert): Likewise.
35134
35135 * kern/rescue.c (grub_rescue_command): Removed.
35136 (grub_rescue_command_list): Likewise.
35137 (grub_rescue_register_command): Likewise.
35138 (grub_rescue_unregister_command): Likewise.
35139 (grub_rescue_cmd_boot): Move to minicmd.c
35140 (grub_rescue_cmd_help): Likewise.
35141 (grub_rescue_cmd_info): Likewise.
35142 (grub_rescue_cmd_boot): Likewise.
35143 (grub_rescue_cmd_testload): Likewise.
35144 (grub_rescue_cmd_dump): Likewise.
35145 (grub_rescue_cmd_rmmod): Likewise.
35146 (grub_rescue_cmd_lsmod): Likewise.
35147 (grub_rescue_cmd_exit): Likewise.
35148 (grub_rescue_print_devices): Moved to corecmd.c.
35149 (grub_rescue_print_files): Likewise.
35150 (grub_rescue_cmd_ls): Likewise.
35151 (grub_rescue_cmd_insmod): Likewise.
35152 (grub_rescue_cmd_set): Likewise.
35153 (grub_rescue_cmd_unset): Likewise.
35154 (attempt_normal_mode): Use grub_command_find to get normal module.
35155 (grub_enter_rescue_mode): Use grub_register_core_commands to register
35156 commands, remove grub_rescue_register_command calls.
35157
35158 * normal/command.c (grub_register_command): Removed.
35159 (grub_unregister_command): Likewise.
35160 (grub_command_find): Likewise.
35161 (grub_iterate_commands): Likewise.
35162 (rescue_command): Likewise.
35163 (export_command): Moved to corecmd.c.
35164 (set_command): Removed.
35165 (unset_command): Likewise.
35166 (insmod_command): Likewise.
35167 (rmmod_command): Likewise.
35168 (lsmod_command): Likewise.
35169 (grub_command_init): Likewise.
35170
35171 * normal/completion.c (iterate_command): Use cmd->prio to check for
35172 active command.
35173 (complete_arguments): Use grub_extcmd_t structure to find options.
35174 (grub_normal_do_completion): Change function grub_iterate_commands to
35175 grub_command_iterate.
35176
35177 * normal/execute.c (grub_script_execute_cmd): No need to parse
35178 argument here.
35179
35180 * normal/main.c (grub_dyncmd_dispatcher): New function.
35181 (read_command_list): Register unload commands as dyncmd.
35182 (grub_cmd_normal): Use new command interface, register rescue,
35183 unregister normal at entry, register normal, unregister rescue at exit.
35184
35185 * include/grub/list.h (grub_list_test_t): New type.
35186 (grub_list_iterate): Return int instead of void.
35187 (grub_list_insert): New function.
35188 (GRUB_AS_NAMED_LIST_P): New macro.
35189 (GRUB_AS_PRIO_LIST): Likewise.
35190 (GRUB_AS_PRIO_LIST_P): Likewise.
35191 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
35192 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
35193 (grub_prio_list): New structure.
35194 (grub_prio_list_insert): New function.
35195 (grub_prio_list_remove): New inline function.
35196
35197 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
35198 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
35199 (GRUB_COMMAND_FLAG_MENU): Likewise.
35200 (GRUB_COMMAND_FLAG_BOTH): Likewise.
35201 (GRUB_COMMAND_FLAG_TITLE): Likewise.
35202 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
35203 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
35204 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
35205 (grub_command): Likewise.
35206 (grub_register_command): Likewise.
35207 (grub_command_find): Likewise.
35208 (grub_iterate_commands): Likewise.
35209 (grub_command_init): Likewise.
35210 (grub_arg_parse): Likewise.
35211 (grub_arg_show_help): Likewise.
35212
35213 * include/grub/rescue.h (grub_rescue_register_command): Removed.
35214 (grub_rescue_unregister_command): Likewise.
35215
35216 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
35217 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
35218 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
35219
35220 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
35221 grub_rescue_cmd_initrd.
35222 * include/grub/i386/loader.h: Likewise.
35223 * include/grub/x86_64/loader.h: Likewise.
35224
35225 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
35226
35227 2009-03-21 Bean <bean123ch@gmail.com>
35228
35229 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
35230 instead of stat in mingw environment.
35231
35232 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
35233
35234 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
35235
35236 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
35237 AC_CONFIG_LINKS.
35238
35239 2009-03-21 Bean <bean123ch@gmail.com>
35240
35241 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
35242 out of range error.
35243
35244 2009-03-18 Michel Dänzer <michel@daenzer.net>
35245
35246 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
35247 checking inode flags for EXT4_EXTENTS_FLAG.
35248
35249 2009-03-18 Robert Millan <rmh@aybabtu.com>
35250
35251 * loader/i386/linux.c: Include `<grub/video.h>' and
35252 `<grub/i386/pc/vbe.h>'..
35253 (grub_linux_setup_video): New function. Loosely based on the EFI one.
35254 (grub_linux32_boot): Attempt to configure video settings with
35255 grub_linux_setup_video().
35256 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
35257 to avoid grub_console_fini() which would step out of graphical mode
35258 unconditionally.
35259
35260 2009-03-14 Robert Millan <rmh@aybabtu.com>
35261
35262 Fix build on powerpc.
35263 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
35264
35265 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
35266
35267 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
35268 background image command.
35269
35270 2009-03-12 Colin D Bennett <colin@gibibit.com>
35271
35272 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
35273 (grub_gfxterm_putchar): Extract pairs of identical calls to
35274 draw_cursor out of conditional blocks.
35275
35276 2009-03-11 Pavel Roskin <proski@gnu.org>
35277
35278 * fs/hfs.c (grub_hfs_strncasecmp): New function.
35279 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
35280
35281 2009-03-11 Robert Millan <rmh@aybabtu.com>
35282
35283 * loader/i386/multiboot_elfxx.c
35284 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
35285
35286 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
35287
35288 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
35289 `kern/handler.c'.
35290
35291 2009-03-11 Robert Millan <rmh@aybabtu.com>
35292
35293 * loader/i386/multiboot.c (code_size): New variable.
35294 (grub_multiboot): Define offsets by adding to `code_size' rather
35295 than subtracting from `grub_multiboot_payload_size'. Provide
35296 4-byte alignment to MBI and others by increasing
35297 `boot_loader_name_length' appropriately.
35298
35299 * loader/i386/multiboot_elfxx.c
35300 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
35301
35302 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
35303
35304 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
35305 `fs/ext2.c'.
35306
35307 2009-03-08 Robert Millan <rmh@aybabtu.com>
35308
35309 Make loader/i386/linux.c usable on i386-pc again.
35310
35311 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
35312 memory to heap.
35313 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
35314 `#error' stanza.
35315
35316 2009-03-07 Bean <bean123ch@gmail.com>
35317
35318 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
35319 allocation.
35320
35321 2009-03-06 Robert Millan <rmh@aybabtu.com>
35322
35323 Fix display issue on terminals with screen size other than 80x25
35324 (e.g. gfxterm with resolution higher than 640x480).
35325
35326 * normal/main.c (grub_normal_init_page): Display title text in a
35327 position relative to the center of the terminal instead of relying
35328 on a hardcoded offset.
35329
35330 2009-03-04 Robert Millan <rmh@aybabtu.com>
35331
35332 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
35333 installed.
35334
35335 * Makefile.in (host_kernel): New variable.
35336 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
35337 scripts instead of just the windows one.
35338 * configure.ac: Initialize and AC_SUBST `host_kernel'.
35339
35340 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
35341
35342 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
35343 `kern/handler.c'.
35344 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35345 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35346 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35347 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35348 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35349 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35350
35351 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
35352
35353 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
35354 or if there's no space for the disk label and print the partition number on a
35355 invalid magic.
35356
35357 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
35358
35359 * util/misc.c: Include <time.h>.
35360 (grub_millisleep): New function.
35361
35362 2009-03-04 Bean <bean123ch@gmail.com>
35363
35364 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
35365 another option -mno-red-zone.
35366
35367 * commands/handler.c: Change module description.
35368
35369 * kern/handler.c: Add missing space at the end of description line.
35370
35371 * kern/list.c: Likewise.
35372
35373 2009-03-03 Robert Millan <rmh@aybabtu.com>
35374
35375 Move more components to the relocation area, and fix mbi pointer
35376 handling to use the destination rather than the origin (thanks to
35377 Vladimir Serbinenko for spotting).
35378
35379 * loader/i386/multiboot.c (mbi_dest): New variable.
35380 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
35381 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
35382 relocation area.
35383
35384 2009-03-01 Bean <bean123ch@gmail.com>
35385
35386 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
35387 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
35388 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
35389 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
35390
35391 * loader/i386/efi/linux.c (acpi_guid): New variable.
35392 (acpi_guid): Likewise.
35393 (EBDA_SEG_ADDR): New constant.
35394 (LOW_MEM_ADDR): Likewise.
35395 (FAKE_EBDA_SEG): Likewise.
35396 (fake_bios_data): New function.
35397 (grub_linux_boot): Call fake_bios_data.
35398
35399 2009-03-01 Bean <bean123ch@gmail.com>
35400
35401 * commands/terminal.c: Removed.
35402
35403 * commands/handler.c: New file.
35404
35405 * include/grub/list.h: Likewise.
35406
35407 * include/grub/handler.h: Likewise.
35408
35409 * kern/list.c: Likewise.
35410
35411 * kern/handler.c: Likewise.
35412
35413 * kern/term.h: Include header file <grub/handler.h>.
35414 (grub_term_input): Move next field to the beginning.
35415 (grub_term_output): Likewise.
35416 (grub_term_input_class): New variable.
35417 (grub_term_output_class): Likewise.
35418 (grub_term_register_input): Changed to inline function.
35419 (grub_term_register_output): Likewise.
35420 (grub_term_unregister_input): Likewise.
35421 (grub_term_unregister_output): Likewise.
35422 (grub_term_set_current_input): Likewise.
35423 (grub_term_set_current_output): Likewise.
35424 (grub_term_get_current_input): Likewise.
35425 (grub_term_get_current_output): Likewise.
35426 (grub_term_iterate_input): Removed.
35427 (grub_term_iterate_output): Likewise.
35428
35429 * kern/term.c (grub_term_list_input): Removed.
35430 (grub_term_list_output): Likewise.
35431 (grub_term_input_class): New variable.
35432 (grub_term_output_class): Likewise.
35433 (grub_cur_term_input): Change variable as macro.
35434 (grub_cur_term_output): Likewise.
35435 (grub_term_register_input): Removed.
35436 (grub_term_register_output): Likewise.
35437 (grub_term_unregister_input): Likewise.
35438 (grub_term_unregister_output): Likewise.
35439 (grub_term_set_current_input): Likewise.
35440 (grub_term_set_current_output): Likewise.
35441 (grub_term_iterate_input): Likewise.
35442 (grub_term_iterate_output): Likewise.
35443 (grub_term_get_current_input): Likewise.
35444 (grub_term_get_current_output): Likewise.
35445
35446 * util/grub-editenv.c: Include header file <grub/handler.h>.
35447 (grub_term_get_current_input): Removed.
35448 (grub_term_get_current_output): Likewise.
35449 (grub_term_input_class): New variable.
35450 (grub_term_output_class): Likewise.
35451
35452 * util/grub-fstest.c (grub_term_get_current_input): Removed.
35453 (grub_term_get_current_output): Likewise.
35454 (grub_term_input_class): New variable.
35455 (grub_term_output_class): Likewise.
35456
35457 * util/grub-probe.c (grub_term_get_current_input): Removed.
35458 (grub_term_get_current_output): Likewise.
35459 (grub_term_input_class): New variable.
35460 (grub_term_output_class): Likewise.
35461
35462 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
35463 (grub_term_get_current_output): Likewise.
35464 (grub_term_input_class): New variable.
35465 (grub_term_output_class): Likewise.
35466
35467 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
35468 (terminal_mod_SOURCES): Likewise.
35469 (terminal_mod_CFLAGS): Likewise.
35470 (terminal_mod_LDFLAGS): Likewise.
35471
35472 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
35473 handler.c.
35474 (kernel_img_SOURCES): Add list.c and handler.c.
35475 (kernel_img_HEADERS): Add list.h and handler.h.
35476
35477 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
35478 handler.c.
35479 (kernel_mod_SOURCES): Add list.c and handler.c.
35480 (kernel_mod_HEADERS): Add list.h and handler.h.
35481
35482 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
35483 handler.c.
35484 (kernel_elf_SOURCES): Add list.c and handler.c.
35485 (kernel_elf_HEADERS): Add list.h and handler.h.
35486
35487 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
35488 handler.c.
35489 (kernel_elf_SOURCES): Add list.c and handler.c.
35490 (kernel_elf_HEADERS): Add list.h and handler.h.
35491
35492 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
35493 handler.c.
35494 (kernel_mod_SOURCES): Add list.c and handler.c.
35495 (kernel_mod_HEADERS): Add list.h and handler.h.
35496
35497 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
35498 handler.c.
35499 (kernel_elf_SOURCES): Add list.c and handler.c.
35500 (kernel_elf_HEADERS): Add list.h and handler.h.
35501
35502 2009-02-27 Robert Millan <rmh@aybabtu.com>
35503
35504 Factorize elf32 / elf64 code in Multiboot loader. This will
35505 prevent it from getting out of sync again.
35506
35507 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
35508 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
35509 grub_multiboot_load_elf64): Move from here ...
35510 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
35511 grub_multiboot_load_elf): ... to here (new file).
35512
35513 2009-02-27 Robert Millan <rmh@aybabtu.com>
35514
35515 * util/grub.d/10_linux.in: Rename "single-user mode" to
35516 "recovery mode".
35517
35518 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
35519
35520 Don't leak in SCSI code.
35521 * disk/scsi.c (grub_scsi_close): free `scsi'.
35522
35523 2009-02-27 Robert Millan <rmh@aybabtu.com>
35524
35525 * loader/i386/pc/multiboot.c: Move from here ...
35526 * loader/i386/multiboot.c: ... to here. Update all users.
35527
35528 2009-02-27 Robert Millan <rmh@aybabtu.com>
35529
35530 Patch from Alexandre Bique <bique.alexandre@gmail.com>
35531 * util/i386/pc/grub-setup.c (setup): Fix directory path.
35532
35533 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
35534
35535 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
35536 b-tree.
35537
35538 2009-02-27 Robert Millan <rmh@aybabtu.com>
35539
35540 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
35541 `0x' qualifier as 0 when base is specified as parameter).
35542
35543 2009-02-24 Bean <bean123ch@gmail.com>
35544
35545 * configure.ac: Check for -mcmodel=large in x86_64 target.
35546
35547 * include/grub/efi/api.h (efi_call_10): New macro.
35548 (efi_wrap_10): New function.
35549
35550 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
35551 (GRUB_PE32_REL_BASED_HIGH): Likewise.
35552 (GRUB_PE32_REL_BASED_LOW): Likewise.
35553 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
35554 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
35555 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
35556 (GRUB_PE32_REL_BASED_SECTION): Likewise.
35557 (GRUB_PE32_REL_BASED_REL): Likewise.
35558 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
35559 (GRUB_PE32_REL_BASED_DIR64): Likewise.
35560 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
35561
35562 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
35563 issue.
35564
35565 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
35566 (efi_wrap_10): New function.
35567
35568 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
35569
35570 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
35571 MB/MBP model (NV chipset).
35572 (devdata_devs): Add devpath_5 to the list.
35573
35574 * load/i386/efi/linux.c (video_base): Remove variable.
35575 (RGB_MASK): New macro.
35576 (RGB_MAGIC): Likewise.
35577 (LINE_MIN): Likewise.
35578 (LINE_MAX): Likewise.
35579 (FBTEST_STEP): Likewise.
35580 (FBTEST_COUNT): Likewise.
35581 (fb_list): New variable.
35582 (grub_find_video_card): Remove function.
35583 (find_framebuf): New function.
35584 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
35585 line length.
35586
35587 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
35588 problem for x86_64.
35589
35590 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
35591
35592 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
35593
35594 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
35595 coding tool name.
35596
35597 2009-02-22 Robert Millan <rmh@aybabtu.com>
35598
35599 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
35600 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
35601 in our relocation, instead of using it directly from heap. Also
35602 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
35603
35604 2009-02-21 Robert Millan <rmh@aybabtu.com>
35605
35606 Implement USB keyboard support (based on patch by Marco Gerards)
35607
35608 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
35609 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
35610 (usb_keyboard_mod_LDFLAGS): New variables.
35611
35612 * term/usb_keyboard.c: New file.
35613
35614 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
35615
35616 Corrected wrong declaration
35617
35618 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
35619
35620 2009-02-14 Christian Franke <franke@computer.org>
35621
35622 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
35623 (grub_lspci_iter): Print class code and programming interface byte.
35624
35625 2009-02-14 Christian Franke <franke@computer.org>
35626
35627 * gendistlist.sh: Ignore `.svn' directories.
35628
35629 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
35630
35631 * fs/fat.c: Add 2009 to Copyright line.
35632
35633 2009-02-14 Christian Franke <franke@computer.org>
35634
35635 * commands/hdparm.c: New file. Provides `hdparm' command
35636 which sends ATA commands via grub_disk_ata_pass_through ().
35637
35638 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
35639
35640 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
35641 and <grub/cpu/io.h> to include/grub/ata.h.
35642 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
35643 (GRUB_CDROM_SECTOR_SIZE): Remove.
35644 (GRUB_ATA_*): Move to include/grub/ata.h.
35645 (GRUB_ATAPI_*): Likewise.
35646 (enum grub_ata_commands): Likewise.
35647 (enum grub_ata_timeout_milliseconds): Likewise.
35648 (struct grub_ata_device): Likewise.
35649 (grub_ata_regset): Likewise.
35650 (grub_ata_regget): Likewise.
35651 (grub_ata_regset2): Likewise.
35652 (grub_ata_regget2): Likewise.
35653 (grub_ata_check_ready): Likewise.
35654 (grub_ata_wait_not_busy): Remove static, exported in
35655 include/grub/ata.h.
35656 (grub_ata_wait_drq): Likewise.
35657 (grub_ata_pio_read): Likewise.
35658
35659 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
35660 function for hdparm.mod.
35661
35662 * include/grub/ata.h: New file, contains declarations from
35663 disk/ata.c.
35664 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
35665
35666 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
35667 (grub_disk_ata_pass_through): New exported variable.
35668
35669 * kern/disk.c (grub_disk_ata_pass_through): New variable.
35670
35671 2009-02-13 Colin D Bennett <colin@gibibit.com>
35672
35673 Support multiple fallback entries, and provide an API to support
35674 executing default+fallback menu entries. Renamed the `terminal' menu
35675 viewer to `text'.
35676
35677 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
35678 variable declaration.
35679 (grub_menu_execute_callback): New structure declaration.
35680 (grub_menu_execute_callback_t): New typedef.
35681 (grub_menu_execute_with_fallback): New function declaration.
35682 (grub_menu_get_entry): Likewise.
35683 (grub_menu_get_timeout): Likewise.
35684 (grub_menu_set_timeout): Likewise.
35685
35686 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
35687
35688 * normal/menu.c (grub_wait_after_message): Moved to
35689 `normal/menu_text.c'.
35690 (draw_border): Likewise.
35691 (print_message): Likewise.
35692 (print_entry): Likewise.
35693 (print_entries): Likewise.
35694 (grub_menu_init_page): Likewise.
35695 (get_entry_number): Likewise.
35696 (print_timeout): Likewise.
35697 (run_menu): Likewise.
35698 (grub_menu_execute_entry): Likewise.
35699 (show_text_menu): Likewise.
35700 (get_and_remove_first_entry_number): New function.
35701 (grub_menu_execute_with_fallback): Likewise.
35702 (get_entry): Renamed to ...
35703 (grub_menu_get_entry): .. this and made it global.
35704 (get_timeout): Renamed to ...
35705 (grub_menu_get_timeout): ... this and made it global.
35706 (set_timeout): Renamed to ...
35707 (grub_menu_set_timeout): ... this and made it global.
35708 (grub_normal_terminal_menu_viewer): Renamed to ...
35709 (grub_normal_text_menu_viewer): ... this.
35710
35711 * normal/menu_text.c: New file. Extracted text-menu-specific code
35712 from normal/menu.c.
35713
35714 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
35715 (normal_mod_SOURCES): Likewise.
35716
35717 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35718 (normal_mod_SOURCES): Likewise.
35719
35720 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35721 (normal_mod_SOURCES): Likewise.
35722
35723 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
35724 (normal_mod_SOURCES): Likewise.
35725
35726 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35727 (normal_mod_SOURCES): Likewise.
35728
35729 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35730 (normal_mod_SOURCES): Likewise.
35731
35732 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35733 (normal_mod_SOURCES): Likewise.
35734
35735 2009-02-11 Robert Millan <rmh@aybabtu.com>
35736
35737 * util/grub.d/00_header.in: Update old reference to `font' command.
35738
35739 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
35740
35741 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
35742
35743 Based on patch from Javier Martín.
35744
35745 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
35746
35747 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
35748 to avoid false positives with FAT.
35749 (grub_fstest_SOURCES): Likewise.
35750 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35751 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35752 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35753 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35754 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35755 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35756
35757 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
35758
35759 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
35760 bpb.version_specific.fat12_or_fat16.fstype and
35761 bpb.version_specific.fat32.fstype.
35762
35763 2009-02-08 Robert Millan <rmh@aybabtu.com>
35764
35765 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
35766
35767 2009-02-08 Robert Millan <rmh@aybabtu.com>
35768
35769 * Makefile.in (host_os, host_cpu): New variables.
35770 (target_os): Remove. Update all users.
35771
35772 2009-02-08 Marco Gerards <marco@gnu.org>
35773
35774 * Makefile.in (enable_grub_emu_usb): New variable.
35775 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
35776 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
35777 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
35778 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
35779 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
35780 `usbtest.mod' and `usbms.mod'.
35781 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
35782 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
35783 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
35784 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
35785 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
35786 variables.
35787
35788 * disk/usbms.c: New file.
35789
35790 * include/grub/usb.h: Likewise.
35791
35792 * include/grub/usbtrans.h: Likewise.
35793
35794 * include/grub/usbdesc.h: Likewise.
35795
35796 * bus/usb/usbtrans.c: Likewise.
35797
35798 * bus/usb/ohci.c: Likewise.
35799
35800 * bus/usb/uhci.c: Likewise.
35801
35802 * bus/usb/usbhub.c: Likewise.
35803
35804 * bus/usb/usb.c: Likewise.
35805
35806 * commands/usbtest.c: Likewise.
35807
35808 * util/usb.c: Likewise.
35809
35810 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
35811
35812 * configure.ac: Test for libusb presence.
35813
35814 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
35815
35816 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
35817
35818 * kern/mm.c: Add more comments.
35819
35820 2009-02-08 Robert Millan <rmh@aybabtu.com>
35821
35822 Patch from Javier Martín.
35823 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
35824 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
35825
35826 2009-02-08 Robert Millan <rmh@aybabtu.com>
35827
35828 * fs/cpio.c: Split tar functionality to ...
35829 * fs/tar.c: ... here (new file). Update all users.
35830
35831 2009-02-07 Robert Millan <rmh@aybabtu.com>
35832
35833 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
35834 backward-incompatible features.
35835
35836 Based on patch from Javier Martín, with some adjustments.
35837
35838 2009-02-07 Michael Scherer <misc@mandriva.org>
35839
35840 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
35841
35842 2009-02-07 Robert Millan <rmh@aybabtu.com>
35843
35844 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
35845 position of `disk/lvm.c' to ensure grub_init_all() always picks it
35846 after the RAID stuff.
35847
35848 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
35849
35850 Fixes problem when running vbetest command as reported by
35851 Vladimir Serbinenko <phcoder@gmail.com>.
35852
35853 * (grub_vbe_set_video_mode): Fixed problem with text modes.
35854
35855 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
35856
35857 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
35858 /dev/md/NpN style mdraid devices.
35859
35860 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
35861
35862 * util/unifont2pff.rb: Remove.
35863
35864 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
35865
35866 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
35867 `#'.
35868
35869 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
35870
35871 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
35872 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35873 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35874 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35875 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35876 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35877 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35878
35879 2009-02-02 Christian Franke <franke@computer.org>
35880
35881 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
35882
35883 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
35884
35885 * INSTALL: Note that we now require at least autoconf 2.59 and
35886 that LZO is optional.
35887
35888 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
35889
35890 Base on patch on bug #24154 created by Tomas Tintera
35891 <trosos@seznam.cz>.
35892
35893 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
35894
35895 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
35896
35897 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
35898 <bero@arklinux.org>.
35899
35900 * normal/parser.y (script_init): Add missing semicolon.
35901
35902 2009-01-31 Colin D Bennett <colin@gibibit.com>
35903
35904 * normal/main.c: Add include to grub/menu_viewer.h.
35905 (free_menu_entry_classes): Added.
35906 (grub_normal_menu_addentry): Added class property handling.
35907 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
35908 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
35909
35910 * normal/menu_viewer.c: New file.
35911
35912 * normal/menu.c (run_menu_entry): Renamed to ...
35913 (grub_menu_execute_entry): ... this and made it as global.
35914 (grub_menu_run): Renamed to ...
35915 (show_text_menu): ... this and made it local.
35916 (show_text_menu): Adapt to new function names.
35917 (grub_normal_terminal_menu_viewer): New global variable.
35918
35919 * include/grub/menu.h: New file.
35920
35921 * include/grub/menu_viewer.h: New file.
35922
35923 * include/grub/normal.h: Added include to grub/menu.h.
35924 (grub_menu_entry): Moved to include/grub/menu.h.
35925 (grub_menu_entry_t): Likewise.
35926 (grub_menu): Likewise.
35927 (grub_menu_t): Likewise.
35928 (grub_normal_terminal_menu_viewer): Added.
35929 (grub_menu_execute_entry): Likewise.
35930 (grub_menu_run): Removed.
35931
35932 * DISTLIST: Added include/grub/menu.h.
35933 Added include/grub/menu_viewer.h.
35934 Added normal/menu_viewer.c.
35935
35936 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
35937
35938 * normal/execute.c (grub_script_execute_menuentry): Changed to use
35939 arglist for menutitle arguments.
35940
35941 * normal/main.c (grub_normal_menu_addentry): Likewise.
35942
35943 * normal/parser.y (menuentry): Likewise.
35944
35945 * normal/script.c (grub_script_create_cmdmenu): Likewise.
35946
35947 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
35948 (grub_script_create_cmdmenu): Likewise.
35949
35950 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
35951
35952 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
35953 changes.
35954
35955 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
35956
35957 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
35958
35959 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
35960
35961 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
35962
35963 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
35964
35965 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
35966
35967 2009-01-30 Christian Franke <franke@computer.org>
35968
35969 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
35970 in option help text.
35971
35972 2009-01-27 Pavel Roskin <proski@gnu.org>
35973
35974 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
35975
35976 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
35977
35978 * commands/lsmmap.c: Add include to grub/machine/memory.h.
35979
35980 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
35981
35982 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
35983 unregister function.
35984
35985 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
35986
35987 * disk/scsi.c (grub_scsi_read): Fix sign problem.
35988
35989 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
35990
35991 * util/grub-mkfont.c (usage): Fix typo.
35992
35993 * util/elf/grub-mkimage.c (load_modules): Fix warning.
35994
35995 2009-01-26 Daniel Mierswa <impulze@impulze.org>
35996
35997 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
35998
35999 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
36000
36001 * kern/misc.c (grub_strcasecmp): New function.
36002 (grub_strcasecmp): Use grub_size_t instead of int for length.
36003 Fix return value.
36004 * include/grub/misc.h: Update function prototypes.
36005
36006 2009-01-26 Robert Millan <rmh@aybabtu.com>
36007
36008 * configure.ac: Fix cross-compilation check.
36009
36010 2009-01-22 Christian Franke <franke@computer.org>
36011
36012 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
36013 (precision) digit string. Allow `.format2' without `format1' (width).
36014 Limit input chars for `%s' output to `format2' if specified. This is
36015 compatible with standard printf ().
36016
36017 2009-01-22 Christian Franke <franke@computer.org>
36018
36019 * disk/ata.c (grub_ata_wait_status): Replace by ...
36020 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
36021 other status bits may be invalid while BSY is asserted.
36022 (grub_ata_check_ready): New function.
36023 (grub_ata_cmd): Removed.
36024 (grub_ata_wait_drq): New function.
36025 (grub_ata_strncpy): Remove inline.
36026 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
36027 and error check now done by grub_ata_wait_drq ().
36028 (grub_ata_pio_write): Likewise.
36029 (grub_atapi_identify): Set DEV before check for !BSY. Use
36030 grub_ata_wait_drq () to wait for data.
36031 (grub_ata_device_initialize): Add status register check to
36032 detect missing SATA slave devices. Add debug messages.
36033 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
36034 (grub_atapi_packet): Set DEV before check for !BSY. Replace
36035 transfer loop by grub_ata_pio_write ().
36036 (grub_ata_identify): Set DEV before check for !BSY. Use
36037 grub_ata_wait_drq () to wait for data.
36038 (grub_ata_setaddress): Set DEV before check for !BSY.
36039 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
36040 read/write in one loop. Fix invalid command on write. Fix incomplete
36041 command on (size % batch) == 0. Add missing error check after write of
36042 last block. Add debug messages.
36043 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
36044
36045 2009-01-19 Christian Franke <franke@computer.org>
36046
36047 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
36048 (GRUB_ATAPI_IREASON_*): Likewise.
36049 (grub_ata_pio_write): Fix timeout error return.
36050 (grub_atapi_identify): Add grub_ata_wait () after cmd.
36051 (grub_atapi_wait_drq): New function.
36052 (grub_atapi_packet): New parameter `size'.
36053 Use grub_atapi_wait_drq () and direct write instead of
36054 grub_ata_pio_write ().
36055 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
36056 reads the number of bytes requested by the device for each DRQ
36057 assertion.
36058 (grub_atapi_write): Remove old implementation, return not
36059 implemented instead.
36060
36061 2009-01-19 Christian Franke <franke@computer.org>
36062
36063 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
36064 of 512 to calculate data size.
36065 (grub_scsi_read12): Likewise.
36066 (grub_scsi_write10): Likewise.
36067 (grub_scsi_write12): Likewise.
36068 (grub_scsi_read): Adjust size according to blocksize.
36069 Add checks for invalid blocksize and unaligned transfer.
36070
36071 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
36072
36073 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
36074
36075 * term/gfxterm.c (write_char): Fix background rendering for wide
36076 width glyphs.
36077
36078 2009-01-19 Robert Millan <rmh@aybabtu.com>
36079
36080 * config.guess: Update to latest version from config git.
36081 * config.sub: Likewise.
36082
36083 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
36084
36085 * Makefile.in: Change font compilation to use new grub-mkfont instead
36086 of java version.
36087
36088 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
36089 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
36090 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
36091 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
36092 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
36093 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
36094 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
36095 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
36096 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
36097
36098 2009-01-16 Christian Franke <franke@computer.org>
36099
36100 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
36101 (enum grub_ata_timeout_milliseconds): New enum.
36102 (grub_ata_wait_status): Add parameter milliseconds.
36103 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
36104 recovery from timed-out commands.
36105 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
36106 return grub_errno instead of REG_ERROR.
36107 (grub_ata_pio_write): Add parameter milliseconds.
36108 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
36109 Pass milliseconds to grub_ata_wait_status () and
36110 grub_ata_pio_read ().
36111 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
36112 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
36113 grub_ata_wait_status (). Fix IDENTIFY timeout check.
36114 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
36115 It is not suitable for device detection, because DEV bit is ignored,
36116 the command may run too long, and not all devices set the signature
36117 properly.
36118 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
36119 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
36120 Fix device selection, DEV bit must be set first to address the registers
36121 of the correct device.
36122 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
36123 grub_ata_pio_read/write ().
36124 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
36125 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
36126
36127 2009-01-13 Carles Pina i Estany <carles@pina.cat>
36128
36129 * util/grub-editenv.c (main): Use fseeko(), not fseek().
36130
36131 2009-01-13 Bean <bean123ch@gmail.com>
36132
36133 * util/grub-mkfont.c (write_font): forget to remove some debug code.
36134
36135 2009-01-13 Bean <bean123ch@gmail.com>
36136
36137 * Makefile.in: (enable_grub_mkfont): New variable.
36138 (freetype_cflags): Likewise.
36139 (freetype_libs): Likewise.
36140
36141 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
36142 (grub_mkfont_SOURCES): New variable.
36143 (grub_mkfont_CFLAGS): Likewise.
36144 (grub_mkfont_LDFLAGS): Likewise.
36145
36146 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
36147 library if `--enable-grub-mkfont' is requested.
36148 (enable_grub_mkfont): New variable.
36149 (freetype_cflags): Likewise.
36150 (freetype_libs): Likewise.
36151
36152 * util/grub-mkfont.c: New file.
36153
36154 2009-01-12 Christian Franke <franke@computer.org>
36155
36156 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
36157 mode check. Fix setting of compat_use[].
36158
36159 2009-01-10 Robert Millan <rmh@aybabtu.com>
36160
36161 Update a few copyright years which we forgot to do in 2008 (only for
36162 files whose changes made in 2008 were copyright-significant)
36163
36164 * Makefile.in: Add 2008 to Copyright line.
36165 * disk/ieee1275/ofdisk.c: Likewise.
36166 * disk/efi/efidisk.c: Likewise.
36167 * kern/dl.c: Likewise.
36168 * kern/sparc64/ieee1275/init.c: Likewise.
36169 * kern/mm.c: Likewise.
36170 * kern/efi/mm.c: Likewise.
36171 * boot/i386/pc/boot.S: Likewise.
36172 * genfslist.sh: Likewise.
36173 * fs/iso9660.c: Likewise.
36174 * fs/hfs.c: Likewise.
36175 * fs/jfs.c: Likewise.
36176 * fs/minix.c: Likewise.
36177 * fs/ufs.c: Likewise.
36178 * gensymlist.sh.in: Likewise.
36179 * genkernsyms.sh.in: Likewise.
36180 * include/grub/misc.h: Likewise.
36181 * include/grub/types.h: Likewise.
36182 * include/grub/symbol.h: Likewise.
36183 * include/grub/elf.h: Likewise.
36184 * include/grub/kernel.h: Likewise.
36185 * include/grub/disk.h: Likewise.
36186 * include/grub/dl.h: Likewise.
36187 * include/grub/i386/linux.h: Likewise.
36188 * include/grub/i386/pc/biosdisk.h: Likewise.
36189 * include/grub/efi/api.h: Likewise.
36190 * include/grub/efi/pe32.h: Likewise.
36191 * include/grub/util/misc.h: Likewise.
36192 * normal/execute.c: Likewise.
36193 * normal/arg.c: Likewise.
36194 * normal/completion.c: Likewise.
36195 * normal/lexer.c: Likewise.
36196 * normal/parser.y: Likewise.
36197 * normal/misc.c: Likewise.
36198 * commands/i386/pc/vbeinfo.c: Likewise.
36199 * commands/hexdump.c: Likewise.
36200 * commands/terminal.c: Likewise.
36201 * commands/ls.c: Likewise.
36202 * commands/help.c: Likewise.
36203 * partmap/pc.c: Likewise.
36204 * loader/efi/chainloader.c: Likewise.
36205 * loader/multiboot_loader.c: Likewise.
36206 * loader/i386/pc/multiboot2.c: Likewise.
36207 * term/efi/console.c: Likewise.
36208 * term/i386/pc/serial.c: Likewise.
36209 * util/lvm.c: Likewise.
36210 * util/console.c: Likewise.
36211 * util/i386/efi/grub-mkimage.c: Likewise.
36212 * util/raid.c: Likewise.
36213
36214 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
36215
36216 * commands/videotest.c: Removed include to grub/machine/memory.h.
36217
36218 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
36219 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
36220 (video_mod_SOURCES): Removed.
36221 (video_mod_CFLAGS): Likewise.
36222 (video_mod_LDFLAGS): Likewise.
36223 (gfxterm_mod_SOURCES): Likewise.
36224 (gfxterm_mod_CFLAGS): Likewise.
36225 (gfxterm_mod_LDFLAGS): Likewise.
36226 (videotest_mod_SOURCES): Likewise.
36227 (videotest_mod_CFLAGS): Likewise.
36228 (videotest_mod_LDFLAGS): Likewise.
36229 (bitmap_mod_SOURCES): Likewise.
36230 (bitmap_mod_CFLAGS): Likewise.
36231 (bitmap_mod_LDFLAGS): Likewise.
36232 (tga_mod_SOURCES): Likewise.
36233 (tga_mod_CFLAGS): Likewise.
36234 (tga_mod_LDFLAGS): Likewise.
36235 (jpeg_mod_SOURCES): Likewise.
36236 (jpeg_mod_CFLAGS): Likewise.
36237 (jpeg_mod_LDFLAGS): Likewise.
36238 (png_mod_SOURCES): Likewise.
36239 (png_mod_CFLAGS): Likewise.
36240 (png_mod_LDFLAGS): Likewise.
36241
36242 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
36243 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
36244 (video_mod_SOURCES): Added.
36245 (video_mod_CFLAGS): Likewise.
36246 (video_mod_LDFLAGS): Likewise.
36247 (videotest_mod_SOURCES): Likewise.
36248 (videotest_mod_CFLAGS): Likewise.
36249 (videotest_mod_LDFLAGS): Likewise.
36250 (bitmap_mod_SOURCES): Likewise.
36251 (bitmap_mod_CFLAGS): Likewise.
36252 (bitmap_mod_LDFLAGS): Likewise.
36253 (tga_mod_SOURCES): Likewise.
36254 (tga_mod_CFLAGS): Likewise.
36255 (tga_mod_LDFLAGS): Likewise.
36256 (jpeg_mod_SOURCES): Likewise.
36257 (jpeg_mod_CFLAGS): Likewise.
36258 (jpeg_mod_LDFLAGS): Likewise.
36259 (png_mod_SOURCES): Likewise.
36260 (png_mod_CFLAGS): Likewise.
36261 (png_mod_LDFLAGS): Likewise.
36262 (gfxterm_mod_SOURCES): Likewise.
36263 (gfxterm_mod_CFLAGS): Likewise.
36264 (gfxterm_mod_LDFLAGS): Likewise.
36265
36266 * term/gfxterm.c: Removed include to grub/machine/memory.h,
36267 grub/machine/console.h.
36268
36269 2009-01-04 Jerone Young <jerone@gmail.com>
36270
36271 Make on screen instructions clearer
36272
36273 Based on patch created by Jidanni <jidanni@jidanni.org>
36274
36275 * normal/menu.c: print clearer instructions on the screen
36276
36277 2009-01-02 Colin D Bennett <colin@gibibit.com>
36278
36279 New font engine.
36280
36281 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
36282 build system and fixed gfxterm.c to work with different sized fonts.
36283
36284 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
36285
36286 * configure: Re-generated.
36287
36288 * DISTLIST: Removed font/manager.c.
36289 Added font/font.c.
36290 Added font/font_cmd.c.
36291
36292 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
36293 compilation.
36294
36295 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
36296
36297 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
36298
36299 * kern/term.c: Changed users of grub_utf8_to_ucs4.
36300
36301 * normal/menu.c: Likewise.
36302
36303 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
36304 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
36305
36306 * include/grub/font.h: Replaced with new file.
36307
36308 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
36309 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
36310 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
36311 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
36312 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
36313 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
36314 fg_red, fg_green, fg_blue, fg_alpha.
36315 (grub_video_adapter): Removed blit_glyph.
36316 (grub_video_blit_glyph): Removed.
36317
36318 * font/manager.c: Removed file.
36319
36320 * font/font.c: New file.
36321
36322 * font/font_cmd.c: Likewise.
36323
36324 * video/video.c (grub_video_blit_glyph): Removed.
36325
36326 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
36327 (grub_video_vbe_map_rgba): Likewise.
36328 (grub_video_vbe_unmap_color_int): Likewise.
36329 (grub_video_vbe_blit_glyph): Removed.
36330 (grub_video_vbe_adapter): Removed blit_glyph.
36331
36332 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
36333 (get_pixel): Likewise.
36334 (set_pixel): Likewise.
36335
36336 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
36337
36338 * term/gfxterm.c: Adapted to new font engine.
36339
36340 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
36341
36342 * term/i386/pc/vga.c: Likewise.
36343
36344 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
36345
36346 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
36347
36348 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
36349
36350 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
36351
36352 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
36353
36354 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
36355
36356 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
36357
36358 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
36359
36360 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
36361
36362 * util/grub.d/00_header.in: Changed to use new loadfont command.
36363
36364 * util/grub-mkconfig_lib.in: Changed font extension.
36365
36366 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
36367
36368 * util/getroot.c (grub_util_get_grub_dev): Add support for
36369 /dev/md/dNNpNN style partitionable mdraid devices.
36370
36371 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
36372
36373 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
36374 at a time limit of the PXE TFTP API correctly.
36375 (grub_pxefs_close): Likewise.
36376
36377 2008-11-29 Robert Millan <rmh@aybabtu.com>
36378
36379 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
36380 grub_ata_device_initialize() calls.
36381
36382 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
36383
36384 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
36385 iteration failed.
36386 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
36387
36388 2008-11-28 Robert Millan <rmh@aybabtu.com>
36389
36390 Fix build on powerpc-ieee1275. Based on patch created by
36391 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
36392 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
36393 `kern/ieee1275/mmap.c'.
36394 * include/grub/powerpc/ieee1275/memory.h: New file.
36395
36396 Provide grub-install on coreboot.
36397 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
36398 (grub_install_SOURCES): New variable.
36399 * util/i386/pc/grub-install.in: Add a few condition checks to make it
36400 usable on coreboot.
36401
36402 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
36403
36404 * util/grub-fstest.c (grub_term_get_current_input): Change return type
36405 to `grub_term_input_t'.
36406 (grub_term_get_current_output): Change return type to
36407 `grub_term_output_t'.
36408
36409 2008-11-22 Robert Millan <rmh@aybabtu.com>
36410
36411 Fix breakage on coreboot due to declaration mismatch.
36412 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
36413 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
36414 grub_vga_text_cls().
36415
36416 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
36417 comments. Avoid copying one more byte than necessary (just in case).
36418
36419 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
36420 to 0x200000 (avoids trouble with some OFW implementations, and matches
36421 with the one in Yaboot).
36422 Reported by Manoel Abranches
36423
36424 2008-11-20 Robert Millan <rmh@aybabtu.com>
36425
36426 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
36427 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
36428
36429 * util/grub-mkconfig_lib.in (grub_warn): New function.
36430 (convert_system_path_to_grub_path): Use grub_warn() when issuing
36431 warnings, to obtain consistent formatting.
36432 * util/grub.d/00_header.in: Likewise.
36433 * util/update-grub_lib.in: Likewise.
36434
36435 * loader/i386/linux.c (allocate_pages): Fix a warning.
36436 Move comment text to `#error' stanza.
36437
36438 Harmonize ieee1275's grub_available_iterate() with the generic
36439 grub_machine_mmap_iterate() interface (fixes a recently-introduced
36440 build problem on i386-ieee1275):
36441 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
36442 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
36443 parameter `type'. Update all users of this function.
36444 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
36445 `kern/ieee1275/mmap.c'.
36446 * kern/ieee1275/init.c
36447 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
36448 with ...
36449 (grub_machine_mmap_iterate): ... this.
36450 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
36451 return type to `grub_err_t'. Update all implementations of this
36452 function prototype.
36453 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
36454 Likewise.
36455
36456 Add `lsmmap' command (lists firmware-provided memory map):
36457 * commands/lsmmap.c: New file.
36458 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
36459 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
36460 variables.
36461 * conf/powerpc-ieee1275.rmk: Likewise.
36462 * conf/i386-coreboot.rmk: Likewise.
36463 * conf/i386-ieee1275.rmk: Likewise.
36464
36465 2008-11-19 Robert Millan <rmh@aybabtu.com>
36466
36467 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
36468 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
36469 constraints to initrd allocation (based on code from
36470 loader/i386/pc/linux.c). Without them, initrd was allocated too high
36471 for Linux to find it.
36472
36473 2008-11-14 Robert Millan <rmh@aybabtu.com>
36474
36475 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
36476 order to cope with duplicate slashes.
36477
36478 2008-11-14 Robert Millan <rmh@aybabtu.com>
36479
36480 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
36481 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
36482 don't want to mess with lower memory, because it is used in the Linux
36483 loader.
36484
36485 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
36486 an appropriate place in lower memory, between 0x10000 and 0x90000,
36487 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
36488 is in our heap (probably as a result of it being corrupted during
36489 decompression). Add #error instance with comment to explain why this
36490 loader isn't currently usable on PC/BIOS.
36491
36492 2008-11-14 Robert Millan <rmh@aybabtu.com>
36493
36494 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
36495 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
36496
36497 2008-11-12 Robert Millan <rmh@aybabtu.com>
36498
36499 Make loader/i386/linux.c buildable on i386-pc (although disabled).
36500
36501 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
36502 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
36503 from here ...
36504 * include/grub/i386/pc/memory.h: ... to here.
36505
36506 2008-11-12 Robert Millan <rmh@aybabtu.com>
36507
36508 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
36509 split).
36510
36511 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
36512 (grub_console_cur_color, grub_console_real_putchar)
36513 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
36514 (grub_console_setcolorstate, grub_console_setcolor)
36515 (grub_console_getcolor): Move from here ...
36516 * include/grub/i386/vga_common.h: ... to here (new file).
36517
36518 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
36519 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
36520 `<grub/i386/io.h>'.
36521 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
36522 `<grub/i386/vga_common.h>'.
36523
36524 2008-11-12 Robert Millan <rmh@aybabtu.com>
36525
36526 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
36527 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
36528 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
36529 variables.
36530 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
36531 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
36532
36533 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
36534 grub_console_init() with call to grub_vga_text_init().
36535 (grub_machine_fini): Replace call to
36536 grub_console_fini() with call to grub_vga_text_fini() and
36537 grub_at_keyboard_fini().
36538
36539 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
36540 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
36541 (grub_console_setcolorstate, grub_console_setcolor)
36542 (grub_console_getcolor): New function prototypes.
36543
36544 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
36545 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
36546 (grub_vga_text_setcursor): Static-ize.
36547 (grub_vga_text_term): New structure.
36548 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
36549
36550 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
36551 (grub_console_cur_color, grub_console_standard_color)
36552 (grub_console_normal_color, grub_console_highlight_color)
36553 (map_char, grub_console_putchar, grub_console_getcharwidth)
36554 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
36555 (grub_console_getcolor): Move from here ...
36556 * term/i386/vga_common.c: ... to here (same function names).
36557
36558 2008-11-12 Robert Millan <rmh@aybabtu.com>
36559
36560 Use newly-added Multiboot support in coreboot.
36561
36562 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
36563 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
36564
36565 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
36566 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
36567 (codestart): Store the MBI in `startup_multiboot_info' when we're
36568 being loaded using Multiboot.
36569
36570 * kern/i386/coreboot/init.c (grub_machine_init): Move
36571 grub_at_keyboard_init() call to beginning of function (useful for
36572 debugging). Call grub_machine_mmap_init() before attempting to use
36573 grub_machine_mmap_iterate().
36574 (grub_lower_mem, grub_upper_mem): Move from here ...
36575 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
36576 here (new file).
36577
36578 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
36579 function prototype.
36580
36581 2008-11-12 Robert Millan <rmh@aybabtu.com>
36582
36583 Fix a regression introduced by the at_keyboard.mod split. Because
36584 some terminals are default on some platforms and non-default on
36585 others, the first terminal being registered determines which is
36586 going to be default.
36587
36588 * kern/term.c (grub_term_register_input): If this is the first
36589 terminal being registered, set it as the current one.
36590 (grub_term_register_output): Likewise.
36591
36592 * term/efi/console.c (grub_console_init): Do not call
36593 grub_term_set_current_output() or grub_term_set_current_input().
36594 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
36595 * term/i386/pc/console.c (grub_console_init): Likewise.
36596 (grub_console_fini): Do not call grub_term_set_current_input()
36597 (but leave grub_term_set_current_output() to restore text mode).
36598
36599 2008-11-10 Robert Millan <rmh@aybabtu.com>
36600
36601 * util/grub.d/00_header.in: Add backward compatibility check for
36602 versions of terminal.mod that don't understand `terminal_input' or
36603 `terminal_output'.
36604
36605 2008-11-09 Robert Millan <rmh@aybabtu.com>
36606
36607 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
36608 `terminal_input' / `terminal_output', not `terminal'.
36609
36610 2008-11-08 Robert Millan <rmh@aybabtu.com>
36611
36612 * Makefile.in (include_DATA): Fix srcdir=. assumption.
36613 (DISTCLEANFILES): Add `build_env.mk'.
36614
36615 2008-11-08 Robert Millan <rmh@aybabtu.com>
36616
36617 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
36618 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
36619 members. Update all users.
36620 * util/console.c (grub_ncurses_term): Split in ...
36621 (grub_ncurses_term_input): ... this, and ...
36622 (grub_ncurses_term_output): ... this. Update all users.
36623 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
36624
36625 2008-11-08 Robert Millan <rmh@aybabtu.com>
36626
36627 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
36628 (PKGDATA): Add $(pkgdata_SRCDIR).
36629 (pkglib_BUILDDIR): New variable.
36630 (pkgdata_SRCDIR): New variable.
36631 (build_env.mk): New target.
36632 (include_DATA): New variable.
36633 (install-local): Install $(include_DATA) files in $(includedir).
36634
36635 2008-11-07 Pavel Roskin <proski@gnu.org>
36636
36637 * gendistlist.sh: Use C locale for sorting to ensure consistent
36638 output on all systems.
36639
36640 * util/grub.d/00_header.in: Remove incorrect space before
36641 "serial".
36642
36643 2008-11-07 Robert Millan <rmh@aybabtu.com>
36644
36645 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
36646 per specification.
36647 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
36648 * loader/multiboot_loader.c (find_multi_boot2_header): New function
36649 (based on find_multi_boot1_header).
36650 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
36651 using find_multi_boot2_header(), and abort if neither Multiboot or
36652 Multiboot headers were found.
36653
36654 2008-11-07 Robert Millan <rmh@aybabtu.com>
36655
36656 Modularize at_keyboard.mod:
36657
36658 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
36659 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
36660 (at_keyboard_mod_LDFLAGS): New variables.
36661
36662 Actual terminal split:
36663
36664 * include/grub/term.h (struct grub_term): Split in ...
36665 (struct grub_term_input): ... this, and ...
36666 (struct grub_term_output): ... this. Update all users.
36667 (grub_term_set_current): Split in ...
36668 (grub_term_set_current_input): ... this, and ...
36669 (grub_term_set_current_output): ... this.
36670 (grub_term_get_current): Split in ...
36671 (grub_term_get_current_input): ... this, and ...
36672 (grub_term_get_current_output): ... this.
36673 (grub_term_register): Split in ...
36674 (grub_term_register_input): ... this, and ...
36675 (grub_term_register_output): ... this.
36676 (grub_term_unregister): Split in ...
36677 (grub_term_unregister_input): ... this, and ...
36678 (grub_term_unregister_output): ... this.
36679 (grub_term_iterate): Split in ...
36680 (grub_term_iterate_input): ... this, and ...
36681 (grub_term_iterate_output): ... this.
36682
36683 * kern/term.c (grub_term_list): Split in ...
36684 (grub_term_list_input): ... this, and ...
36685 (grub_term_list_output): ... this. Update all users.
36686 (grub_cur_term): Split in ...
36687 (grub_cur_term_input): ... this, and ...
36688 (grub_cur_term_output): ... this. Update all users.
36689 (grub_term_set_current): Split in ...
36690 (grub_term_set_current_input): ... this, and ...
36691 (grub_term_set_current_output): ... this.
36692 (grub_term_get_current): Split in ...
36693 (grub_term_get_current_input): ... this, and ...
36694 (grub_term_get_current_output): ... this.
36695 (grub_term_register): Split in ...
36696 (grub_term_register_input): ... this, and ...
36697 (grub_term_register_output): ... this.
36698 (grub_term_unregister): Split in ...
36699 (grub_term_unregister_input): ... this, and ...
36700 (grub_term_unregister_output): ... this.
36701 (grub_term_iterate): Split in ...
36702 (grub_term_iterate_input): ... this, and ...
36703 (grub_term_iterate_output): ... this.
36704
36705 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
36706 a check for input and one for output (and only attempt to get keys
36707 from user when input works).
36708
36709 * util/grub-probe.c (grub_term_get_current): Split in ...
36710 (grub_term_get_current_input): ... this, and ...
36711 (grub_term_get_current_output): ... this.
36712 * util/grub-fstest.c: Likewise.
36713 * util/i386/pc/grub-setup.c: Likewise.
36714 * util/grub-editenv.c: Likewise.
36715
36716 Portability adjustments:
36717
36718 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
36719 `term/i386/pc/at_keyboard.c'.
36720 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
36721 grub_keyboard_controller_init() (now handled by terminal .init).
36722 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
36723 grub_at_keyboard_init().
36724 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
36725 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
36726 at_keyboard.mod via input terminal interface).
36727 * include/grub/i386/coreboot/console.h: Convert into a stub for
36728 `<grub/i386/pc/console.h>'.
36729
36730 Migrate full terminals to new API:
36731
36732 * term/efi/console.c (grub_console_term): Split into ...
36733 (grub_console_term_input): ... this, and ...
36734 (grub_console_term_output): ... this. Update all users.
36735 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
36736 (grub_ofconsole_init): Split into ...
36737 (grub_ofconsole_init_input): ... this, and ...
36738 (grub_ofconsole_init_output): ... this.
36739 (grub_ofconsole_term): Split into ...
36740 (grub_ofconsole_term_input): ... this, and ...
36741 (grub_ofconsole_term_output): ... this. Update all users.
36742 * term/i386/pc/serial.c (grub_serial_term): Split into ...
36743 (grub_serial_term_input): ... this, and ...
36744 (grub_serial_term_output): ... this. Update all users.
36745 * term/i386/pc/console.c (grub_console_term): Split into ...
36746 (grub_console_term_input): ... this, and ...
36747 (grub_console_term_output): ... this. Update all users.
36748 (grub_console_term_input): Only enable it on PC/BIOS platform.
36749 (grub_console_init): Remove grub_keyboard_controller_init() call.
36750
36751 Migrate input terminals to new API:
36752
36753 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
36754 `i386' and `i386/pc' to enable build on x86_64 (this driver is
36755 i386-specific anyway).
36756 (grub_console_checkkey): Rename to ...
36757 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
36758 users.
36759 (grub_keyboard_controller_orig): New variable.
36760 (grub_console_getkey): Rename to ...
36761 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
36762 users.
36763 (grub_keyboard_controller_init): Static-ize. Save original
36764 controller value so that it can be restored ...
36765 (grub_keyboard_controller_fini): ... here (new function).
36766 (grub_at_keyboard_term): New structure.
36767 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
36768 functions.
36769
36770 Migrate output terminals to new API:
36771
36772 * term/i386/pc/vga.c (grub_vga_term): Change type to
36773 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
36774 members. Update all users.
36775 * term/gfxterm.c (grub_video_term): Change type to
36776 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
36777 members. Update all users.
36778 * include/grub/i386/pc/console.h (grub_console_checkkey)
36779 (grub_console_getkey): Do not export (no longer needed by gfxterm,
36780 etc).
36781
36782 Migrate `terminal' command and userland tools to new API:
36783
36784 * commands/terminal.c (grub_cmd_terminal): Split into ...
36785 (grub_cmd_terminal_input): ... this, and ...
36786 (grub_cmd_terminal_output): ... this.
36787 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
36788 `terminal_input' and `terminal_output'.
36789 * util/grub.d/00_header.in: Adjust `terminal' calls to new
36790 `terminal_input' / `terminal_output' API.
36791 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
36792 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
36793 provided ${GRUB_TERMINAL}, convert it).
36794
36795 2008-11-04 Robert Millan <rmh@aybabtu.com>
36796
36797 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
36798 for FreeBSD.
36799 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
36800
36801 2008-11-03 Bean <bean123ch@gmail.com>
36802
36803 * kern/elf.c (grub_elf32_load): Revert to previous code.
36804 (grub_elf64_load): Likewise.
36805
36806 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
36807
36808 2008-11-01 Robert Millan <rmh@aybabtu.com>
36809
36810 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
36811 (TARGET_CPPFLAGS): Likewise.
36812 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
36813
36814 2008-11-01 Carles Pina i Estany <carles@pina.cat>
36815
36816 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
36817
36818 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
36819
36820 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
36821 addition of objects until the code is not going to be able to fail.
36822
36823 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
36824
36825 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
36826 (add a missing NULL check, and correct them by moving the pointer
36827 operations after the actual check).
36828
36829 2008-10-29 Robert Millan <rmh@aybabtu.com>
36830
36831 * util/i386/pc/grub-install.in: Handle empty string as output from
36832 make_system_path_relative_to_its_root().
36833
36834 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
36835
36836 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
36837 circular metadata worst case scenario. If the metadata is circular
36838 then copy the wrap in place.
36839 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
36840 project lib/format_text/layout.h
36841 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
36842
36843 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
36844
36845 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
36846
36847 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
36848
36849 * util/update-grub_lib.in: Mention filename in warning message.
36850
36851 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
36852
36853 * NEWS: Update for rename of update-grub to grub-mkconfig.
36854
36855 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
36856
36857 * util/update-grub_lib.in: Copy to ...
36858 * util/grub-mkconfig_lib.in: ... this. Update all users.
36859 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
36860 * util/update-grub.in: Rename to ...
36861 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
36862 option. Add `--output' option to allow users to specify the generated
36863 configuration file. Default to stdout.
36864 (update_grub_dir): Rename to ...
36865 (grub_mkconfig_dir): ... this.
36866 (grub_cfg): Default to an empty string.
36867 * conf/common.rmk (update-grub): Rename to ...
36868 (grub-mkconfig): ... this.
36869 (update-grub_lib): Copy to ...
36870 (grub-mkconfig_lib): ... this.
36871 (update-grub_SCRIPTS): Copy to ...
36872 (grub-mkconfig_SCRIPTS): ... this. Update all users.
36873 (update-grub_DATA): Rename to ...
36874 (grub-mkconfig_DATA): ... this.
36875
36876 2008-09-28 Robert Millan <rmh@aybabtu.com>
36877
36878 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
36879 to `modified'. Add the real `created' field.
36880 (grub_iso9660_uuid): Use `modified' rather than `created' for
36881 constructing the UUID.
36882
36883 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
36884
36885 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
36886 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
36887
36888 2008-09-28 Bean <bean123ch@gmail.com>
36889
36890 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
36891 Thanks to Christian Franke for finding this bug.
36892
36893 2008-09-25 Robert Millan <rmh@aybabtu.com>
36894
36895 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
36896 instances of grub_util_get_disk_name() (see previous commit).
36897
36898 2008-09-25 Robert Millan <rmh@aybabtu.com>
36899
36900 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
36901 `util/i386/get_disk_name.c'.
36902 * conf/i386-efi.rmk: Likewise.
36903 * conf/x86_64-efi.rmk: Likewise.
36904 * conf/i386-coreboot.rmk: Likewise.
36905 * conf/i386-ieee1275.rmk: Likewise.
36906 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
36907 `util/ieee1275/get_disk_name.c'.
36908 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
36909 * util/ieee1275/get_disk_name.c: Remove file.
36910 * util/i386/get_disk_name.c: Remove file.
36911 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
36912 "hd%d" for device.map entries, rather than using
36913 grub_util_get_disk_name().
36914
36915 2008-09-24 Carles Pina i Estany <carles@pina.cat>
36916
36917 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
36918 warning.
36919 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
36920
36921 2008-09-24 Carles Pina i Estany <carles@pina.cat>
36922
36923 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
36924 Changed to 0x5100.
36925 (GRUB_TERM_PPAGE): Changed to 0x4900.
36926
36927 2008-09-24 Robert Millan <rmh@aybabtu.com>
36928
36929 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
36930 macros (they were i386-pc specific).
36931 * include/grub/sparc64/ieee1275/console.h: Likewise.
36932 * include/grub/efi/console.h: Likewise.
36933
36934 2008-09-22 Bean <bean123ch@gmail.com>
36935
36936 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
36937 resident and in attribute list.
36938
36939 * include/grub/ntfs.h (BMP_LEN): Removed.
36940
36941 2008-09-22 Bean <bean123ch@gmail.com>
36942
36943 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
36944 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
36945
36946 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
36947 error occurs, as grub_disk_open will call grub_disk_close, which will
36948 call p->close (scsi).
36949
36950 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
36951
36952 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
36953 (AC_PREREQ): Bumped to 2.59.
36954 (AC_TRY_COMPILE): Replace obsolete macro with ...
36955 (AC_COMPILE_IFELSE): ... this.
36956 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
36957 (AC_LINK_IFELSE): ... this.
36958
36959 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
36960
36961 * autogen.sh: Add a call to `gendistlist.sh'.
36962
36963 2008-09-19 Christian Franke <franke@computer.org>
36964
36965 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
36966 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
36967 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
36968 Export __enable_execute_stack() to modules.
36969 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
36970 New function.
36971
36972 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
36973
36974 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
36975 Sort the list.
36976
36977 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
36978
36979 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
36980 #include <grub/util/hostdisk.h>.
36981
36982 2008-09-08 Robert Millan <rmh@aybabtu.com>
36983
36984 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
36985 segments when their filesz is zero (grub_file_read() interprets
36986 zero-size as "read until EOF", which results in memory corruption).
36987 Use `lowest_segment' rather than 0 for calculating the current
36988 segment load address.
36989
36990 2008-09-08 Robert Millan <rmh@aybabtu.com>
36991
36992 * util/hostdisk.c (open_device): Replace a grub_util_info() call
36993 with grub_dprintf("hostdisk", ...), as it was so verbose that it
36994 clobbered useful information.
36995
36996 2008-09-08 Robert Millan <rmh@aybabtu.com>
36997
36998 * include/grub/util/biosdisk.h: Move to ...
36999 * include/grub/util/hostdisk.h: ... here. Update all users.
37000 * util/biosdisk.c: Move to ...
37001 * util/hostdisk.c: ... here. Update all users.
37002
37003 2008-09-07 Robert Millan <rmh@aybabtu.com>
37004
37005 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
37006 variables.
37007 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
37008 and length can be stored directly in the `mbi->mmap_addr' and
37009 `mbi->mmap_length' struct fields.
37010
37011 2008-09-07 Robert Millan <rmh@aybabtu.com>
37012
37013 * conf/i386.rmk: New file. Provides declaration for building
37014 `cpuid.mod'.
37015 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
37016 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
37017 variables.
37018 Include `conf/i386.mk'.
37019 * conf/i386-efi.rmk: Likewise.
37020 * conf/x86_64-efi.rmk: Likewise.
37021 * conf/i386-coreboot.rmk: Likewise.
37022 * conf/i386-ieee1275.rmk: Likewise.
37023
37024 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
37025
37026 Based on patch created by Colin D Bennett <colin@gibibit.com>.
37027 Adds optimization support for BGR based modes.
37028
37029 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
37030 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
37031 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
37032 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
37033 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
37034 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
37035 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
37036 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
37037 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
37038 (grub_video_i386_vbeblit_index_index): Likewise.
37039 (grub_video_i386_vbeblit_replace_directN): Added.
37040 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
37041 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
37042 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
37043 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
37044 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
37045 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
37046 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
37047 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
37048 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
37049 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
37050 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
37051 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
37052 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
37053
37054 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
37055 (grub_video_i386_vbefill_R8G8B8): Likewise.
37056 (grub_video_i386_vbefill_index): Likewise.
37057 (grub_video_i386_vbefill_direct32): Added.
37058 (grub_video_i386_vbefill_direct24): Likewise.
37059 (grub_video_i386_vbefill_direct16): Likewise.
37060 (grub_video_i386_vbefill_direct8): Likewise.
37061
37062 * include/grub/video.h (grub_video_blit_format): Removed
37063 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
37064 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
37065 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
37066 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
37067 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
37068
37069 * video/video.c (grub_video_get_blit_format): Updated to use new
37070 blit formats. Added handling for 16 bit color modes.
37071
37072 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
37073 fillers.
37074 (common_blitter): Updated to use new blitters.
37075
37076 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
37077 Removed.
37078 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
37079 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
37080 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
37081 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
37082 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
37083 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
37084 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
37085 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
37086 (grub_video_i386_vbeblit_index_index): Likewise.
37087 (grub_video_i386_vbeblit_replace_directN): Added.
37088 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
37089 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
37090 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
37091 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
37092 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
37093 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
37094 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
37095 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
37096 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
37097 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
37098 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
37099 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
37100 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
37101
37102 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
37103 (grub_video_i386_vbefill_R8G8B8): Likewise.
37104 (grub_video_i386_vbefill_index): Likewise.
37105 (grub_video_i386_vbefill_direct32): Added.
37106 (grub_video_i386_vbefill_direct24): Likewise.
37107 (grub_video_i386_vbefill_direct16): Likewise.
37108 (grub_video_i386_vbefill_direct8): Likewise.
37109
37110 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
37111 types.
37112
37113 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
37114 types.
37115
37116 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
37117 blitter types.
37118
37119 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
37120 types.
37121
37122 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
37123
37124 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
37125 RAID level 1.
37126
37127 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
37128
37129 * fs/iso9660.c (grub_iso9660_date): New structure.
37130 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
37131 (grub_iso9660_uuid): New function.
37132
37133 2008-09-05 Bean <bean123ch@gmail.com>
37134
37135 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
37136
37137 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
37138 insensitive bit for names in Win32 and Win32 & DOS namespace.
37139
37140 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
37141
37142 * include/grub/types.h (LONG_MAX): Likewise.
37143
37144 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
37145
37146 * util/getroot.c: Include <config.h>.
37147 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
37148 add support for /dev/md/N devices and handle LVM double dash escaping.
37149
37150 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
37151
37152 * config.guess: Update to latest version from config git.
37153 * config.sub: Likewise.
37154
37155 2008-09-03 Robert Millan <rmh@aybabtu.com>
37156
37157 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
37158 `disk->total_sectors'.
37159
37160 2008-09-01 Colin D Bennett <colin@gibibit.com>
37161
37162 * include/grub/normal.h: Fixed incorrect comment for
37163 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
37164
37165 2008-09-01 Colin D Bennett <colin@gibibit.com>
37166
37167 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
37168 values with defines.
37169
37170 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
37171 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
37172 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
37173 (GRUB_VBE_MODEATTR_COLOR): Likewise.
37174 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
37175 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
37176 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
37177 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
37178 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
37179 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
37180 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
37181 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
37182 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
37183 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
37184 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
37185 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
37186 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
37187 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
37188 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
37189
37190 2008-08-31 Robert Millan <rmh@aybabtu.com>
37191
37192 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
37193 declaration.
37194 (grub_multiboot): Fix a few warnings.
37195
37196 2008-08-31 Robert Millan <rmh@aybabtu.com>
37197
37198 * loader/i386/pc/multiboot.c: Update comment not to say that
37199 boot_device support is unimplemented.
37200
37201 2008-08-31 Robert Millan <rmh@aybabtu.com>
37202
37203 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
37204 or memory map support are unimplemented.
37205
37206 2008-08-31 Colin D Bennett <colin@gibibit.com>
37207
37208 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
37209
37210 2008-08-31 Colin D Bennett <colin@gibibit.com>
37211
37212 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
37213 total video memory in 'vbeinfo' output; show color format details for
37214 each video mode.
37215
37216 2008-08-30 Pavel Roskin <proski@gnu.org>
37217
37218 * util/genmoddep.c: Remove for real this time.
37219 * DISTLIST: Remove util/genmoddep.c.
37220
37221 2008-08-30 Robert Millan <rmh@aybabtu.com>
37222
37223 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
37224 as required by Multiboot spec (it was already 4-byte aligned, but
37225 only by chance).
37226
37227 2008-08-29 Pavel Roskin <proski@gnu.org>
37228
37229 * kern/powerpc/ieee1275/crt0.S: Rename to ...
37230 * kern/powerpc/ieee1275/startup.S: ... this.
37231 * conf/powerpc-ieee1275.rmk: Adjust for the above.
37232 * DISTLIST: Likewise.
37233
37234 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
37235 grub/cpu/kernel.h. Add start label for consistency with other
37236 platforms. Add grub_prefix immediately after start. Add jump
37237 to the code after grub_prefix.
37238 * include/grub/powerpc/kernel.h: Provide valid values for
37239 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
37240
37241 2008-08-29 Bean <bean123ch@gmail.com>
37242
37243 * configure.ac: Change host_os to cygwin for mingw.
37244 (asprintf): New check for function.
37245
37246 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
37247 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
37248
37249 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
37250 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
37251 sync, sleep and grub_util_get_disk_size for mingw.
37252
37253 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
37254 to get size in mingw.
37255 (open_device): Use flag O_BINARY if it's defined.
37256 (find_root_device): Add dummy code for mingw.
37257
37258 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
37259 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
37260 (get_scsi_disk_name): Return 0 for mingw.
37261
37262 * util/hostfs.c: #include <grub/util/misc.h>.
37263 (grub_hostfs_open): Use "rb" flag to open file, use
37264 grub_util_get_disk_size to get disk size for mingw.
37265
37266 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
37267 (asprintf): New function if HAVE_ASPRINTF is not set.
37268 (sync): New function for mingw.
37269 (sleep): Likewise.
37270 (grub_util_get_disk_size): Likewise.
37271
37272 2008-08-28 Pavel Roskin <proski@gnu.org>
37273
37274 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
37275 kern/time.c.
37276
37277 2008-08-28 Robert Millan <rmh@aybabtu.com>
37278
37279 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
37280
37281 2008-08-28 Robert Millan <rmh@aybabtu.com>
37282
37283 Change find_grub_drive() syntax so it doesn't prevent it from
37284 detecting NULL names as errors.
37285
37286 * util/biosdisk.c (find_grub_drive): Move free slot search code
37287 from here ...
37288 (find_free_slot): ... to here.
37289 (read_device_map): Use find_free_slot() to search for free slots.
37290
37291 2008-08-27 Marco Gerards <marco@gnu.org>
37292
37293 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
37294 (scsi_mod_SOURCES): New variable.
37295 (scsi_mod_CFLAGS): Likewise
37296 (scsi_mod_LDFLAGS): Likewise.
37297
37298 * disk/scsi.c: New file.
37299
37300 * include/grub/scsi.h: Likewise.
37301
37302 * include/grub/scsicmd.h: Likewise.
37303
37304 * disk/ata.c: Include <grub/scsi.h>.
37305 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
37306 instead.
37307 (grub_ata_iterate): Skip ATAPI devices.
37308 (grub_ata_open): Only handle ATAPI devices.
37309 (struct grub_atapi_read): Removed.
37310 (grub_atapi_readsector): Likewise.
37311 (grub_ata_read): No longer handle ATAPI devices.
37312 (grub_ata_write): Likewise.
37313 (grub_atapi_iterate): New function.
37314 (grub_atapi_read): Likewise.
37315 (grub_atapi_write): Likewise.
37316 (grub_atapi_open): Likewise.
37317 (grub_atapi_close): Likewise.
37318 (grub_atapi_dev): New variable.
37319 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
37320 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
37321
37322 * include/grub/disk.h (enum grub_disk_dev_id): Add
37323 `GRUB_DISK_DEVICE_SCSI_ID'.
37324
37325 2008-08-26 Robert Millan <rmh@aybabtu.com>
37326
37327 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
37328 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
37329 descriptive.
37330
37331 2008-08-23 Bean <bean123ch@gmail.com>
37332
37333 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
37334 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
37335 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
37336 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
37337 dm_nv.mod.
37338 (raid5rec_mod_SOURCES): New macro.
37339 (raid5rec_mod_CFLAGS): Likewise.
37340 (raid5rec_mod_LDFLAGS): Likewise.
37341 (raid6rec_mod_SOURCES): Likewise.
37342 (raid6rec_mod_CFLAGS): Likewise.
37343 (raid6rec_mod_LDFLAGS): Likewise.
37344 (mdraid_mod_SOURCES): Likewise.
37345 (mdraid_mod_CFLAGS): Likewise.
37346 (mdraid_mod_LDFLAGS): Likewise.
37347 (dm_nv_mod_SOURCES): Likewise.
37348 (dm_nv_mod_CFLAGS): Likewise.
37349 (dm_nv_mod_LDFLAGS): Likewise.
37350
37351 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
37352 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
37353 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
37354
37355 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
37356 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
37357
37358 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37359
37360 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37361
37362 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37363
37364 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37365
37366 * disk/raid5_recover.c: New file.
37367
37368 * disk/raid6_recover.c: Likewise.
37369
37370 * disk/mdraid_linux.c: Likewise.
37371
37372 * disk/dmraid_nvidia.c: Likewise.
37373
37374 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
37375 ULONG_MAX.
37376
37377 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
37378 calculate the size of raid device.
37379 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
37380 different layout of raid5.
37381 (grub_raid_scan_device): Remove code specific to mdraid.
37382 (grub_raid_list): New variable.
37383 (free_array): New function.
37384 (grub_raid_register): Likewise.
37385 (grub_raid_unregister): Likewise.
37386 (grub_raid_rescan): Likewise.
37387 (GRUB_MOD_INIT): Don't iterate device here.
37388 (GRUB_MOD_FINI): Use free_array to release resource.
37389
37390 * include/grub/raid.h: Remove macro and structure specific to mdraid.
37391 (grub_raid5_recover_func_t): New function variable type.
37392 (grub_raid6_recover_func_t): Likewise.
37393 (grub_raid5_recover_func): New variable.
37394 (grub_raid6_recover_func): Likewise.
37395 (grub_raid_register): New function.
37396 (grub_raid_unregister): Likewise.
37397 (grub_raid_rescan): Likewise.
37398 (grub_raid_block_xor): Likewise.
37399
37400 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
37401 (CMD_CRC): New macro.
37402 (part): Removed.
37403 (read_file): Handle device as well as file.
37404 (cmd_crc): New function.
37405 (fstest): Handle multiple disks.
37406 (options): Remove part, raw and long, add root and diskcount.
37407 (usage): Add crc, remove -p, -r, -l, add -r and -c.
37408 (main): Find the first non option entry and ignore subsequent options,
37409 add handling for the new options, support multiple disks.
37410
37411 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
37412
37413 2008-08-23 Bean <bean123ch@gmail.com>
37414
37415 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
37416
37417 * genfslist.sh: Ignore kernel.mod.
37418
37419 * genpartmaplist.sh: Likewise.
37420
37421 2008-08-23 Robert Millan <rmh@aybabtu.com>
37422
37423 * util/getroot.c (find_root_device): Skip anything that starts with
37424 a dot, not just directories. This avoids things like /dev/.tmp.md0.
37425
37426 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
37427
37428 * util/update-grub.in (GRUB_GFXMODE): Export variable.
37429 * util/grub.d/00_header.in: Allow the administrator to change default
37430 gfxmode via ${GRUB_GFXMODE}.
37431
37432 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
37433
37434 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
37435
37436 2008-08-21 Robert Millan <rmh@aybabtu.com>
37437
37438 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
37439 loader.
37440 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
37441 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
37442
37443 2008-08-20 Carles Pina i Estany <carles@pina.cat>
37444
37445 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
37446 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
37447
37448 2008-08-19 Robert Millan <rmh@aybabtu.com>
37449
37450 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
37451 (struct grub_virtual_screen): Remove `cursor_color'.
37452 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
37453 initialization.
37454 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
37455
37456 2008-08-18 Robert Millan <rmh@aybabtu.com>
37457
37458 Unify (identical) linux_normal.c files.
37459 * loader/i386/efi/linux_normal.c: Move from here ...
37460 * loader/linux_normal.c: ... to here. Update all users.
37461 * loader/i386/pc/linux_normal.c: Delete. Update all users.
37462 * loader/i386/ieee1275/linux_normal.c: Likewise.
37463
37464 2008-08-18 Robert Millan <rmh@aybabtu.com>
37465
37466 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
37467 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
37468 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
37469 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
37470 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
37471 New macros.
37472 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
37473 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
37474 (GRUB_LINUX_CL_END_OFFSET): ... to here.
37475 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
37476 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
37477 (GRUB_EFI_CL_END_OFFSET): Rename to ...
37478 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
37479 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
37480 Initialize `params->video_cursor_x' and `params->video_cursor_y'
37481 portably using grub_getxy().
37482 Replace `-EFI' with `-bzImage' in boot message.
37483
37484 2008-08-17 Robert Millan <rmh@aybabtu.com>
37485
37486 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
37487
37488 2008-08-17 Robert Millan <rmh@aybabtu.com>
37489
37490 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
37491
37492 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
37493 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
37494 (grub_machine_mmap_iterate): New function declaration.
37495 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
37496 structure.
37497 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
37498 macros.
37499
37500 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
37501 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
37502 Move e820 parsing from here ...
37503 * kern/i386/pc/mmap.c: New file.
37504 (grub_machine_mmap_iterate): ... to here.
37505
37506 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
37507 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
37508 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
37509 (grub_available_iterate): Redeclare to return `void', and redeclare
37510 its hook to use grub_uint64_t as addr and size parameters, and rename
37511 to ...
37512 (grub_machine_mmap_iterate): ... this. Update all users.
37513
37514 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
37515 to make it more readable. Rename to ...
37516 (grub_machine_mmap_iterate): ... this.
37517
37518 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
37519 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
37520 (grub_multiboot): Allocate an extra region after the payload, and fill
37521 it with a Multiboot memory map. Adjust a.out loader to calculate size
37522 with the extra space.
37523 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
37524 with the extra space.
37525
37526 2008-08-17 Carles Pina i Estany <carles@pina.cat>
37527
37528 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
37529
37530 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
37531
37532 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
37533 mdate-sh to the list `find' searches for.
37534 * DISTLIST: Regenerated.
37535
37536 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
37537
37538 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
37539 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
37540 genmoddep.awk, gensymlist.sh.in.
37541 (DISTDIRS): Add bus, docs, hook, lib.
37542 * DISTLIST: Regenerated.
37543 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
37544
37545 2008-08-16 Robert Millan <rmh@aybabtu.com>
37546
37547 * disk/raid.c (grub_raid_init): Handle/report errors set by
37548 grub_device_iterate().
37549 * disk/lvm.c (grub_lvm_init): Likewise.
37550
37551 2008-08-15 Bean <bean123ch@gmail.com>
37552
37553 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
37554 and datehook.mod.
37555 (datetime_mod_SOURCES): New macro.
37556 (datetime_mod_CFLAGS): Likewise.
37557 (datetime_mod_LDFLAGS): Likewise.
37558 (date_mod_SOURCES): Likewise.
37559 (date_mod_CFLAGS): Likewise.
37560 (date_mod_LDFLAGS): Likewise.
37561 (datehook_mod_SOURCES): Likewise.
37562 (datehook_mod_CFLAGS): Likewise.
37563 (datehook_mod_LDFLAGS): Likewise.
37564
37565 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
37566 and datehook.mod.
37567 (datetime_mod_SOURCES): New macro.
37568 (datetime_mod_CFLAGS): Likewise.
37569 (datetime_mod_LDFLAGS): Likewise.
37570 (date_mod_SOURCES): Likewise.
37571 (date_mod_CFLAGS): Likewise.
37572 (date_mod_LDFLAGS): Likewise.
37573 (datehook_mod_SOURCES): Likewise.
37574 (datehook_mod_CFLAGS): Likewise.
37575 (datehook_mod_LDFLAGS): Likewise.
37576
37577 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
37578 and datehook.mod.
37579 (datetime_mod_SOURCES): New macro.
37580 (datetime_mod_CFLAGS): Likewise.
37581 (datetime_mod_LDFLAGS): Likewise.
37582 (date_mod_SOURCES): Likewise.
37583 (date_mod_CFLAGS): Likewise.
37584 (date_mod_LDFLAGS): Likewise.
37585 (datehook_mod_SOURCES): Likewise.
37586 (datehook_mod_CFLAGS): Likewise.
37587 (datehook_mod_LDFLAGS): Likewise.
37588
37589 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
37590 and datehook.mod.
37591 (datetime_mod_SOURCES): New macro.
37592 (datetime_mod_CFLAGS): Likewise.
37593 (datetime_mod_LDFLAGS): Likewise.
37594 (date_mod_SOURCES): Likewise.
37595 (date_mod_CFLAGS): Likewise.
37596 (date_mod_LDFLAGS): Likewise.
37597 (datehook_mod_SOURCES): Likewise.
37598 (datehook_mod_CFLAGS): Likewise.
37599 (datehook_mod_LDFLAGS): Likewise.
37600
37601 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
37602 and datehook.mod.
37603 (datetime_mod_SOURCES): New macro.
37604 (datetime_mod_CFLAGS): Likewise.
37605 (datetime_mod_LDFLAGS): Likewise.
37606 (date_mod_SOURCES): Likewise.
37607 (date_mod_CFLAGS): Likewise.
37608 (date_mod_LDFLAGS): Likewise.
37609 (datehook_mod_SOURCES): Likewise.
37610 (datehook_mod_CFLAGS): Likewise.
37611 (datehook_mod_LDFLAGS): Likewise.
37612
37613 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
37614
37615 * commands/date.c: New file.
37616
37617 * hook/datehook.c: Likewise.
37618
37619 * include/grub/lib/datetime.h: Likewise.
37620
37621 * include/grub/i386/cmos.h: Likewise.
37622
37623 * lib/datetime.c: Likewise.
37624
37625 * lib/i386/datetime.c: Likewise.
37626
37627 * lib/efi/datetime.c: Likewise.
37628
37629 2008-08-14 Robert Millan <rmh@aybabtu.com>
37630
37631 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
37632 (grub_mkelfimage_SOURCES): New variable.
37633 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
37634
37635 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
37636 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
37637 * conf/powerpc-ieee1275.rmk: Likewise.
37638 * conf/i386-ieee1275.rmk: Likewise.
37639
37640 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
37641 * kern/i386/coreboot/init.c: Likewise.
37642
37643 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
37644 with `<grub/cpu/kernel.h>'.
37645 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
37646 to ...
37647 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
37648 * kern/i386/coreboot/startup.S: Likewise.
37649
37650 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
37651 (GRUB_MOD_GAP): Remove.
37652 * include/grub/powerpc/kernel.h: New file.
37653 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
37654 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
37655 * include/grub/i386/kernel.h: New file.
37656 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
37657 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
37658 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
37659
37660 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
37661 `grub-mkelfimage'.
37662 Use --directory when invoking grub_mkimage.
37663
37664 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
37665 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
37666 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
37667 and GRUB_KERNEL_CPU_PREFIX.
37668
37669 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
37670
37671 * include/grub/err.h (grub_err_printf): New function prototype.
37672 * util/misc.c (grub_err_printf): New function.
37673 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
37674 grub_printf.
37675 * kern/err.c (grub_print_error): Use grub_err_printf.
37676
37677 2008-08-13 Robert Millan <rmh@aybabtu.com>
37678
37679 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
37680
37681 2008-08-13 Robert Millan <rmh@aybabtu.com>
37682
37683 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
37684 boot entry.
37685
37686 2008-08-12 Robert Millan <rmh@aybabtu.com>
37687
37688 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
37689 of the relocation code from here ...
37690 (grub_multiboot): ... to here.
37691 (forward_relocator, backward_relocator): Move from here ...
37692 * kern/i386/loader.S (grub_multiboot_forward_relocator)
37693 (grub_multiboot_backward_relocator): ... to here.
37694 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
37695 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
37696 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
37697 (grub_multiboot_forward_relocator_end)
37698 (grub_multiboot_backward_relocator)
37699 (grub_multiboot_backward_relocator_end): New variables.
37700
37701 2008-08-12 Bean <bean123ch@gmail.com>
37702
37703 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
37704
37705 2008-08-11 Robert Millan <rmh@aybabtu.com>
37706
37707 * kern/i386/linuxbios/startup.S: Move from here ...
37708 * kern/i386/coreboot/startup.S: ... to here.
37709
37710 * kern/i386/linuxbios/init.c: Move from here ...
37711 * kern/i386/coreboot/init.c: ... to here.
37712
37713 * kern/i386/linuxbios/table.c: Move from here ...
37714 * kern/i386/coreboot/mmap.c: ... to here.
37715
37716 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
37717
37718 2008-08-11 Robert Millan <rmh@aybabtu.com>
37719
37720 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
37721 errors. Leave it to the upper layer to handle them.
37722
37723 2008-08-09 Christian Franke <franke@computer.org>
37724
37725 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
37726 * conf/common.rmk: Install `grub-pe2elf' only if requested.
37727 Install `grub.d/10_windows' only on Cygwin.
37728 * configure.ac: Add subst of `target_os'.
37729 Check `target_os' also before setting TARGET_OBJ2ELF.
37730 Add `--enable-grub-pe2elf'.
37731
37732 2008-08-08 Robert Millan <rmh@aybabtu.com>
37733
37734 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
37735 (grub_last_time): Change type to grub_uint64_t.
37736 (grub_disk_open): Migrate code from to using grub_get_time_ms().
37737 (grub_disk_close): Likewise.
37738
37739 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
37740 (run_menu): Migrate code from to using grub_get_time_ms().
37741
37742 * util/misc.c (grub_get_time_ms): New function.
37743
37744 2008-08-08 Marco Gerards <marco@gnu.org>
37745
37746 * disk/ata.c (grub_ata_regget): Change return type to
37747 `grub_uint8_t'.
37748 (grub_ata_regget2): Likewise.
37749 (grub_ata_wait_status): New function.
37750 (grub_ata_wait_busy): Removed function, updated all users to use
37751 `grub_ata_wait_status'.
37752 (grub_ata_wait_drq): Likewise.
37753 (grub_ata_cmd): New function.
37754 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
37755 error handling.
37756 (grub_ata_pio_write): Add error handling.
37757 (grub_atapi_identify): Likewise.
37758 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
37759 handling.
37760 (grub_ata_identify): Use `grub_ata_cmd' and improve error
37761 handling. Actually use the detected registers. Reorder the
37762 detection logic such that it is easier to read.
37763 (grub_ata_pciinit): Do not assign the same ID to each controller.
37764 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
37765 handling.
37766 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
37767
37768 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
37769
37770 2008-08-08 Marco Gerards <marco@gnu.org>
37771
37772 * NEWS: Update.
37773
37774 2008-08-07 Bean <bean123ch@gmail.com>
37775
37776 * include/grub/x86_64/pci.h: New file.
37777
37778 2008-08-07 Christian Franke <franke@computer.org>
37779
37780 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
37781 (TIMER2_GATE): Likewise.
37782 (grub_pit_wait): Add enable/disable of the timer2 gate
37783 bit of port 0x61. This fixes a possible infinite loop.
37784
37785 2008-08-07 Bean <bean123ch@gmail.com>
37786
37787 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
37788 kern/i386/tsc.c and kern/i386/pit.c.
37789
37790 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
37791 x86_64 platform.
37792
37793 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
37794 <grub/i386/tsc.h>.
37795
37796 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
37797
37798 2008-08-07 Bean <bean123ch@gmail.com>
37799
37800 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
37801
37802 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
37803
37804 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
37805 multiple inclusion. Add #include <grub/types.h>.
37806
37807 2008-08-06 Christian Franke <franke@computer.org>
37808
37809 * conf/common.rmk: Build and install `10_windows'.
37810 * util/grub.d/10_windows.in: New script.
37811
37812 2008-08-06 Pavel Roskin <proski@gnu.org>
37813
37814 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
37815
37816 2008-08-06 Robert Millan <rmh@aybabtu.com>
37817
37818 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
37819 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
37820
37821 2008-08-06 Bean <bean123ch@gmail.com>
37822
37823 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
37824 (grub_pxefs_fs_int): Remove dummy definition.
37825 (grub_pxefs_open): Use data->block_size to store the current block
37826 size setting.
37827 (grub_pxefs_read): Use block size stored in data->block_size. As the
37828 value of grub_pxe_blksize can be changed after the file is opened.
37829
37830 2008-08-06 Bean <bean123ch@gmail.com>
37831
37832 * fs/i386/pc/pxe.c (curr_file): new variable.
37833 (grub_pxefs_open): Simply the handling of pxe file system. Don't
37834 require the dummy internal file system anymore.
37835 (grub_pxefs_read): Removed.
37836 (grub_pxefs_close): Likewise.
37837 (grub_pxefs_fs_int): Likewise.
37838 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
37839 connection when we switch file.
37840 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
37841
37842 2008-08-06 Robert Millan <rmh@aybabtu.com>
37843
37844 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
37845 `halt.mod'.
37846 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
37847 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
37848
37849 * kern/i386/halt.c: New file.
37850 * kern/i386/reboot.c: Likewise.
37851 * include/grub/i386/reboot.h: Likewise.
37852 * include/grub/i386/halt.h: Likewise.
37853
37854 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
37855 Include `<grub/cpu/halt.h>'.
37856 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
37857 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
37858
37859 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
37860 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
37861 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
37862 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
37863 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
37864 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
37865 from here ...
37866 * include/grub/i386/at_keyboard.h: ... to here.
37867
37868 2008-08-05 Robert Millan <rmh@aybabtu.com>
37869
37870 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
37871 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
37872 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
37873 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
37874 `kern/generic/millisleep.c'.
37875
37876 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
37877 instead of grub_get_rtc().
37878 (grub_tsc_init): Initialize `tsc_boot_time'.
37879
37880 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
37881 (grub_machine_init): Use grub_tsc_init() rather than
37882 installing an RTC-based handler via grub_install_get_time_ms().
37883
37884 * kern/i386/pit.c: New file.
37885 * include/grub/i386/pit.h: Likewise.
37886
37887 2008-08-05 Bean <bean123ch@gmail.com>
37888
37889 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
37890
37891 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
37892 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
37893 (pxe_mod_SOURCES): New macro.
37894 (pxe_mod_CFLAGS): Likewise.
37895 (pxe_mod_LDFLAGS): Likewise.
37896 (pxecmd_mod_SOURCES): Likewise.
37897 (pxecmd_mod_CFLAGS): Likewise.
37898 (pxecmd_mod_LDFLAGS): Likewise.
37899
37900 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
37901 (grub_pxe_call): Likewise.
37902
37903 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
37904
37905 * commands/i386/pc/pxecmd.c: New file.
37906
37907 * fs/i386/pc/pxe.c: Likewise.
37908
37909 * include/grub/i386/pc/pxe.h: Likewise.
37910
37911 2008-08-05 Bean <bean123ch@gmail.com>
37912
37913 * util/console.c (grub_console_cur_color): New variable.
37914 (grub_console_standard_color): Likewise.
37915 (grub_console_normal_color): Likewise.
37916 (grub_console_highlight_color): Likewise.
37917 (color_map): Likewise.
37918 (use_color): Likewise.
37919 (NUM_COLORS): New macro.
37920 (grub_ncurses_setcolorstate): Handle color properly.
37921 (grub_ncurses_setcolor): Don't change color here, just remember the
37922 settings, color will be set in grub_ncurses_setcolorstate.
37923 (grub_ncurses_getcolor): New function.
37924 (grub_ncurses_init): Initialize color pairs.
37925 (grub_ncurses_term): New member grub_ncurses_getcolor.
37926
37927 2008-08-05 Colin D Bennett <colin@gibibit.com>
37928
37929 High resolution timer support. Implemented for x86 CPUs using TSC.
37930 Extracted generic grub_millisleep() so it's linked in only as needed.
37931 This requires a Pentium compatible CPU; if the RDTSC instruction is
37932 not supported, then it falls back on the generic grub_get_time_ms()
37933 implementation that uses the machine's RTC.
37934
37935 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
37936 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
37937 `kern/generic/millisleep.c'.
37938
37939 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
37940 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
37941
37942 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
37943 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
37944
37945 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37946
37947 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
37948 `kern/generic/millisleep.c'.
37949
37950 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37951
37952 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
37953
37954 * kern/generic/rtc_get_time_ms.c: New file.
37955
37956 * kern/generic/millisleep.c: New file.
37957
37958 * kern/misc.c: Don't include
37959 <kern/time.h> anymore.
37960 (grub_millisleep_generic): Removed.
37961
37962 * commands/sleep.c (grub_interruptible_millisleep): Uses
37963 grub_get_time_ms() instead of grub_get_rtc().
37964
37965 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
37966 function.
37967 (grub_cpu_is_cpuid_supported): New inline function.
37968 (grub_cpu_is_tsc_supported): New inline function.
37969 (grub_tsc_init): New function prototype.
37970 (grub_tsc_get_time_ms): New function prototype.
37971
37972 * kern/i386/tsc.c (grub_get_time_ms): New file.
37973
37974 * include/grub/time.h: Include <grub/types.h.
37975 (grub_millisleep_generic): Removed.
37976 (grub_get_time_ms): New prototype.
37977 (grub_install_get_time_ms): New prototype.
37978 (grub_rtc_get_time_ms): New prototype.
37979
37980 * kern/time.c (grub_get_time_ms): New function.
37981 (grub_install_get_time_ms): New function.
37982
37983 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
37984 <grub/time.h> anymore.
37985 (grub_millisleep): Removed.
37986 (grub_machine_init): Call grub_tsc_init.
37987
37988 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
37989 get_time_ms() implementation.
37990
37991 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
37992 (ieee1275_get_time_ms): New function.
37993 (grub_machine_init): Install get_time_ms() implementation.
37994
37995 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
37996 (grub_machine_init): Call grub_tsc_init().
37997 (grub_millisleep): Removed.
37998
37999 * kern/ieee1275/init.c (grub_millisleep): Removed.
38000 (grub_machine_init): Install ieee1275_get_time_ms()
38001 implementation.
38002 (ieee1275_get_time_ms): New function.
38003 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
38004 real work.
38005
38006 2008-08-05 Marco Gerards <marco@gnu.org>
38007
38008 * disk/ata.c: Include <grub/pci.h>.
38009 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
38010 (grub_ata_initialize): Rewritten.
38011 (grub_ata_device_initialize): New function.
38012
38013 2008-08-04 Pavel Roskin <proski@gnu.org>
38014
38015 * kern/main.c: Include grub/mm.h.
38016
38017 2008-08-04 Robert Millan <rmh@aybabtu.com>
38018
38019 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
38020 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
38021 corruption problem).
38022
38023 2008-08-04 Robert Millan <rmh@aybabtu.com>
38024
38025 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
38026 warnings introduced in my last commit.
38027
38028 2008-08-03 Robert Millan <rmh@aybabtu.com>
38029
38030 Make PCI available on all i386 architectures.
38031
38032 * include/grub/i386/pc/pci.h: Move from here ...
38033 * include/grub/i386/pci.h: ... to here.
38034
38035 * include/grub/i386/pc/pci.h: Remove.
38036 * include/grub/i386/efi/pci.h: Remove.
38037 * include/grub/x86_64/efi/pci.h: Remove.
38038
38039 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
38040 `<grub/cpu/pci.h>'.
38041
38042 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
38043 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
38044 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
38045
38046 * conf/i386-ieee1275.rmk: Likewise.
38047
38048 2008-08-03 Robert Millan <rmh@aybabtu.com>
38049
38050 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
38051 (grub_console_setcursor): Make it possible to set cursor off.
38052
38053 2008-08-03 Robert Millan <rmh@aybabtu.com>
38054
38055 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
38056 of modules instead of assuming which platform provides what.
38057 * util/update-grub.in: Likewise.
38058
38059 2008-08-03 Robert Millan <rmh@aybabtu.com>
38060
38061 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
38062 instead of `grub_install_dos_part' to determine whether a drive needs
38063 to be prepended to prefix (`grub_install_dos_part' is not reliable,
38064 because it can be overridden when loading GRUB via Multiboot).
38065
38066 2008-08-02 Robert Millan <rmh@aybabtu.com>
38067
38068 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
38069
38070 2008-08-02 Robert Millan <rmh@aybabtu.com>
38071
38072 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
38073 of informational grub_dprintf() calls.
38074
38075 2008-08-02 Robert Millan <rmh@aybabtu.com>
38076
38077 * disk/memdisk.c (memdisk_size): Don't initialize.
38078 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
38079
38080 * include/grub/i386/pc/kernel.h
38081 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
38082 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
38083 (grub_memdisk_image_size, grub_arch_memdisk_addr)
38084 (grub_arch_memdisk_size): Remove.
38085
38086 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
38087 field (was only used to transfer a constant). Add `type' field to
38088 support multiple module types.
38089 (grub_module_iterate): New function.
38090
38091 * kern/device.c (grub_device_open): Do not hide error messages
38092 when grub_disk_open() fails. Use grub_print_error() instead.
38093
38094 * kern/i386/pc/init.c (grub_arch_modules_addr)
38095 (grub_arch_memdisk_size): Remove functions.
38096 (grub_arch_modules_addr): Return the module address in high memory
38097 (now that it isn't copied anymore).
38098
38099 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
38100 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
38101 decompression routine (grub_total_module_size already includes that
38102 now). Don't copy modules back to low memory.
38103
38104 * kern/main.c: Include `<grub/mm.h>'.
38105 (grub_load_modules): Split out (and use) ...
38106 (grub_module_iterate): ... this function, which iterates through
38107 module objects and runs a hook.
38108 Comment out grub_mm_init_region() call, as it would cause non-ELF
38109 modules to be overwritten.
38110
38111 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
38112 the memdisk image in its own region, make it part of the module list.
38113 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
38114 (main): Parse --memdisk|-m option, and pass user-provided path as
38115 parameter to generate_image().
38116 (add_segments): Pass `memdisk_path' down to load_modules().
38117 (load_modules): Embed memdisk image in module section when requested.
38118 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
38119 `header.type' instead of `header.offset'.
38120
38121 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
38122 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
38123 (memdisk_mod_LDFLAGS): New variables.
38124 * conf/i386-coreboot.rmk: Likewise.
38125 * conf/i386-ieee1275.rmk: Likewise.
38126
38127 2008-08-02 Robert Millan <rmh@aybabtu.com>
38128
38129 * loader/i386/pc/multiboot.c (playground, forward_relocator)
38130 (backward_relocator): New variables. Used to allocate and relocate
38131 the payload, respectively.
38132 (grub_multiboot_load_elf32): Load into heap instead of requested
38133 address, install the appropriate relocator code in each bound of
38134 the payload, and set the entry point such that
38135 grub_multiboot_real_boot() will jump to one of them.
38136
38137 * kern/i386/loader.S (grub_multiboot_payload_size)
38138 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
38139 (grub_multiboot_payload_entry_offset): New variables.
38140 (grub_multiboot_real_boot): Set cpu context to what the relocator
38141 expects, and jump to the relocator instead of the payload.
38142
38143 * include/grub/i386/loader.h (grub_multiboot_payload_size)
38144 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
38145 (grub_multiboot_payload_entry_offset): Export.
38146
38147 2008-08-01 Bean <bean123ch@gmail.com>
38148
38149 * normal/menu_entry.c (editor_getline): Don't return the original
38150 string as result, as it will be released by lexer once it has done
38151 using it.
38152
38153 2008-08-01 Robert Millan <rmh@aybabtu.com>
38154
38155 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
38156 within menuentries, not before them.
38157 util/grub.d/10_hurd.in: Likewise.
38158
38159 2008-08-01 Bean <bean123ch@gmail.com>
38160
38161 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
38162 (bufio_mod_SOURCES): New macro.
38163 (bufio_mod_CFLAGS): Likewise.
38164 (bufio_mod_LDFLAGS): Likewise.
38165
38166 * include/grub/bufio.h: New file.
38167
38168 * io/bufio.c: Likewise.
38169
38170 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
38171 (grub_video_reader_png): Use grub_buffile_open to open file.
38172
38173 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
38174 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
38175
38176 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
38177 (grub_video_reader_tga): Use grub_buffile_open to open file.
38178
38179 * font/manager.c: Include <grub/bufio.h>.
38180 (add_font): Use grub_buffile_open to open file.
38181
38182 2008-07-31 Robert Millan <rmh@aybabtu.com>
38183
38184 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
38185 ELF segments, use a macro for arbitrarily accessing any of them instead
38186 of preparing a pointer that allows access to one at a time.
38187 (grub_multiboot_load_elf64): Likewise.
38188
38189 2008-07-31 Bean <bean123ch@gmail.com>
38190
38191 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
38192 GRUB_KERNEL_MACHINE_DATA_END.
38193
38194 2008-07-30 Robert Millan <rmh@aybabtu.com>
38195
38196 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
38197 Increase from 0x50 to 0x60.
38198 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
38199 use UUIDs to identify the root drive for them. If that's not
38200 possible, abort.
38201 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
38202 check, for cross-disk installs.
38203
38204 2008-07-30 Robert Millan <rmh@aybabtu.com>
38205
38206 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
38207 is non-empty, use it to set the `prefix' environment variable instead
38208 of the usual approach.
38209 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
38210 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
38211 environment variable instead of dummy make_install_device().
38212
38213 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
38214 (start): Insert a data section, with `grub_prefix' variable.
38215 * kern/i386/linuxbios/startup.S: Likewise.
38216
38217 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
38218 New variable reference.
38219 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
38220 New macro. Defines offset of `grub_prefix' within startup.S (relative
38221 to `start').
38222 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
38223 section within startup.S (relative to `start').
38224 * include/grub/i386/coreboot/kernel.h: Likewise.
38225
38226 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
38227 Overwrite grub_prefix with its contents, at the beginning of the
38228 first segment.
38229 (main): Understand -p|--prefix.
38230
38231 2008-07-30 Robert Millan <rmh@aybabtu.com>
38232
38233 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
38234
38235 2008-07-30 Robert Millan <rmh@aybabtu.com>
38236
38237 * term/i386/pc/vga_text.c (grub_console_cls): Use
38238 grub_console_gotoxy() to go back to beginning of the screen.
38239 Found by Patrick Georgi <patrick.georgi@coresystems.de>
38240
38241 2008-07-29 Christian Franke <franke@computer.org>
38242
38243 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
38244 Add conversion of emulated mount points on Cygwin.
38245
38246 2008-07-29 Christian Franke <franke@computer.org>
38247
38248 * util/update-grub.in: Add a check for admin
38249 group on Cygwin.
38250 Remove old `grub.cfg.new' before creation.
38251 Add `-f' to `mv' to handle the different filesystem
38252 semantics of Windows.
38253
38254 2008-07-29 Bean <bean123ch@gmail.com>
38255
38256 * normal/main.c (get_line): Fix buffer overflow bug.
38257
38258 2008-07-28 Robert Millan <rmh@aybabtu.com>
38259
38260 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
38261 (struct grub_apple_header): New struct. Describes the layout of
38262 the partmap header.
38263 (apple_partition_map_iterate): Check the header magic as well as the
38264 partition magic (which was already being checked).
38265
38266 2008-07-28 Pavel Roskin <proski@gnu.org>
38267
38268 * genmk.rb: Add a warning to the beginning of the output that
38269 it's a generated file and should not be edited.
38270
38271 2008-07-28 Robert Millan <rmh@aybabtu.com>
38272
38273 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
38274 with the same number are found, just use issue a warning with
38275 grub_dprintf(), as this error has been reported to be non-fatal.
38276
38277 2008-07-27 Robert Millan <rmh@aybabtu.com>
38278
38279 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
38280 information.
38281
38282 2008-07-27 Bean <bean123ch@gmail.com>
38283
38284 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
38285 (grub_fat_find_dir): Ignore case when comparing filename.
38286
38287 2008-07-27 Bean <bean123ch@gmail.com>
38288
38289 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
38290 smallino, as it's more descriptive, and i8count can be confused with
38291 the other field count.
38292 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
38293 inode type.
38294
38295 2008-07-27 Bean <bean123ch@gmail.com>
38296
38297 * commands/crc.c: New file.
38298
38299 * lib/crc.c: Likewise.
38300
38301 * include/grub/lib/crc.h: Likewise.
38302
38303 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
38304
38305 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
38306 (hexdump): Move this function to ...
38307
38308 * lib/hexdump.c: ... here.
38309
38310 * include/grub/hexdump.h: Renamed to ...
38311
38312 * include/grub/lib/hexdump.h: ... this.
38313
38314 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
38315
38316 * util/grub-editenv.c: Likewise.
38317
38318 * include/envblk.h: Renamed to ...
38319
38320 * include/lib/envblk.h: ... this.
38321
38322 * util/envblk.c: Renamed to ...
38323
38324 * lib/envblk.c: ... this.
38325
38326 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
38327 lib/hexdump.c.
38328 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
38329 (pkglib_MODULES): Add crc.mod.
38330 (hexdump_mod_SOURCES): Add lib/hexdump.c.
38331 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
38332 (crc_mod_SOURCES): New macro.
38333 (crc_mod_CFLAGS): Likewise.
38334 (crc_mod_LDFLAGS): Likewise.
38335
38336 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
38337
38338 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38339
38340 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38341
38342 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38343
38344 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38345
38346 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
38347
38348 * commands/help.c: Include <grub/term.h>.
38349 (TERM_WIDTH): Removed. Updated all users.
38350
38351 2008-07-27 Pavel Roskin <proski@gnu.org>
38352
38353 * util/getroot.c (find_root_device): Rephrase a comment to avoid
38354 spurious warnings about a comment within a comment.
38355
38356 2008-07-25 Robert Millan <rmh@aybabtu.com>
38357
38358 * util/getroot.c (find_root_device): Skip devices that match
38359 /dev/dm-[0-9]. This lets the real device be found for any type of
38360 abstraction (LVM, EVMS, RAID..).
38361 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
38362 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
38363 device is found first, find_root_device() will now skip it.
38364
38365 2008-07-24 Pavel Roskin <proski@gnu.org>
38366
38367 * include/grub/types.h: Use __builtin_bswap32() and
38368 __builtin_bswap64() with gcc 4.3 and newer.
38369
38370 2008-07-24 Christian Franke <franke@computer.org>
38371
38372 * util/i386/pc/grub-install.in: If `--debug' is specified,
38373 pass `--verbose' to grub-setup.
38374 Abort script if make_system_path_relative_to_its_root() fails.
38375
38376 2008-07-24 Bean <bean123ch@gmail.com>
38377
38378 * configure.ac: Fixed a bug caused by the previous cygwin patch,
38379 variable `target_platform' should be `platform'.
38380
38381 2008-07-24 Bean <bean123ch@gmail.com>
38382
38383 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
38384 (grub_png_init_fixed_block): New function.
38385 (grub_png_decode_image_data): Handle fixed huffman code compression.
38386
38387 2008-07-24 Bean <bean123ch@gmail.com>
38388
38389 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
38390 (grub_pe2elf_SOURCES): New macro.
38391 (CLEANFILES): Add grub-pe2elf.
38392
38393 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
38394 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
38395 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
38396 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
38397 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
38398 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
38399 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
38400 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
38401 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
38402 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
38403 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
38404 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
38405 (GRUB_PE32_DT_FUNCTION): Likewise.
38406 (GRUB_PE32_REL_I386_DIR32): Likewise.
38407 (GRUB_PE32_REL_I386_REL32): Likewise.
38408 (grub_pe32_symbol): New structure.
38409 (grub_pe32_reloc): Likewise.
38410
38411 * util/grub-pe2elf.c: New file.
38412
38413 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
38414 start symbol in non pc platform.
38415
38416 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
38417
38418 The following patches are from Christian Franke.
38419
38420 * include/grub/dl.h: Remove .previous, gas supports this only
38421 for ELF format.
38422
38423 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
38424 Remove .type, gas supports this only for ELF format.
38425
38426 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
38427 nullbytes in symbol table. This fixes an infinite loop if table is
38428 zero filled.
38429
38430 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
38431 TARGET_IMG_LDFLAGS and EXEEXT.
38432
38433 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
38434 TARGET_IMG_LDFLAGS_AC.
38435 (grub_CHECK_STACK_ARG_PROBE): New function.
38436
38437 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
38438
38439 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
38440
38441 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
38442 to set TARGET_IMG_LD* accordingly.
38443 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
38444 Add call to grub_CHECK_STACK_ARG_PROBE.
38445 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
38446
38447 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
38448
38449 * genmk.rb: Add EXEEXT to CLEANFILES.
38450
38451 2008-07-23 Robert Millan <rmh@aybabtu.com>
38452
38453 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
38454 define the codes for arrows and lines used for the menu).
38455 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
38456 as well.
38457
38458 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
38459 fonts, because the latter are too slow.
38460
38461 2008-07-21 Bean <bean123ch@gmail.com>
38462
38463 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
38464 a20. Run keyboard test last, as it will cause macbook to halt.
38465
38466 2008-07-18 Pavel Roskin <proski@gnu.org>
38467
38468 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
38469 load foreign architecture modules correctly anyway. Keep
38470 support for loading host architecture modules, whether we
38471 compile them or not.
38472
38473 2008-07-17 Pavel Roskin <proski@gnu.org>
38474
38475 * configure.ac: Use -m32 or -m64 regardless of whether we had to
38476 change target_cpu. The compiler default can mismatch target_cpu
38477 in any case.
38478
38479 * disk/efi/efidisk.c: Fix format warnings on x86_64.
38480 * kern/efi/efi.c: Likewise.
38481
38482 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
38483 target compiler is functional.
38484 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
38485 are set up.
38486
38487 * configure.ac: Default to efi platform for x86_64-apple. Allow
38488 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
38489 adjustments from the rest, only do them if target is not
38490 explicitly given. Merge other adjustments with the final sanity
38491 check. Remove an extraneous check for supported CPU. Be
38492 specific which CPU and which platform is not supported.
38493
38494 * configure.ac: Default to pc platform for x86_64.
38495
38496 2008-07-17 Robert Millan <rmh@aybabtu.com>
38497
38498 Partial LinuxBIOS -> Coreboot rename.
38499
38500 * conf/i386-linuxbios.rmk: Renamed to ...
38501 * conf/i386-coreboot.rmk: ... this.
38502 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
38503 * configure.ac: Accept "coreboot" as input platform (but maintain
38504 compatibility with "linuxbios").
38505 * include/grub/i386/linuxbios: Renamed to ...
38506 * include/grub/i386/coreboot: ... this.
38507
38508 2008-07-17 Bean <bean123ch@gmail.com>
38509
38510 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
38511 (appleldr_mod_SOURCE): New variable.
38512 (appleldr_mod_CFLAGS): Likewise.
38513 (appleldr_mod_LDFLAGS): Likewise.
38514 (pci_mod_SOURCES): Likewise.
38515 (pci_mod_CFLAGS): Likewise.
38516 (pci_mod_LDFLAGS): Likewise.
38517 (lspci_mod_SOURCES): Likewise.
38518 (lspci_mod_CFLAGS): Likewise.
38519 (lspci_mod_LDFLAGS): Likewise.
38520
38521 * conf/x86_64-efi.rmk: New file.
38522
38523 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
38524 macro.
38525 (grub_efidisk_write): Likewise.
38526
38527 * include/efi/api.h (efi_call_0): New macro.
38528 (efi_call_1): Likewise.
38529 (efi_call_2): Likewise.
38530 (efi_call_3): Likewise.
38531 (efi_call_4): Likewise.
38532 (efi_call_5): Likewise.
38533 (efi_call_6): Likewise.
38534
38535 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
38536 grub_rescue_cmd_chainloader.
38537
38538 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
38539 (grub_pe32_optional_header): Change some fields based on i386 or
38540 x86_64 platform.
38541 (GRUB_PE32_PE32_MAGIC): Likewise.
38542
38543 * include/grub/efi/uga_draw.h: New file.
38544
38545 * include/grub/elf.h (STN_ABS): New constant.
38546 (R_X86_64_NONE): Relocation constant for x86_64.
38547 (R_X86_64_64): Likewise.
38548 (R_X86_64_PC32): Likewise.
38549 (R_X86_64_GOT32): Likewise.
38550 (R_X86_64_PLT32): Likewise.
38551 (R_X86_64_COPY): Likewise.
38552 (R_X86_64_GLOB_DAT): Likewise.
38553 (R_X86_64_JUMP_SLOT): Likewise.
38554 (R_X86_64_RELATIVE): Likewise.
38555 (R_X86_64_GOTPCREL): Likewise.
38556 (R_X86_64_32): Likewise.
38557 (R_X86_64_32S): Likewise.
38558 (R_X86_64_16): Likewise.
38559 (R_X86_64_PC16): Likewise.
38560 (R_X86_64_8): Likewise.
38561 (R_X86_64_PC8): Likewise.
38562
38563 * include/grub/i386/efi/pci.h: New file.
38564
38565 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
38566 Change it value based on platform.
38567 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
38568 (GRUB_E820_RAM): Likewise.
38569 (GRUB_E820_RESERVED): Likewise.
38570 (GRUB_E820_ACPI): Likewise.
38571 (GRUB_E820_NVS): Likewise.
38572 (GRUB_E820_EXEC_CODE): Likewise.
38573 (GRUB_E820_MAX_ENTRY): Likewise.
38574 (grub_e820_mmap): New structure.
38575 (linux_kernel_header): Change the efi field according to different
38576 kernel version, also field from linux_kernel_header.
38577
38578 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
38579
38580 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
38581 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
38582 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
38583 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
38584 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
38585 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
38586 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
38587 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
38588 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
38589 (GRUB_PCI_ADDR_IO_MASK): Likewise.
38590
38591 * include/grub/x86_64/efi/kernel.h: New file.
38592
38593 * include/grub/x86_64/efi/loader.h: Likewise.
38594
38595 * include/grub/x86_64/efi/machine.h: Likewise.
38596
38597 * include/grub/x86_64/efi/pci.h: Likewise.
38598
38599 * include/grub/x86_64/efi/time.h: Likewise.
38600
38601 * include/grub/x86_64/linux.h: Likewise.
38602
38603 * include/grub/x86_64/setjmp.h: Likewise.
38604
38605 * include/grub/x86_64/time.h: Likewise.
38606
38607 * include/grub/x86_64/types.h: Likewise.
38608
38609 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
38610 GRUB_TARGET_SIZEOF_VOID_P.
38611
38612 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
38613 (grub_efi_locate_handle): Likewise.
38614 (grub_efi_open_protocol): Likewise.
38615 (grub_efi_set_text_mode): Likewise.
38616 (grub_efi_stall): Likewise.
38617 (grub_exit): Likewise.
38618 (grub_reboot): Likewise.
38619 (grub_halt): Likewise.
38620 (grub_efi_exit_boot_services): Likewise.
38621 (grub_get_rtc): Likewise.
38622
38623 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
38624 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
38625 (grub_efi_allocate_pages): Wrap efi calls.
38626 (grub_efi_free_pages): Wrap efi calls.
38627 (grub_efi_get_memory_map): Wrap efi calls.
38628
38629 * kern/x86_64/dl.c: New file.
38630
38631 * kern/x86_64/efi/callwrap.S: Likewise.
38632
38633 * kern/x86_64/efi/startup.S: Likewise.
38634
38635 * loader/efi/appleloader.c: Likewise.
38636
38637 * loader/efi/chainloader.c (cmdline): New variable.
38638 (grub_chainloader_unload): Wrap efi calls.
38639 (grub_chainloader_boot): Likewise.
38640 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
38641 command line.
38642
38643 * loader/efi/chainloader_normal.c (chainloader_command):
38644 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
38645 command line.
38646
38647 * loader/i386/efi/linux.c (allocate_pages): Change allocation
38648 method.
38649 (grub_e820_add_region): New function.
38650 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
38651 booting.
38652 (grub_find_video_card): New function.
38653 (grub_linux_setup_video): New function.
38654 (grub_rescue_cmd_linux): Probe for video information.
38655
38656 * normal/x86_64/setjmp.S: New file.
38657
38658 * term/efi/console.c (map_char): New function.
38659 (grub_console_putchar): Map unicode char.
38660 (grub_console_checkkey): Wrap efi calls.
38661 (grub_console_getkey): Likewise.
38662 (grub_console_getwh): Likewise.
38663 (grub_console_gotoxy): Likewise.
38664 (grub_console_cls): Likewise.
38665 (grub_console_setcolorstate): Likewise.
38666 (grub_console_setcursor): Likewise.
38667
38668 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
38669
38670 2008-07-16 Pavel Roskin <proski@gnu.org>
38671
38672 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
38673 format strings.
38674
38675 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
38676 pointer, not an integer. This fixes a warning and prevents
38677 precision loss on 64-bit systems.
38678 (relocate_addresses): Remove unneeded cast.
38679
38680 2008-07-15 Pavel Roskin <proski@gnu.org>
38681
38682 * kern/i386/ieee1275/init.c: Include grub/cache.h.
38683
38684 * term/ieee1275/ofconsole.c: Disable code unused on i386.
38685
38686 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
38687 Fix comparison between signed and unsigned.
38688
38689 * include/grub/i386/ieee1275/console.h: Declare
38690 grub_console_init() and grub_console_fini().
38691
38692 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
38693 It's empty and unused.
38694
38695 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
38696 beginning to avoid warnings with some compilers.
38697
38698 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
38699 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
38700
38701 2008-07-14 Pavel Roskin <proski@gnu.org>
38702
38703 * kern/env.c (grub_register_variable_hook): Don't copy empty
38704 string, it leaks memory. Pass "" to grub_env_set(), it should
38705 handle constant strings.
38706
38707 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
38708 * commands/cmp.c (grub_cmd_cmp): Likewise.
38709 * kern/dl.c (grub_dl_flush_cache): Likewise.
38710 (grub_dl_load_core): Likewise.
38711 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
38712 (grub_elf64_load_phdrs): Likewise.
38713
38714 2008-07-13 Pavel Roskin <proski@gnu.org>
38715
38716 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
38717 between signed and unsigned.
38718 (LzmaEnc_Finish): Fix warning about an unused parameter.
38719
38720 2008-07-13 Bean <bean123ch@gmail.com>
38721
38722 * Makefile.in (enable_lzo): New rule.
38723
38724 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
38725
38726 * configure.ac (ENABLE_LZO): New option --enable-lzo.
38727
38728 * boot/i386/pc/lnxboot.S: #include <config.h>.
38729
38730 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
38731 its value according to the compression algorithm used, lzo or lzma.
38732
38733 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
38734 compression algorithm according to configure macro.
38735
38736 * kern/i386/pc/startup.S (codestart): Likewise.
38737
38738 * kern/i386/pc/lzma_decode.S: New file.
38739
38740 * include/grub/lib/LzFind.h: Likewise.
38741
38742 * include/grub/lib/LzHash.h: Likewise.
38743
38744 * include/grub/lib/LzmaDec.h: Likewise.
38745
38746 * include/grub/lib/LzmaEnc.h: Likewise.
38747
38748 * include/grub/lib/LzmaTypes.h: Likewise.
38749
38750 * lib/LzFind.c: Likewise.
38751
38752 * lib/LzmaDec.c: Likewise.
38753
38754 * lib/LzmaEnc.c: Likewise.
38755
38756 2008-07-13 Bean <bean123ch@gmail.com>
38757
38758 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
38759 (grub_ext4_extent_header): New structure.
38760 (grub_ext4_extent): Likewise.
38761 (grub_ext4_extent_idx): Likewise.
38762 (grub_ext4_find_leaf): New function.
38763 (grub_ext2_read_block): Handle extents.
38764
38765 2008-07-12 Robert Millan <rmh@aybabtu.com>
38766
38767 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
38768
38769 2008-07-11 Robert Millan <rmh@aybabtu.com>
38770
38771 * util/grub.d/40_custom.in: New file. Example on how to add custom
38772 entries to /etc/grub.d.
38773 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
38774 40_custom (implicitly, by merging all the grub.d rules).
38775
38776 2008-07-11 Pavel Roskin <proski@gnu.org>
38777
38778 * commands/read.c (grub_getline): Fix invalid memory access.
38779 Don't add newline to the variable value.
38780
38781 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
38782 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
38783 (serial_hw_get_port): Check validity of the port number.
38784 (grub_cmd_serial): Check return value of serial_hw_get_port().
38785
38786 2008-07-07 Pavel Roskin <proski@gnu.org>
38787
38788 * boot/i386/pc/diskboot.S (notification_string): Replace
38789 "Loading kernel" with just "loading". This is shorter, less
38790 confusing and saves a few bytes for possible future changes.
38791
38792 2008-07-05 Pavel Roskin <proski@gnu.org>
38793
38794 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
38795 size for ATAPI devices, they are undefined. Output sector
38796 number in decimal form.
38797
38798 * disk/ata.c: Use named constants for status bits.
38799
38800 2008-07-04 Pavel Roskin <proski@gnu.org>
38801
38802 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
38803 grub_addr_t before casting it to the void pointer to fix a
38804 warning. Non-addressable regions are discarded earlier.
38805 (grub_arch_modules_addr): Cast _end to grub_addr_t.
38806 * kern/i386/linuxbios/table.c: Include grub/misc.h.
38807 (check_signature): Don't shadow table_header.
38808 (grub_linuxbios_table_iterate): Cast numeric constants to
38809 grub_linuxbios_table_header_t.
38810 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
38811 grub_stop().
38812
38813 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
38814 prevent warnings.
38815
38816 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
38817 pointer, which can cause warnings. Support 64-bit addresses.
38818
38819 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
38820 of sizeof(long). This fixes PowerPC image generation on x86_64.
38821
38822 2008-07-04 Robert Millan <rmh@aybabtu.com>
38823
38824 This fixes a performance issue when pc & gpt partmap iterators
38825 didn't abort iteration even after our hook found what it was
38826 looking for (often causing expensive probes of non-existent drives).
38827
38828 Some callers relied on previous buggy behaviour, since they would
38829 raise an error when their own hooks caused early abortion of its
38830 iteration.
38831
38832 * kern/device.c (grub_device_open): Improve error message.
38833 * disk/lvm.c (grub_lvm_open): Likewise.
38834 * disk/raid.c (grub_raid_open): Likewise.
38835
38836 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
38837 when hook requests it, independently of grub_errno.
38838 (pc_partition_map_probe): Do not fail when find_func() caused
38839 early abortion of pc_partition_map_iterate().
38840
38841 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
38842 when hook requests it, independently of grub_errno.
38843 (gpt_partition_map_probe): Do not fail when find_func() caused
38844 early abortion of gpt_partition_map_iterate().
38845
38846 * kern/partition.c (grub_partition_iterate): Abort parent iteration
38847 when hook requests it, independently of grub_errno. Do not fail when
38848 part_map_iterate_hook() caused early abortion of p->iterate().
38849
38850 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
38851 when grub_partition_iterate() returned with non-zero.
38852
38853 2008-07-03 Pavel Roskin <proski@gnu.org>
38854
38855 * disk/ata.c (grub_ata_pio_write): Check status before writing,
38856 like we do in grub_ata_pio_read().
38857 (grub_ata_readwrite): Always write individual sectors. Fix the
38858 sector count for the remainder.
38859 (grub_ata_write): Enable writing to ATA devices. Correctly
38860 report error for ATAPI devices.
38861
38862 2008-07-02 Pavel Roskin <proski@gnu.org>
38863
38864 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
38865 warning.
38866
38867 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
38868 for every read sector, we already increment it for the whole
38869 batch. This fixes reading more than 256 sectors at once.
38870
38871 * util/grub-editenv.c (cmd_info): Cast argument to long
38872 explicitly. ptrdiff_t reduces to int on i386.
38873
38874 * util/grub-editenv.c (main): Be specific which parameter is
38875 missing.
38876
38877 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
38878 (memdisk): Make memdisk_orig_addr a pointer.
38879
38880 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
38881 for file offsets, use grub_off_t instead. Fix printf format
38882 warnings.
38883
38884 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
38885 there. Real unexpected warnings should not drown in the noise
38886 about known problems.
38887
38888 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
38889 grub_disk_addr_t for memory addresses.
38890
38891 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
38892 explicitly to fix a warning.
38893
38894 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
38895
38896 * Makefile.in (MODULE_LDFLAGS): New variable.
38897 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
38898 the linker accepts --build-id=none.
38899 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
38900 MODULE_LDFLAGS.
38901 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
38902
38903 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
38904 those in Linux XFS code. Provide a way to access 64-bit parent
38905 inode.
38906 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
38907 the end of struct grub_xfs_dir_header.
38908
38909 2008-07-02 Bean <bean123ch@gmail.com>
38910
38911 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
38912 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
38913 and GRUB_IEEE1275_FLAG_NO_ANSI.
38914
38915 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
38916 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
38917 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
38918
38919 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
38920 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
38921
38922 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
38923 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
38924
38925 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
38926 esc sequence on non ANSI terminal.
38927 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
38928
38929 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
38930 beginning of file.
38931
38932 2008-07-02 Bean <bean123ch@gmail.com>
38933
38934 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
38935 (grub_editenv_SOURCES): New variable.
38936 (pkglib_MODULES): Add loadenv.mod.
38937 (loadenv_mod_SOURCES): New variable.
38938 (loadenv_mod_CFLAGS): Likewise.
38939 (loadenv_mod_LDFLAGS): Likewise.
38940
38941 * include/grub/envblk.h: New file.
38942
38943 * util/envblk.c: New file.
38944
38945 * util/grub-editenv.c: New file.
38946
38947 * commands/loadenv.c: New file.
38948
38949 2008-07-01 Pavel Roskin <proski@gnu.org>
38950
38951 * include/multiboot2.h (struct multiboot_tag_module): Use char,
38952 not unsigned char. This fixes warnings and is consistent with
38953 other tags.
38954
38955 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
38956
38957 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
38958
38959 * term/tparm.c (analyze): Always set *popcount.
38960
38961 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
38962 cast to fix a warning.
38963
38964 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
38965 cast to suppress a warning.
38966
38967 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
38968 grub_fshelp_read_file() expects.
38969
38970 * fs/fat.c: Fix UUID calculation on big-endian systems. We
38971 write uuid as a 32-bit value in CPU byte order, so declare and
38972 use it as such.
38973
38974 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
38975 long if the format specifier expects it.
38976 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
38977 * partmap/pc.c (pc_partition_map_iterate): Likewise.
38978 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
38979 long to fix a warning.
38980 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
38981 grub_dprintf() arguments to fix warnings.
38982
38983 2008-06-30 Pavel Roskin <proski@gnu.org>
38984
38985 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
38986 install_bsd_part immediately before core.img is embedded or
38987 modified on disk. This fixes core.img verification if core.img
38988 cannot be embedded.
38989
38990 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
38991 core_path to calculate the blocklist.
38992 Patch from Javier Martín <lordhabbit@gmail.com>
38993
38994 2008-06-29 Robert Millan <rmh@aybabtu.com>
38995
38996 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
38997 block to disk block.
38998 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
38999 Patch from Niels Böhm <bitbucket@arcor.de>
39000
39001 2008-06-29 Robert Millan <rmh@aybabtu.com>
39002
39003 * util/update-grub_lib.in (font_path): Search for fonts in
39004 /boot/grub first, which is more likely to be readable (we aren't
39005 deciding where fonts live, just looking for them).
39006
39007 2008-06-26 Pavel Roskin <proski@gnu.org>
39008
39009 * util/biosdisk.c (read_device_map): Don't leave dead map
39010 entries for devices failing stat() check.
39011
39012 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
39013 core_path_dev for the core.img path on the target device.
39014
39015 2008-06-26 Robert Millan <rmh@aybabtu.com>
39016
39017 * disk/fs_uuid.c: New file.
39018 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
39019 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
39020 (fs_uuid_mod_LDFLAGS): New variables.
39021 * include/grub/disk.h (grub_disk_dev_id): Add
39022 `GRUB_DISK_DEVICE_UUID_ID'.
39023 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
39024 implement iterate().
39025
39026 2008-06-26 Robert Millan <rmh@aybabtu.com>
39027
39028 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
39029 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
39030 Linux image includes no initrd.
39031
39032 2008-06-21 Javier Martín <lordhabbit@gmail.com>
39033
39034 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
39035 call to resolve the core image location that effectively appended the
39036 name twice.
39037
39038 2008-06-21 Robert Millan <rmh@aybabtu.com>
39039
39040 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
39041 call from here ...
39042
39043 * util/grub.d/10_hurd.in: ... to here ...
39044 * util/grub.d/10_linux.in: ... and here.
39045
39046 2008-06-19 Robert Millan <rmh@aybabtu.com>
39047
39048 * kern/main.c (grub_main): Export `prefix' variable immediately
39049 after it has been set by grub_machine_set_prefix().
39050
39051 2008-06-19 Robert Millan <rmh@aybabtu.com>
39052
39053 * commands/search.c (search_label, search_fs_uuid, search_file): Print
39054 search result when not saving to variable, not the other way around.
39055 When saving to variable, abort iteration as soon as a match is found.
39056
39057 2008-06-19 Robert Millan <rmh@aybabtu.com>
39058
39059 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
39060 check for partition that provides /boot/grub. Its logic is flawed,
39061 as it prevents prepare_grub_to_access_device() from being called
39062 multiple times.
39063
39064 2008-06-19 Robert Millan <rmh@aybabtu.com>
39065
39066 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
39067 "insmod" command directly when abstraction modules are needed,
39068 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
39069 since it had already been processed).
39070
39071 2008-06-19 Pavel Roskin <proski@gnu.org>
39072
39073 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
39074 changed. This is needed in case GRUB_LIBDIR changes.
39075 * conf/i386-ieee1275.rmk: Likewise.
39076 * conf/i386-linuxbios.rmk: Likewise.
39077 * conf/i386-pc.rmk: Likewise.
39078 * conf/powerpc-ieee1275.rmk: Likewise.
39079
39080 2008-06-18 Pavel Roskin <proski@gnu.org>
39081
39082 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
39083 kernel_elf_symlist.c to symlist.c for consistency with other
39084 architectures. Update all users.
39085 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
39086
39087 2008-06-18 Robert Millan <rmh@aybabtu.com>
39088
39089 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
39090 it in prefix.
39091
39092 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
39093 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
39094 a RAID device, run setup() for all members independently on whether
39095 LVM abstraction is being used.
39096 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
39097 If grub-mkimage has set `*install_dos_part == -2', don't override this
39098 value.
39099 Perform *install_dos_part adjustments independently on whether
39100 we're embedding or not.
39101 Clarify error message when image is too big for embedding.
39102 Remove duplicate *install_dos_part stanza.
39103
39104 2008-06-17 Robert Millan <rmh@aybabtu.com>
39105
39106 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
39107 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
39108 variables.
39109 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
39110 values in grub_ofconsole_normal_color and
39111 grub_ofconsole_highlight_color (they're not directly related to
39112 background and foreground).
39113 (grub_ofconsole_setcolorstate): Extract background and foreground
39114 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
39115
39116 2008-06-17 Robert Millan <rmh@aybabtu.com>
39117
39118 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
39119 /boot/grub for the check in last commit, not /boot (they could be
39120 different partitions).
39121
39122 2008-06-16 Robert Millan <rmh@aybabtu.com>
39123
39124 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
39125 asked to setup access for the same partition that provides /boot,
39126 don't bother using UUIDs since our root already has the value we
39127 want.
39128
39129 2008-06-16 Robert Millan <rmh@aybabtu.com>
39130
39131 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
39132 I2O devices.
39133 Patch from Sven Mueller <sven@debian.org>.
39134
39135 2008-06-16 Robert Millan <rmh@aybabtu.com>
39136
39137 * util/update-grub.in: Check for $EUID instead of $UID.
39138 Reported by Vincent Zweije.
39139
39140 2008-06-16 Bean <bean123ch@gmail.com>
39141
39142 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
39143 (grub_ext2_read_block): Likewise.
39144 (grub_ext2_read_inode): Likewise.
39145 (grub_ext2_mount): Likewise.
39146 (grub_ext2_close): Likewise.
39147 (grub_ext3_get_journal): Removed.
39148
39149 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
39150 (grub_reiserfs_read_symlink): Likewise.
39151 (grub_reiserfs_mount): Likewise.
39152 (grub_reiserfs_open): Likewise.
39153 (grub_reiserfs_read): Likewise.
39154 (grub_reiserfs_close): Likewise.
39155 (grub_reiserfs_get_journal): Removed.
39156
39157 * fs/fshelp.c (grub_fshelp_read): Removed.
39158 (grub_fshelp_map_block): Likewise.
39159
39160 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
39161 (grub_fshelp_journal): Likewise.
39162 (grub_fshelp_read): Likewise.
39163 (grub_fshelp_map_block): Likewise.
39164
39165 2008-06-16 Pavel Roskin <proski@gnu.org>
39166
39167 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
39168 floating point anymore.
39169 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
39170
39171 2008-06-15 Pavel Roskin <proski@gnu.org>
39172
39173 * commands/ls.c (grub_ls_list_files): Use integer calculations
39174 for human readable format, avoid floating point use.
39175 * kern/misc.c (grub_ftoa): Remove.
39176 (grub_vsprintf): Remove floating point support.
39177
39178 2008-06-15 Robert Millan <rmh@aybabtu.com>
39179
39180 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
39181 devices.
39182 Reported by Max Vozeler.
39183
39184 2008-06-15 Robert Millan <rmh@aybabtu.com>
39185
39186 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
39187 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
39188 skipped later.
39189 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
39190 the beginning of the prefix.
39191
39192 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
39193 It is assumed that if we have a memdisk, grub-mkimage has set
39194 grub_prefix to include the "(memdisk)" drive in it.
39195
39196 2008-06-15 Robert Millan <rmh@aybabtu.com>
39197
39198 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
39199 Initialize keyboard controller after registering the terminal, so that
39200 grub_printf() can be called from grub_keyboard_controller_init().
39201
39202 2008-06-15 Robert Millan <rmh@aybabtu.com>
39203
39204 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
39205 extent-btree which is written as big endian on disk.
39206 Reported by Alain Greppin <al@chilibi.org>.
39207
39208 2008-06-14 Robert Millan <rmh@aybabtu.com>
39209
39210 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
39211 * util/i386/pc/grub-install.in (modules): Likewise.
39212
39213 2008-06-13 Pavel Roskin <proski@gnu.org>
39214
39215 * commands/ls.c (grub_ls_list_files): Fix format warnings.
39216
39217 2008-06-13 Bean <bean123ch@gmail.com>
39218
39219 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
39220
39221 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
39222
39223 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
39224 to indicate sparse block.
39225
39226 2008-06-12 Pavel Roskin <proski@gnu.org>
39227
39228 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
39229 number, grub_fshelp_read() does it for us.
39230
39231 * fs/fshelp.c (grub_fshelp_read): New function. Implement
39232 linear disk read with journal translation.
39233 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
39234 * include/grub/fshelp.h: Declare grub_fshelp_read().
39235
39236 2008-06-09 Pavel Roskin <proski@gnu.org>
39237
39238 * fs/minix.c (grub_minix_mount): Handle error reading
39239 superblock.
39240
39241 2008-06-08 Robert Millan <rmh@aybabtu.com>
39242
39243 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
39244 don't append the RAID prefix afterwards.
39245 Reported by Clint Adams.
39246
39247 2008-06-08 Robert Millan <rmh@aybabtu.com>
39248
39249 Based on description from Pavel:
39250 * kern/disk.c (grub_disk_check_range): Rename to ...
39251 (grub_disk_adjust_range): ... this. Add a comment explaining the
39252 tasks performed by this function.
39253
39254 2008-06-08 Robert Millan <rmh@aybabtu.com>
39255
39256 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
39257 `num_serial' (for consistency with other variables).
39258 (struct grub_ntfs_data): Add `uuid' member.
39259 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
39260 (grub_ntfs_uuid): New function.
39261 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
39262
39263 2008-06-07 Pavel Roskin <proski@gnu.org>
39264
39265 * util/biosdisk.c (open_device): Revert last change to the
39266 function, it broke installation. The sector needs to be
39267 different dependent on which device is opened.
39268
39269 2008-06-06 Robert Millan <rmh@aybabtu.com>
39270
39271 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
39272 rest of GRUB, and breakage doesn't happen if its value were modified.
39273
39274 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
39275 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
39276 a constant (same value).
39277 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
39278 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
39279
39280 2008-06-06 Robert Millan <rmh@aybabtu.com>
39281
39282 * util/biosdisk.c (open_device): Do not modify sector offset when
39283 accessing a partition. kern/disk.c already handles this for us.
39284
39285 2008-06-06 Robert Millan <rmh@aybabtu.com>
39286
39287 * util/grub-emu.c (grub_machine_init): Move code in this function from
39288 here ...
39289 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
39290 segfault in case grub_printf() is called).
39291
39292 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
39293 grub_probe. Update all users not to explicitly add it again.
39294 (grub_device): New variable; contains corresponding device for grubdir.
39295 (fs_module, partmap_module, devabstraction_module): Pass
39296 `--device ${grub_device}' to grub_probe to avoid traversing /dev
39297 every time.
39298
39299 2008-06-05 Robert Millan <rmh@aybabtu.com>
39300
39301 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
39302 is found, print it (same layout as with labels).
39303
39304 2008-06-04 Robert Millan <rmh@aybabtu.com>
39305
39306 * util/biosdisk.c (get_drive): Rename to ...
39307 (find_grub_drive): ... this. Update all users.
39308
39309 (get_os_disk): Rename to ...
39310 (convert_system_partition_to_system_disk): ... this. Update all users.
39311
39312 (find_drive): Rename to ...
39313 (find_system_device): ... this. Update all users.
39314
39315 2008-06-04 Robert Millan <rmh@aybabtu.com>
39316
39317 * util/biosdisk.c (get_os_disk): Handle IDA devices.
39318 * util/grub-mkdevicemap.c (get_mmc_disk_name)
39319 (make_device_map): Likewise.
39320
39321 2008-06-01 Robert Millan <rmh@aybabtu.com>
39322
39323 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
39324 before dereferencing it.
39325
39326 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
39327 union with fat12/fat16-specific ones. Add some new fields, including
39328 `num_serial' for both versions.
39329 (struct grub_fat_data): Add `uuid' member.
39330 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
39331 names. Initialize `data->uuid' using `num_serial'.
39332 (grub_fat_uuid): New function.
39333 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
39334
39335 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
39336 (grub_reiserfs_uuid): New function.
39337 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
39338 member.
39339
39340 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
39341 (grub_xfs_uuid): New function.
39342 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
39343
39344 2008-06-01 Robert Millan <rmh@aybabtu.com>
39345
39346 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
39347 code that is backward compatible with pre-uuid search command.
39348
39349 2008-05-31 Robert Millan <rmh@aybabtu.com>
39350
39351 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
39352 floppies after everything else, to ensure floppy drive isn't accessed
39353 unnecessarily (patch from Bean).
39354
39355 2008-05-31 Robert Millan <rmh@aybabtu.com>
39356
39357 * commands/search.c (search_label, search_fs_uuid, search_file): Do
39358 not print device names when we were asked to set a variable.
39359
39360 2008-05-31 Robert Millan <rmh@aybabtu.com>
39361
39362 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
39363 using "cursor-on" and "cursor-off" commands (understood at least by
39364 the Open Firmware flavour on OLPC).
39365
39366 2008-05-31 Michael Gorven <michael@gorven.za.net>
39367
39368 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
39369 on and off sequences.
39370
39371 2008-05-31 Robert Millan <rmh@aybabtu.com>
39372
39373 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
39374 * util/update-grub.in: Likewise.
39375
39376 2008-05-30 Pavel Roskin <proski@gnu.org>
39377
39378 * util/biosdisk.c (linux_find_partition): Simplify logic and
39379 make the code more universal. Keep special processing for
39380 devfs, but use a simple rule for all other devices. If the
39381 device ends with a number, append 'p' and the partition number.
39382 Otherwise, append only the partition number.
39383
39384 2008-05-30 Robert Millan <rmh@aybabtu.com>
39385
39386 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
39387 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
39388 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
39389 the `root' parameter to Linux.
39390
39391 2008-05-30 Robert Millan <rmh@aybabtu.com>
39392
39393 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
39394 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
39395 --fs_uuid with --fs-uuid.
39396 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
39397 all filesystems support them).
39398
39399 2008-05-30 Robert Millan <rmh@aybabtu.com>
39400
39401 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
39402 grub_printf() flags, since we're printing in units of 2 bytes.
39403
39404 2008-05-30 Robert Millan <rmh@aybabtu.com>
39405
39406 * util/grub.d/00_header.in: Remove obsolete comment referencing
39407 convert_system_path_to_grub_path().
39408 * util/update-grub.in: Likewise.
39409 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
39410 (convert_system_path_to_grub_path): Add a warning message explaining
39411 that this function is deprecated. Rely on is_path_readable_by_grub()
39412 for the readability checks.
39413 (font_path): Use is_path_readable_by_grub() for the readability
39414 check rather than convert_system_path_to_grub_path().
39415
39416 2008-05-30 Robert Millan <rmh@aybabtu.com>
39417
39418 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
39419 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
39420 converting it first.
39421 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
39422 grub.cfg for access to font file, and afterwards call it again to set
39423 the root device.
39424
39425 2008-05-30 Robert Millan <rmh@aybabtu.com>
39426
39427 * commands/search.c (options): Add --fs_uuid option.
39428 (search_fs_uuid): New function.
39429 (grub_cmd_search): Fix --set argument passing.
39430 Use search_fs_uuid() when requested via --fs_uuid.
39431 (grub_search_init): Update help message.
39432 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
39433 and redeclare it as an array of 16-bit words.
39434 (grub_ext2_uuid): New function.
39435 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
39436 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
39437 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
39438 (GRUB_DEVICE_BOOT_UUID): New variables.
39439 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
39440 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
39441 whenever possible.
39442 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
39443 just assume `root' variable has the right value.
39444 * util/grub.d/10_linux.in: Likewise.
39445 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
39446 via PRINT_FS_UUID.
39447 (main): Recognise `-t fs_uuid' argument.
39448
39449 2008-05-30 Robert Millan <rmh@aybabtu.com>
39450
39451 * util/biosdisk.c (map): Redefine structure to hold information
39452 about GRUB drive name.
39453 (get_drive): Reimplement without assuming (and verifying) BIOS-like
39454 drive names.
39455 (call_hook): Remove.
39456 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
39457 member. Assume drive has partitions.
39458 (grub_util_biosdisk_open): Access device names via `.device' struct
39459 member.
39460 (open_device): Likewise.
39461 (find_drive): Likewise.
39462 (read_device_map): Adjust map[] usage to match the new struct
39463 definition. Don't check for duplicates (still possible, but not cheap
39464 anymore).
39465 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
39466 (make_device_name): Remove assumption of BIOS-like drive names.
39467
39468 2008-05-30 Pavel Roskin <proski@gnu.org>
39469
39470 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
39471 compiling execute.c doesn't need grub_script.tab.h anymore.
39472 (normal/command.c_DEPENDENCIES): Likewise.
39473 (normal/function.c_DEPENDENCIES): Likewise.
39474 * conf/i386-ieee1275.rmk: Likewise.
39475 * conf/i386-linuxbios.rmk: Likewise.
39476 * conf/i386-pc.rmk: Likewise.
39477 * conf/powerpc-ieee1275.rmk: Likewise.
39478 * conf/sparc64-ieee1275.rmk: Likewise.
39479
39480 2008-05-29 Pavel Roskin <proski@gnu.org>
39481
39482 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
39483 when scanning metadata for volume group name.
39484
39485 * include/grub/script.h: Don't include grub_script.tab.h. It's
39486 a generated file, which may only be included from the files with
39487 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
39488 use union YYSTYPE, as the later allows forward declaration.
39489 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
39490
39491 2008-05-29 Robert Millan <rmh@aybabtu.com>
39492
39493 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
39494 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
39495 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
39496 (grub_console_checkkey): Add grub_dprintf() call to report unknown
39497 scan codes.
39498
39499 2008-05-29 Robert Millan <rmh@aybabtu.com>
39500
39501 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
39502 control key combinations.
39503
39504 2008-05-29 Robert Millan <rmh@aybabtu.com>
39505
39506 * util/powerpc/ieee1275/grub-install.in: Move from here ...
39507 * util/ieee1275/grub-install.in: ... to here.
39508 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
39509 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
39510 (grub_install_SOURCES): Likewise.
39511
39512 2008-05-29 Robert Millan <rmh@aybabtu.com>
39513
39514 * fs/affs.c: Update copyright year.
39515 * fs/ext2.c: Likewise.
39516 * fs/fshelp.c: Likewise.
39517 * fs/hfsplus.c: Likewise.
39518 * fs/ntfs.c: Likewise.
39519 * fs/xfs.c: Likewise.
39520 * include/grub/fshelp.h: Likewise.
39521 * util/grub-mkdevicemap.c: Likewise.
39522
39523 2008-05-28 Robert Millan <rmh@aybabtu.com>
39524
39525 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
39526 might need to be fatfs to support some firmware implementations
39527 (e.g. OFW or EFI).
39528
39529 2008-05-28 Robert Millan <rmh@aybabtu.com>
39530
39531 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
39532 devices.
39533 * util/grub-mkdevicemap.c (get_mmc_disk_name)
39534 (make_device_map): Likewise.
39535
39536 2008-05-20 Bean <bean123ch@gmail.com>
39537
39538 * fs/fshelp.c (grub_fshelp_map_block): New function.
39539 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
39540 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
39541
39542 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
39543 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
39544 (grub_fshelp_journal): New structure.
39545 (grub_fshelp_map_block): New function prototype.
39546 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
39547 (grub_fshelp_map_block): Likewise.
39548
39549 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
39550 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
39551 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
39552 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
39553 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
39554 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
39555 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
39556 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
39557 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
39558 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
39559 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
39560 (grub_ext2_sblock): New members for journal support.
39561 (grub_ext3_journal_header): New structure.
39562 (grub_ext3_journal_revoke_header): Likewise.
39563 (grub_ext3_journal_block_tag): Likewise.
39564 (grub_ext3_journal_sblock): Likewise.
39565 (grub_fshelp_node): New members logfile and journal.
39566 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
39567 grub_fshelp_map_block to get real block number.
39568 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
39569 number.
39570 (grub_ext2_read_inode): Likewise.
39571 (grub_ext3_get_journal): New function.
39572 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
39573 (grub_ext2_close): Release memory used by journal.
39574
39575 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
39576 (REISERFS_MAGIC_DESC_BLOCK): New macro.
39577 (grub_reiserfs_transaction_header): Renamed to
39578 grub_reiserfs_description_block, replace field data with real_blocks.
39579 (grub_reiserfs_commit_block): New structure.
39580 (grub_reiserfs_data): New member journal.
39581 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
39582 number.
39583 (grub_reiserfs_read_symlink): Likewise.
39584 (grub_reiserfs_iterate_dir): Likewise.
39585 (grub_reiserfs_open): Likewise.
39586 (grub_reiserfs_read): Likewise.
39587 (grub_reiserfs_get_journal): New function.
39588 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
39589 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
39590 using grub_reiserfs_get_journal.
39591 (grub_reiserfs_close): Release memory used by journal.
39592
39593 * fs/affs.c (grub_affs_read_block): Change block type to
39594 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
39595
39596 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
39597
39598 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
39599
39600 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
39601
39602 * fs/udf.c (grub_udf_read_block): Change block type to
39603 grub_disk_addr_t. Use type cast to avoid warning.
39604
39605 * fs/xfs.c (grub_xfs_read_block): Likewise.
39606
39607 2008-05-16 Christian Franke <franke@computer.org>
39608
39609 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
39610 to ensure that break with ESC will always work.
39611 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
39612 Remove ESC from keyboard queue.
39613
39614 2008-05-16 Christian Franke <franke@computer.org>
39615
39616 * util/biosdisk.c: [__CYGWIN__] Add includes.
39617 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
39618 (get_os_disk): Move variable declarations to OS specific
39619 parts to avoid warning.
39620 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
39621 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
39622 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
39623 Cygwin.
39624 * util/getroot.c: [__CYGWIN__] Add includes.
39625 (strip_extra_slashes): Fix "/" case.
39626 [__CYGWIN__] (get_win32_path): New function.
39627 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
39628 [__CYGWIN__] (find_root_device): Disable.
39629 [__CYGWIN__] (get_bootsec_serial): New function.
39630 [__CYGWIN__] (find_cygwin_root_device): Likewise.
39631 [__linux__] (grub_guess_root_device): Add early returns to simplify
39632 structure.
39633 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
39634 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
39635 check for Linux only.
39636
39637 2008-05-15 Bean <bean123ch@gmail.com>
39638
39639 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
39640 keyboard hang problem in apple's intel mac.
39641
39642 2008-05-09 Robert Millan <rmh@aybabtu.com>
39643
39644 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
39645 devices.
39646 * util/grub-mkdevicemap.c (get_virtio_disk_name)
39647 (make_device_map): Likewise.
39648 Reported by Aurelien Jarno <aurel32@debian.org>
39649
39650 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
39651
39652 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
39653 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
39654 (make_device_map): Output entries for xvd type disks.
39655
39656 2008-05-07 Robert Millan <rmh@aybabtu.com>
39657
39658 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
39659 devices.
39660 * util/grub-mkdevicemap.c (get_cciss_disk_name)
39661 (make_device_map): Likewise.
39662 Reported by Roland Dreier <rdreier@cisco.com>
39663
39664 2008-05-07 Robert Millan <rmh@aybabtu.com>
39665
39666 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
39667 grub_strstr() call. Correct a few mistakes in failure path handling.
39668
39669 2008-05-06 Robert Millan <rmh@aybabtu.com>
39670
39671 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
39672 Do not print a trailing slash (therefore, the root directory is an
39673 empty string).
39674 (convert_system_path_to_grub_path): Do not remove trailing slash
39675 from make_system_path_relative_to_its_root() output.
39676
39677 * util/i386/pc/grub-install.in: Add trailing slash to output from
39678 make_system_path_relative_to_its_root().
39679
39680 2008-05-06 Robert Millan <rmh@aybabtu.com>
39681
39682 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
39683 ensures that output lines aren't intermangled with those sent to
39684 stderr (via grub_util_info()).
39685 * util/grub-probe.c (grub_refresh): Likewise.
39686 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
39687
39688 2008-05-05 Christian Franke <franke@computer.org>
39689
39690 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
39691 Add Cygwin device names.
39692 (get_ide_disk_name) [__CYGWIN__]: Likewise.
39693 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
39694 (check_device): Return error instead of success on empty name.
39695 (make_device_map): Move label inside linux specific code to
39696 prevent compiler warning.
39697
39698 2008-04-30 Robert Millan <rmh@aybabtu.com>
39699
39700 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
39701 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
39702 first boot option.
39703 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
39704
39705 2008-04-29 Robert Millan <rmh@aybabtu.com>
39706
39707 * docs/grub.cfg: New file (example GRUB configuration).
39708
39709 2008-04-26 Robert Millan <rmh@aybabtu.com>
39710
39711 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
39712 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
39713 and `disk/ieee1275/nand.c'.
39714
39715 2008-04-25 Bean <bean123ch@gmail.com>
39716
39717 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
39718 i386-linuxbios.
39719
39720 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
39721 change the buffer size to 4096 for cdrom device.
39722
39723 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
39724 and nand.mod.
39725 (_linux_mod_SOURCES): New variable.
39726 (_linux_mod_CFLAGS): Likewise.
39727 (_linux_mod_LDFLAGS): Likewise.
39728 (linux_mod_SOURCES): Likewise.
39729 (linux_mod_CFLAGS): Likewise.
39730 (linux_mod_LDFLAGS): Likewise.
39731 (nand_mod_SOURCES): Likewise.
39732 (nand_mod_CFLAGS): Likewise.
39733 (nand_mod_LDFLAGS): Likewise.
39734
39735 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
39736 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
39737 type property. (nand device in olpc don't have this property)
39738
39739 * include/grub/disk.h (grub_disk_dev_id): New macro
39740 GRUB_DISK_DEVICE_NAND_ID.
39741
39742 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
39743 function prototype.
39744 (grub_rescue_cmd_initrd): Likewise.
39745
39746 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
39747 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
39748 ofw_cif_handler and ofw_idt, adjust padding number.
39749
39750 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
39751 GRUB_MACHINE_IEEE1275 is defined.
39752
39753 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
39754 Use NESTED_FUNC_ATTR attribute on the hook parameter.
39755
39756 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
39757 on nested function heap_init.
39758 (grub_upper_mem): New variable for i386-ieee1275.
39759 (grub_get_extended_memory): New function for i386-ieee1275.
39760 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
39761
39762 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
39763 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
39764 property.
39765
39766 * loader/i386/ieee1275/linux.c: New file.
39767
39768 * loader/i386/ieee1275/linux_normal.c: New file.
39769
39770 * disk/ieee1275/nand.c: New file.
39771
39772 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
39773
39774 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
39775 value.
39776 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
39777
39778 2008-04-18 Robert Millan <rmh@aybabtu.com>
39779
39780 Restructures early code path on ieee1275 to unify grub_main() as
39781 the first C function that is executed in every platform.
39782
39783 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
39784 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
39785 cmain().
39786 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
39787 * kern/ieee1275/cmain.c (cmain): Rename to ...
39788 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
39789 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
39790 at the beginning.
39791
39792 2008-04-18 Robert Millan <rmh@aybabtu.com>
39793
39794 * util/update-grub.in: Fix syntax error when setting
39795 `GRUB_PRELOAD_MODULES'.
39796 Reported by Stephane Chazelas <stephane@artesyncp.com>
39797
39798 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
39799
39800 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
39801 section into account, newer toolchains generate unique build ids
39802 * configure.ac: remove the test for --build-id=none acceptance,
39803 we want build ids to be preserved
39804 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
39805 far from other sections don't cause the raw binary images grow
39806 size
39807
39808 2008-04-15 Robert Millan <rmh@aybabtu.com>
39809
39810 * disk/lvm.c: Update copyright year.
39811 * kern/misc.c: Likewise.
39812
39813 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
39814
39815 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
39816 there is no memory left for physical volume name.
39817
39818 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
39819
39820 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
39821 volume name mapping to support bigger than 9 character names properly.
39822
39823 2008-04-13 Robert Millan <rmh@aybabtu.com>
39824
39825 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
39826 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
39827
39828 2008-04-13 Christian Franke <franke@computer.org>
39829
39830 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
39831 to create a floppy emulation boot CD when non emulation mode
39832 does not work.
39833 Enable Joliet CD filesystem extension.
39834
39835 2008-04-13 Robert Millan <rmh@aybabtu.com>
39836
39837 * kern/misc.c (grub_strncat): Fix off-by-one error.
39838 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
39839
39840 * kern/env.c (grub_env_context_close): Clear current context, not
39841 previous one.
39842 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
39843
39844 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
39845
39846 2008-04-13 Robert Millan <rmh@aybabtu.com>
39847
39848 Improve robustness when handling LVM.
39849
39850 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
39851 (and leave `*p' unmodified).
39852 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
39853 through it.
39854 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
39855 iterating through it.
39856 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
39857 through it.
39858 (grub_lvm_scan_device): Check the return value (and fail gracefully
39859 when due) on each grub_lvm_getvalue() or grub_strstr() call.
39860 Don't assume `vg->pvs != NULL' when iterating through it.
39861
39862 2008-04-13 Robert Millan <rmh@aybabtu.com>
39863
39864 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
39865 * genmk.rb (partmap): New variable.
39866 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
39867 (#{partmap}): New target rule.
39868 * genpartmaplist.sh: New file.
39869 * Makefile.in (pkglib_DATA): Add partmap.lst.
39870 (partmap.lst): New target rule.
39871 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
39872 modules (including all partition maps), instead of preloading them.
39873
39874 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
39875
39876 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
39877 `linux-boot-prober' (if installed) to detect other operating
39878 systems which are installed on the computer and add them to
39879 the boot menu.
39880 * conf/common.rmk: Build and install 30_os-prober.
39881
39882 2008-04-12 Robert Millan <rmh@aybabtu.com>
39883
39884 * kern/powerpc/ieee1275/init.c: Move from here ...
39885 * kern/ieee1275/init.c: ... to here. Update all users.
39886
39887 * kern/powerpc/ieee1275/cmain.c: Move from here ...
39888 * kern/ieee1275/cmain.c: ... to here. Update all users.
39889
39890 * kern/powerpc/ieee1275/openfw.c: Move from here ...
39891 * kern/ieee1275/openfw.c: ... to here. Update all users.
39892
39893 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
39894 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
39895
39896 2008-04-10 Pavel Roskin <proski@gnu.org>
39897
39898 * configure.ac: Always use "_cv_" in cache variables for
39899 compatibility with Autoconf 2.62.
39900
39901 2008-04-07 Robert Millan <rmh@aybabtu.com>
39902
39903 Revert grub/machine/init.h addition by Pavel (since it breaks on
39904 i386-ieee1275 and others):
39905 * util/i386/pc/misc.c: Remove grub/machine/init.h.
39906 * util/powerpc/ieee1275/misc.c: Likewise.
39907
39908 2008-04-07 Robert Millan <rmh@aybabtu.com>
39909
39910 * util/grub-probe.c (probe): Improve error message.
39911
39912 2008-04-07 Robert Millan <rmh@aybabtu.com>
39913
39914 * util/biosdisk.c (read_device_map): Skip devices that don't exist
39915 (this prevents the presence of a bogus entry from ruining the whole
39916 thing).
39917
39918 2008-04-06 Pavel Roskin <proski@gnu.org>
39919
39920 * util/biosdisk.c: Include grub/util/biosdisk.h.
39921 * util/grub-fstest.c (execute_command): Make static.
39922 * util/grub-mkdevicemap.c (check_device): Likewise.
39923 * util/i386/pc/misc.c: Include grub/machine/init.h.
39924 * util/powerpc/ieee1275/misc.c: Likewise.
39925 * util/lvm.c: Include grub/util/lvm.h.
39926 * util/misc.c: Include grub/kernel.h, grub/misc.h and
39927 grub/cache.h.
39928 * util/raid.c: Include grub/util/raid.h.
39929 (grub_util_getdiskname): Make static.
39930
39931 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
39932 grub_hostfs_fini(), as they are called from grub_init_all() and
39933 grub_fini_all() respectively. This fixes an infinite loop in
39934 grub-fstest due to double registration of hostfs.
39935 Reported by Christian Franke <Christian.Franke@t-online.de>
39936
39937 2008-04-05 Pavel Roskin <proski@gnu.org>
39938
39939 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
39940 all 8 functions. Otherwise, probe function 0 only.
39941
39942 2008-04-04 Pavel Roskin <proski@gnu.org>
39943
39944 * commands/lspci.c (grub_lspci_iter): Print the bus number
39945 correctly.
39946
39947 * commands/lspci.c (grub_pci_classes): Fix typos.
39948 (grub_lspci_iter): Don't print func twice. Print vendor ID
39949 before device ID, as it's normally done.
39950
39951 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
39952 Fix signedness warnings.
39953 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
39954 Likewise.
39955 * util/ieee1275/get_disk_name.c: Include config.h so that
39956 _GNU_SOURCE is defined and getline() is declared. Mark an
39957 unused argument as such. Fix a signedness warning.
39958
39959 2008-04-02 Pavel Roskin <proski@gnu.org>
39960
39961 * genkernsyms.sh.in: Use more robust assignments for CC and
39962 srcdir. Quote srcdir.
39963 * gensymlist.sh.in: Likewise. Assert at the compile time that
39964 the symbol table is not empty.
39965
39966 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
39967 * fs/cpio.c (grub_cpio_read): Likewise.
39968
39969 2008-04-01 Pavel Roskin <proski@gnu.org>
39970
39971 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
39972 * disk/host.c (grub_host_open): Likewise.
39973 * disk/loopback.c (grub_loopback_open): Likewise.
39974 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
39975 disk->id as in disk/host.c, not a multi-character constant.
39976
39977 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
39978 later is obsolete, potentially dangerous and sets a bad example.
39979 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
39980 * util/misc.c (grub_util_get_image_size): Likewise.
39981
39982 * disk/loopback.c (options): Improve help for "--partitions".
39983
39984 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
39985 options to align them with the short options, e.g. "echo -e".
39986
39987 2008-03-31 Bean <bean123ch@gmail.com>
39988
39989 * video/reader/png.c (grub_png_data): New member is_16bit and
39990 image_data.
39991 (grub_png_decode_image_header): Detect 16 bit png image.
39992 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
39993 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
39994 (grub_video_reader_png): Release memory occupied by image_data.
39995
39996 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
39997 4096 bytes.
39998 (grub_nfs_mount): Skip the test for sector per cluster.
39999
40000 * include/grub/ntfs.h (MAX_SPC): Removed.
40001
40002 2008-03-31 Bean <bean123ch@gmail.com>
40003
40004 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
40005 (grub_probe_SOURCES): Add fs/afs.c.
40006 (grub_fstest_SOURCES): Likewise.
40007 (afs_mod_SOURCES): New variable.
40008 (afs_mod_CFLAGS): Likewise.
40009 (afs_mod_LDFLAGS): Likewise.
40010
40011 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
40012 (grub_emu_SOURCES): Likewise.
40013
40014 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40015
40016 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40017
40018 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
40019
40020 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40021
40022 * fs/afs.c: New file.
40023
40024 2008-03-30 Pavel Roskin <proski@gnu.org>
40025
40026 * disk/host.c: Include grub/misc.h to fix a warning.
40027 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
40028 warnings about implicit declarations.
40029
40030 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
40031 variable.
40032 * include/grub/i386/loader.h: Change declaration of
40033 grub_linux_boot() to match what grub_loader_set() expects.
40034 * util/getroot.c (grub_guess_root_device): Return const char* to
40035 fix a warning.
40036 * util/grub-probe.c (probe): Fix a warning about uninitialized
40037 abstraction_name variable.
40038 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
40039 second argument as unused to fix a warning.
40040
40041 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
40042 missing grub_error() call.
40043
40044 * util/update-grub_lib.in: Define datarootdir, since Autoconf
40045 2.60 and newer uses it to define datadir.
40046
40047 * commands/sleep.c: Fix warning about implicit declaration.
40048 * disk/memdisk.c: Likewise.
40049 * loader/aout.c: Likewise.
40050 * loader/i386/bsd_normal.c: Likewise.
40051 * util/grub-probe.c: Likewise.
40052
40053 * commands/i386/cpuid.c (has_longmode): Make static.
40054 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
40055 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
40056
40057 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
40058 GDT. This is more robust, as %ds can change.
40059 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
40060 calling real_to_prot().
40061 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
40062
40063 2008-03-28 Pavel Roskin <proski@gnu.org>
40064
40065 * kern/i386/pc/startup.S: Assert that uncompressed functions
40066 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
40067 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
40068 code, as they push parts of the code (error handlers) beyond
40069 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
40070 code as correctness and size.
40071
40072 2008-03-28 Pavel Roskin <proski@gnu.org>
40073
40074 * kern/i386/pc/startup.S
40075 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
40076 data block address to the real mode, keep offset minimal. This
40077 works around a bug in AWARD BIOS on old Athlon systems, which
40078 makes CD detection hang.
40079
40080 2008-03-26 Pavel Roskin <proski@gnu.org>
40081
40082 * normal/color.c (grub_parse_color_name_pair): Make `name' a
40083 const.
40084 * include/grub/normal.h: Add grub_parse_color_name_pair()
40085 declaration.
40086
40087 2008-03-24 Bean <bean123ch@gmail.com>
40088
40089 * disk/i386/pc/biosdisk.c (cd_start): Removed.
40090 (cd_count): Removed.
40091 (cd_drive): New variable.
40092 (grub_biosdisk_get_drive): Don't check for (cdN) device.
40093 (grub_biosdisk_call_hook): Likewise.
40094 (grub_biosdisk_iterate): Change cdrom detection method.
40095 (grub_biosdisk_open): Replace cd_start with cd_drive.
40096 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
40097 detect cdrom device.
40098
40099 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
40100 Removed.
40101 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
40102 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
40103 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
40104 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
40105 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
40106 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
40107 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
40108 (grub_biosdisk_cdrp): New structure.
40109 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
40110
40111 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
40112
40113 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
40114 device.
40115
40116 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
40117 New function.
40118
40119 2008-03-20 Robert Millan <rmh@aybabtu.com>
40120
40121 Remove 2 TiB limit in ata.mod.
40122 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
40123 (grub_ata_dumpinfo): Print sector count with 0x%llx.
40124 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
40125 grub_uint64_t instead of grub_uint32_t.
40126
40127 2008-03-05 Bean <bean123ch@gmail.com>
40128
40129 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
40130 (grub_multiboot): Set boot device.
40131
40132 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
40133
40134 2008-03-02 Bean <bean123ch@gmail.com>
40135
40136 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
40137 symlink_buffer.
40138
40139 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
40140
40141 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
40142 texinfo.tex.
40143
40144 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
40145 modified.
40146
40147 * docs/fdl.texi: New file.
40148
40149 * docs/mdate-sh: New file. Copied from gnulib.
40150 * docs/texinfo.tex: Likewise.
40151
40152 * config.guess: Updated from gnulib.
40153 * install-sh: Likewise.
40154
40155 2008-02-28 Robert Millan <rmh@aybabtu.com>
40156
40157 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
40158 (aout_mod_SOURCES): New variable.
40159 (aout_mod_CFLAGS): Likewise.
40160 (aout_mod_LDFLAGS): Likewise.
40161
40162 * conf/i386-ieee1275.rmk: Likewise.
40163
40164 2008-02-28 Robert Millan <rmh@aybabtu.com>
40165
40166 * util/update-grub.in: Reorganise terminal validity check. Accept
40167 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
40168 Based on suggestion by Franklin PIAT.
40169
40170 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
40171
40172 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
40173 function.
40174 * util/getroot.c (grub_util_check_block_device): New function that
40175 returns the given argument if it is a block device and returns NULL else.
40176 * util/grub-probe.c (argument_is_device): New variable.
40177 (probe): Promote device_name from a variable to an argument. Receive
40178 device_name from grub_util_check_block_device() if path is NULL and from
40179 grub_guess_root_device() else. Do not free() device_name anymore.
40180 (options): Introduce new parameter '-d, --device'.
40181 (main): Add description of the new parameter to the help screen.
40182 Rename path variable to argument. Set argument_is_device if the '-d'
40183 option is given. Pass argument to probe() depending on
40184 argument_is_device.
40185
40186 2008-02-24 Bean <bean123ch@gmail.com>
40187
40188 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
40189 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
40190 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
40191 (GRUB_ISO9660_VOLDESC_PART): Likewise.
40192 (GRUB_ISO9660_VOLDESC_END): Likewise.
40193 (grub_iso9660_primary_voldesc): New member escape.
40194 (grub_iso9660_data): New member joliet.
40195 (grub_iso9660_convert_string): New function.
40196 (grub_iso9660_mount): Detect joliet extension.
40197 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
40198 (grub_iso9660_iso9660_label): Likewise.
40199
40200 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
40201 (grub_setup_SOURCES): Add fs/udf.c.
40202 (grub_fstest_SOURCES): Likewise.
40203 (udf_mod_SOURCES): New variable.
40204 (udf_mod_CFLAGS): Likewise.
40205 (udf_mod_LDFLAGS): Likewise.
40206
40207 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
40208 (grub_emu_SOURCES): Likewise.
40209
40210 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40211
40212 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40213
40214 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
40215
40216 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40217
40218 * fs/udf.c: New file.
40219
40220 2008-02-24 Robert Millan <rmh@aybabtu.com>
40221
40222 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
40223 (normal/lexer.c_DEPENDENCIES): New variables.
40224 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
40225 (normal/lexer.c_DEPENDENCIES): Likewise.
40226 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
40227 (normal/lexer.c_DEPENDENCIES): Likewise.
40228 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
40229 (normal/lexer.c_DEPENDENCIES): Likewise.
40230 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
40231 (normal/lexer.c_DEPENDENCIES): Likewise.
40232 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
40233 (normal/lexer.c_DEPENDENCIES): Likewise.
40234
40235 2008-02-23 Robert Millan <rmh@aybabtu.com>
40236
40237 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
40238 since they were intended to be in hex. This didn't break previously
40239 because of a bug in gpt_partition_map_iterate() (see below).
40240
40241 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
40242 when checking the validity of GPT header.
40243 Remove `partno', since it always provides the same information as `i'.
40244
40245 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
40246
40247 * include/grub/efi/time.h: Fix a wrong comment.
40248
40249 2008-02-19 Pavel Roskin <proski@gnu.org>
40250
40251 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
40252 message.
40253
40254 2008-02-19 Bean <bean123ch@gmail.com>
40255
40256 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
40257 (aout_mod_SOURCES): New variable.
40258 (aout_mod_CFLAGS): Likewise.
40259 (aout_mod_LDFLAGS): Likewise.
40260 (_bsd_mod_SOURCES): New variable.
40261 (_bsd_mod_CFLAGS): Likewise.
40262 (_bsd_mod_LDFLAGS): Likewise.
40263 (bsd_mod_SOURCES): New variable.
40264 (bsd_mod_CFLAGS): Likewise.
40265 (bsd_mod_LDFLAGS): Likewise.
40266
40267 * include/grub/aout.h: New file.
40268
40269 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
40270
40271 * include/grub/i386/bsd.h: New file.
40272
40273 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
40274 to make it public.
40275
40276 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
40277 function is called, so that it's possible to change it inside the hook.
40278 (grub_elf64_load): Likewise.
40279 (grub_elf_file): Don't close the file if elf header is not found.
40280 (grub_elf_close): Close the file if grub_elf_file fails (The new
40281 grub_elf_file won't close it).
40282 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
40283 (grub_elf64_size): Likewise.
40284
40285 * kern/i386/loader.S (grub_unix_real_boot): New function.
40286
40287 * loader/aout.c: New file.
40288
40289 * loader/i386/bsd.c: New file.
40290
40291 * loader/i386/bsd_normal.c: New file.
40292
40293 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
40294
40295 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
40296 can test other formats.
40297
40298 2008-02-19 Robert Millan <rmh@aybabtu.com>
40299
40300 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
40301 (grub_gpt_partition_type_empty): Redefine with macro from
40302 `<grub/gpt_partition.h>'.
40303 (gpt_partition_map_iterate): Adjust partition type comparison.
40304
40305 Export `entry' as partmap-specific `part.data' struct.
40306 (grub_gpt_header, grub_gpt_partentry): Move from here ...
40307
40308 * include/grub/gpt_partition.h (grub_gpt_header)
40309 (grub_gpt_partentry): ... to here (new file).
40310
40311 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
40312
40313 (grub_gpt_partition_type_bios_boot): New const variable, defined
40314 with macro from `<grub/gpt_partition.h>'.
40315
40316 (setup): Replace `first_start' with `embed_region', which keeps
40317 track of the embed region (and is partmap-agnostic).
40318
40319 Replace find_first_partition_start() with find_usable_region(),
40320 which finds a usable region for embedding using partmap-specific
40321 knowledge (supports PC/MSDOS and GPT).
40322
40323 Fix all assumptions that the embed region start at sector 1, using
40324 `embed_region.start' from now on. Similarly, use `embed_region.end'
40325 rather than `first_start' to calculate available size.
40326
40327 In grub_util_info() message, replace "into after the MBR" with an
40328 indication of the specific sector our embed region starts at.
40329
40330 2008-02-19 Robert Millan <rmh@aybabtu.com>
40331
40332 * DISTLIST: Replace `commands/ieee1275/halt.c' and
40333 `commands/ieee1275/reboot.c' with `commands/halt.c' and
40334 `commands/reboot.c'.
40335 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
40336 (halt_mod_SOURCES): Likewise.
40337 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
40338 (halt_mod_SOURCES): Likewise.
40339
40340 2008-02-17 Christian Franke <franke@computer.org>
40341
40342 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
40343
40344 2008-02-17 Robert Millan <rmh@aybabtu.com>
40345
40346 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
40347 set `first_start' to 0 for non-PC/MSDOS partition maps.
40348
40349 2008-02-16 Robert Millan <rmh@aybabtu.com>
40350
40351 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
40352 do not assume partition map is PC/MSDOS before performing checks that
40353 are specific to that layout.
40354
40355 2008-02-13 Robert Millan <rmh@aybabtu.com>
40356
40357 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
40358 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
40359 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
40360
40361 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
40362
40363 * configure.ac: Only a cosmetic change on the handling of
40364 -fno-stack-protector.
40365
40366 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
40367
40368 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
40369 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
40370 reboot.c.
40371 (grub_install_SOURCES): Add halt.mod and reboot.mod.
40372 (halt_mod_SOURCES): New variable.
40373 (halt_mod_CFLAGS): Likewise.
40374 (halt_mod_LDFLAGS): Likewise.
40375 (reboot_mod_SOURCES): Likewise.
40376 (reboot_mod_CFLAGS): Likewise.
40377 (reboot_mod_LDFLAGS): Likewise.
40378
40379 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
40380 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
40381 reboot.c.
40382 (halt_mod_SOURCES): Likewise.
40383 (reboot_mod_SOURCES): Likewise.
40384
40385 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
40386 commands/i386/pc/reboot.c by commands/reboot.c.
40387 (reboot_mod_SOURCES): Likewise.
40388
40389 * commands/i386/pc/reboot.c: merge this file ...
40390
40391 * commands/ieee1275/reboot.c: ... and this file ...
40392
40393 * commands/reboot.c: ... to this file.
40394 Add some precompiler directive to include the correct header for
40395 each machine.
40396
40397 * commands/ieee1275/halt.c: move this file ...
40398
40399 * commands/halt.c: ... to here.
40400 Add some precompiler directive to include the correct header for
40401 each machine.
40402
40403 * include/grub/efi/efi.h (grub_reboot): New function declaration.
40404 (grub_halt): Likewise.
40405
40406 * kern/efi/efi.c (grub_reboot): New function.
40407 (grub_halt): Likewise.
40408
40409 2008-02-12 Robert Millan <rmh@aybabtu.com>
40410
40411 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
40412 /dev (like it is done for /dev/mapper). This doesn't provide support
40413 for EVMS, but at least it is now easy to identify the problem when it
40414 arises.
40415
40416 2008-02-11 Robert Millan <rmh@aybabtu.com>
40417
40418 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
40419 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
40420 comparing it with -1, not 0.
40421
40422 2008-02-10 Robert Millan <rmh@aybabtu.com>
40423
40424 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
40425 `disk/lvm.c'.
40426 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40427 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
40428
40429 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
40430 `disk/lvm.c' to the end of the list.
40431 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
40432 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40433
40434 2008-02-10 Robert Millan <rmh@aybabtu.com>
40435
40436 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
40437 grub_print_error() instead. This will let user know why we're entering
40438 rescue mode.
40439 Based on suggestions from Sam Morris.
40440
40441 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
40442
40443 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
40444 on remaining N args, instead of "--" arg N times.
40445
40446 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
40447
40448 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
40449 (fill_with_default_glyph): Changed to use unknown_glyph for fill
40450 pattern for unknown glyphs.
40451
40452 2008-02-09 Robert Millan <rmh@aybabtu.com>
40453
40454 * configure.ac: Probe for `help2man'.
40455 * Makefile.in (builddir): New variable.
40456 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
40457 or otherwise add a few flags/options to it.
40458 (install-local): For every executable utility or script that is
40459 installed, invoke $(HELP2MAN) to install a manpage based on --help
40460 output.
40461
40462 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
40463 that it doesn't prevent --help from working in build tree.
40464
40465 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
40466 with `bug-grub@gnu.org'.
40467 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
40468 * util/update-grub.in (usage): New function.
40469 Implement proper argument check, with support for --help and --version
40470 (as well as existing -y).
40471
40472 2008-02-09 Christian Franke <franke@computer.org>
40473
40474 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
40475 avoid overwriting previous output.
40476 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
40477
40478 2008-02-09 Robert Millan <rmh@aybabtu.com>
40479
40480 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
40481 drawing the menu.
40482
40483 2008-02-09 Robert Millan <rmh@aybabtu.com>
40484
40485 * commands/sleep.c: New file.
40486 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
40487 (sleep_mod_SOURCES): New variable.
40488 (sleep_mod_CFLAGS): Likewise.
40489 (sleep_mod_LDFLAGS): Likewise.
40490
40491 2008-02-09 Robert Millan <rmh@aybabtu.com>
40492
40493 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
40494 situations in which we can deduce the RAID size and the superblock
40495 doesn't match it.
40496
40497 2008-02-09 Robert Millan <rmh@aybabtu.com>
40498
40499 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
40500 and return a grub_diskmemberlist_t composed of LVM physical volumes.
40501 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
40502
40503 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
40504 and return a grub_diskmemberlist_t composed of physical array members.
40505 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
40506
40507 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
40508 prototype.
40509 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
40510 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
40511 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
40512
40513 * util/grub-probe.c (probe): Move partmap probing code from here ...
40514 (probe_partmap): ... to here.
40515 (probe): Use probe_partmap() once for the disk we're probing, and
40516 additionally, when such disk contains a memberlist() struct member,
40517 once for each disk that is contained in the structure returned by
40518 memberlist().
40519
40520 2008-02-09 Robert Millan <rmh@aybabtu.com>
40521
40522 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
40523 environment variable to 'all' in order to obtain debug output from
40524 non-util/ code.
40525 * util/i386/pc/grub-setup.c (main): Likewise.
40526
40527 2008-02-08 Robert Millan <rmh@aybabtu.com>
40528
40529 * disk/raid.c (grub_raid_scan_device): Check for
40530 `array->device[sb.this_disk.number]' rather than for
40531 `array->device[sb.this_disk.number]->name', since the latter is not
40532 guaranteed to be accessible.
40533
40534 2008-02-08 Robert Millan <rmh@aybabtu.com>
40535
40536 * disk/raid.c: Update copyright.
40537 * fs/cpio.c: Likewise.
40538 * include/grub/raid.h: Likewise.
40539 * loader/i386/pc/multiboot.c: Likewise.
40540 * util/hostfs.c: Likewise.
40541
40542 2008-02-08 Robert Millan <rmh@aybabtu.com>
40543
40544 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
40545 to a grub_disk_t array.
40546 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
40547 `device[x]'.
40548 (grub_raid_scan_device): Replace `device[x].name' accesses with
40549 `device[x]->name'. Simplify initialization of `array->device[x]'.
40550
40551 2008-02-08 Robert Millan <rmh@aybabtu.com>
40552
40553 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
40554 grub_dprintf() calls.
40555 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
40556 error message.
40557
40558 2008-02-07 Christian Franke <franke@computer.org>
40559
40560 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
40561 instead of fseek and ftell to support large files.
40562 (grub_hostfs_read): Likewise.
40563
40564 2008-02-07 Robert Millan <rmh@aybabtu.com>
40565
40566 Patch from Jeroen Dekkers.
40567 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
40568 failure, since successfully reading all array members might not be
40569 required.
40570
40571 2008-02-06 Robert Millan <rmh@aybabtu.com>
40572
40573 * util/grub-probe.c (probe): Simplify partmap probing (with the
40574 assumption that the first word up to the underscore equals to
40575 the module name).
40576
40577 2008-02-06 Christian Franke <franke@computer.org>
40578
40579 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
40580 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
40581 last block of a cpio or tar stream.
40582 Check for "TRAILER!!!" instead of any empty data
40583 block to detect last block of a cpio stream.
40584 (grub_cpio_dir): Fix constness of variable np.
40585 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
40586 cpio or tar trailer is detected. This fixes a crash
40587 on open of a non existing file.
40588
40589 2008-02-05 Bean <bean123ch@gmail.com>
40590
40591 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
40592 address of entry.
40593 (grub_multiboot_load_elf64): Likewise.
40594 (grub_multiboot): Initialize mbi structure.
40595
40596 * util/grub-fstest.c: Don't include unused header file script.h.
40597
40598 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
40599 of file.
40600 (grub_fstest_SOURCES): Likewise.
40601
40602 2008-02-05 Robert Millan <rmh@aybabtu.com>
40603
40604 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
40605 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
40606 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
40607 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
40608
40609 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
40610 (translation_table): Replace hardcoded values with macros
40611 provided by `<grub/term.h>'.
40612
40613 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
40614 (keyboard_map): Correct/add a few values, with macros provided
40615 by `<grub/term.h>'.
40616 (keyboard_map_shift): Zero values that don't differ from their
40617 `keyboard_map' equivalents.
40618 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
40619 Discard the second scan code that is always sent by Caps lock.
40620 Only use `keyboard_map_shift' when it provides a non-zero value,
40621 otherwise fallback to `keyboard_map'.
40622
40623 2008-02-04 Bean <bean123ch@gmail.com>
40624
40625 * Makefile.in (enable_grub_fstest): New variable.
40626
40627 * conf/common.rmk (grub_fstest_init.lst): New rule.
40628 (grub_fstest_init.h): Likewise.
40629 (grub_fstest_init.c): Likewise.
40630 (util/grub-fstest.c_DEPENDENCIES): New variable.
40631 (grub_fstest_SOURCES): Likewise.
40632
40633 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
40634
40635 * util/grub-fstest.c: New file.
40636
40637 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
40638
40639 Make grub-setup handle a separate root device.
40640
40641 * util/i386/pc/grub-setup.c (setup): Always open the root device,
40642 so that the root device can be compared with the destination
40643 device.
40644 When embedding the core image, if the root and destination devices
40645 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
40646 0xFF.
40647 When not embedding, set ROOT_DRIVE to 0xFF.
40648
40649 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
40650
40651 Add support for having a grub directory in a different drive. This
40652 is still only the data handling part.
40653
40654 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
40655 (codestart): Save %dh in GRUB_ROOT_DRIVE.
40656 (grub_root_drive): New variable.
40657
40658 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
40659 instead of GRUB_BOOT_DRIVE to construct a device name. Set
40660 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
40661 as it was.
40662
40663 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
40664
40665 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
40666 macro.
40667 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
40668
40669 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
40670 is bogus, because PXE booting does not specify any drive
40671 correctly.
40672
40673 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
40674 am not sure if this is really correct.
40675
40676 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
40677 is always identical to the boot drive when booting from a CD.
40678
40679 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
40680 longer.
40681 (root_drive): New variable.
40682 (real_start): Unconditionally set %dh to ROOT_DRIVE.
40683 (setup_sectors): Push %dx right after popping it, because %dh will
40684 be modified later.
40685 (copy_buffer): Restore %dx.
40686
40687 2008-02-03 Robert Millan <rmh@aybabtu.com>
40688
40689 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
40690 use `cdboot.img' for cdrom images.
40691
40692 2008-02-03 Robert Millan <rmh@aybabtu.com>
40693
40694 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
40695 only setup gfxterm when `font' command has succeeded.
40696
40697 2008-02-03 Robert Millan <rmh@aybabtu.com>
40698
40699 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
40700 (grub_rescue_cmd_multiboot_loader)
40701 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
40702
40703 2008-02-03 Pavel Roskin <proski@gnu.org>
40704
40705 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
40706 %edx and %esi from stack only after grub_gate_a20() is called.
40707 grub_gate_a20() clobbers %edx.
40708
40709 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
40710
40711 * configure.ac (AC_INIT): Bumped to 1.96.
40712
40713 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
40714 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
40715 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
40716 video/readers/png.c.
40717
40718 2008-02-03 Bean <bean123ch@gmail.com>
40719
40720 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
40721 (cdboot_img_SOURCES): New variable.
40722 (cdboot_img_ASFLAGS): New variable.
40723 (cdboot_img_LDFLAGS): New variable.
40724
40725 * boot/i386/pc/cdboot.S: New file.
40726
40727 * disk/i386/pc/biosdisk.c (cd_start): New variable.
40728 (cd_count): Likewise.
40729 (grub_biosdisk_get_drive): Add support for cd device.
40730 (grub_biosdisk_call_hook): Likewise.
40731 (grub_biosdisk_iterate): Likewise.
40732 (grub_biosdisk_open): Likewise.
40733 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
40734 (grub_biosdisk_rw): Support reading from cd device.
40735 (GRUB_MOD_INIT): Iterate cd devices.
40736
40737 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
40738 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
40739 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
40740
40741 * kern/i386/pc/init.c (make_install_device): Check for cd device.
40742
40743 2008-02-02 Robert Millan <rmh@aybabtu.com>
40744
40745 * commands/read.c: New file.
40746 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
40747 (read_mod_SOURCES): New variable.
40748 (read_mod_CFLAGS): Likewise.
40749 (read_mod_LDFLAGS): Likewise.
40750
40751 2008-02-02 Robert Millan <rmh@aybabtu.com>
40752
40753 * normal/main.c (grub_normal_execute): Check for `menu->size' when
40754 determining whether menu has to be displayed.
40755
40756 2008-02-02 Marco Gerards <marco@gnu.org>
40757
40758 * bus/pci.c: New file.
40759
40760 * include/grub/pci.h: Likewise.
40761
40762 * include/grub/i386/pc/pci.h: Likewise.
40763
40764 * commands/lspci.c: Likewise.
40765
40766 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
40767 `lspci.mod'.
40768 (pci_mod_SOURCES): New variable.
40769 (pci_mod_CFLAGS): Likewise.
40770 (pci_mod_LDFLAGS): Likewise.
40771 (lspci_mod_SOURCES): Likewise.
40772 (lspci_mod_CFLAGS): Likewise.
40773 (lspci_mod_LDFLAGS): Likewise.
40774
40775 2008-02-02 Bean <bean123ch@gmail.com>
40776
40777 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
40778 (grub_ufs_get_file_block): Fix indirect block calculation problem.
40779
40780 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
40781 (grub_xfs_btree_node): New structure.
40782 (grub_xfs_btree_root): New structure.
40783 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
40784 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
40785 (GRUB_XFS_EXTENT_BLOCK): Likewise.
40786 (GRUB_XFS_EXTENT_SIZE): Likewise.
40787 (grub_xfs_read_block): Support btree format type.
40788 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
40789 Use directory block as basic unit.
40790
40791 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
40792
40793 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
40794 __attribute__ ((__regparm__ (1))).
40795
40796 2008-02-01 Robert Millan <rmh@aybabtu.com>
40797
40798 Correct a mistake in previous commit.
40799
40800 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
40801 top.
40802 (normal/command.c_DEPENDENCIES): New variable.
40803
40804 2008-02-01 Robert Millan <rmh@aybabtu.com>
40805
40806 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
40807 top.
40808 (normal/command.c_DEPENDENCIES): New variable.
40809 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
40810 * conf/i386-ieee1275.rmk: Likewise.
40811 * conf/i386-linuxbios.rmk: Likewise.
40812 * conf/i386-pc.rmk: Likewise.
40813 * conf/sparc64-ieee1275.rmk: Likewise.
40814 * conf/powerpc-ieee1275.rmk: Likewise.
40815 (grub_emu_SOURCES): Add `fs/fshelp.c'.
40816
40817 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
40818
40819 2008-02-01 Robert Millan <rmh@aybabtu.com>
40820
40821 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
40822 call at beginning of function.
40823
40824 2008-01-31 Pavel Roskin <proski@gnu.org>
40825
40826 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
40827 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
40828 (grub_mkrescue_SOURCES): Likewise.
40829 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
40830
40831 2008-01-30 Robert Millan <rmh@aybabtu.com>
40832
40833 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
40834 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
40835 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
40836 (grub_probe_SOURCES): ... to here.
40837
40838 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
40839 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
40840 * conf/i386-ieee1275.rmk: Likewise.
40841 * conf/i386-linuxbios.rmk: Likewise.
40842 * conf/powerpc-ieee1275.rmk: Likewise.
40843
40844 2008-01-30 Tristan Gingold <gingold@free.fr>
40845
40846 * kern/rescue.c: Silently accept empty lines.
40847
40848 2008-01-29 Bean <bean123ch@gmail.com>
40849
40850 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
40851 (real_code_2): Code cleanup and change comment style.
40852 (move_memory): Avoid using 32-bit address mode.
40853
40854 2008-01-29 Bean <bean123ch@gmail.com>
40855
40856 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
40857 (png_mod_SOURCES): New variable.
40858 (png_mod_CFLAGS): Likewise.
40859 (png_mod_LDFLAGS): Likewise.
40860
40861 * video/readers/png.c: New file.
40862
40863 2008-01-28 Robert Millan <rmh@aybabtu.com>
40864
40865 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
40866 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
40867 `ifndef GRUB_MOD_GAP' hack.
40868 * util/elf/grub-mkimage.c (add_segments): Likewise.
40869
40870 2008-01-27 Robert Millan <rmh@aybabtu.com>
40871
40872 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
40873 `GRUB_MOD_GAP' for platforms in which it's not defined.
40874 * util/elf/grub-mkimage.c (add_segments): Likewise.
40875
40876 2008-01-27 Robert Millan <rmh@aybabtu.com>
40877
40878 Get grub-emu to build again (including parallel builds).
40879
40880 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
40881 Split into ...
40882 (util/grub-emu.c_DEPENDENCIES): ... this, ...
40883 (normal/execute.c_DEPENDENCIES): ... this, ...
40884 (grub-emu_DEPENDENCIES): ... and this.
40885
40886 * conf/i386-efi.rmk: Likewise.
40887 * conf/i386-linuxbios.rmk: Likewise.
40888 * conf/i386-ieee1275.rmk: Likewise.
40889 * conf/powerpc-ieee1275.rmk: Likewise.
40890 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
40891
40892 2008-01-27 Robert Millan <rmh@aybabtu.com>
40893
40894 * NEWS: Add a few items.
40895
40896 2008-01-27 Robert Millan <rmh@aybabtu.com>
40897
40898 Fix parallel builds with grub-emu. Based on earlier commit for
40899 grub-probe and grub-setup.
40900
40901 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40902 (util/grub-emu.c_DEPENDENCIES): ... this.
40903 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40904 (util/grub-emu.c_DEPENDENCIES): ... this.
40905 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40906 (util/grub-emu.c_DEPENDENCIES): ... this.
40907 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40908 (util/grub-emu.c_DEPENDENCIES): ... this.
40909 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
40910 (util/grub-emu.c_DEPENDENCIES): ... this.
40911
40912 2008-01-27 Pavel Roskin <proski@gnu.org>
40913
40914 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
40915 to create a gap between _end and the modules added to the image
40916 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
40917 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
40918 * util/elf/grub-mkimage.c (add_segments): Likewise.
40919
40920 2008-01-26 Pavel Roskin <proski@gnu.org>
40921
40922 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
40923 just return an error.
40924
40925 2008-01-26 Bean <bean123ch@gmail.com>
40926
40927 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
40928 (grub_reiserfs_get_item): Save offset of the next item.
40929 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
40930
40931 2008-01-25 Robert Millan <rmh@aybabtu.com>
40932
40933 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
40934 make all filesystem sources appear together (possibly fixing omissions
40935 while at it).
40936 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40937 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40938 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
40939 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40940
40941 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
40942 add `kern/file.c'.
40943 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
40944 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
40945 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
40946 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
40947
40948 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
40949 (probe): Add a sanity check to make sure of our ability to read
40950 requested files when probing for filesystem type.
40951
40952 * genmk.rb: Update copyright year (2007).
40953
40954 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
40955 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
40956 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
40957 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
40958 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
40959 : Remove function prototypes.
40960
40961 2008-01-25 Robert Millan <rmh@aybabtu.com>
40962
40963 Revert my previous commits (based on wrong assumption of how grub_errno
40964 works).
40965
40966 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
40967 * kern/file.c (grub_file_open): Likewise.
40968
40969 2008-01-24 Pavel Roskin <proski@gnu.org>
40970
40971 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
40972 that hang if GRUB tries to setup colors.
40973 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
40974 colors for firmwares that don't support it.
40975 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
40976 Recognize Open Hack'Ware, set flags to work around its
40977 limitations.
40978
40979 2008-01-24 Robert Millan <rmh@aybabtu.com>
40980
40981 * kern/file.c (grub_file_open): Do not account previous failures of
40982 unrelated functions when grub_errno is checked for.
40983 Reported by Oleg Strikov.
40984
40985 2008-01-24 Bean <bean123ch@gmail.com>
40986
40987 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
40988 (grub_ufs_sblock): New member volume name.
40989 (grub_ufs_find_file): Fix string copy bug.
40990 (grub_ufs_label): Implement this function properly.
40991
40992 * fs/hfs.c (grub_hfs_cnid_type): New enum.
40993 (grub_hfs_iterate_records): Use the correct file number for extents
40994 and catalog file. Fix problem in next index calculation.
40995 (grub_hfs_find_node): Replace recursive function call with loop.
40996 (grub_hfs_iterate_dir): Replace recursive function call with loop.
40997
40998 2008-01-23 Robert Millan <rmh@aybabtu.com>
40999
41000 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
41001 `<grub/symbol.h>' and `<grub/multiboot.h>'.
41002 (grub_multiboot2_real_boot): New function prototype.
41003
41004 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
41005 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
41006
41007 * kern/i386/ieee1275/init.c (grub_os_area_addr)
41008 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
41009
41010 2008-01-23 Robert Millan <rmh@aybabtu.com>
41011
41012 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
41013 #ifdef'ed out grub_printf().
41014
41015 2008-01-23 Robert Millan <rmh@aybabtu.com>
41016
41017 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
41018 grub_dprintf calls, since they make "debug=all" mode unusable.
41019 (grub_console_checkkey): Likewise.
41020
41021 2008-01-23 Robert Millan <rmh@aybabtu.com>
41022
41023 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41024 `term/i386/pc/at_keyboard.c'.
41025 (pkglib_MODULES): Add `serial.mod'.
41026 (serial_mod_SOURCES): New variable.
41027 (serial_mod_CFLAGS): Likewise.
41028 (serial_mod_LDFLAGS): Likewise.
41029
41030 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
41031 `<grub/powerpc/ieee1275/console.h>'.
41032 (grub_keyboard_controller_init): New function prototype.
41033 (grub_console_checkkey): Likewise.
41034 (grub_console_getkey): Likewise.
41035
41036 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
41037 keyboard on i386.
41038
41039 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
41040 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
41041
41042 2008-01-23 Robert Millan <rmh@aybabtu.com>
41043
41044 * kern/i386/pc/init.c (make_install_device): When memdisk image is
41045 present, "(memdisk)/boot/grub" becomes the default prefix.
41046
41047 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
41048 a memdisk tarball with all the modules. Add --overlay=DIR option that
41049 allows users to overlay additional files into the image.
41050
41051 2008-01-23 Robert Millan <rmh@aybabtu.com>
41052
41053 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
41054 and `machine/memory.h'.
41055 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
41056 (_multiboot_mod_SOURCES): New variable.
41057 (_multiboot_mod_CFLAGS): Likewise.
41058 (_multiboot_mod_LDFLAGS): Likewise.
41059 (multiboot_mod_SOURCES): Likewise.
41060 (multiboot_mod_CFLAGS): Likewise.
41061 (multiboot_mod_LDFLAGS): Likewise.
41062
41063 * include/grub/i386/ieee1275/loader.h: New file.
41064
41065 * include/grub/i386/ieee1275/machine.h: Likewise.
41066
41067 * include/grub/i386/ieee1275/memory.h: Likewise.
41068
41069 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
41070 variable declaration.
41071 (grub_os_area_size): Likewise.
41072
41073 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
41074 (grub_lower_mem, grub_upper_mem): New variables.
41075 (grub_stop_floppy): New function (just to make
41076 grub_multiboot2_real_boot() happy).
41077
41078 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
41079 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
41080 (grub_stop): New function.
41081 Include `"../realmode.S"' and `"../loader.S"'.
41082
41083 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
41084 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
41085
41086 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
41087 rely on grub_multiboot2_real_boot() for final boot.
41088
41089 2008-01-22 Robert Millan <rmh@aybabtu.com>
41090
41091 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
41092 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
41093 device that doesn't look like an SD card.
41094 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
41095 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
41096 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
41097 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
41098 found.
41099
41100 2008-01-22 Robert Millan <rmh@aybabtu.com>
41101
41102 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
41103 avoid claiming over our own code.
41104
41105 2008-01-22 Bean <bean123ch@gmail.com>
41106
41107 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
41108 (jpeg_mod_SOURCES): New variable.
41109 (jpeg_mod_CFLAGS): Likewise.
41110 (jpeg_mod_LDFLAGS): Likewise.
41111
41112 * video/readers/jpeg.c : New file.
41113
41114 2008-01-22 Bean <bean123ch@gmail.com>
41115
41116 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
41117 there are no more items.
41118
41119 2008-01-21 Robert Millan <rmh@aybabtu.com>
41120
41121 * kern/mm.c (grub_mm_init_region): Improve debug message.
41122
41123 2008-01-21 Robert Millan <rmh@aybabtu.com>
41124
41125 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
41126 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
41127 address.
41128 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
41129 a C macro.
41130 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
41131 Indicates start of upper memory.
41132 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
41133 (generate_image): Abort when image size is big enough to corrupt
41134 upper memory.
41135
41136 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
41137 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
41138 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
41139 instead of hardcoding 0xA0000.
41140 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
41141 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
41142 instead of hardcoding 0xA0000.
41143
41144 2008-01-21 Robert Millan <rmh@aybabtu.com>
41145
41146 * disk/memdisk.c (memdisk_size): New variable.
41147 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
41148 `memdisk_size'.
41149 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
41150 image to dynamic memory.
41151 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
41152 `memdisk_size'. Free memdisk block.
41153
41154 2008-01-21 Robert Millan <rmh@aybabtu.com>
41155
41156 Fix detection of very small filesystems (like tar).
41157
41158 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
41159 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
41160 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
41161 a problem with this disk).
41162
41163 2008-01-21 Robert Millan <rmh@aybabtu.com>
41164
41165 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
41166 on grub_biosdisk_rw_standard() error.
41167
41168 2008-01-21 Robert Millan <rmh@aybabtu.com>
41169
41170 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
41171 recent changes.
41172 * kern/elf.c: Likewise.
41173 * kern/ieee1275/ieee1275.c: Likewise.
41174 * kern/powerpc/ieee1275/openfw.c: Likewise.
41175 * term/ieee1275/ofconsole.c: Likewise.
41176
41177 2008-01-21 Robert Millan <rmh@aybabtu.com>
41178
41179 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
41180
41181 * include/grub/kernel.h (grub_arch_memdisk_addr)
41182 (grub_arch_memdisk_size): Moved from here ...
41183
41184 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
41185 (grub_arch_memdisk_size): ... to here.
41186
41187 2008-01-21 Robert Millan <rmh@aybabtu.com>
41188
41189 Mostly based on bugfix from Bean.
41190
41191 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
41192 attribute with hook() parameter.
41193 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
41194 declaration.
41195 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
41196 attribute with hook() parameter.
41197 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
41198 declaration.
41199
41200 2008-01-21 Robert Millan <rmh@aybabtu.com>
41201
41202 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
41203 (pkglib_MODULES): Add `memdisk.mod'.
41204 (memdisk_mod_SOURCES): New variable.
41205 (memdisk_mod_CFLAGS): Likewise.
41206 (memdisk_mod_LDFLAGS): Likewise.
41207
41208 * disk/memdisk.c: New file.
41209
41210 * include/grub/disk.h (grub_disk_dev_id): Add
41211 `GRUB_DISK_DEVICE_MEMDISK_ID'.
41212
41213 * include/grub/i386/pc/kernel.h
41214 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
41215 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
41216 (grub_kernel_image_size): New variable declaration.
41217 (grub_total_module_size): Likewise.
41218 (grub_memdisk_image_size): Likewise.
41219
41220 * include/grub/i386/pc/memory.h
41221 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
41222
41223 * include/grub/kernel.h: Include `<grub/symbol.h>'.
41224 (grub_arch_memdisk_addr): New variable declaration.
41225 (grub_arch_memdisk_size): Likewise.
41226
41227 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
41228 (grub_arch_memdisk_size): Likewise.
41229
41230 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
41231 (codestart): Replace hardcoded `0x100000' with
41232 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
41233
41234 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
41235 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
41236 not NULL, append the contents of the file it refers to, at the end of
41237 the compressed kernel image. Initialize `grub_memdisk_image_size'
41238 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
41239 (options): Add "memdisk"|'m' option.
41240 (main): Parse --memdisk|-m option, and pass user-provided path as
41241 parameter to generate_image().
41242
41243 2008-01-20 Robert Millan <rmh@aybabtu.com>
41244
41245 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
41246 grub_dprintf() calls from here ...
41247 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
41248
41249 2008-01-20 Robert Millan <rmh@aybabtu.com>
41250
41251 Fix detection of "real mode" when /options/real-mode? doesn't exist.
41252
41253 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
41254 declaration.
41255 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
41256 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
41257 `GRUB_IEEE1275_FLAG_REAL_MODE'.
41258 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
41259 property).
41260 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
41261 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
41262
41263 2008-01-19 Robert Millan <rmh@aybabtu.com>
41264
41265 Get rid of confusing function (superseded by
41266 `grub_ieee1275_get_integer_property')
41267 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
41268 prototype.
41269 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
41270 function.
41271 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
41272 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
41273 in native endianness from grub_ieee1275_get_integer_property().
41274
41275 2008-01-19 Robert Millan <rmh@aybabtu.com>
41276
41277 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
41278 command after "shut-down", since implementations differ on which
41279 the command for halt is.
41280
41281 2008-01-19 Robert Millan <rmh@aybabtu.com>
41282
41283 * include/grub/i386/linuxbios/console.h: Add header protection.
41284 (grub_keyboard_controller_init): New function prototype.
41285 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
41286 (KEYBOARD_COMMAND_READ): Likewise.
41287 (KEYBOARD_COMMAND_WRITE): Likewise.
41288 (KEYBOARD_SCANCODE_SET1): Likewise.
41289 (grub_keyboard_controller_write): New function.
41290 (grub_keyboard_controller_read): Likewise.
41291 (grub_keyboard_controller_init): Likewise.
41292
41293 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
41294 (grub_console_init): On coreboot/LinuxBIOS, call
41295 grub_keyboard_controller_init().
41296
41297 2008-01-19 Robert Millan <rmh@aybabtu.com>
41298
41299 PowerPC changes provided by Pavel Roskin.
41300
41301 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
41302 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
41303 don't rely on cmain() doing it.
41304 * kern/i386/ieee1275/startup.S (_start): Store %eax in
41305 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
41306
41307 2008-01-16 Robert Millan <rmh@aybabtu.com>
41308
41309 * include/grub/i386/linuxbios/memory.h
41310 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
41311 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
41312 receive `table_header' as argument. Instead, probe for it in the
41313 known memory ranges where it can be present.
41314 (grub_available_iterate): Do not pass a fixed `table_header' address
41315 to grub_linuxbios_table_iterate().
41316
41317 2008-01-15 Robert Millan <rmh@aybabtu.com>
41318
41319 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
41320 * conf/i386-ieee1275.rmk: New file.
41321 * include/grub/i386/ieee1275/console.h: Likewise.
41322 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
41323 * include/grub/i386/ieee1275/kernel.h: Likewise.
41324 * include/grub/i386/ieee1275/time.h: Likewise.
41325 * kern/i386/ieee1275/init.c: Likewise.
41326 * kern/i386/ieee1275/startup.S: Likewise.
41327
41328 2008-01-15 Robert Millan <rmh@aybabtu.com>
41329
41330 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
41331 when pointers are 32-bit (but still do set it to one when they are
41332 64-bit).
41333
41334 2008-01-15 Robert Millan <rmh@aybabtu.com>
41335
41336 * include/grub/ieee1275/ieee1275.h
41337 (grub_ieee1275_get_integer_property): New function prototype.
41338
41339 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
41340 (grub_ieee1275_get_integer_property): New function. Wraps around
41341 grub_ieee1275_get_property() to handle endianness.
41342
41343 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
41344 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
41345 where appropriate.
41346 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
41347 (grub_map): Likewise.
41348 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
41349
41350 2008-01-15 Bean <bean123ch@gmail.com>
41351
41352 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
41353 (grub_script_execute_cmdline): Reset grub_errno.
41354
41355 * normal/main.c (read_config_file): Reset grub_errno.
41356
41357 * normal/parse.y (script_init): New.
41358 (script): Move function and menuentry here.
41359 (delimiter): New.
41360 (command): Add delimiter at the end of command.
41361 (commands): Adjust to match the new command.
41362 (commandblock): Remove grub_script_lexer_record_start.
41363 (menuentry): Add grub_script_lexer_record_start, use the new commands.
41364 (if): Use the new commands.
41365
41366 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
41367
41368 2008-01-15 Robert Millan <rmh@aybabtu.com>
41369
41370 * normal/menu.c (run_menu): Move timeout message from here ...
41371 (print_timeout): ... to here.
41372 (run_menu): Use print_timeout() once during initial draw to print
41373 the whole message, and again in every clock tick to update only
41374 the number of seconds.
41375
41376 2008-01-15 Robert Millan <rmh@aybabtu.com>
41377
41378 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
41379 actual size of `available' from grub_ieee1275_get_property(), and
41380 restrict parsing to that bound.
41381
41382 2008-01-15 Christian Franke <franke@computer.org>
41383
41384 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
41385 (argp_program_version): Remove variable.
41386 (argp_program_bug_address): Likewise.
41387 (options): Convert from struct argp_option to struct option.
41388 (struct arguments): Remove.
41389 (parse_opt): Remove.
41390 (usage): New function.
41391 (main): Replace struct args members by simple variables.
41392 Replace argp_parse() by getopt_long().
41393 Add switch to evaluate options.
41394 Add missing "(...)" around root_dev in prefix string.
41395
41396 2008-01-14 Robert Millan <rmh@aybabtu.com>
41397
41398 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
41399 for grub_ieee1275_exit(), in order to improve portability.
41400
41401 2008-01-14 Robert Millan <rmh@aybabtu.com>
41402
41403 * util/grub.d/10_linux.in (prefix): Define.
41404 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
41405
41406 2008-01-13 Pavel Roskin <proski@gnu.org>
41407
41408 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
41409 grub_errno if no errors have been detected.
41410
41411 2008-01-12 Robert Millan <rmh@aybabtu.com>
41412
41413 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
41414 (grub_util_get_dev_abstraction): New function prototype.
41415
41416 * util/getroot.c: Include `<grub/util/getroot.h>'
41417 (grub_util_get_grub_dev): Move detection of abstraction type to ...
41418 (grub_util_get_dev_abstraction): ... here (new function).
41419
41420 * util/grub-probe.c: Convert PRINT_* to an enum. Add
41421 `PRINT_ABSTRACTION'.
41422 (probe): Probe for abstraction type when requested.
41423 (main): Understand `--target=abstraction'.
41424
41425 * util/i386/efi/grub-install.in: Add abstraction module to core
41426 image when it is found to be necessary.
41427 * util/i386/pc/grub-install.in: Likewise.
41428 * util/powerpc/ieee1275/grub-install.in: Likewise.
41429
41430 * util/update-grub_lib.in (font_path): Return system path without
41431 converting to GRUB path.
41432 * util/update-grub.in: Convert system path returned by font_path()
41433 to a GRUB path. Use `grub-probe -t abstraction' to determine what
41434 abstraction module is needed for loading fonts (if any). Export
41435 that as `GRUB_PRELOAD_MODULES'.
41436 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
41437 insmod commands).
41438
41439 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
41440
41441 Remove some unused code from reiserfs.
41442
41443 * fs/reiserfs.c (struct grub_reiserfs_key)
41444 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
41445 (struct grub_reiserfs_node_body): Removed.
41446 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
41447 Likewise.
41448 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
41449 Likewise.
41450 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
41451 Likewise.
41452 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
41453 Likewise.
41454 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
41455 Likewise.
41456 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
41457 Likewise.
41458 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
41459 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
41460 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
41461
41462 2008-01-10 Robert Millan <rmh@aybabtu.com>
41463
41464 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
41465 Determines if a file is garbage left by packaging systems, etc.
41466 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
41467 for processing /etc/grub.d scripts.
41468 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
41469 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
41470 as a condition for processing Linux images.
41471
41472 2008-01-10 Pavel Roskin <proski@gnu.org>
41473
41474 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
41475 to compile reiserfs.c on PowerPC.
41476
41477 2008-01-10 Robert Millan <rmh@aybabtu.com>
41478
41479 * kern/device.c (grub_device_iterate): Do not abort device iteration
41480 when one of the devices cannot be opened.
41481 * kern/disk.c (grub_disk_open): Do not account previous failures of
41482 unrelated functions when grub_errno is checked for.
41483
41484 2008-01-08 Robert Millan <rmh@aybabtu.com>
41485
41486 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
41487 `! grub_linux_is_bzimage', change order of address comparison to make
41488 it more intuitive, and improve "too big zImage" error message.
41489
41490 2008-01-08 Robert Millan <rmh@aybabtu.com>
41491
41492 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
41493 `$(update-grub_DATA)'.
41494 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
41495 targets.
41496
41497 2008-01-07 Robert Millan <rmh@aybabtu.com>
41498
41499 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
41500 which instruction is modified by grub-setup during installation
41501 (since it wasn't obvious by only looking at this file).
41502
41503 2008-01-07 Robert Millan <rmh@aybabtu.com>
41504
41505 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
41506 listing actual TODO items.
41507
41508 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
41509
41510 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
41511 correctly.
41512 (grub_reiserfs_get_key_offset): Likewise.
41513 (grub_reiserfs_set_key_offset): Likewise.
41514 (grub_reiserfs_set_key_type): Likewise.
41515 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
41516
41517 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
41518 better to remove the bitfield version completely.
41519
41520 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
41521
41522 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
41523 allocated from the heap, due to the fshelp implementation.
41524 (grub_reiserfs_dir): Free NODE, due to the same reason.
41525
41526 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
41527
41528 Mostly from Vincent Pelletier:
41529
41530 * fs/reiserfs.c: New file.
41531
41532 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
41533 (reiserfs_mod_SOURCES): New variable.
41534 (reiserfs_mod_CFLAGS): Likewise.
41535 (reiserfs_mod_LDFLAGS): Likewise.
41536
41537 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
41538 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
41539 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
41540 normal/color.c.
41541
41542 2008-01-06 Robert Millan <rmh@aybabtu.com>
41543
41544 * normal/color.c: Remove `<grub/env.h>'.
41545
41546 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
41547
41548 * include/grub/normal.h: Include <grub/env.h>.
41549
41550 2008-01-05 Robert Millan <rmh@aybabtu.com>
41551
41552 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
41553 usage example with `(hd0,1)'.
41554 Reported by Samuel Thibault.
41555
41556 2008-01-05 Robert Millan <rmh@aybabtu.com>
41557
41558 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
41559 (grub_linux_boot_zimage): Rename to ...
41560 (grub_linux_boot): ... this.
41561 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
41562 (grub_linux_boot_zimage): Conditionalize zImage copy.
41563
41564 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
41565 (grub_linux_boot_bzimage): Remove prototype.
41566 (grub_linux_boot_zimage): Rename to ...
41567 (grub_linux_boot): ... this.
41568
41569 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
41570 (grub_linux_boot): Remove function.
41571
41572 2008-01-05 Robert Millan <rmh@aybabtu.com>
41573
41574 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
41575 (grub_env_write_color_highlight): Likewise.
41576 (grub_wait_after_message): Likewise.
41577
41578 * normal/color.c: New file.
41579
41580 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
41581 (normal_mod_DEPENDENCIES): Likewise.
41582
41583 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
41584 (normal_mod_DEPENDENCIES): Likewise.
41585
41586 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
41587 (normal_mod_DEPENDENCIES): Likewise.
41588
41589 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
41590 (normal_mod_DEPENDENCIES): Likewise.
41591
41592 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
41593 for waiting after a message is printed.
41594 * normal/main.c (read_config_file): Likewise.
41595 (grub_normal_init): Register grub_env_write_color_normal() and
41596 grub_env_write_color_highlight() hooks. Mark `color_normal' and
41597 `color_highlight' variables as global.
41598
41599 * normal/menu.c (grub_wait_after_message): New function.
41600 (grub_color_menu_normal): New variable. Replaces ...
41601 (GRUB_COLOR_MENU_NORMAL): ... this macro.
41602 (grub_color_menu_highlight): New variable. Replaces ...
41603 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
41604 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
41605 `GRUB_TERM_COLOR_STANDARD'.
41606 (print_message): Use `grub_setcolorstate' to reload colors. Rename
41607 `normal_code' and `highlight_code' to `old_color_normal' and
41608 `old_color_highlight', respectively.
41609 (grub_menu_init_page): Update colors when drawing the menu, based on
41610 `menu_color_normal' and `menu_color_highlight' variables.
41611 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
41612 a message is printed.
41613
41614 2008-01-05 Robert Millan <rmh@aybabtu.com>
41615
41616 * kern/env.c (grub_env_context_open): Propagate hooks for global
41617 variables to new context.
41618
41619 * kern/main.c (grub_set_root_dev): Export `root' variable.
41620
41621 2008-01-05 Robert Millan <rmh@aybabtu.com>
41622
41623 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
41624 discs unconditionally, since udev and others have options to provide
41625 them.
41626
41627 2008-01-05 Robert Millan <rmh@aybabtu.com>
41628
41629 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
41630
41631 2008-01-04 Christian Franke <franke@computer.org>
41632
41633 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
41634 of eisa_mmap.
41635
41636 2008-01-03 Pavel Roskin <proski@gnu.org>
41637
41638 * kern/i386/linuxbios/init.c: Put "void" to all function
41639 declarations with no arguments.
41640 * kern/powerpc/ieee1275/init.c: Likewise.
41641 * term/i386/pc/at_keyboard.c: Likewise.
41642 * term/i386/pc/vga_text.c: Likewise.
41643 * util/grub-mkdevicemap.c: Likewise.
41644
41645 2008-01-02 Robert Millan <rmh@aybabtu.com>
41646
41647 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
41648 message when loaded image is out of bounds.
41649 (grub_multiboot_load_elf64): Likewise.
41650
41651 2008-01-02 Pavel Roskin <proski@gnu.org>
41652
41653 * util/grub.d/10_linux.in: Try version without ".old" when
41654 looking for initrd. It's better to use initrd from the newer
41655 kernel of the same version than no initrd at all.
41656
41657 2008-01-01 Robert Millan <rmh@aybabtu.com>
41658
41659 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
41660
41661 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
41662
41663 * include/grub/video.h: Added grub_video_unmap_color and
41664 grub_video_get_active_render_target.
41665 (grub_video_adapter): Added unmap_color and get_active_render_target.
41666
41667 * video/video.c: Added grub_video_unmap_color and
41668 grub_video_get_active_render_target.
41669 (grub_video_get_info): Changed method to accept NULL pointer as an
41670 argument to allow detection of active video adapter.
41671
41672 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
41673 grub_video_vbe_unmap_color_int.
41674 Added grub_video_vbe_unmap_color and
41675 grub_video_vbe_get_active_render_target.
41676 (grub_video_vbe_adapter): Added unmap_color and
41677 get_active_render_target.
41678
41679 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
41680 with grub_video_vbe_unmap_color_int.
41681
41682 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
41683 (DEFAULT_NORMAL_COLOR): Likewise.
41684 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
41685 (DEFAULT_FG_COLOR): Removed.
41686 (DEFAULT_BG_COLOR): Likewise.
41687 (DEFAULT_CURSOR_COLOR): Changed value.
41688 (grub_virtual_screen): Added standard_color_setting,
41689 normal_color_setting, highlight_color_setting and term_color.
41690 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
41691 (bitmap_width): Added.
41692 (bitmap_height): Likewise.
41693 (bitmap): Likewise.
41694 (set_term_color): Likewise.
41695 (grub_virtual_screen_setup): Changed to use new terminal coloring
41696 settings.
41697 (grub_gfxterm_init): Added init for bitmap.
41698 (grub_gfxterm_fini): Added destroy for bitmap.
41699 (redraw_screen_rect): Updated to use background bitmap and new
41700 terminal coloring.
41701 (scroll_up): Added optimization for case when there is no bitmap.
41702 (grub_gfxterm_cls): Fixed to use correct background color.
41703 (grub_virtual_screen_setcolorstate): Changed to use new terminal
41704 coloring.
41705 (grub_virtual_screen_setcolor): Likewise.
41706 (grub_virtual_screen_getcolor): Added.
41707 (grub_gfxterm_background_image_cmd): Likewise.
41708 (grub_video_term): Added setcolor and getcolor.
41709 (MOD_INIT): Added registration of background_image command.
41710 (MOD_TERM): Added unregistration for background_image command.
41711
41712 2007-12-30 Pavel Roskin <proski@gnu.org>
41713
41714 * loader/multiboot_loader.c: Fix multiboot command
41715 unregistration. Fix all typos in the word "multiboot".
41716
41717 2007-12-29 Pavel Roskin <proski@gnu.org>
41718
41719 * util/grub.d/10_linux.in: Refactor search for initrd. Add
41720 support for initrd names used in Fedora.
41721
41722 2007-12-26 Bean <bean123ch@gmail.com>
41723
41724 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
41725 (cpio_mod_SOURCES): New variable.
41726 (cpio_mod_CFLAGS): Likewise.
41727 (cpio_mod_LDFLAGS): Likewise.
41728
41729 * fs/cpio.c: New file.
41730
41731 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
41732
41733 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41734
41735 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
41736
41737 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41738
41739 2007-12-25 Robert Millan <rmh@aybabtu.com>
41740
41741 * include/grub/term.h (struct grub_term): Add `getcolor' function.
41742 (grub_getcolor): New function.
41743
41744 * kern/term.c (grub_getcolor): New function.
41745 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
41746 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
41747 (print_entry): Set normal and highlight colors to
41748 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
41749 respectively, before printing and restore them to old
41750 values afterwards.
41751 (grub_menu_init_page): Likewise. Fill an additional colored space
41752 that would otherwise be left blank.
41753
41754 * term/efi/console.c (grub_console_getcolor): New function.
41755 (struct grub_console_term.getcolor): New variable.
41756 * term/i386/pc/console.c (grub_console_getcolor): New function.
41757 (struct grub_console_term.getcolor): New variable.
41758 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
41759 (struct grub_console_term.getcolor): New variable.
41760
41761 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
41762 (struct grub_console_term.setcolor): Remove variable.
41763 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
41764 (struct grub_console_term.setcolor): Remove variable.
41765 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
41766 (struct grub_console_term.setcolor): Remove variable.
41767 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
41768 (struct grub_console_term.setcolor): Remove variable.
41769
41770 2007-12-25 Robert Millan <rmh@aybabtu.com>
41771
41772 * configure.ac: Search for possible unifont.hex locations, and
41773 define UNIFONT_HEX if found.
41774
41775 * Makefile.in (UNIFONT_HEX): Define variable.
41776 (DATA): Rename to ...
41777 (PKGLIB): ... this. Update all users.
41778 (PKGDATA): New variable.
41779 (pkgdata_IMAGES): Rename to ...
41780 (pkglib_IMAGES): ... this. Update all users.
41781 (pkgdata_MODULES): Rename to ...
41782 (pkglib_MODULES): ... this. Update all users.
41783 (pkgdata_PROGRAMS): Rename to ...
41784 (pkglib_PROGRAMS): ... this. Update all users.
41785 (pkgdata_DATA): Rename to ...
41786 (pkglib_DATA): ... this. Update all users.
41787 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
41788 (unicode.pff, ascii.pff): New rules.
41789 (all-local): Add `$(PKGDATA)' dependency.
41790 (install-local): Process `$(PKGDATA)'.
41791
41792 * util/update-grub_lib.in (font_path): Search for *.pff files in
41793 a few more locations, including `${pkgdata}'.
41794
41795 2007-12-23 Robert Millan <rmh@aybabtu.com>
41796
41797 Patch from Bean <bean123ch@gmail.com>:
41798 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
41799 `size'.
41800
41801 2007-12-21 Bean <bean123ch@gmail.com>
41802
41803 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
41804 (ntfscomp_mod_SOURCES): New variable.
41805 (ntfscomp_mod_CFLAGS): Likewise.
41806 (ntfscomp_mod_LDFLAGS): Likewise.
41807
41808 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
41809 (grub_probe_SOURCES): Likewise.
41810 (grub_emu_SOURCES): Likewise.
41811
41812 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
41813 (grub_emu_SOURCES): Likewise.
41814
41815 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
41816 (grub_emu_SOURCES): Likewise.
41817
41818 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
41819 (grub_emu_SOURCES): Likewise.
41820
41821 * fs/ntfs.c (grub_ntfscomp_func): New variable.
41822 (read_run_list): Renamed to grub_ntfs_read_run_list.
41823 (decomp_nextvcn): Moved to ntfscomp.c.
41824 (decomp_getch): Likewise.
41825 (decomp_get16): Likewise.
41826 (decomp_block): Likewise.
41827 (read_block): Likewise.
41828 (read_data): Partially moved to ntfscomp.c.
41829 (fixup): Change unsigned to grub_uint16_t.
41830 (read_mft): Change unsigned long to grub_uint32_t.
41831 (read_attr): Likewise.
41832 (read_data): Likewise.
41833 (read_run_data): Likewise.
41834 (read_run_list): Likewise.
41835 (read_mft): Likewise.
41836
41837 * fs/ntfscomp.c: New file.
41838
41839 * include/grub/ntfs.h: New file.
41840
41841 2007-12-16 Robert Millan <rmh@aybabtu.com>
41842
41843 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
41844 IDE disk check, since Linux is known to support 20 IDE disks.
41845 Reported by Colin Watson.
41846
41847 2007-12-15 Bean <bean123ch@gmail.com>
41848
41849 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
41850 (lnxboot_img_SOURCES): New variable.
41851 (lnxboot_img_ASFLAGS): Likewise.
41852 (lnxboot_img_LDFLAGS): Likewise.
41853
41854 * boot/i386/pc/lnxboot.S: New file.
41855
41856 2007-11-24 Pavel Roskin <proski@gnu.org>
41857
41858 * configure.ac: Test if '--build-id=none' is supported by the
41859 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
41860 objcopy to generate incorrect binary files (binutils
41861 2.17.50.0.18-1 as shipped by Fedora 8).
41862 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
41863 linking, so that build ID doesn't break the test.
41864
41865 2007-11-24 Pavel Roskin <proski@gnu.org>
41866
41867 * include/grub/i386/time.h: use "void" in the argument list
41868 of grub_cpu_idle().
41869 * include/grub/powerpc/time.h: Likewise.
41870 * include/grub/sparc64/time.h: Likewise.
41871
41872 2007-11-18 Christian Franke <franke@computer.org>
41873
41874 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
41875 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
41876 This fixes the problem that function keys did not work in grub-emu.
41877
41878 2007-11-18 Christian Franke <franke@computer.org>
41879
41880 * disk/host.c (grub_host_open): Remove attribute unused from
41881 name parameter. Add check for "host". This fixes the problem
41882 that grub-emu does not find partitions.
41883
41884 2007-11-18 Christian Franke <franke@computer.org>
41885
41886 * util/hostfs.c (is_dir): New function.
41887 (grub_hostfs_dir): Handle missing dirent.d_type case.
41888 (grub_hostfs_read): Add missing fseek().
41889 (grub_hostfs_label): Clear label pointer. This fixes a crash
41890 of grub-emu on "ls (host)".
41891
41892 2007-11-18 Christian Franke <franke@computer.org>
41893
41894 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
41895 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
41896 to 64 bit boundary by default.
41897
41898 2007-11-18 Bean <bean123ch@gmail.com>
41899
41900 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
41901 (hexdump_mod_SOURCES): New variable.
41902 (hexdump_mod_CFLAGS): Likewise.
41903 (hexdump_mod_LDFLAGS): Likewise.
41904
41905 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
41906
41907 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
41908
41909 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
41910
41911 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
41912
41913 * include/grub/hexdump.h: New file.
41914
41915 * commands/hexdump.c: New file.
41916
41917 2007-11-10 Robert Millan <rmh@aybabtu.com>
41918
41919 * commands/i386/pc/play.c (beep_off): Switch order of arguments
41920 in grub_outb() calls.
41921 (beep_on): Likewise.
41922
41923 2007-11-10 Christian Franke <franke@computer.org>
41924
41925 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
41926 (grub_menu_run): Likewise.
41927
41928 2007-11-10 Robert Millan <rmh@aybabtu.com>
41929
41930 * include/grub/i386/efi/machine.h: New file.
41931 * include/grub/i386/linuxbios/machine.h: Likewise.
41932 * include/grub/i386/pc/machine.h: Likewise.
41933 * include/grub/powerpc/ieee1275/machine.h: Likewise.
41934 * include/grub/sparc64/ieee1275/machine.h: Likewise.
41935
41936 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
41937 (serial_hw_io_addr): New variable.
41938 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
41939 instead of `(unsigned short *) 0x400'.
41940
41941 2007-11-10 Bean <bean123ch@gmail.com>
41942
41943 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
41944
41945 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
41946
41947 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
41948 (vga_mod_SOURCES): Added.
41949 (vga_mod_CFLAGS): Likewise.
41950 (vga_mod_LDFLAGS): Likewise.
41951
41952 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
41953 grub_outb() calls.
41954 (set_map_mask): Likewise.
41955 (set_read_map): Likewise.
41956 (set_read_address): Likewise.
41957 (vga_font): Removed variable.
41958 (get_vga_glyph): Removed function.
41959 (invalidate_char): Likewise.
41960 (write_char): Changed to use grub_font_get_glyph() for font
41961 information.
41962 (grub_vga_putchar): Likewise.
41963 (grub_vga_getcharwidth): Likewise.
41964
41965 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
41966
41967 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
41968 flags.
41969 (pxeboot_img_LDFLAGS): Likewise.
41970 (diskboot_img_LDFLAGS): Likewise.
41971 (kernel_img_LDFLAGS): Likewise.
41972
41973 2007-11-06 Robert Millan <rmh@aybabtu.com>
41974
41975 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
41976 in grub_outb() calls.
41977 (serial_hw_init): Likewise.
41978
41979 2007-11-05 Robert Millan <rmh@aybabtu.com>
41980
41981 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
41982 spaces. Skip non-regular files.
41983
41984 2007-11-05 Robert Millan <rmh@aybabtu.com>
41985
41986 * kern/disk.c (grub_disk_firmware_fini)
41987 (grub_disk_firmware_is_tainted): New variables.
41988
41989 * include/grub/disk.h (grub_disk_firmware_fini)
41990 (grub_disk_firmware_is_tainted): Likewise.
41991
41992 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
41993 (grub_disk_biosdisk_fini): ... to here.
41994 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
41995 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
41996 is set. Register grub_disk_biosdisk_fini() in
41997 `grub_disk_firmware_fini'.
41998
41999 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
42000 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
42001 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
42002 to finish existing firmware disk interface.
42003
42004 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
42005 (ata_mod_SOURCES): New variable.
42006 (ata_mod_CFLAGS): Likewise.
42007 (ata_mod_LDFLAGS): Likewise.
42008
42009 2007-11-05 Robert Millan <rmh@aybabtu.com>
42010
42011 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
42012 (grub_ata_wait): Reimplement using grub_millisleep().
42013
42014 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
42015 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
42016
42017 2007-11-03 Marco Gerards <marco@gnu.org>
42018
42019 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
42020 (CRTC_ADDR_PORT): New macro.
42021 (CRTC_DATA_PORT): Likewise.
42022 (CRTC_CURSOR): Likewise.
42023 (CRTC_CURSOR_ADDR_HIGH): Likewise.
42024 (CRTC_CURSOR_ADDR_LOW): Likewise.
42025 (update_cursor): New function.
42026 (grub_console_real_putchar): Call `update_cursor'.
42027 (grub_console_gotoxy): Likewise.
42028 (grub_console_cls): Set the default color when clearing the
42029 screen.
42030 (grub_console_setcursor): Implemented.
42031
42032 2007-11-03 Marco Gerards <marco@gnu.org>
42033
42034 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
42035 become activate.
42036 (grub_ata_pio_write): Likewise.
42037
42038 (grub_atapi_identify): Wait after issuing an ATA command.
42039 (grub_atapi_packet): Likewise.
42040 (grub_ata_identify): Likewise.
42041 (grub_ata_readwrite): Likewise.
42042
42043 2007-11-03 Marco Gerards <marco@gnu.org>
42044
42045 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
42046 (grub_ata_pio_write): Likewise.
42047 (grub_ata_readwrite): Use `grub_error', instead of
42048 returning `grub_errno'.
42049
42050 2007-11-03 Marco Gerards <marco@gnu.org>
42051
42052 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
42053 grub_ata_pio_write once for every single sector, instead of for
42054 multiple sectors.
42055
42056 2007-10-31 Robert Millan <rmh@aybabtu.com>
42057
42058 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
42059
42060 * conf/i386-linuxbios.rmk: New file.
42061
42062 * kern/i386/pc/hardware.c: Likewise.
42063 * term/i386/pc/at_keyboard.c: Likewise.
42064 * term/i386/pc/vga_text.c: Likewise.
42065
42066 * include/grub/i386/linuxbios/boot.h: Likewise.
42067 * include/grub/i386/linuxbios/console.h: Likewise.
42068 * include/grub/i386/linuxbios/init.h: Likewise.
42069 * include/grub/i386/linuxbios/kernel.h: Likewise.
42070 * include/grub/i386/linuxbios/loader.h: Likewise.
42071 * include/grub/i386/linuxbios/memory.h: Likewise.
42072 * include/grub/i386/linuxbios/serial.h: Likewise.
42073 * include/grub/i386/linuxbios/time.h: Likewise.
42074
42075 * kern/i386/linuxbios/init.c: Likewise.
42076 * kern/i386/linuxbios/startup.S: Likewise.
42077 * kern/i386/linuxbios/table.c: Likewise.
42078
42079 2007-10-31 Marco Gerards <marco@gnu.org>
42080
42081 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
42082 (ata_mod_SOURCES): New variable.
42083 (ata_mod_CFLAGS): Likewise.
42084 (ata_mod_LDFLAGS): Likewise.
42085
42086 * disk/ata.c: New file.
42087
42088 * include/grub/disk.h (grub_disk_dev_id): Add
42089 `GRUB_DISK_DEV_ATA_ID'.
42090
42091 2007-10-31 Robert Millan <rmh@aybabtu.com>
42092
42093 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
42094 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
42095
42096 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
42097 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
42098
42099 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
42100 `<grub/types.h>'.
42101
42102 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
42103
42104 2007-10-27 Robert Millan <rmh@aybabtu.com>
42105
42106 * include/grub/types.h (ULONG_MAX): Define macro.
42107
42108 2007-10-22 Robert Millan <rmh@aybabtu.com>
42109
42110 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
42111 `"../realmode.S"'.
42112 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
42113
42114 2007-10-22 Robert Millan <rmh@aybabtu.com>
42115
42116 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
42117 (pkgdata_MODULES): Add `biosdisk.mod'.
42118 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
42119 variables.
42120
42121 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
42122 (grub_biosdisk_init): Replace with ...
42123 (GRUB_MOD_INIT(biosdisk)): ... this.
42124 (grub_biosdisk_fini): Replace with ...
42125 (GRUB_MOD_FINI(biosdisk)): ... this.
42126
42127 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
42128 (grub_machine_init): Remove call to grub_biosdisk_init().
42129 (grub_machine_fini): Remove call to grub_machine_fini().
42130
42131 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
42132
42133 2007-10-22 Robert Millan <rmh@aybabtu.com>
42134
42135 * include/grub/time.h: New file.
42136 * include/grub/i386/time.h: Likewise.
42137 * include/grub/powerpc/time.h: Likewise.
42138 * include/grub/sparc64/time.h: Likewise.
42139
42140 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
42141 instances to ...
42142 (KERNEL_MACHINE_TIME_HEADER): ... this.
42143 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
42144 instances to ...
42145 (KERNEL_MACHINE_TIME_HEADER): ... this.
42146 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
42147 instances to ...
42148 (KERNEL_MACHINE_TIME_HEADER): ... this.
42149
42150 * kern/i386/efi/init.c: Include `<grub/time.h>'.
42151 (grub_millisleep): New function.
42152 * kern/i386/pc/init.c: Include `<grub/time.h>'.
42153 (grub_millisleep): New function.
42154 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
42155 Remove `grub/machine/time.h' include.
42156 (grub_millisleep): New function.
42157 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
42158 Remove `grub/machine/time.h' include.
42159 (grub_millisleep): New function.
42160
42161 * include/grub/misc.h (grub_div_roundup): New function.
42162
42163 * kern/misc.c: Include `<grub/time.h>'.
42164 (grub_millisleep_generic): New function.
42165
42166 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
42167 Add `time.h'.
42168 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
42169 Add `time.h'.
42170 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
42171 `machine/time.h'. Add `time.h'.
42172 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
42173
42174 2007-10-21 Robert Millan <rmh@aybabtu.com>
42175
42176 * include/grub/misc.h (grub_max): New function.
42177
42178 2007-10-21 Robert Millan <rmh@aybabtu.com>
42179
42180 * util/misc.c (grub_util_info): Call fflush() before returning.
42181
42182 2007-10-20 Robert Millan <rmh@aybabtu.com>
42183
42184 * genmk.rb (Image): Copy `extra_flags' from here ...
42185 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
42186
42187 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
42188 to `argc' and `args' arguments.
42189
42190 2007-10-17 Robert Millan <rmh@aybabtu.com>
42191
42192 * kern/i386/loader.S: New file.
42193
42194 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
42195 * kern/i386/loader.S (grub_linux_prot_size)... to here.
42196 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
42197 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
42198 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
42199 * kern/i386/loader.S (grub_linux_real_addr)... to here.
42200 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
42201 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
42202 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
42203 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
42204 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
42205 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
42206 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
42207 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
42208
42209 * kern/i386/realmode.S: New file.
42210
42211 * kern/i386/pc/startup.S (protstack): Moved from here ...
42212 * kern/i386/realmode.S (protstack)... to here.
42213 * kern/i386/pc/startup.S (gdt): Moved from here ...
42214 * kern/i386/realmode.S (gdt)... to here.
42215 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
42216 * kern/i386/realmode.S (prot_to_real)... to here.
42217
42218 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
42219 `kern/i386/realmode.S'.
42220
42221 2007-10-17 Robert Millan <rmh@aybabtu.com>
42222
42223 * include/grub/i386/loader.h: New file.
42224
42225 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
42226 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
42227 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
42228 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
42229 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
42230 * include/grub/i386/loader.h (grub_linux_prot_size)
42231 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
42232 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
42233 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
42234 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
42235
42236 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
42237
42238 2007-10-15 Robert Millan <rmh@aybabtu.com>
42239
42240 * normal/misc.c (grub_normal_print_device_info): Do not probe for
42241 filesystem when dev->disk is unset.
42242 Do probe for filesystem even when dev->disk->has_partitions is set.
42243 In case a filesystem is found, always report it.
42244 In case it isn't, if dev->disk->has_partitions is set, report that
42245 a partition table was found instead of reporting that no filesystem
42246 could be identified.
42247
42248 2007-10-12 Robert Millan <rmh@aybabtu.com>
42249
42250 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
42251 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
42252
42253 * include/grub/types.h (grub_host_to_target16): New macro.
42254 (grub_host_to_target32): Likewise.
42255 (grub_host_to_target64): Likewise.
42256 (grub_target_to_host16): Likewise.
42257 (grub_target_to_host32): Likewise.
42258 (grub_target_to_host64): Likewise.
42259
42260 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
42261 Renamed from to ...
42262 (GRUB_MOD_ALIGN): ...this. Update all users.
42263
42264 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
42265 grub_host_to_target32.
42266 Replace grub_be_to_cpu32 with grub_target_to_host32.
42267 (load_modules): Likewise.
42268 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
42269 Replace grub_be_to_cpu32 with grub_target_to_host32.
42270 Replace grub_cpu_to_be16 with grub_host_to_target16.
42271 Replace grub_cpu_to_be32 grub_host_to_target32.
42272
42273 2007-10-12 Robert Millan <rmh@aybabtu.com>
42274
42275 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
42276 * util/elf/grub-mkimage.c: ... here.
42277
42278 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
42279 `util/powerpc/ieee1275/grub-mkimage.c'.
42280
42281 2007-10-07 Robert Millan <rmh@aybabtu.com>
42282
42283 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
42284 and make it easier to figure out.
42285 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
42286 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
42287 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
42288 leave us with less than HEAP_MIN_SIZE total heap.
42289 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
42290
42291 2007-10-03 Robert Millan <rmh@aybabtu.com>
42292
42293 * include/grub/i386/io.h: New file.
42294 * commands/i386/pc/play.c (inb): Removed.
42295 (outb): Removed.
42296 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
42297 with grub_outb().
42298 * term/i386/pc/serial.c (inb): Removed.
42299 (outb): Removed.
42300 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
42301 with grub_outb().
42302 * term/i386/pc/vga.c (inb): Removed.
42303 (outb): Removed.
42304 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
42305 with grub_outb().
42306
42307 2007-10-02 Robert Millan <rmh@aybabtu.com>
42308
42309 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
42310 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42311 Reported by Marcin Kurek.
42312
42313 2007-09-07 Robert Millan <rmh@aybabtu.com>
42314
42315 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
42316 SmartFirmware version updates (as released by Sven Luther), and avoid
42317 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
42318 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
42319 known broken.
42320
42321 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
42322
42323 From Hitoshi Ozeki:
42324 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
42325 when merging two regions.
42326
42327 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
42328
42329 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
42330 * normal/completion.c (grub_normal_do_completion): Likewise.
42331 Reported by Hitoshi Ozeki.
42332
42333 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
42334
42335 Do not use devices at boot in chainloading.
42336
42337 * loader/i386/pc/chainloader.c (boot_drive): New variable.
42338 (boot_part_addr): Likewise.
42339 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
42340 with BOOT_DRIVE and BOOT_PART_ADDR.
42341 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
42342 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
42343
42344 2007-08-29 Robert Millan <rmh@aybabtu.com>
42345
42346 Patch from Simon Peter <dn.tlp@gmx.net>:
42347 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
42348 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
42349 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
42350 util/i386/pc/grub-setup.c_DEPENDENCIES.
42351 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
42352 util/grub-probe.c_DEPENDENCIES.
42353 * conf/powerpc-ieee1275.rmk: Likewise.
42354
42355 2007-08-28 Robert Millan <rmh@aybabtu.com>
42356
42357 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
42358 to tell grub-mkdevicemap how to name devices.
42359 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
42360 feature).
42361
42362 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
42363 util/i386/get_disk_name.c.
42364 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
42365 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
42366 util/ieee1275/get_disk_name.c.
42367
42368 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
42369
42370 * DISTLIST: Add util/i386/get_disk_name.c and
42371 util/ieee1275/get_disk_name.c.
42372
42373 * util/grub-mkdevicemap.c: Replace device naming logic with
42374 grub_util_get_disk_name() calls.
42375
42376 2007-08-20 Robert Millan <rmh@aybabtu.com>
42377
42378 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
42379 (so that it works for both plural and singular quantities).
42380
42381 2007-08-05 Robert Millan <rmh@aybabtu.com>
42382
42383 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
42384 so that [xz] isn't taken into account when determining order.
42385
42386 2007-08-02 Marco Gerards <marco@gnu.org>
42387
42388 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
42389 `include/multiboot2.h', `include/grub/elfload.h',
42390 `include/multiboot.h', `include/grub/multiboot.h',
42391 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
42392 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
42393 `kern/elf.c', `loader/multiboot_loader.c',
42394 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
42395 `loader/i386/pc/multiboot2.c',
42396 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
42397 `util/i386/pc/grub-mkrescue.in'. Remove
42398 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
42399 `include/grub/i386/pc/util/biosdisk.h' and
42400 `include/grub/powerpc/ieee1275/multiboot.h'.
42401
42402 2007-08-02 Bean <bean123ch@gmail.com>
42403
42404 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
42405 (ntfs_mod_SOURCES): New variable.
42406 (ntfs_mod_CFLAGS): Likewise.
42407 (ntfs_mod_LDFLAGS): Likewise.
42408
42409 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
42410 (grub_probe_SOURCES): Likewise.
42411 (grub_emu_SOURCES): Likewise.
42412
42413 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
42414 (grub_emu_SOURCES): Likewise.
42415
42416 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
42417 (grub_emu_SOURCES): Likewise.
42418
42419 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
42420
42421 * fs/ntfs.c: New file.
42422
42423 2007-08-02 Bean <bean123ch@gmail.com>
42424
42425 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
42426
42427 * file.h (grub_file): Likewise.
42428
42429 * fshelp.h (grub_fshelp_read_file): Likewise.
42430
42431 * util/i386/pc/grub-setup.c (setup): Likewise.
42432 (save_first_sector): Likewise.
42433 (save_blocklists): Likewise.
42434
42435 * fs/affs.c (grub_affs_read_file): Likewise.
42436
42437 * fs/ext2.c (grub_ext2_read_file): Likewise.
42438
42439 * fs/fat.c (grub_fat_read_data): Likewise.
42440
42441 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
42442
42443 * fs/hfs.c (grub_hfs_read_file): Likewise.
42444
42445 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
42446
42447 * fs/jfs.c (grub_jfs_read_file): Likewise.
42448
42449 * fs/minix.c (grub_minix_read_file): Likewise.
42450
42451 * fs/sfs.c (grub_sfs_read_file): Likewise.
42452
42453 * fs/ufs.c (grub_ufs_read_file): Likewise.
42454
42455 * fs/xfs.c (grub_xfs_read_file): Likewise.
42456
42457 * command/blocklist.c (read_blocklist): Likewise.
42458 (print_blocklist): Likewise.
42459
42460 2007-08-02 Marco Gerards <marco@gnu.org>
42461
42462 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
42463 `util/hostfs.c'.
42464
42465 * disk/host.c: New file.
42466
42467 * util/hostfs.c: Likewise.
42468
42469 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
42470 return `GRUB_ERR_BAD_FS'.
42471 * fs/sfs.c (grub_sfs_mount): Likewise.
42472 * fs/xfs.c (grub_xfs_mount): Likewise.
42473
42474 * include/grub/disk.h (enum grub_disk_dev_id): Add
42475 `GRUB_DISK_DEVICE_HOST_ID'.
42476
42477 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
42478
42479 2007-07-24 Jerone Young <jerone@gmail.com>
42480
42481 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
42482 modules for compilation.
42483 * conf/powerpc-ieee1275.rmk: Likewise.
42484
42485 * include/multiboot.h: Move multiboot definitions to one file. Rename
42486 many definitions to not get grub specific.
42487 * include/multiboot2.h: Create header with multiboot 2 definitions.
42488 * include/grub/multiboot.h: Header for grub specific function
42489 prototypes and definitions.
42490 * include/grub/multiboot2.h: Likewise.
42491 * include/grub/multiboot_loader.h: Likewise.
42492 * include/grub/i386/pc/multiboot.h: Removed.
42493 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
42494
42495 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
42496 and 2 to allow for one multiboot and module commands.
42497 * loader/multiboot2.c: Add multiboot2 functionality.
42498 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
42499 and definition names.
42500 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
42501 2 functions.
42502 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
42503 ieee1275 specific multiboot2 code.
42504
42505 * kern/i386/pc/startup.S: Change headers and definition names for
42506 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
42507
42508 2007-07-22 Robert Millan <rmh@aybabtu.com>
42509
42510 * geninitheader.sh: Process file specified in first parameter rather
42511 than hardcoding grub_modules_init.lst.
42512 * geninit.sh: Likewise. Also, construct header name dynamically rather
42513 than hardcoding grub_modules_init.h.
42514
42515 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
42516 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
42517 grub_probe_init.[ch] and grub_setup_init.[ch].
42518
42519 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
42520 grub_modules_init.h with grub_emu_init.h.
42521 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
42522 grub_probe_init.[ch] files.
42523 * conf/i386-efi.rmk: Likewise.
42524 * conf/i386-pc.rmk: Likewise.
42525 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
42526 grub_setup_init.[ch] files.
42527
42528 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
42529 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
42530 to initialize modules rather than a list of hardcoded functions.
42531 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
42532 grub_init_all() to initialize modules rather than a list of hardcoded
42533 functions.
42534
42535 2007-07-22 Robert Millan <rmh@aybabtu.com>
42536
42537 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
42538 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
42539
42540 2007-07-22 Robert Millan <rmh@aybabtu.com>
42541
42542 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
42543 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
42544 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
42545 flag when running on SmartFirmware.
42546 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
42547 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
42548 was set.
42549
42550 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
42551 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
42552 rather than decreasing it.
42553
42554 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
42555 there's not enough space to do it, fail in the same way as when it
42556 can't be done because there are no partitions.
42557
42558 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
42559 when nvsetenv failed.
42560
42561 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
42562
42563 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
42564 because this rule is automatically generated.
42565 (grub-mkrescue): Removed for the same reason as above.
42566
42567 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
42568
42569 Migrate to GNU General Public License Version 3.
42570
42571 * COPYING: Replaced with the plain text version of GPLv3.
42572
42573 * config.guess: Updated from gnulib.
42574 * config.sub: Likewise.
42575
42576 * geninit.sh: Output a GPLv3 copyright notice.
42577 * geninitheader.sh: Likewise.
42578 * genmodsrc.sh: Likewise.
42579 * gensymlist.sh.in: Likewise.
42580
42581 * boot/i386/pc/boot.S: Upgraded to GPLv3.
42582 * boot/i386/pc/diskboot.S: Likewise.
42583 * boot/i386/pc/pxeboot.S: Likewise.
42584 * commands/blocklist.c: Likewise.
42585 * commands/boot.c: Likewise.
42586 * commands/cat.c: Likewise.
42587 * commands/cmp.c: Likewise.
42588 * commands/configfile.c: Likewise.
42589 * commands/echo.c: Likewise.
42590 * commands/help.c: Likewise.
42591 * commands/ls.c: Likewise.
42592 * commands/search.c: Likewise.
42593 * commands/terminal.c: Likewise.
42594 * commands/test.c: Likewise.
42595 * commands/videotest.c: Likewise.
42596 * commands/i386/cpuid.c: Likewise.
42597 * commands/i386/pc/halt.c: Likewise.
42598 * commands/i386/pc/play.c: Likewise.
42599 * commands/i386/pc/reboot.c: Likewise.
42600 * commands/i386/pc/vbeinfo.c: Likewise.
42601 * commands/i386/pc/vbetest.c: Likewise.
42602 * commands/ieee1275/halt.c: Likewise.
42603 * commands/ieee1275/reboot.c: Likewise.
42604 * commands/ieee1275/suspend.c: Likewise.
42605 * disk/loopback.c: Likewise.
42606 * disk/lvm.c: Likewise.
42607 * disk/raid.c: Likewise.
42608 * disk/efi/efidisk.c: Likewise.
42609 * disk/i386/pc/biosdisk.c: Likewise.
42610 * disk/ieee1275/ofdisk.c: Likewise.
42611 * font/manager.c: Likewise.
42612 * fs/affs.c: Likewise.
42613 * fs/ext2.c: Likewise.
42614 * fs/fat.c: Likewise.
42615 * fs/fshelp.c: Likewise.
42616 * fs/hfs.c: Likewise.
42617 * fs/hfsplus.c: Likewise.
42618 * fs/iso9660.c: Likewise.
42619 * fs/jfs.c: Likewise.
42620 * fs/minix.c: Likewise.
42621 * fs/sfs.c: Likewise.
42622 * fs/ufs.c: Likewise.
42623 * fs/xfs.c: Likewise.
42624 * hello/hello.c: Likewise.
42625 * include/grub/acorn_filecore.h: Likewise.
42626 * include/grub/arg.h: Likewise.
42627 * include/grub/bitmap.h: Likewise.
42628 * include/grub/boot.h: Likewise.
42629 * include/grub/cache.h: Likewise.
42630 * include/grub/device.h: Likewise.
42631 * include/grub/disk.h: Likewise.
42632 * include/grub/dl.h: Likewise.
42633 * include/grub/elfload.h: Likewise.
42634 * include/grub/env.h: Likewise.
42635 * include/grub/err.h: Likewise.
42636 * include/grub/file.h: Likewise.
42637 * include/grub/font.h: Likewise.
42638 * include/grub/fs.h: Likewise.
42639 * include/grub/fshelp.h: Likewise.
42640 * include/grub/gzio.h: Likewise.
42641 * include/grub/hfs.h: Likewise.
42642 * include/grub/kernel.h: Likewise.
42643 * include/grub/loader.h: Likewise.
42644 * include/grub/lvm.h: Likewise.
42645 * include/grub/misc.h: Likewise.
42646 * include/grub/mm.h: Likewise.
42647 * include/grub/net.h: Likewise.
42648 * include/grub/normal.h: Likewise.
42649 * include/grub/parser.h: Likewise.
42650 * include/grub/partition.h: Likewise.
42651 * include/grub/pc_partition.h: Likewise.
42652 * include/grub/raid.h: Likewise.
42653 * include/grub/rescue.h: Likewise.
42654 * include/grub/script.h: Likewise.
42655 * include/grub/setjmp.h: Likewise.
42656 * include/grub/symbol.h: Likewise.
42657 * include/grub/term.h: Likewise.
42658 * include/grub/terminfo.h: Likewise.
42659 * include/grub/tparm.h: Likewise.
42660 * include/grub/types.h: Likewise.
42661 * include/grub/video.h: Likewise.
42662 * include/grub/efi/api.h: Likewise.
42663 * include/grub/efi/chainloader.h: Likewise.
42664 * include/grub/efi/console.h: Likewise.
42665 * include/grub/efi/console_control.h: Likewise.
42666 * include/grub/efi/disk.h: Likewise.
42667 * include/grub/efi/efi.h: Likewise.
42668 * include/grub/efi/pe32.h: Likewise.
42669 * include/grub/efi/time.h: Likewise.
42670 * include/grub/i386/linux.h: Likewise.
42671 * include/grub/i386/setjmp.h: Likewise.
42672 * include/grub/i386/types.h: Likewise.
42673 * include/grub/i386/efi/kernel.h: Likewise.
42674 * include/grub/i386/efi/loader.h: Likewise.
42675 * include/grub/i386/efi/time.h: Likewise.
42676 * include/grub/i386/pc/biosdisk.h: Likewise.
42677 * include/grub/i386/pc/boot.h: Likewise.
42678 * include/grub/i386/pc/chainloader.h: Likewise.
42679 * include/grub/i386/pc/console.h: Likewise.
42680 * include/grub/i386/pc/init.h: Likewise.
42681 * include/grub/i386/pc/kernel.h: Likewise.
42682 * include/grub/i386/pc/loader.h: Likewise.
42683 * include/grub/i386/pc/memory.h: Likewise.
42684 * include/grub/i386/pc/multiboot.h: Likewise.
42685 * include/grub/i386/pc/serial.h: Likewise.
42686 * include/grub/i386/pc/time.h: Likewise.
42687 * include/grub/i386/pc/vbe.h: Likewise.
42688 * include/grub/i386/pc/vbeblit.h: Likewise.
42689 * include/grub/i386/pc/vbefill.h: Likewise.
42690 * include/grub/i386/pc/vbeutil.h: Likewise.
42691 * include/grub/i386/pc/vga.h: Likewise.
42692 * include/grub/ieee1275/ieee1275.h: Likewise.
42693 * include/grub/ieee1275/ofdisk.h: Likewise.
42694 * include/grub/powerpc/libgcc.h: Likewise.
42695 * include/grub/powerpc/setjmp.h: Likewise.
42696 * include/grub/powerpc/types.h: Likewise.
42697 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
42698 * include/grub/powerpc/ieee1275/console.h: Likewise.
42699 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
42700 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
42701 * include/grub/powerpc/ieee1275/loader.h: Likewise.
42702 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
42703 * include/grub/powerpc/ieee1275/time.h: Likewise.
42704 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
42705 * include/grub/sparc64/libgcc.h: Likewise.
42706 * include/grub/sparc64/setjmp.h: Likewise.
42707 * include/grub/sparc64/types.h: Likewise.
42708 * include/grub/sparc64/ieee1275/console.h: Likewise.
42709 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
42710 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
42711 * include/grub/sparc64/ieee1275/time.h: Likewise.
42712 * include/grub/util/biosdisk.h: Likewise.
42713 * include/grub/util/getroot.h: Likewise.
42714 * include/grub/util/lvm.h: Likewise.
42715 * include/grub/util/misc.h: Likewise.
42716 * include/grub/util/raid.h: Likewise.
42717 * include/grub/util/resolve.h: Likewise.
42718 * io/gzio.c: Likewise.
42719 * kern/device.c: Likewise.
42720 * kern/disk.c: Likewise.
42721 * kern/dl.c: Likewise.
42722 * kern/elf.c: Likewise.
42723 * kern/env.c: Likewise.
42724 * kern/err.c: Likewise.
42725 * kern/file.c: Likewise.
42726 * kern/fs.c: Likewise.
42727 * kern/loader.c: Likewise.
42728 * kern/main.c: Likewise.
42729 * kern/misc.c: Likewise.
42730 * kern/mm.c: Likewise.
42731 * kern/parser.c: Likewise.
42732 * kern/partition.c: Likewise.
42733 * kern/rescue.c: Likewise.
42734 * kern/term.c: Likewise.
42735 * kern/efi/efi.c: Likewise.
42736 * kern/efi/init.c: Likewise.
42737 * kern/efi/mm.c: Likewise.
42738 * kern/i386/dl.c: Likewise.
42739 * kern/i386/efi/init.c: Likewise.
42740 * kern/i386/efi/startup.S: Likewise.
42741 * kern/i386/pc/init.c: Likewise.
42742 * kern/i386/pc/lzo1x.S: Likewise.
42743 * kern/i386/pc/startup.S: Likewise.
42744 * kern/ieee1275/ieee1275.c: Likewise.
42745 * kern/powerpc/cache.S: Likewise.
42746 * kern/powerpc/dl.c: Likewise.
42747 * kern/powerpc/ieee1275/cmain.c: Likewise.
42748 * kern/powerpc/ieee1275/crt0.S: Likewise.
42749 * kern/powerpc/ieee1275/init.c: Likewise.
42750 * kern/powerpc/ieee1275/openfw.c: Likewise.
42751 * kern/sparc64/cache.S: Likewise.
42752 * kern/sparc64/dl.c: Likewise.
42753 * kern/sparc64/ieee1275/init.c: Likewise.
42754 * kern/sparc64/ieee1275/openfw.c: Likewise.
42755 * loader/efi/chainloader.c: Likewise.
42756 * loader/efi/chainloader_normal.c: Likewise.
42757 * loader/i386/efi/linux.c: Likewise.
42758 * loader/i386/efi/linux_normal.c: Likewise.
42759 * loader/i386/pc/chainloader.c: Likewise.
42760 * loader/i386/pc/chainloader_normal.c: Likewise.
42761 * loader/i386/pc/linux.c: Likewise.
42762 * loader/i386/pc/linux_normal.c: Likewise.
42763 * loader/i386/pc/multiboot.c: Likewise.
42764 * loader/i386/pc/multiboot_normal.c: Likewise.
42765 * loader/powerpc/ieee1275/linux.c: Likewise.
42766 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
42767 * normal/arg.c: Likewise.
42768 * normal/cmdline.c: Likewise.
42769 * normal/command.c: Likewise.
42770 * normal/completion.c: Likewise.
42771 * normal/execute.c: Likewise.
42772 * normal/function.c: Likewise.
42773 * normal/lexer.c: Likewise.
42774 * normal/main.c: Likewise.
42775 * normal/menu.c: Likewise.
42776 * normal/menu_entry.c: Likewise.
42777 * normal/misc.c: Likewise.
42778 * normal/parser.y: Likewise.
42779 * normal/script.c: Likewise.
42780 * normal/i386/setjmp.S: Likewise.
42781 * normal/powerpc/setjmp.S: Likewise.
42782 * normal/sparc64/setjmp.S: Likewise.
42783 * partmap/acorn.c: Likewise.
42784 * partmap/amiga.c: Likewise.
42785 * partmap/apple.c: Likewise.
42786 * partmap/gpt.c: Likewise.
42787 * partmap/pc.c: Likewise.
42788 * partmap/sun.c: Likewise.
42789 * term/gfxterm.c: Likewise.
42790 * term/terminfo.c: Likewise.
42791 * term/efi/console.c: Likewise.
42792 * term/i386/pc/console.c: Likewise.
42793 * term/i386/pc/serial.c: Likewise.
42794 * term/i386/pc/vesafb.c: Likewise.
42795 * term/i386/pc/vga.c: Likewise.
42796 * term/ieee1275/ofconsole.c: Likewise.
42797 * util/biosdisk.c: Likewise.
42798 * util/console.c: Likewise.
42799 * util/genmoddep.c: Likewise.
42800 * util/getroot.c: Likewise.
42801 * util/grub-emu.c: Likewise.
42802 * util/grub-mkdevicemap.c: Likewise.
42803 * util/grub-probe.c: Likewise.
42804 * util/lvm.c: Likewise.
42805 * util/misc.c: Likewise.
42806 * util/raid.c: Likewise.
42807 * util/resolve.c: Likewise.
42808 * util/update-grub.in: Likewise.
42809 * util/update-grub_lib.in: Likewise.
42810 * util/grub.d/00_header.in: Likewise.
42811 * util/grub.d/10_hurd.in: Likewise.
42812 * util/grub.d/10_linux.in: Likewise.
42813 * util/i386/efi/grub-install.in: Likewise.
42814 * util/i386/efi/grub-mkimage.c: Likewise.
42815 * util/i386/pc/grub-install.in: Likewise.
42816 * util/i386/pc/grub-mkimage.c: Likewise.
42817 * util/i386/pc/grub-mkrescue.in: Likewise.
42818 * util/i386/pc/grub-setup.c: Likewise.
42819 * util/i386/pc/misc.c: Likewise.
42820 * util/powerpc/ieee1275/grub-install.in: Likewise.
42821 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
42822 * util/powerpc/ieee1275/misc.c: Likewise.
42823 * video/bitmap.c: Likewise.
42824 * video/video.c: Likewise.
42825 * video/i386/pc/vbe.c: Likewise.
42826 * video/i386/pc/vbeblit.c: Likewise.
42827 * video/i386/pc/vbefill.c: Likewise.
42828 * video/i386/pc/vbeutil.c: Likewise.
42829 * video/readers/tga.c: Likewise.
42830
42831 2007-07-02 Robert Millan <rmh@aybabtu.com>
42832
42833 * conf/i386-efi.rmk: Replace obsolete reference to
42834 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
42835 with util/getroot.c.
42836 * conf/powerpc-ieee1275.rmk: Likewise.
42837 * conf/sparc64-ieee1275.rmk: Likewise.
42838
42839 * util/grub-emu.c (main): Fix unchecked pointer handling.
42840
42841 2007-07-02 Robert Millan <rmh@aybabtu.com>
42842
42843 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
42844 invocation to fail, in order to support partition-less media.
42845
42846 * util/i386/pc/grub-install.in: Likewise.
42847
42848 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
42849 which fs or partmap modules are needed (akin to its sister scripts).
42850
42851 Also use grub-probe to get rid of unportable /proc/mounts check.
42852
42853 Print the same informational message that the other scripts do, before
42854 exiting.
42855
42856 2007-06-23 Robert Millan <rmh@aybabtu.com>
42857
42858 * util/update-grub_lib.in (font_path): New function. Determine whether
42859 a font file can be found and, if so, echo the GRUB path to it.
42860
42861 * util/update-grub.in: Handle multiple terminals depending on user
42862 input, platform availability and font file presence. Propagate
42863 variables of our findings to /etc/grub.d/ children.
42864
42865 * util/grub.d/00_header.in: Handle multiple terminals, based on
42866 environment setup by update-grub.
42867
42868 2007-06-23 Robert Millan <rmh@aybabtu.com>
42869
42870 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
42871
42872 2007-06-21 Robert Millan <rmh@aybabtu.com>
42873
42874 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
42875 indicate end of data section in kernel image.
42876 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
42877 GRUB_KERNEL_MACHINE_DATA_END.
42878
42879 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
42880 space for it.
42881 * kern/i386/efi/startup.S: Likewise.
42882
42883 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
42884 during image generation. Implement --prefix option to override this
42885 patch.
42886 * util/i386/efi/grub-mkimage.c: Likewise.
42887
42888 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
42889 code to make path relative to its root into a separate function.
42890
42891 * util/i386/pc/grub-install.in: Use newly provided
42892 make_system_path_relative_to_its_root() to convert ${grubdir}, then
42893 pass the result to grub-install --prefix.
42894
42895 2007-06-13 Robert Millan <rmh@aybabtu.com>
42896
42897 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
42898 DEFAULT_DEVICE_MAP.
42899 * util/grub-emu.c: Use above definitions from misc.h instead of
42900 defining them.
42901 * util/grub-mkdevicemap.c: Likewise.
42902 * util/i386/pc/grub-setup.c: Likewise.
42903 * util/grub-probe.c: Likewise.
42904 (probe): Abort with grub_util_error() when either
42905 grub_guess_root_device or grub_util_get_grub_dev fails.
42906
42907 2007-06-12 Robert Millan <rmh@aybabtu.com>
42908
42909 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
42910 "pager" assignment.
42911 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
42912 "pcdata".
42913 * util/grub-probe.c (probe): Likewise for "drive_name".
42914
42915 2007-06-11 Robert Millan <rmh@aybabtu.com>
42916
42917 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
42918 not just the cdrom one.
42919
42920 2007-06-11 Robert Millan <rmh@aybabtu.com>
42921
42922 * util/i386/pc/grub-mkrescue.in: Add "set -e".
42923 Add --pkglibdir=DIR option to override pkglibdir.
42924 Mention --image-type=TYPE in help output.
42925 Fix --grub-mkimage (it was a no-op).
42926 Abort gracefully when no parameter is given.
42927
42928 2007-06-11 Robert Millan <rmh@aybabtu.com>
42929
42930 * util/i386/pc/grub-mkrescue.in: New file.
42931 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
42932 * Makefile.in: Handle bin_SCRIPTS.
42933
42934 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
42935
42936 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
42937 list of video modes.
42938
42939 2007-06-06 Robert Millan <rmh@aybabtu.com>
42940
42941 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
42942 file doesn't exist, or if it is in a filesystem grub can't read.
42943
42944 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
42945 not abort if GRUB_DRIVE could not be defined. Rearrange generated
42946 header comment to fit in 80 columns when the variables are resolved.
42947
42948 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
42949 could be identified by update-grub. Remove redundant check for
42950 unifont.pff existence (since convert_system_path_to_grub_path now
42951 handles that).
42952
42953 2007-06-04 Robert Millan <rmh@aybabtu.com>
42954
42955 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
42956
42957 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
42958
42959 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
42960
42961 2007-06-04 Robert Millan <rmh@aybabtu.com>
42962
42963 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
42964
42965 * include/grub/partition.h: Declare grub_apple_partition_map_init and
42966 grub_apple_partition_map_fini.
42967
42968 * util/biosdisk.c
42969 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
42970 to access >2 TiB disks).
42971
42972 Print disk->total_sectors with %llu instead of %lu, since this
42973 variable is always 64-bit (prevents wrong disk size from being displayed
42974 on either >2 TiB disk or big-endian CPU).
42975
42976 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
42977 into a generic case that supports all (sane) partition maps.
42978
42979 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
42980 breaks big-endian.
42981
42982 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
42983 and grub_apple_partition_map_fini() after that.
42984
42985 2007-06-01 Robert Millan <rmh@aybabtu.com>
42986
42987 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
42988
42989 * util/grub.d/00_header.in: Only enable gfxterm when
42990 convert_system_path_to_grub_path() succeeds.
42991
42992 2007-05-20 Robert Millan <rmh@aybabtu.com>
42993
42994 * util/update-grub_lib.in: New file.
42995 * DISTLIST: Add update-grub_lib.in.
42996 * conf/common.rmk: Generate update-grub_lib and install it in
42997 $(lib_DATA).
42998 * Makefile.in: Add install routine for $(lib_DATA).
42999
43000 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
43001 function provided by update-grub_lib to support arbitrary paths of
43002 unifont.pff.
43003 * util/update-grub.in: Use convert_system_path_to_grub_path() to
43004 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
43005
43006 2007-05-19 Robert Millan <rmh@aybabtu.com>
43007
43008 * commands/i386/cpuid.c: New module.
43009 * DISTLIST: Add it.
43010 * conf/i386-efi.rmk: Enable cpuid.mod.
43011 * conf/i386-pc.rmk: Likewise.
43012
43013 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
43014
43015 * kern/disk.c (grub_disk_read): Check return value of
43016 grub_realloc().
43017
43018 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
43019
43020 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
43021 arrays.
43022 * disk/raid.c (grub_raid_open): Likewise.
43023
43024 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
43025
43026 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
43027 stack instead of on the heap.
43028
43029 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
43030 before doing a read on it.
43031
43032 * configure.ac: Only use -fno-stack-protector for the target
43033 environment.
43034
43035 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
43036
43037 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
43038 __attribute_ ((unused)) to mode_type argument.
43039
43040 * util/getroot.c (grub_guess_root_device): Fix #endif.
43041
43042 * kern/misc.c (memcmp): Fix prototype.
43043
43044 * include/grub/partition.h [GRUB_UTIL]
43045 (grub_gpt_partition_map_init): Add prototype.
43046 (grub_gpt_partition_map_fini): Likewise.
43047
43048 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
43049 at the right place.
43050
43051 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
43052 (grub_fat_read_data): Likewise.
43053 (grub_fat_find_dir): Likewise.
43054
43055 * font/manager.c (find_glyph): Make table a const.
43056 (grub_font_get_glyph): Remove bitmap from if statement.
43057
43058 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
43059
43060 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
43061 code, first search for device in /dev/mapper, then in /dev.
43062 (grub_util_get_grub_dev): New function.
43063 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
43064 prototype.
43065 * util/grub-probe.c (probe): Remove check for RAID, call
43066 grub_util_get_grub_dev() instead of
43067 grub_util_biosdisk_get_grub_dev().
43068 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
43069 grub_util_biosdisk_get_grub_dev().
43070 * util/i386/pc/grub-setup.c (main): Likewise.
43071
43072 2007-05-16 Robert Millan <rmh@aybabtu.com>
43073
43074 * DISTLIST: Update for the latest changes.
43075 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
43076 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
43077 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
43078 grub/util/biosdisk.h.
43079 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
43080 grub/util/biosdisk.h.
43081
43082 2007-05-16 Robert Millan <rmh@aybabtu.com>
43083
43084 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
43085
43086 2007-05-16 Robert Millan <rmh@aybabtu.com>
43087
43088 * util/i386/efi/grub-install.in: New.
43089 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
43090 newly added grub-install.
43091 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
43092 include.
43093 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
43094 grub/util/biosdisk.h.
43095 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
43096 grub/util/biosdisk.h.
43097
43098 2007-05-16 Robert Millan <rmh@aybabtu.com>
43099
43100 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
43101 * include/grub/util/biosdisk.h: ... here.
43102 * util/i386/pc/biosdisk.c: Moved to ...
43103 * util/biosdisk.c: ... here.
43104 * util/i386/pc/getroot.c: Moved to ...
43105 * util/getroot.c: ... here.
43106 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
43107 * util/grub-mkdevicemap.c: ... here.
43108 * util/i386/pc/grub-probe.c: Moved to ...
43109 * util/grub-probe.c: ... here.
43110
43111 2007-05-15 Robert Millan <rmh@aybabtu.com>
43112
43113 * util/update-grub.in: Remove duplicated line in grub.cfg header
43114 message.
43115
43116 2007-05-13 Robert Millan <rmh@aybabtu.com>
43117
43118 * util/update-grub.in: Fix a few assumptions about the devices holding
43119 /, /boot and /boot/grub being the same.
43120 * util/grub.d/00_header.in: Likewise.
43121 * util/grub.d/10_hurd.in: Likewise.
43122 * util/grub.d/10_linux.in: Likewise.
43123
43124 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
43125 patterns. Use that to define the `.old' suffix as older than `'.
43126
43127 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
43128
43129 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
43130 the grub.cfg header message.
43131
43132 2007-05-11 Robert Millan <rmh@aybabtu.com>
43133
43134 * util/update-grub.in: Create device.map if it doesn't already exist,
43135 before attempting to run grub-probe.
43136 Check for grub-probe and grub-mkdevicemap with the same code
43137 grub-install is using.
43138 Remove test mode.
43139
43140 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
43141
43142 * Makefile.in: Add the datarootdir autoconf variable.
43143
43144 2007-05-09 Robert Millan <rmh@aybabtu.com>
43145
43146 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
43147 fail gracefully if dev->disk->partition == NULL.
43148
43149 2007-05-07 Robert Millan <rmh@aybabtu.com>
43150
43151 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
43152 determine partition map module.
43153 * util/i386/pc/grub-install.in: Use this feature to decide which
43154 partition module to load, instead of hardcoding pc and gpt.
43155
43156 2007-05-07 Robert Millan <rmh@aybabtu.com>
43157
43158 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
43159 source directory differs from build directory.
43160
43161 2007-05-05 Robert Millan <rmh@aybabtu.com>
43162
43163 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
43164 initialisation.
43165
43166 2007-05-05 Robert Millan <rmh@aybabtu.com>
43167
43168 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
43169
43170 2007-05-05 Robert Millan <rmh@aybabtu.com>
43171
43172 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
43173 command-line arguments via ${GRUB_CMDLINE_LINUX}.
43174
43175 2007-05-05 Robert Millan <rmh@aybabtu.com>
43176
43177 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
43178 (grub_probe_SOURCES): Likewise.
43179 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
43180 GPT and initialize dos_part and bsd_part accordingly.
43181 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
43182 install_bsd_part.
43183 (main): Activate gpt module for use during partition identification,
43184 and deactivate it afterwards.
43185 * util/i386/pc/grub-install.in: Add gpt module to core.img.
43186 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
43187 partition identification, and deactivate it afterwards.
43188
43189 2007-05-05 Robert Millan <rmh@aybabtu.com>
43190
43191 * term/i386/pc/console.c (grub_console_fini): Call
43192 grub_term_set_current() before grub_term_unregister().
43193
43194 2007-05-04 Robert Millan <rmh@aybabtu.com>
43195
43196 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
43197 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
43198 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
43199 and update-grub_DATA.
43200 * conf/common.rmk: Build and install update-grub components.
43201 * conf/common.mk: Regenerate.
43202 * util/update-grub.in: New. Core of update-grub.
43203 * util/grub.d/00_header.in: New. Generates grub.cfg header.
43204 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
43205 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
43206 * util/grub.d/README: New. Document grub.d directory layout.
43207
43208 2007-05-01 Robert Millan <rmh@aybabtu.com>
43209
43210 * util/grub-emu.c: Move initialization functions
43211 grub_util_biosdisk_init() and grub_init_all() before
43212 grub_util_biosdisk_get_grub_dev(), which relies on them.
43213
43214 2007-04-19 Robert Millan <rmh@aybabtu.com>
43215
43216 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
43217 it is used later.
43218
43219 2007-04-18 Jerone Young <jerone@gmail.com>
43220
43221 * kernel/elf.c: Add missing parenthesis for conditional statement
43222 stanza.
43223
43224 2007-04-10 Jerone Young <jerone@gmail.com>
43225
43226 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
43227 continue on and look for device node with real device name.
43228
43229 2007-04-10 Jerone Young <jerone@gmail.com>
43230
43231 * configure.ac: Add argument for autoconf to use transformation
43232 ability.
43233 * Makefile.in: Add autoconf package transformation code.
43234 * util/i386/pc/grub-install.in: Likewise.
43235 * util/powerpc/ieee1275/grub-install.in: Likewise.
43236
43237 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
43238
43239 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
43240 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
43241 (EXT2_REVISION): Likewise.
43242 (EXT2_INODE_SIZE): Likewise.
43243 (struct grub_ext2_block_group): Added a missing member
43244 "used_dirs".
43245 (grub_ext2_read_inode): Divide by the inode size in a superblock
43246 instead of 128 to obtain INODES_PER_BLOCK.
43247 Use the macro EXT2_INODE_SIZE instead of directly using
43248 SBLOCK->INODE_SIZE.
43249
43250 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
43251
43252 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
43253 superblock instead of the structure size to compute an
43254 offset. This fixes the problem that GRUB could not read a
43255 filesystem when inode size is different from 128-byte.
43256
43257 2007-03-05 Marco Gerards <marco@gnu.org>
43258
43259 * normal/main.c (read_config_file): When "menu" is not set, create
43260 an initial context.
43261
43262 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
43263
43264 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
43265 (HEAP_LIMIT): New macro.
43266 (grub_claim_heap): Claim memory up to `heaplimit'.
43267
43268 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
43269
43270 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
43271 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
43272 (_start): Likewise.
43273 (grub_arch_modules_addr): Return address after `_end'.
43274 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
43275 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
43276 (add_segments): Calculate `_end' from phdr size and location.
43277 (ALIGN_UP): Moved to ...
43278 * include/grub/misc.h: here.
43279 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
43280 New macro.
43281 (GRUB_IEEE1275_MODULE_BASE): Removed.
43282
43283 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
43284
43285 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
43286 loop boundary.
43287
43288 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
43289
43290 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
43291 All users updated.
43292 (grub_elf64_load_hook_t): Likewise.
43293 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
43294 debug output.
43295
43296 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
43297
43298 * kern/mm.c: Update copyright.
43299 (grub_mm_debug): Correct syntax error.
43300 (grub_mm_dump_free): New function.
43301 (grub_debug_free): Call `grub_free'.
43302 * include/grub/mm.h: Update copyright.
43303 (grub_mm_dump_free): Add declaration.
43304
43305 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
43306
43307 * include/grub/ieee1275/ieee1275.h: Update copyright.
43308 * kern/powerpc/ieee1275/init.c: Likewise.
43309 * kern/powerpc/ieee1275/openfw.c: Likewise.
43310
43311 * loader/powerpc/ieee1275/linux.c: Likewise.
43312 * include/grub/elfload.h: Likewise.
43313 * kern/elf.c: Likewise.
43314 (grub_elf32_load): Pass `base' and `size' parameters. Update all
43315 callers.
43316 (grub_elf64_load): Likewise.
43317 (grub_elf32_load_segment): Move to a nested function.
43318 (grub_elf64_load_segment): Likewise.
43319
43320 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
43321
43322 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
43323 prototype.
43324 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
43325 (grub_heap_len): Likewise.
43326 (HEAP_SIZE): New macro.
43327 (grub_claim_heap): New function.
43328 (grub_machine_init): Don't claim heap directly. Call
43329 `grub_claim_heap'.
43330 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
43331 (grub_available_iterate): New function.
43332
43333 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
43334
43335 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
43336 * configure.ac: Use it for testing the HOST and TARGET compilers.
43337
43338 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
43339
43340 * Makefile.in (enable_grub_emu): New variable.
43341 * configure.ac (--enable-grub-emu): New option.
43342 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
43343 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
43344 * conf/i386-pc.rmk: Likewise.
43345 * conf/powerpc-ieee1275.rmk: Likewise.
43346 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
43347
43348 2006-12-12 Marco Gerards <marco@gnu.org>
43349
43350 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
43351
43352 * kern/env.c (grub_env_unset): Don't free the member `value' when
43353 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
43354 pointer.
43355
43356 * normal/main.c (current_menu): Removed.
43357 (free_menu): Unset the `menu' environment variable.
43358 (grub_normal_menu_addentry): Make use of the environment variable
43359 `menu', instead of using the global `current_menu'. Allocate
43360 memory for the sourcecode of this entry.
43361 (read_config_file): New argument `nested', changed all callers.
43362 Only in the case of a new context, initialize a new menu. Set the
43363 `menu' environment variable.
43364 (grub_normal_execute): Don't set and unset the environment
43365 variable `menu' here anymore. Only free the menu when leaving the
43366 context.
43367
43368 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
43369 leak.
43370
43371 2006-12-11 Marco Gerards <marco@gnu.org>
43372
43373 * normal/menu_entry.c (run): Fix off by one bug so the last line
43374 is executed. Move the loader check to outside the loop.
43375
43376 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
43377
43378 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
43379
43380 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
43381
43382 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
43383 the number of sectors. Reported by Andrey Shuvikov
43384 <mr_hyro@yahoo.com>.
43385
43386 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
43387
43388 * kern/disk.c (grub_disk_read): When there is a read error, always
43389 try to read only the necessary data.
43390
43391 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
43392 disk/raid.c.
43393 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
43394 prototype.
43395 [GRUB_UTIL] (grub_raid_fini): Likewise.
43396 [GRUB_UTIL] (grub_lvm_init): Likewise.
43397 [GRUB_UTIL] (grub_lvm_fini): Likewise.
43398 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
43399 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
43400 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
43401 and grub_raid_fini().
43402
43403 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
43404
43405 * include/grub/types.h (__unused): Rename to UNUSED.
43406 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
43407 (grub_elf64_size): Likewise.
43408
43409 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
43410
43411 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
43412 grub_error_push and grub_error_pop in the error-handling path.
43413 (grub_elf32_load_segment): Only call grub_file_read with non-zero
43414 length.
43415
43416 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
43417
43418 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
43419 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43420 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43421 (kernel_elf_SOURCES): Likewise.
43422 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
43423 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
43424 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
43425 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
43426 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
43427 (elf_mod_SOURCES): New variable.
43428 (elf_mod_CFLAGS): Likewise.
43429 (elf_mod_LDFLAGS): Likewise.
43430 * include/grub/types.h (__unused): New macro.
43431 * include/grub/elfload.h: New file.
43432 * kern/elf.c: Likewise.
43433 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
43434 (ELF32_LOADMASK): New macro.
43435 (ELF64_LOADMASK): Likewise.
43436 (vmlinux): Removed.
43437 (grub_linux_load32): New function.
43438 (grub_linux_load64): Likewise.
43439 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
43440 Use grub_elf_t instead of grub_file_t.
43441
43442 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
43443
43444 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
43445 `catch_result' to struct set_color_args.
43446
43447 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
43448
43449 * normal/menu.c: Include grub/script.h.
43450 * normal/menu_entry.c: Likewise.
43451 * include/grub/normal.h: Do not include grub/script.h.
43452
43453 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
43454
43455 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
43456
43457 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
43458
43459 * kern/disk.c (grub_disk_open): Print debug messages when opening a
43460 disk.
43461 (grub_disk_close): Print debug messages when closing a disk.
43462 (grub_disk_read): Print debug messages when disk read fails.
43463 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
43464 filesystem type.
43465 * kern/partition.c: Include misc.h.
43466 (grub_partition_iterate): Print debug messages when detecting
43467 partition type.
43468
43469 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
43470
43471 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
43472 is negative.
43473 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
43474
43475 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
43476
43477 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
43478 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
43479
43480 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
43481
43482 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
43483 instead of sizeof(lv). Patch by Michael Guntsche.
43484
43485 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
43486
43487 * disk/lvm.c: Rename VGS to VG_LIST.
43488 (grub_lvm_iterate): Change VGS->LV to VG-LV.
43489 (grub_lvm_open): Likewise.
43490 Thanks to Michael Guntsche for finding this bug.
43491
43492 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
43493
43494 * configure.ac (AC_INIT): Bumped to 1.95.
43495
43496 2006-10-14 Robert Millan <rmh@aybabtu.com>
43497
43498 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
43499 with "/dev/.static/dev/md".
43500
43501 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
43502
43503 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
43504 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
43505 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
43506 DRIVE_NAME are always freed.
43507
43508 * util/i386/pc/biosdisk.c (make_device_name): Add one into
43509 DOS_PART, as a DOS partition is counted from one instead of zero
43510 now. Reported by Robert Millan.
43511
43512 2006-10-14 Robert Millan <rmh@aybabtu.com>
43513
43514 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
43515 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
43516 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
43517 string returned by grub_guess_root_device.
43518 * util/i386/pc/grub-setup.c: Likewise.
43519 * util/i386/pc/grub-probefs.c: Likewise.
43520
43521 * util/i386/pc/grub-probefs.c: Rename to ...
43522 * util/i386/pc/grub-probe.c: ... this.
43523 * DISTLIST: Remove grub-probefs, add grub-probe.
43524 * conf/i386-efi.rmk: Likewise.
43525 * conf/i386-pc.rmk: Likewise.
43526 * util/i386/pc/grub-install.in: Likewise.
43527
43528 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
43529 choose which information we want to print.
43530
43531 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
43532
43533 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
43534 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
43535 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
43536 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
43537 video/readers/tga.c and video/i386/pc/vbeutil.c.
43538
43539 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
43540
43541 Added support for RAID and LVM.
43542
43543 * disk/lvm.c: New file.
43544 * disk/raid.c: Likewise.
43545 * include/grub/lvm.h: Likewise.
43546 * include/grub/raid.h: Likewise.
43547 * include/grub/util/lvm.h: Likewise.
43548 * include/grub/util/raid.h: Likewise.
43549 * util/lvm.c: Likewise.
43550 * util/raid.c: Likewise.
43551
43552 * include/grub/disk.h (grub_disk_dev_id): Add
43553 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
43554 (grub_disk_get_size): New prototype.
43555 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
43556 returns a partition.
43557 (grub_disk_get_size): New function.
43558
43559 * kern/i386/pc/init.c (make_install_device): Copy the prefix
43560 verbatim if grub_install_dos_part is -2.
43561
43562 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
43563 and LVM devices.
43564
43565 * util/i386/pc/grub-setup.c (setup): New argument
43566 MUST_EMBED. Force embedding of GRUB when the argument is
43567 true. Close FILE before returning.
43568 (main): Add support for RAID and LVM.
43569
43570 * conf/common.rmk: Add RAID and LVM modules.
43571 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
43572 util/lvm.c.
43573 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
43574
43575 * kern/misc.c (grub_strstr): New function.
43576 * include/grub/misc.h (grub_strstr): New prototype.
43577
43578 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
43579
43580 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
43581
43582 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
43583
43584 * kern/misc.c (grub_strtoull): Guess the base only if not
43585 specified.
43586
43587 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
43588
43589 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
43590 PowerMac support.
43591
43592 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
43593
43594 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
43595
43596 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
43597 Remove `flags' argument. All callers changed.
43598 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
43599 (IEEE1275_IHANDLE_INVALID): New variable.
43600 (IEEE1275_CELL_INVALID): New variable.
43601 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
43602 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
43603 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
43604 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
43605 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
43606 codes from Open Firmware. All callers updated.
43607 (grub_ieee1275_next_property): Directly return Open Firmware return
43608 code.
43609 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
43610 Standardize error checking from `grub_ieee1275_get_property'.
43611 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
43612 `devalias' to `aliases'. Correct comments. Consolidate error paths.
43613
43614 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
43615
43616 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
43617 `instance_to_package_args' to `instance_to_path_args'.
43618
43619 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
43620 `grub_ieee1275_chosen'.
43621
43622 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
43623 `grub_ieee1275_interpret'.
43624
43625 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
43626
43627 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
43628
43629 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
43630
43631 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
43632 (__cmpdi): Likewise.
43633
43634 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
43635 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
43636 `grub_ssize_t'.
43637
43638 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
43639
43640 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
43641 to type `grub_ssize_t'.
43642 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
43643
43644 2006-09-22 Marco Gerards <marco@gnu.org>
43645
43646 * normal/script.c (grub_script_create_cmdmenu): Skip leading
43647 newlines.
43648
43649 2006-09-22 Marco Gerards <marco@gnu.org>
43650
43651 * commands/echo.c: New file.
43652
43653 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
43654
43655 * conf/common.rmk (echo_mod_SOURCES): New variable.
43656 (echo_mod_CFLAGS): Likewise.
43657 (echo_mod_LDFLAGS): Likewise.
43658
43659 2006-09-22 Marco Gerards <marco@gnu.org>
43660
43661 * normal/main.c (get_line): Malloc memory instead of using
43662 preallocated memory. Removed the arguments `cmdline' and
43663 `max_len'. Updated all callers.
43664
43665 2006-09-22 Marco Gerards <marco@gnu.org>
43666
43667 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
43668 (normal_mod_DEPENDENCIES): Likewise.
43669
43670 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
43671 (normal_mod_DEPENDENCIES): Likewise.
43672
43673 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
43674
43675 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
43676
43677 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
43678 programs.
43679 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
43680 (normal_mod_DEPENDENCIES): Likewise.
43681 * conf/i386-pc.mk: Regenerate.
43682 * conf/i386-efi.mk: Likewise
43683 * conf/common.mk: Likewise.
43684 * conf/powerpc-ieee1275.mk: Likewise.
43685 * conf/sparc64-ieee1275.mk: Likewise.
43686
43687 2006-09-22 Robert Millan <rmh@aybabtu.com>
43688
43689 Sync with i386 version.
43690 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
43691 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
43692
43693 2006-09-21 Robert Millan <rmh@aybabtu.com>
43694
43695 Import from GRUB Legacy (lib/device.c):
43696 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
43697 (init_device_map) [__linux__]: Add support for I2O devices.
43698
43699 2006-09-14 Marco Gerards <marco@gnu.org>
43700
43701 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
43702 `-melf_i386'.
43703
43704 2006-09-14 Robert Millan <rmh@aybabtu.com>
43705
43706 * util/i386/pc/grub-install.in: Skip menu.lst when removing
43707 /boot/grub/*.lst.
43708
43709 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
43710
43711 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
43712 before adding it to device.map.
43713
43714 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
43715
43716 * genmk.rb: Let GCC generate dependencies the first time it
43717 compiles a file; using the -MD option.
43718 * conf/common.mk: Regenerate.
43719 * conf/i386-pc.mk: Likewise.
43720 * conf/i386-efi.mk: Likewise.
43721 * conf/powerpc-ieee1275.mk: Likewise.
43722 * conf/sparc64-ieee1275.mk: Likewise.
43723
43724 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
43725
43726 Move the prototypes of grub_setjmp and grub_longjmp to
43727 cpu/setjmp.h, so that each architecture may specify different
43728 attributes.
43729
43730 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
43731 (grub_longjmp): Likewise.
43732 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
43733 (grub_longjmp): Likewise.
43734 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
43735 (grub_longjmp): Likewise.
43736
43737 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
43738 [!GRUB_UTIL] (grub_longjmp): Removed.
43739
43740 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
43741
43742 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
43743 "color!" method does not return any value.
43744
43745 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
43746
43747 * include/grub/bitmap.h: New file.
43748
43749 * include/grub/i386/pc/vbeutil.h: Likewise.
43750
43751 * video/bitmap.c: Likewise.
43752
43753 * video/readers/tga.c: Likewise.
43754
43755 * video/i386/pc/vbeutil.c: Likewise.
43756
43757 * commands/videotest.c: Code cleanup and updated to reflect to new
43758 video API.
43759
43760 * term/gfxterm.c: Likewise.
43761
43762 * video/video.c: Likewise.
43763
43764 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
43765 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
43766 (bitmap_mod_SOURCES): New entry.
43767 (bitmap_mod_CFLAGS): Likewise.
43768 (bitmap_mod_LDFLAGS): Likewise.
43769 (tga_mod_SOURCES): Likewise.
43770 (tga_mod_CFLAGS): Likewise.
43771 (tga_mod_LDFLAGS): Likewise.
43772
43773 * include/grub/video.h (grub_video_blit_operators): New enum type.
43774 (grub_video_render_target): Changed as forward declaration and moved
43775 actual definition to be video driver specific.
43776 (grub_video_adapter.blit_bitmap): Added blitting operator.
43777 (grub_video_adapter.blit_render_target): Likewise.
43778 (grub_video_blit_bitmap): Likewise.
43779 (grub_video_blit_render_target): Likewise.
43780
43781 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
43782 driver specific render target definition.
43783 (grub_video_vbe_map_rgba): Added driver internal helper.
43784 (grub_video_vbe_unmap_color): Updated to use
43785 grub_video_i386_vbeblit_info.
43786 (grub_video_vbe_get_video_ptr): Likewise.
43787
43788 * include/grub/i386/pc/vbeblit.h
43789 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
43790 grub_video_i386_vbeblit_info.
43791 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
43792 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
43793 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
43794 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
43795 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
43796 (grub_video_i386_vbeblit_index_index): Likewise.
43797 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
43798 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
43799 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
43800 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
43801 operator.
43802 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
43803 operator.
43804
43805 * video/i386/pc/vbeblit.c: Updated to reflect changes on
43806 include/grub/i386/pc/vbeblit.h.
43807
43808 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
43809 Updated to use grub_video_i386_vbeblit_info.
43810 (grub_video_i386_vbefill_R8G8B8): Likewise.
43811 (grub_video_i386_vbefill_index): Likewise.
43812 (grub_video_i386_vbefill): Added generic filler.
43813
43814 * video/i386/pc/vbefill.c: Updated to reflect changes on
43815 include/grub/i386/pc/vbefill.h.
43816
43817 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
43818 grub_video_i386_vbeblit_info.
43819 (grub_video_vbe_unmap_color): Likewise.
43820 (grub_video_vbe_blit_glyph): Likewise.
43821 (grub_video_vbe_scroll): Likewise.
43822 (grub_video_vbe_draw_pixel): Removed function.
43823 (grub_video_vbe_get_pixel): Likewise.
43824 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
43825 updated code to use it.
43826 (common_blitter): Added common blitter for render target and bitmap.
43827 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
43828 (grub_video_vbe_blit_render_target): Likewise.
43829
43830 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
43831
43832 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
43833 is in text mode if there is no console control protocol instance
43834 available.
43835
43836 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
43837
43838 * include/grub/video.h: Code cleanup.
43839
43840 * include/grub/i386/pc/vbe.h: Likewise.
43841
43842 * video/i386/pc/vbe.c: Likewise.
43843
43844 * video/i386/pc/vbeblit.c: Likewise.
43845
43846 * video/i386/pc/vbefill.c: Likewise.
43847
43848 * video/video.c: Likewise. Also added more comments.
43849
43850 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
43851
43852 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
43853 (struct grub_biosdisk_dap): Likewise.
43854
43855 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
43856 linkage settings for all functions.
43857
43858 2006-07-12 Marco Gerards <marco@gnu.org>
43859
43860 * configure.ac (--enable-mm-debug): Fix typo.
43861
43862 * genkernsyms.sh.in: Use proper quoting for `CC'.
43863
43864 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
43865
43866 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
43867 (normal_mod_ASFLAGS): Remove "-m32".
43868
43869 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
43870
43871 * util/misc.c: Include config.h.
43872 [!HAVE_MEMALIGN]: Do not include malloc.h.
43873 (grub_memalign): Use posix_memalign, if present. Then, use
43874 memalign, if present. Otherwise, emit an error.
43875
43876 * util/grub-emu.c: Do not include malloc.h.
43877
43878 * include/grub/util/misc.h: Include unistd.h. This is required for
43879 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
43880 D. Eades III <hde@foobar-qux.org>.
43881
43882 * configure.ac (AC_GNU_SOURCE): Added.
43883 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
43884 type.
43885
43886 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
43887
43888 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
43889 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
43890
43891 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
43892
43893 * include/grub/types.h (grub_host_addr_t): Rename to
43894 grub_target_addr_t.
43895 (grub_host_off_t): Rename to grub_target_off_t.
43896 (grub_host_size_t): Rename to grub_target_size_t.
43897 (grub_host_ssize_t): Rename to grub_target_ssize_t.
43898 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
43899
43900 * include/grub/kernel.h (struct grub_module_header): Change type
43901 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
43902 (grub_module_info): Likewise.
43903
43904 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
43905
43906 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
43907 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
43908 Velazquez <jesus.velazquez@gmail.com>.
43909
43910 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
43911
43912 Count partitions from 1 instead of 0 in the string representation
43913 of partitions. Still use 0-based internally.
43914
43915 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
43916 (sun_partition_map_iterate): Use grub_partition_t instead of
43917 struct grub_partition *. Cast DESC->START_CYLINDER to
43918 grub_uint64_t after converting the endian.
43919 (sun_partition_map_probe): Subtract 1 for PARTNUM.
43920 (sun_partition_map_get_name): Add 1 to P->INDEX.
43921
43922 * partmap/pc.c (grub_partition_parse): Subtract 1 for
43923 PCDATA->DOS_PART.
43924 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
43925
43926 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
43927 zero instead of one.
43928 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
43929 (gpt_partition_map_get_name): Add 1 into P->INDEX.
43930
43931 * partmap/apple.c (apple_partition_map_iterate): Change the type
43932 of POS to unsigned.
43933 (apple_partition_map_probe): Subtract 1 for PARTNUM.
43934 (apple_partition_map_get_name): Add 1 into P->INDEX.
43935
43936 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
43937 of POS to unsigned.
43938 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
43939 calculate the offset of a partition.
43940 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
43941 (amiga_partition_map_get_name): Add 1 into P->INDEX.
43942
43943 * partmap/acorn.c (acorn_partition_map_find): Change the type of
43944 SECTOR to grub_disk_addr_t.
43945 (acorn_partition_map_iterate): Likewise.
43946 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
43947 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
43948 top.
43949 (acorn_partition_map_get_name): Add 1 into P->INDEX.
43950
43951 * kern/i386/pc/init.c (make_install_device): Add 1 into
43952 GRUB_INSTALL_DOS_PART.
43953
43954 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
43955 conditional.
43956
43957 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
43958
43959 Clean up the code to support 64-bit addressing in disks and
43960 files. This change is not enough for filesystems yet.
43961
43962 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
43963 type of "start" to grub_uint64_t.
43964 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
43965 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
43966 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
43967 convert addresses.
43968
43969 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
43970 to grub_disk_addr_t.
43971
43972 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
43973 string.
43974
43975 * partmap/pc.c (pc_partition_map_iterate): Likewise.
43976
43977 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
43978 to char *.
43979
43980 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
43981
43982 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
43983
43984 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
43985
43986 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
43987 to grub_off_t, to detect an error from grub_file_seek.
43988 (grub_multiboot_load_elf32): Likewise.
43989
43990 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
43991 maximum unsigned long value when an overflow is detected.
43992 (grub_strtoull): New function.
43993 (grub_divmod64): Likewise.
43994 (grub_lltoa): use grub_divmod64.
43995
43996 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
43997 grub_disk_addr_t.
43998 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
43999 the pointer to next character. Use grub_strtoull instead of
44000 grub_strtoul.
44001 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
44002 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
44003 respectively.
44004
44005 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
44006 return value is signed.
44007 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
44008 test if OFFSET is less than zero, as OFFSET is unsigned now.
44009
44010 * kern/disk.c (struct grub_disk_cache): Change the type of
44011 "sector" to grub_disk_addr_t.
44012 (grub_disk_cache_get_index): Change the type of SECTOR to
44013 grub_disk_addr_t. Calculate the hash with SECTOR casted to
44014 unsigned after shifting.
44015 (grub_disk_cache_invalidate): Change the type of SECTOR to
44016 grub_disk_addr_t.
44017 (grub_disk_cache_unlock): Likewise.
44018 (grub_disk_cache_store): Likewise.
44019 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
44020 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
44021 grub_disk_addr_t and grub_uint64_t, respectively.
44022 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
44023 body, as the value of OFFSET is tweaked by
44024 grub_disk_check_range. Change the types of START_SECTOR, LEN and
44025 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
44026 respectively.
44027 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
44028 body, as the value of OFFSET is tweaked by
44029 grub_disk_check_range. Change the types of LEN and N to
44030 grub_size_t.
44031
44032 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
44033 and "saved_offset" to grub_off_t.
44034 (test_header): Cast BUF to char *.
44035 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
44036 to char *.
44037 (grub_gzio_read): Change the types of OFFSET and SIZE to
44038 grub_off_t and grub_size_t, respectively.
44039
44040 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
44041 Removed.
44042 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
44043 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
44044 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
44045 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
44046 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
44047
44048 * include/grub/types.h (grub_off_t): Unconditionally set to
44049 grub_uint64_t.
44050 (grub_disk_addr_t): Changed to grub_uint64_t.
44051
44052 * include/grub/partition.h (struct grub_partition): Change the
44053 types of "start", "len" and "offset" to grub_disk_addr_t,
44054 grub_uint64_t and grub_disk_addr_t, respectively.
44055 (grub_partition_get_start): Return grub_disk_addr_t.
44056 (grub_partition_get_len): Return grub_uint64_t.
44057
44058 * include/grub/misc.h (grub_strtoull): New prototype.
44059 (grub_divmod64): Likewise.
44060
44061 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
44062 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
44063 grub_off_t, respectively.
44064 All callers and references changed.
44065
44066 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
44067 grub_size_t in "read".
44068 All callers and references changed.
44069
44070 * include/grub/file.h (struct grub_file): Change the types of
44071 "offset" and "size" to grub_off_t and grub_off_t,
44072 respectively. Change the type of SECTOR to grub_disk_addr_t in
44073 "read_hook".
44074 (grub_file_read): Change the type of LEN to grub_size_t.
44075 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
44076 grub_off_t.
44077 (grub_file_size): Return grub_off_t.
44078 (grub_file_tell): Likewise.
44079 All callers and references changed.
44080
44081 * include/grub/disk.h (struct grub_disk_dev): Change the types of
44082 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
44083 "write".
44084 (struct grub_disk): Change the type of "total_sectors" to
44085 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
44086 "read_hook".
44087 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
44088 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
44089 (grub_disk_write): Likewise.
44090 All callers and references changed.
44091
44092 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
44093 char * for grub_strncmp to silence gcc.
44094 (grub_iso9660_mount): Likewise.
44095 (grub_iso9660_mount): Likewise.
44096 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
44097 return statement.
44098 (grub_iso9660_iterate_dir): Likewise.
44099 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
44100
44101 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
44102 LEN to grub_disk_addr_t and grub_size_t, respectively.
44103
44104 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
44105
44106 * fs/jfs.c (grub_jfs_read_file): Likewise.
44107
44108 * fs/minix.c (grub_jfs_read_file): Likewise.
44109
44110 * fs/sfs.c (grub_jfs_read_file): Likewise.
44111
44112 * fs/ufs.c (grub_jfs_read_file): Likewise.
44113
44114 * fs/xfs.c (grub_jfs_read_file): Likewise.
44115
44116 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
44117 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
44118 respectively.
44119
44120 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
44121 BLKNR to -1 instead of returning GRUB_ERRNO.
44122 (grub_ext2_read_file): Change the types of SECTOR and
44123 LEN to grub_disk_addr_t and grub_size_t, respectively.
44124
44125 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
44126 LEN to grub_disk_addr_t and grub_size_t, respectively.
44127
44128 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
44129 grub_file_read.
44130
44131 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
44132 string. Do not cast SECTOR explicitly.
44133
44134 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
44135 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
44136 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
44137 grub_disk_addr_t and grub_size_t, respectively. If the sector is
44138 over 2TB and LBA mode is not supported, raise an error.
44139 (get_safe_sectors): New function.
44140 (grub_biosdisk_read): Use get_safe_sectors.
44141 (grub_biosdisk_write): Likewise.
44142
44143 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
44144 (grub_efidisk_write): Likewise.
44145
44146 * disk/loopback.c (delete_loopback): Cosmetic changes.
44147 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
44148 correctly.
44149 (grub_loopback_open): Likewise.
44150 (grub_loopback_read): Likewise. Also, change the type of POS to
44151 grub_off_t, and fix the usage of grub_memset.
44152
44153 * commands/i386/pc/play.c: Include grub/machine/time.h.
44154
44155 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
44156 print FILE->SIZE.
44157
44158 * commands/configfile.c: Include grub/env.h.
44159
44160 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
44161 GRUB_ERRNO directly instead. Change the type of POS to
44162 grub_off_t. Follow the coding standard.
44163
44164 * commands/blocklist.c: Include grub/partition.h.
44165 (grub_cmd_blocklist): Return an error if the underlying device is
44166 not a disk. Take the starting sector of a partition into account,
44167 if a partition is used.
44168
44169 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
44170 a length field.
44171 (lba_mode): Support 64-bit addresses.
44172 (chs_mode): Likewise.
44173 (copy_buffer): Adapted to the new offsets of a length field and a
44174 segment field.
44175 (blocklist_default_start): Allocate 64-bit space.
44176
44177 * boot/i386/pc/boot.S (force_lba): Removed.
44178 (boot_drive): Moved to under KERNEL_SECTOR.
44179 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
44180 space.
44181 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
44182 is useless.
44183 (lba_mode): Refactored to support a 64-bit address. More size
44184 optimization.
44185 (setup_sectors): Likewise.
44186
44187 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
44188
44189 * DISTLIST: Added include/grub/i386/linux.h. Removed
44190 include/grub/i386/pc/linux.h
44191
44192 * configure.ac (AC_INIT): Bumped to 1.94.
44193
44194 * config.guess: Updated from gnulib.
44195 * config.sub: Likewise.
44196 * install-sh: Likewise.
44197 * mkinstalldirs: Likewise.
44198
44199 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
44200
44201 * conf/common.rmk (grub_modules_init.lst): Depended on
44202 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
44203 MODSRCFILES.
44204
44205 * genmk.rb (PModule::rule): Reverted the previous change.
44206
44207 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
44208
44209 * conf/common.rmk (grub_modules_init.lst): Depends on
44210 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
44211 that the target does not exist before producing.
44212 (grub_modules_init.h): Remove the target before generating.
44213 (grub_emu_init.c): Likewise.
44214
44215 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
44216
44217 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
44218
44219 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
44220 for the target-specific tests. Make sure that we also have the
44221 up-to-date target variables for those tests.
44222
44223 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
44224
44225 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
44226 (PModule::rule): Likewise.
44227
44228 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
44229
44230 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
44231 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
44232 target-specific flags should be prefixed.
44233 (PModule::rule): Likewise.
44234
44235 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
44236
44237 * configure.ac (CMP): Check if cmp is available explicitly.
44238
44239 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
44240
44241 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
44242 (target_cpu): New variable.
44243 (pkglibdir): Use target_cpu instead of host_cpu.
44244
44245 * util/i386/pc/grub-install.in (host_cpu): Removed.
44246 (target_cpu): New variable.
44247 (pkglibdir): Use target_cpu instead of host_cpu.
44248
44249 * util/genmoddep.c: Removed.
44250
44251 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
44252 instead of GRUB_HOST_SIZEOF_VOID_P.
44253 * kern/dl.c: Likewise.
44254
44255 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
44256 ...
44257 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
44258 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
44259 (GRUB_TARGET_SIZEOF_LONG): ... this.
44260 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
44261 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
44262 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
44263 to ...
44264 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
44265 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
44266 (GRUB_TARGET_SIZEOF_LONG): ... this.
44267 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
44268 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
44269 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
44270 to ...
44271 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
44272 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
44273 (GRUB_TARGET_SIZEOF_LONG): ... this.
44274 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
44275 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
44276
44277 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
44278 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
44279 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
44280 instead of GRUB_HOST_SIZEOF_LONG.
44281 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
44282 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
44283 GRUB_CPU_WORDS_BIGENDIAN.
44284 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
44285 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
44286 grub_host_ssize_t.
44287
44288 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
44289 (genmoddep_SOURCES): Likewise.
44290 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
44291 (genmoddep_SOURCES): Likewise.
44292 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
44293 (genmoddep_SOURCES): Likewise.
44294 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
44295 Likewise.
44296 (genmoddep_SOURCES): Likewise.
44297
44298 * genmoddep.awk: New file.
44299
44300 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
44301 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
44302 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
44303 (PModule::rule): Likewise.
44304 (Program::rule): Likewise.
44305 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
44306 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
44307 respectively.
44308
44309 * configure.ac: Rewritten intensively to use host and target
44310 instead of build and host, respectively.
44311
44312 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
44313 (host_cpu): Removed.
44314 (target_cpu): New variable.
44315 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
44316 (BUILD_CC): Removed.
44317 (BUILD_CFLAGS): Likewise.
44318 (BUILD_CPPFLAGS): Likewise.
44319 (TARGET_CC): New variable.
44320 (TARGET_CFLAGS): Likewise.
44321 (TARGET_CPPFLAGS): Likewise.
44322 (TARGET_LDFLAGS): Likewise.
44323 (AWK): Likewise.
44324 (include): Use target_cpu instead of host_cpu.
44325 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
44326
44327 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
44328
44329 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
44330
44331 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
44332 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
44333 field 'false' to 'exec_on_false'.
44334 (grub_script_create_cmdif): Renamed argument names to reflect above
44335 changes.
44336
44337 * normal/execute.c (grub_script_execute_cmdif): Likewise.
44338
44339 * normal/script.c (grub_script_create_cmdif): Likewise.
44340
44341 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
44342
44343 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
44344 top.
44345 (grub_hfsplus_btree_recptr): Likewise.
44346 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
44347 FILEBLOCK both to pass a block number and store next block
44348 number.
44349 (grub_hfsplus_read_block): Rewritten heavily to support an extent
44350 overflow file correctly. Specify errors appropriately, because
44351 fshelp expects that GRUB_ERRNO is set when fails. Reuse
44352 grub_hfsplus_btree_recptr to get the pointer to a found key.
44353 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
44354 is found.
44355
44356 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
44357 linux.mod.
44358 (_linux_mod_SOURCES): New variable.
44359 (_linux_mod_CFLAGS): Likewise.
44360 (_linux_mod_LDFLAGS): Likewise.
44361 (linux_mod_SOURCES): Likewise.
44362 (linux_mod_CFLAGS): Likewise.
44363 (linux_mod_LDFLAGS): Likewise.
44364
44365 * DISTLIST: Added loader/i386/efi/linux.c,
44366 loader/i386/efi/linux_normal.c and
44367 include/grub/i386/efi/loader.h.
44368
44369 * loader/i386/efi/linux.c: New file.
44370 * loader/i386/efi/linux_normal.c: Likewise.
44371 * include/grub/i386/efi/loader.h: Likewise.
44372
44373 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
44374
44375 * commands/blocklist.c: New file.
44376
44377 * DISTLIST: Added commands/blocklist.c.
44378
44379 * term/efi/console.c (grub_console_highlight_color): Use a lighter
44380 color for the background, and a darker color for the foreground.
44381 (grub_console_checkkey): Return READ_KEY.
44382 (grub_console_cls): Set the background to
44383 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
44384
44385 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
44386
44387 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
44388 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
44389
44390 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
44391 prototype.
44392
44393 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
44394 BG. The spec is wrong again.
44395
44396 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
44397 prototype.
44398 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
44399
44400 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
44401 commands/blocklist.c.
44402 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44403
44404 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
44405 (blocklist_mod_SOURCES): New variable.
44406 (blocklist_mod_CFLAGS): Likewise.
44407 (blocklist_mod_LDFLAGS): Likewise.
44408
44409 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
44410
44411 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
44412 duplication.
44413 (lba_mode): Use %eax more intensively to reduce the code size.
44414
44415 2006-05-20 Marco Gerards <marco@gnu.org>
44416
44417 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
44418
44419 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
44420 for `menuentry'.
44421 (script): Accept leading newlines.
44422 (newlines): New rule to describe 0 or more newlines.
44423 (commands): Accept `command' with trailing newline. Fixed the
44424 order in which arguments were passed to `grub_script_add_cmd'.
44425 Accept commands separated by newlines.
44426 (function): Changed to accept newlines.
44427 (menuentry) Rewritten.
44428
44429 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
44430 front of the list, instead of to the end.
44431
44432 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
44433
44434 * util/i386/pc/grub-install.in (bindir): New variable.
44435 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
44436 Shaver <lbgwjl@gmail.com>.
44437
44438 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
44439
44440 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
44441 grub/machine/linux.h
44442 * loader/i386/pc/linux.c: Likewise.
44443
44444 * include/grub/i386/pc/linux.h: Moved to ...
44445 * include/grub/i386/linux.h: ... here.
44446
44447 * include/grub/i386/linux.h (struct linux_kernel_params): New
44448 struct.
44449
44450 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
44451
44452 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
44453 checking.
44454 (grub_video_vbe_blit_glyph): Likewise.
44455 (grub_video_vbe_blit_bitmap): Likewise.
44456 (grub_video_vbe_blit_render_target): Likewise.
44457
44458 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
44459
44460 * configure.ac (--with-platform): Properly quote the square
44461 brackets.
44462
44463 2006-05-08 Marco Gerards <marco@gnu.org>
44464
44465 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
44466 this...
44467 (kernel_elf_HEADERS): ...to this. Updated all users.
44468 (grubof_symlist.c): Renamed from this...
44469 (kernel_elf_symlist.c): ...to this. Updated all users.
44470 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
44471 (grubof_SOURCES): Renamed from this...
44472 (kernel_elf_SOURCES): ...to this.
44473 (grubof_HEADERS): Renamed from this...
44474 (kernel_elf_HEADERS): ...to this.
44475 (grubof_CFLAGS): Renamed from this...
44476 (kernel_elf_CFLAGS): ...to this.
44477 (grubof_ASFLAGS): Renamed from this...
44478 (kernel_elf_ASFLAGS): ...to this.
44479 (grubof_LDFLAGS): Renamed from this...
44480 (kernel_elf_LDFLAGS): ...to this.
44481
44482 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
44483 this...
44484 (kernel_elf_HEADERS): ...to this. Updated all users.
44485 (grubof_symlist.c): Renamed from this...
44486 (kernel_elf_symlist.c): ...to this. Updated all users.
44487 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
44488 (grubof_SOURCES): Renamed from this...
44489 (kernel_elf_SOURCES): ...to this.
44490 (grubof_HEADERS): Renamed from this...
44491 (kernel_elf_HEADERS): ...to this.
44492 (grubof_CFLAGS): Renamed from this...
44493 (kernel_elf_CFLAGS): ...to this.
44494 (grubof_ASFLAGS): Renamed from this...
44495 (kernel_elf_ASFLAGS): ...to this.
44496 (grubof_LDFLAGS): Renamed from this...
44497 (kernel_elf_LDFLAGS): ...to this.
44498
44499 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
44500 `kernel.elf' instead of `grubof'.
44501
44502 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
44503
44504 Add --with-platform to configure. Use pkglibdir instead of
44505 pkgdatadir. This is reported by Roger Leigh.
44506
44507 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
44508 (host_vendor): Likewise.
44509 (host_os): Likewise.
44510 (pkgdatadir): Likewise.
44511 (platform): New variable.
44512 (pkglibdir): Likewise.
44513 Use PKGLIBDIR instead of PKGDATADIR.
44514
44515 * util/i386/pc/grub-install.in (datadir): Removed.
44516 (host_vendor): Likewise.
44517 (host_os): Likewise.
44518 (pkgdatadir): Likewise.
44519 (platform): New variable.
44520 (pkglibdir): Likewise.
44521 Use PKGLIBDIR instead of PKGDATADIR.
44522
44523 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
44524 instead of GRUB_DATADIR.
44525 (main): Likewise.
44526 * util/i386/pc/grub-mkimage.c (usage): Likewise.
44527 (main): Likewise.
44528 * util/i386/efi/grub-mkimage.c (usage): Likewise.
44529 (main): Likewise.
44530
44531 * configure.ac (--with-platform): New option.
44532 Use PLATFORM instead of HOST_VENDOR to specify a platform.
44533
44534 * Makefile.in: Include a makefile based on PLATFORM instead of
44535 HOST_VENDOR.
44536 (pkgdatadir): Not appended by the machine type.
44537 (pkglibdir): Appended by the machine type.
44538 (host_vendor): Removed.
44539 (platform): New variable.
44540 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
44541 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
44542 (uninstall): Likewise.
44543
44544 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
44545
44546 Use the environment context in the menu. Remove the commands
44547 "default" and "timeout", and use variables instead.
44548
44549 * normal/menu.c: Include grub/env.h.
44550 (print_entry): Cast TITLE to silence gcc.
44551 (get_timeout): New function.
44552 (set_timeout): Likewise.
44553 (get_entry_number): Likewise.
44554 (run_menu): Use a default entry, a fallback entry and a timeout
44555 in the environment variables "default", "fallback" and
44556 "timeout". Also, tweak the default entry if it is not within the
44557 current menu entries.
44558 (grub_menu_run): Use a fallback entry in the environment variable
44559 "fallback".
44560
44561 * normal/main.c (read_config_file): Do not initialize
44562 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
44563 NEWMENU->TIMEOUT.
44564 (grub_normal_execute): Use a data slot to store the menu.
44565
44566 * include/grub/normal.h (struct grub_menu): Removed default_entry,
44567 fallback_entry and timeout.
44568 (struct grub_menu_list): Removed.
44569 (grub_menu_list_t): Likewise.
44570 (struct grub_context): Likewise.
44571 (grub_context_t): Likewise.
44572 (grub_context_get): Likewise.
44573 (grub_context_get_current_menu): Likewise.
44574 (grub_context_push_menu): Likewise.
44575 (grub_context_pop_menu): Likewise.
44576 (grub_default_init): Likewise.
44577 (grub_default_fini): Likewise.
44578 (grub_timeout_init): Likewise.
44579 (grub_timeout_fini): Likewise.
44580
44581 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
44582 and timeout.mod.
44583 (normal_mod_SOURCES): Removed normal/context.c.
44584
44585 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
44586 commands/default.c, commands/timeout.c and normal/context.c.
44587 (normal_mod_SOURCES): Removed normal/context.c.
44588
44589 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
44590 commands/timeout.c and normal/context.c.
44591 (normal_mod_SOURCES): Removed normal/context.c.
44592
44593 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
44594 commands/default.c, commands/timeout.c and normal/context.c.
44595 (normal_mod_SOURCES): Removed normal/context.c.
44596
44597 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
44598 timeout.mod.
44599 (default_mod_SOURCES): Removed.
44600 (default_mod_CFLAGS): Likewise.
44601 (default_mod_LDFLAGS): Likewise.
44602 (timeout_mod_SOURCES): Removed.
44603 (timeout_mod_CFLAGS): Likewise.
44604 (timeout_mod_LDFLAGS): Likewise.
44605
44606 * DISTLIST: Removed commands/default.c, commands/timeout.c and
44607 normal/context.c.
44608
44609 * commands/default.c: Removed.
44610 * commands/timeout.c: Likewise.
44611 * normal/context.c: Likewise.
44612
44613 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
44614
44615 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
44616
44617 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
44618
44619 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
44620 "next" to "prev" for readability.
44621 (struct grub_env_sorted_var): New struct.
44622 (grub_env_context): Renamed to ...
44623 (initial_context): ... this.
44624 (grub_env_var_context): Renamed to ...
44625 (current_context): ... this.
44626 (grub_env_find): Look only at CURRENT_CONTEXT.
44627 (grub_env_context_open): Rewritten to copy exported variables from
44628 previous context.
44629 (grub_env_context_close): Rewritten according to the new
44630 scheme. Also, add an assertion to prevent the initial context from
44631 removed.
44632 (grub_env_insert): Removed the code for the sorted list.
44633 (grub_env_remove): Likewise.
44634 (grub_env_export): Simply mark the variable with
44635 GRUB_ENV_VAR_GLOBAL.
44636 (grub_env_set): A cosmetic change for naming consistency.
44637 (grub_env_get): Likewise.
44638 (grub_env_unset): Likewise.
44639 (grub_env_iterate): Rewritten to sort variables within this
44640 function.
44641 (grub_register_variable_hook): Fixed for naming consistency. Call
44642 grub_env_find again, only if NAME is not found at the first time.
44643 (mangle_data_slot_name): New function.
44644 (grub_env_set_data_slot): Likewise.
44645 (grub_env_get_data_slot): Likewise.
44646 (grub_env_unset_data_slot): Likewise.
44647
44648 * include/grub/env.h (grub_env_var_type): New enum.
44649 (GRUB_ENV_VAR_LOCAL): New constant.
44650 (GRUB_ENV_VAR_GLOBAL): Likewise.
44651 (GRUB_ENV_VAR_DATA): Likewise.
44652 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
44653 "type".
44654 (grub_env_set): Replace VAR with NAME for consistency.
44655 (grub_register_variable_hook): Likewise.
44656 (grub_env_export): Specify the name of the argument.
44657 (grub_env_set_data_slot): New prototype.
44658 (grub_env_get_data_slot): Likewise.
44659 (grub_env_unset_data_slot): Likewise.
44660
44661 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
44662
44663 Extend the loader so that GRUB can accept a loader which comes
44664 back to GRUB when a loaded image exits. Also, this change adds
44665 support for a chainloader on EFI.
44666
44667 * term/efi/console.c: Include grub/misc.h.
44668 (grub_console_checkkey): Display a scan code on the top for
44669 debugging. This will be removed once the EFI port gets stable.
44670 Correct the scan code mapping.
44671
44672 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
44673 allocate memory from larger regions, in order to reduce the number
44674 of allocated regions. Otherwise, the MacOSX loader panics.
44675 (filter_memory_map): Avoid less than 1MB for compatibility with
44676 other loaders.
44677 (add_memory_regions): Allocate from the tail of a region, if
44678 possible, to avoid allocating a region near to 1MB, for the MacOSX
44679 loader.
44680
44681 * kern/efi/init.c (grub_efi_set_prefix): Specify
44682 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
44683
44684 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
44685 argument IMAGE_HANDLE and specify it to get a loaded image.
44686 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
44687 grub_efi_get_loaded_image.
44688 (grub_efi_get_filename): Divide the length by the size of
44689 grub_efi_char16_t.
44690 (grub_efi_get_device_path): New function.
44691 (grub_efi_print_device_path): Print End Device Path nodes. Divide
44692 the length by the size of grub_efi_char16_t for a file path device
44693 path node.
44694
44695 * kern/loader.c (grub_loader_noreturn): New variable.
44696 (grub_loader_set): Accept a new argument NORETURN. Set
44697 GRUB_LOADER_NORETURN to NORETURN.
44698 All callers changed.
44699 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
44700 grub_machine_fini.
44701
44702 * include/grub/efi/efi.h (grub_efi_get_device_path): New
44703 prototype.
44704 (grub_efi_get_loaded_image): Take an argument to specify an image
44705 handle.
44706
44707 * include/grub/loader.h (grub_loader_set): Added one more argument
44708 NORETURN.
44709
44710 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
44711 instead of grub_efi_open_protocol.
44712 (grub_efidisk_get_device_name): Likewise.
44713 (grub_efidisk_close): Print a newline.
44714 (grub_efidisk_get_device_handle): Fixed to use
44715 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
44716 GRUB_EFI_DEVICE_PATH_TYPE.
44717
44718 * disk/efi/efidisk.c (device_path_guid): Moved to ...
44719 * kern/efi/efi.c (device_path_guid): ... here.
44720
44721 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
44722 chain.mod.
44723 (kernel_mod_HEADERS): Added efi/disk.h.
44724 (_chain_mod_SOURCES): New variable.
44725 (_chain_mod_CFLAGS): Likewise.
44726 (_chain_mod_LDFLAGS): Likewise.
44727 (chain_mod_SOURCES): Likewise.
44728 (chain_mod_CFLAGS): Likewise.
44729 (chain_mod_LDFLAGS): Likewise.
44730
44731 * DISTLIST: Added include/grub/efi/chainloader.h,
44732 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
44733
44734 * include/grub/efi/chainloader.h: New file.
44735 * loader/efi/chainloader.c: Likewise.
44736 * loader/efi/chainloader_normal.c: Likewise.
44737
44738 2006-04-30 Marco Gerards <marco@gnu.org>
44739
44740 * commands/configfile.c (grub_cmd_source): New function.
44741 (GRUB_MOD_INIT): Register the commands `source' and `.'.
44742 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
44743
44744 2006-04-30 Marco Gerards <marco@gnu.org>
44745
44746 * normal/execute.c (grub_script_execute_cmd): Change the return
44747 type to `grub_err_t'. Correctly return the error.
44748 (grub_script_execute_cmdline): In case a command line is not a
44749 command or a function, try to interpret it as an assignment.
44750
44751 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
44752
44753 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
44754 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
44755 skip a node whose name is obviously invalid as UTF-16,
44756 i.e. contains a NUL character. Stop the iteration when the last
44757 directory entry is found. Instead of using the return value of
44758 grub_hfsplus_btree_iterate_node, store the value in RET and use
44759 it, because the iterator can be stopped by the last directory
44760 entry.
44761
44762 2006-04-30 Marco Gerards <marco@gnu.org>
44763
44764 * include/grub/env.h (grub_env_export): New prototype. Reported
44765 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
44766
44767 2006-04-30 Marco Gerards <marco@gnu.org>
44768
44769 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
44770 size of the extents in a catalog file record.
44771
44772 2006-04-29 Marco Gerards <marco@gnu.org>
44773
44774 * commands/configfile.c (grub_cmd_configfile): Execute the
44775 configfile within its own context.
44776
44777 * include/grub/env.h (grub_env_context_open): New prototype.
44778 (grub_env_context_close): Likewise.
44779
44780 * kern/env.c (grub_env): Removed.
44781 (grub_env_sorted): Likewise.
44782 (grub_env_context): New variable.
44783 (grub_env_var_context): Likewise.
44784 (grub_env_find): Search both the active context and the global
44785 context.
44786 (grub_env_context_open): New function.
44787 (grub_env_context_close): Likewise.
44788 (grub_env_insert): Likewise.
44789 (grub_env_remove): Likewise.
44790 (grub_env_export): Likewise.
44791 (grub_env_set): Changed to use helper functions to avoid code
44792 duplication.
44793 (grub_env_iterate): Rewritten so both the current context and the
44794 global context are being used.
44795
44796 * normal/command.c (export_command): New function.
44797 (grub_command_init): Register the `export' function.
44798
44799 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
44800
44801 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
44802 explicitly to suppress gcc's warnings.
44803 * fs/fat.c (grub_fat_find_dir): Likewise.
44804 (grub_fat_label): Likewise.
44805 * fs/xfs.c (grub_xfs_read_inode): Likewise.
44806 (grub_xfs_mount): Likewise.
44807 (grub_xfs_label): Likewise.
44808 * fs/affs.c (grub_affs_mount): Likewise.
44809 (grub_affs_label): Likewise.
44810 (grub_affs_iterate_dir): Likewise.
44811 * fs/sfs.c (grub_sfs_mount): Likewise.
44812 (grub_sfs_iterate_dir): Likewise.
44813 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
44814 * fs/hfs.c (grub_hfs_mount): Likewise.
44815 (grub_hfs_cmp_catkeys): Likewise.
44816 (grub_hfs_find_dir): Likewise.
44817 (grub_hfs_dir): Likewise.
44818 (grub_hfs_label): Likewise.
44819 * fs/jfs.c (grub_jfs_mount): Likewise.
44820 (grub_jfs_opendir): Likewise.
44821 (grub_jfs_getent): Likewise.
44822 (grub_jfs_lookup_symlink): Likewise.
44823 (grub_jfs_label): Likewise.
44824 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
44825 (grub_hfsplus_iterate_dir): Likewise.
44826 (grub_hfsplus_btree_iterate_node): Made static.
44827
44828 * util/grub-emu.c (prefix): New variable.
44829 (grub_machine_set_prefix): New function.
44830 (main): Do not set the environment variable "prefix" here. Only
44831 set PREFIX, which is used later by grub_machine_set_prefix.
44832
44833 * include/grub/video.h: Do not include grub/symbol.h.
44834 (grub_video_register): Not exported. This symbol is not defined in
44835 the kernel.
44836 (grub_video_unregister): Likewise.
44837 (grub_video_iterate): Likewise.
44838 (grub_video_setup): Likewise.
44839 (grub_video_restore): Likewise.
44840 (grub_video_get_info): Likewise.
44841 (grub_video_get_blit_format): Likewise.
44842 (grub_video_set_palette): Likewise.
44843 (grub_video_get_palette): Likewise.
44844 (grub_video_set_viewport): Likewise.
44845 (grub_video_get_viewport): Likewise.
44846 (grub_video_map_color): Likewise.
44847 (grub_video_map_rgb): Likewise.
44848 (grub_video_map_rgba): Likewise.
44849 (grub_video_fill_rect): Likewise.
44850 (grub_video_blit_glyph): Likewise.
44851 (grub_video_blit_bitmap): Likewise.
44852 (grub_video_blit_render_target): Likewise.
44853 (grub_video_scroll): Likewise.
44854 (grub_video_swap_buffers): Likewise.
44855 (grub_video_create_render_target): Likewise.
44856 (grub_video_delete_render_target): Likewise.
44857 (grub_video_set_active_render_target): Likewise.
44858
44859 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
44860 Undefined.
44861 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
44862
44863 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
44864 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
44865 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
44866 instead of $(srcdir)/genkernsyms.sh.
44867
44868 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
44869 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
44870 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
44871 instead of $(srcdir)/genkernsyms.sh.
44872
44873 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
44874 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
44875 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
44876 instead of $(srcdir)/genkernsyms.sh.
44877
44878 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
44879 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
44880 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
44881 instead of $(srcdir)/genkernsyms.sh.
44882
44883 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
44884 genkernsyms.sh.
44885
44886 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
44887 genkernsyms.sh.
44888 (gensymlist.sh): New target.
44889 (genkernsyms.sh): Likewise.
44890
44891 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
44892 genkernsyms.sh.in and gensymlist.sh.in.
44893
44894 * genkernsyms.sh: Removed.
44895 * gensymlist.sh: Likewise.
44896
44897 * genkernsyms.sh.in: New file.
44898 * gensymlist.sh.in: Likewise.
44899
44900 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
44901
44902 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
44903 clobber "prefix", since we may have already set it manually.
44904
44905 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
44906
44907 * kern/misc.c (abort): New alias for grub_abort.
44908
44909 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
44910
44911 A new machine-specific function "grub_machine_set_prefix" is
44912 defined. This is called after loading modules, so that a prefix
44913 initialization can use modules. Also, this change adds an
44914 intensive debugging feature for the memory manager via the
44915 configure option "--enable-mm-debug".
44916
44917 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
44918 PART.LEN.
44919
44920 * kern/sparc64/ieee1275/init.c (abort): Removed.
44921 (grub_stop): Likewise.
44922 (grub_exit): New function.
44923 (grub_set_prefix): Renamed to ...
44924 (grub_machine_set_prefix): ... this.
44925 (grub_machine_init): Do not call grub_set_prefix.
44926
44927 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
44928 (grub_machine_set_prefix): ... this.
44929 (grub_machine_init): Do not call grub_set_prefix.
44930
44931 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
44932 (grub_machine_init): Do not set the prefix here.
44933
44934 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
44935
44936 * kern/efi/init.c: Include grub/mm.h.
44937 (grub_efi_set_prefix): New function.
44938
44939 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
44940 (grub_efi_get_filename): New function.
44941 (grub_print_device_path): Renamed to ...
44942 (grub_efi_print_device_path): ... this.
44943
44944 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
44945 [MM_DEBUG] (grub_realloc): Likewise.
44946 [MM_DEBUG] (grub_free): Likewise.
44947 [MM_DEBUG] (grub_memalign): Likewise.
44948 [MM_DEBUG] (grub_mm_debug): New variable.
44949 [MM_DEBUG] (grub_debug_malloc): New function.
44950 [MM_DEBUG] (grub_debug_free): New function.
44951 [MM_DEBUG] (grub_debug_realloc): New function.
44952 [MM_DEBUG] (grub_debug_memalign): New function.
44953
44954 * kern/misc.c (grub_abort): Print a newline to distinguish
44955 the message.
44956
44957 * kern/main.c (grub_main): Call grub_machine_set_prefix and
44958 grub_set_root_dev after loading modules. This is necessary when
44959 setting a prefix depends on modules.
44960
44961 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
44962 (grub_efi_print_device_path): ... this.
44963 (grub_efi_get_filename): New prototype.
44964 (grub_efi_set_prefix): Likewise.
44965
44966 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
44967 and grub/disk.h.
44968 (grub_efidisk_get_device_handle): New prototype.
44969 (grub_efidisk_get_device_name): Likewise.
44970
44971 * include/grub/mm.h: Include config.h.
44972 (MM_DEBUG): Removed.
44973 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
44974 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
44975 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
44976 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
44977 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
44978 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
44979 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
44980 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
44981 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
44982
44983 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
44984
44985 * disk/efi/efidisk.c: Include grub/partition.h.
44986 (iterate_child_devices): New function.
44987 (add_device): First, compare only last device path nodes, so that
44988 devices are sorted by the types.
44989 (grub_efidisk_get_device_handle): New function.
44990 (grub_efidisk_get_device_name): Likewise.
44991
44992 * configure.ac (--enable-mm-debug): New option to enable the
44993 memory manager debugging feature. This makes the binary much
44994 bigger, so is disabled by default.
44995
44996 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
44997
44998 Use grub_abort instead of grub_stop, and grub_exit must be
44999 define in each architecture now. Also, this change adds support
45000 for EFI disks.
45001
45002 * util/i386/pc/grub-probefs.c: Include grub/term.h.
45003 (grub_getkey): New function.
45004 (grub_term_get_current): Likewise.
45005
45006 * util/i386/pc/grub-setup.c: Include grub/term.h.
45007 (grub_getkey): New function.
45008 (grub_term_get_current): Likewise.
45009
45010 * util/misc.c (grub_stop): Renamed to ...
45011 (grub_exit): ... this.
45012
45013 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
45014 (grub_exit): ... this.
45015 (grub_machine_init): Use grub_abort instead of abort.
45016 (grub_stop): Removed.
45017
45018 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
45019 abort.
45020
45021 * kern/i386/pc/startup.S (grub_exit): New function.
45022 (cold_reboot): New label.
45023
45024 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
45025 (grub_efi_init): Call grub_efidisk_init.
45026 (grub_efi_fini): Call grub_efidisk_fini.
45027
45028 * kern/efi/efi.c: Include grub/mm.h.
45029 (grub_efi_console_control_guid): Renamed to ...
45030 (console_control_guid): ... this.
45031 (grub_efi_loaded_image_guid): Renamed to ...
45032 (loaded_image_guid): ... this.
45033 (grub_efi_locate_handle): New function.
45034 (grub_efi_open_protocol): Likewise.
45035 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
45036 GRUB_EFI_CONSOLE_CONTROL_GUID.
45037 (grub_efi_exit): Removed.
45038 (grub_stop): Likewise.
45039 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
45040 (grub_exit): New function.
45041 (grub_print_device_path): Likewise.
45042
45043 * kern/rescue.c (grub_rescue_cmd_exit): New function.
45044 (grub_enter_rescue_mode): Register "exit".
45045
45046 * kern/misc.c (grub_real_dprintf): A cosmetic change.
45047 (grub_abort): New function.
45048
45049 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
45050
45051 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
45052
45053 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
45054
45055 * include/grub/efi/efi.h (grub_efi_exit): Removed.
45056 (grub_print_device_path): New prototype.
45057 (grub_efi_locate_handle): Likewise.
45058 (grub_efi_open_protocol): Likewise.
45059
45060 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
45061 * disk/efi/efidisk.c: Likewise.
45062
45063 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
45064
45065 * include/grub/efi/console_control.h
45066 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
45067
45068 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
45069 last 8 bytes as an array.
45070 (GRUB_EFI_DISK_IO_GUID): New macro.
45071 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
45072 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
45073 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
45074 grub_uint8_t.
45075 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
45076 (struct grub_efi_device_path): Rename the member "sub_type" to
45077 "subtype".
45078 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
45079 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
45080 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
45081 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
45082 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
45083 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
45084 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
45085 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
45086 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
45087 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
45088 (struct grub_efi_pci_device_path): New structure.
45089 (grub_efi_pci_device_path_t): New type.
45090 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
45091 (struct grub_efi_pccard_device_path): New structure.
45092 (grub_efi_pccard_device_path_t): New type.
45093 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
45094 (struct grub_efi_memory_mapped_device_path): New structure.
45095 (grub_efi_memory_mapped_device_path_t): New type.
45096 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
45097 (struct grub_efi_vendor_device_path): New structure.
45098 (grub_efi_vendor_device_path_t): New type.
45099 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
45100 (struct grub_efi_controller_device_path): New structure.
45101 (grub_efi_controller_device_path_t): New type.
45102 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
45103 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
45104 (struct grub_efi_acpi_device_path): New structure.
45105 (grub_efi_acpi_device_path_t): New type.
45106 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
45107 (struct grub_efi_expanded_acpi_device_path): New structure.
45108 (grub_efi_expanded_acpi_device_path_t): New type.
45109 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
45110 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
45111 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
45112 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
45113 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
45114 (struct grub_efi_atapi_device_path): New structure.
45115 (grub_efi_atapi_device_path_t): New type.
45116 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
45117 (struct grub_efi_fibre_channel_device_path): New structure.
45118 (grub_efi_fibre_channel_device_path_t): New type.
45119 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
45120 (struct grub_efi_1394_device_path): New structure.
45121 (grub_efi_1394_device_path_t): New type.
45122 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
45123 (struct grub_efi_usb_device_path): New structure.
45124 (grub_efi_usb_device_path_t): New type.
45125 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
45126 (struct grub_efi_usb_class_device_path): New structure.
45127 (grub_efi_usb_class_device_path_t): New type.
45128 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
45129 (struct grub_efi_i2o_device_path): New structure.
45130 (grub_efi_i2o_device_path_t): New type.
45131 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
45132 (struct grub_efi_mac_address_device_path): New structure.
45133 (grub_efi_mac_address_device_path_t): New type.
45134 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
45135 (struct grub_efi_ipv4_device_path): New structure.
45136 (grub_efi_ipv4_device_path_t): New type.
45137 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
45138 (struct grub_efi_ipv6_device_path): New structure.
45139 (grub_efi_ipv6_device_path_t): New type.
45140 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
45141 (struct grub_efi_infiniband_device_path): New structure.
45142 (grub_efi_infiniband_device_path_t): New type.
45143 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
45144 (struct grub_efi_uart_device_path): New structure.
45145 (grub_efi_uart_device_path_t): New type.
45146 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
45147 (struct grub_efi_vendor_messaging_device_path): New structure.
45148 (grub_efi_vendor_messaging_device_path_t): New type.
45149 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
45150 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
45151 (struct grub_efi_hard_drive_device_path): New structure.
45152 (grub_efi_hard_drive_device_path_t): New type.
45153 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
45154 (struct grub_efi_cdrom_device_path): New structure.
45155 (grub_efi_cdrom_device_path_t): New type.
45156 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
45157 (struct grub_efi_vendor_media_device_path): New structure.
45158 (grub_efi_vendor_media_device_path_t): New type.
45159 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
45160 (struct grub_efi_file_path_device_path): New structure.
45161 (grub_efi_file_path_device_path_t): New type.
45162 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
45163 (struct grub_efi_protocol_device_path): New structure.
45164 (grub_efi_protocol_device_path_t): New type.
45165 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
45166 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
45167 (struct grub_efi_bios_device_path): New structure.
45168 (grub_efi_bios_device_path_t): New type.
45169 (struct grub_efi_disk_io): New structure.
45170 (grub_efi_disk_io_t): New type.
45171 (struct grub_efi_block_io_media): New structure.
45172 (grub_efi_block_io_media_t): New type.
45173 (struct grub_efi_block_io): New structure.
45174 (grub_efi_block_io_t): New type.
45175
45176 * include/grub/misc.h (grub_stop): Removed.
45177 (grub_exit): New prototype.
45178 (grub_abort): Likewise.
45179
45180 * include/grub/disk.h (enum grub_disk_dev_id): Added
45181 GRUB_DISK_DEVICE_EFIDISK_ID.
45182
45183 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
45184 disk/efi/efidisk.c.
45185 (kernel_syms.lst): Remove the target if an error occurs.
45186
45187 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
45188
45189 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
45190 as it was simply too buggy.
45191
45192 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
45193
45194 * kern/misc.c (grub_lltoa): New function.
45195 (grub_vsprintf): Added support for the long long suffix,
45196 i.e. "ll".
45197
45198 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
45199
45200 * Makefile.in (LDFLAGS): Add variable.
45201 (LD): Remove variable.
45202 * configure.ac: Add -m32 to LDFLAGS.
45203 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
45204 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
45205 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
45206 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
45207 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
45208 variables.
45209 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
45210 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
45211 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
45212
45213 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
45214
45215 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
45216 length for unknown glyph.
45217
45218 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
45219
45220 Add support for pre-loaded modules into the EFI port.
45221
45222 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
45223 completely. Accept one more argument DIR. The caller has changed.
45224
45225 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
45226
45227 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
45228 (grub_efi_loaded_image_guid): New variable.
45229 (grub_efi_get_loaded_image): New function.
45230 (grub_arch_modules_addr): Likewise.
45231
45232 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
45233 prototype.
45234
45235 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
45236 (struct grub_efi_loaded_image): New structure.
45237 (grub_efi_loaded_image_t): New type.
45238
45239 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
45240
45241 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
45242 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
45243 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
45244
45245 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
45246
45247 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
45248
45249 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
45250
45251 * DISTLIST: Added include/grub/efi/console.h,
45252 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
45253 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
45254
45255 * include/grub/efi/console.h: New file.
45256 * include/grub/efi/time.h: Likewise.
45257 * include/grub/i386/efi/kernel.h: Likewise.
45258 * kern/efi/init.c: Likewise.
45259 * kern/efi/mm.c: Likewise.
45260 * term/efi/console.c: Likewise.
45261
45262 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
45263 (grub_stop): Removed.
45264 (grub_get_rtc): Likewise.
45265 (grub_machine_init): Simply call grub_efi_init.
45266 (grub_machine_fini): Call grub_efi_fini.
45267
45268 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
45269 (grub_efi_output_string): Removed.
45270 (grub_efi_stall): New function.
45271 (grub_stop): Likewise.
45272 (grub_get_rtc): Likewise.
45273
45274 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
45275 (grub_efi_stall): New prototype.
45276 (grub_efi_allocate_pages): Likewise.
45277 (grub_efi_free_pages): Likewise.
45278 (grub_efi_get_memory_map): Likewise.
45279 (grub_efi_mm_init): Likewise.
45280 (grub_efi_mm_fini): Likewise.
45281 (grub_efi_init): Likewise.
45282 (grub_efi_fini): Likewise.
45283
45284 * include/grub/i386/efi/time.h: Do not include
45285 grub/symbol.h. Include grub/efi/time.h.
45286 (GRUB_TICKS_PER_SECOND): Removed.
45287 (grub_get_rtc): Likewise.
45288
45289 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
45290 Added padding. The EFI spec is buggy.
45291 (GRUB_EFI_BLACK): New macro.
45292 (GRUB_EFI_BLUE): Likewise.
45293 (GRUB_EFI_GREEN): Likewise.
45294 (GRUB_EFI_CYAN): Likewise.
45295 (GRUB_EFI_RED): Likewise.
45296 (GRUB_EFI_MAGENTA): Likewise.
45297 (GRUB_EFI_BROWN): Likewise.
45298 (GRUB_EFI_LIGHTGRAY): Likewise.
45299 (GRUB_EFI_BRIGHT): Likewise.
45300 (GRUB_EFI_DARKGRAY): Likewise.
45301 (GRUB_EFI_LIGHTBLUE): Likewise.
45302 (GRUB_EFI_LIGHTGREEN): Likewise.
45303 (GRUB_EFI_LIGHTCYAN): Likewise.
45304 (GRUB_EFI_LIGHTRED): Likewise.
45305 (GRUB_EFI_LIGHTMAGENTA): Likewise.
45306 (GRUB_EFI_YELLOW): Likewise.
45307 (GRUB_EFI_WHITE): Likewise.
45308 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
45309 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
45310 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
45311 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
45312 (GRUB_EFI_BACKGROUND_RED): Likewise.
45313 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
45314 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
45315 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
45316 (GRUB_EFI_TEXT_ATTR): Likewise.
45317
45318 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
45319 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
45320 (kernel_mod_HEADERS): Added efi/time.h.
45321
45322 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
45323
45324 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
45325 include/grub/efi/api.h, include/grub/efi/console_control.h,
45326 include/grub/efi/efi.h, include/grub/efi/pe32.h,
45327 include/grub/i386/efi/time.h, kern/efi/efi.c,
45328 kern/i386/efi/init.c, kern/i386/efi/startup.S,
45329 and util/i386/efi/grub-mkimage.c.
45330
45331 * Makefile.in (RMKFILES): Added i386-efi.rmk.
45332
45333 * genmk.rb (PModule#rule): Do not export symbols if
45334 #{prefix}_EXPORTS is set to "no".
45335
45336 * conf/i386-efi.mk: New file.
45337 * conf/i386-efi.rmk: Likewise.
45338 * include/grub/efi/api.h: Likewise.
45339 * include/grub/efi/console_control.h: Likewise.
45340 * include/grub/efi/efi.h: Likewise.
45341 * include/grub/efi/pe32.h: Likewise.
45342 * include/grub/i386/efi/time.h: Likewise.
45343 * kern/efi/efi.c: Likewise.
45344 * kern/i386/efi/init.c: Likewise.
45345 * kern/i386/efi/startup.S: Likewise.
45346 * util/i386/efi/grub-mkimage.c: Likewise.
45347
45348 2006-04-17 Marco Gerards <marco@gnu.org>
45349
45350 * include/grub/script.h: Include <grub/parser.h> and
45351 "grub_script.tab.h".
45352 (struct grub_lexer_param): New struct.
45353 (struct grub_parser_param): Likewise.
45354 (grub_script_create_arglist): Pass the state in an argument.
45355 (grub_script_add_arglist): Likewise.
45356 (grub_script_create_cmdline): Likewise.
45357 (grub_script_create_cmdblock): Likewise.
45358 (grub_script_create_cmdif): Likewise.
45359 (grub_script_create_cmdmenu): Likewise.
45360 (grub_script_add_cmd): Likewise.
45361 (grub_script_arg_add): Likewise.
45362 (grub_script_lexer_ref): Likewise.
45363 (grub_script_lexer_deref): Likewise.
45364 (grub_script_lexer_record_start): Likewise.
45365 (grub_script_lexer_record_stop): Likewise.
45366 (grub_script_mem_record): Likewise.
45367 (grub_script_mem_record_stop): Likewise.
45368 (grub_script_malloc): Likewise.
45369 (grub_script_yylex): Likewise.
45370 (grub_script_yyparse): Likewise.
45371 (grub_script_yyerror): Likewise.
45372 (grub_script_yylex): Likewise.
45373 (grub_script_lexer_init): Return the state.
45374
45375 * normal/lexer.c (grub_script_lexer_state): Removed variable.
45376 (grub_script_lexer_done): Likewise.
45377 (grub_script_lexer_getline): Likewise.
45378 (grub_script_lexer_refs): Likewise.
45379 (script): Likewise.
45380 (newscript): Likewise.
45381 (record): Likewise.
45382 (recording): Likewise.
45383 (recordpos): Likewise.
45384 (recordlen): Likewise.
45385 (grub_script_lexer_init): Return the state instead of setting
45386 global variables.
45387 (grub_script_lexer_ref): Use the newly added argument for state
45388 instead of globals.
45389 (grub_script_lexer_deref): Likewise.
45390 (grub_script_lexer_record_start): Likewise.
45391 (grub_script_lexer_record_stop): Likewise.
45392 (recordchar): Likewise.
45393 (nextchar): Likewise.
45394 (grub_script_yylex2): Likewise.
45395 (grub_script_yylex): Likewise.
45396 (grub_script_yyerror): Likewise.
45397
45398 * normal/parser.y (func_mem): Removed variable.
45399 (menu_entry): Likewise.
45400 (err): Likewise.
45401 (%lex-param): New parser option.
45402 (%parse-param): Likewise.
45403 (script): Always return the AST.
45404 (argument): Pass the state around.
45405 (arguments): Likewise.
45406 (grubcmd): Likewise.
45407 (commands): Likewise.
45408 (function): Likewise.
45409 (menuentry): Likewise.
45410 (if_statement): Likewise.
45411 (if): Likewise.
45412
45413 * normal/script.c (grub_script_memused): Removed variable.
45414 (grub_script_parsed): Likewise.
45415 (grub_script_malloc): Added a state argument. Use that instead of
45416 global variables.
45417 (grub_script_mem_record): Likewise.
45418 (grub_script_mem_record_stop): Likewise.
45419 (grub_script_arg_add): Likewise.
45420 (grub_script_add_arglist): Likewise.
45421 (grub_script_create_cmdline): Likewise.
45422 (grub_script_create_cmdif): Likewise.
45423 (grub_script_create_cmdmenu): Likewise.
45424 (grub_script_add_cmd): Likewise.
45425 (grub_script_parse): Setup the state before calling the parser.
45426
45427 2006-04-16 Marco Gerards <marco@gnu.org>
45428
45429 * normal/command.c (grub_command_init): Remove the title command.
45430
45431 * normal/lexer.c (grub_script_yylex): Renamed from this...
45432 (grub_script_yylex2): ... to this.
45433 (grub_script_yylex): New function. Temporary
45434 introduced to filter some tokens.
45435 (grub_script_yyerror): Print a newline.
45436
45437 * normal/main.c (read_config_file): Output information about the
45438 lines that contain errors. Wait for a key after all lines have
45439 been processed. Don't return an empty menu.
45440
45441 * normal/parser.y (func_mem): Don't initialize.
45442 (menu_entry): Likewise.
45443 (err): New variable.
45444 (script): Don't return anything when an error was encountered.
45445 (ws, returns): Removed rules.
45446 (argument): Disabled concatenated variable support.
45447 (arguments): Remove explicit separators.
45448 (grubcmd): Likewise.
45449 (function): Likewise.
45450 (menuentry): Likewise.
45451 (if): Likewise.
45452 (commands): Likewise. Add error handling.
45453
45454 * normal/script.c (grub_script_create_cmdline): If
45455 `grub_script_parsed' is 0, assume the parser encountered an error.
45456
45457 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
45458
45459 * configure.ac: Add support for EFI. Fix the typo
45460 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
45461
45462 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
45463
45464 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
45465 foreign multibyte characters should be shown correctly.
45466
45467 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
45468
45469 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
45470 calculation.
45471 (read_config_file): Made it to close file before returning.
45472
45473 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
45474
45475 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
45476 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
45477 video/i386/pc/vbefill.c.
45478
45479 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
45480 video/i386/pc/vbefill.c.
45481
45482 * include/grub/video.h (grub_video_blit_format): New enum.
45483 (grub_video_mode_info): Added new member blit_format.
45484 (grub_video_get_blit_format): New function prototype.
45485
45486 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
45487 function prototype.
45488 (grub_video_vbe_map_rgb): Likewise.
45489 (grub_video_vbe_unmap_color): Likewise.
45490
45491 * include/grub/i386/pc/vbeblit.h: New file.
45492
45493 * include/grub/i386/pc/vbefill.h: New file.
45494
45495 * video/video.c (grub_video_get_blit_format): New function.
45496 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
45497 (grub_video_vbe_map_rgb): Likewise.
45498 (grub_video_vbe_unmap_color): Likewise.
45499
45500 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
45501 optimized fills.
45502 (grub_video_vbe_blit_render_target): Changed to use more optimized
45503 blits.
45504 (grub_video_vbe_setup): Added detection for optimized settings.
45505 (grub_video_vbe_create_render_target): Likewise.
45506
45507 * video/i386/pc/vbeblit.c: New file.
45508
45509 * video/i386/pc/vbefill.c: New file.
45510
45511 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
45512
45513 * font/manager.c (grub_font_get_glyph): Removed font fixup from
45514 here...
45515
45516 * util/unifont2pff.rb: ... and moved it to here. Improved argument
45517 parsing to support both hex and dec ranges. If filename was missing
45518 show usage information.
45519
45520 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
45521
45522 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
45523 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
45524
45525 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
45526 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
45527 (video_mod_SOURCES): Added.
45528 (video_mod_CFLAGS): Likewise.
45529 (video_mod_LDFLAGS): Likewise.
45530 (gfxterm_mod_SOURCES): Likewise.
45531 (gfxterm_mod_CFLAGS): Likewise.
45532 (gfxterm_mod_LDFLAGS): Likewise.
45533 (videotest_mod_SOURCES): Likewise.
45534 (videotest_mod_CFLAGS): Likewise.
45535 (videotest_mod_LDFLAGS): Likewise.
45536 (vesafb_mod_SOURCES): Removed.
45537 (vesafb_mod_CFLAGS): Likewise.
45538 (vesafb_mod_LDFLAGS): Likewise.
45539 (vga_mod_SOURCES): Likewise.
45540 (vga_mod_CFLAGS): Likewise.
45541 (vga_mod_LDFLAGS): Likewise.
45542
45543 * commands/videotest.c: New file.
45544
45545 * font/manager.c (fill_with_default_glyph): Modified to use
45546 grub_font_glyph.
45547 (grub_font_get_glyph): Likewise.
45548 (fontmanager): Renamed from this...
45549 (font_manager): ... to this.
45550
45551 * include/grub/font.h (grub_font_glyph): Added new structure.
45552 (grub_font_get_glyph): Modified to use grub_font_glyph.
45553
45554 * include/grub/misc.h (grub_abs): Added as inline function.
45555
45556 * include/grub/video.h: New file.
45557
45558 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
45559 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
45560 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
45561 (grub_vbe_get_controller_info): Renamed from this...
45562 (grub_vbe_bios_get_controller_info): ... to this.
45563 (grub_vbe_get_mode_info): Renamed from this...
45564 (grub_vbe_bios_get_mode_info): ... to this.
45565 (grub_vbe_set_mode): Renamed from this...
45566 (grub_vbe_bios_set_mode): ... to this.
45567 (grub_vbe_get_mode): Renamed from this...
45568 (grub_vbe_bios_get_mode): ... to this.
45569 (grub_vbe_set_memory_window): Renamed from this...
45570 (grub_vbe_bios_set_memory_window): ... to this.
45571 (grub_vbe_get_memory_window): Renamed from this...
45572 (grub_vbe_bios_get_memory_window): ... to this.
45573 (grub_vbe_set_scanline_length): Renamed from this...
45574 (grub_vbe_set_scanline_length): ... to this.
45575 (grub_vbe_get_scanline_length): Renamed from this...
45576 (grub_vbe_bios_get_scanline_length): ... to this.
45577 (grub_vbe_set_display_start): Renamed from this...
45578 (grub_vbe_bios_set_display_start): ... to this.
45579 (grub_vbe_get_display_start): Renamed from this...
45580 (grub_vbe_bios_get_display_start): ... to this.
45581 (grub_vbe_set_palette_data): Renamed from this...
45582 (grub_vbe_bios_set_palette_data): ... to this.
45583 (grub_vbe_set_pixel_rgb): Removed.
45584 (grub_vbe_set_pixel_index): Likewise.
45585
45586 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
45587 from this...
45588 (grub_vbe_bios_get_controller_info): ... to this.
45589 (grub_vbe_get_mode_info): Renamed from this...
45590 (grub_vbe_bios_get_mode_info): ... to this.
45591 (grub_vbe_set_mode): Renamed from this...
45592 (grub_vbe_bios_set_mode): ... to this.
45593 (grub_vbe_get_mode): Renamed from this...
45594 (grub_vbe_bios_get_mode): ... to this.
45595 (grub_vbe_set_memory_window): Renamed from this...
45596 (grub_vbe_bios_set_memory_window): ... to this.
45597 (grub_vbe_get_memory_window): Renamed from this...
45598 (grub_vbe_bios_get_memory_window): ... to this.
45599 (grub_vbe_set_scanline_length): Renamed from this...
45600 (grub_vbe_set_scanline_length): ... to this.
45601 (grub_vbe_get_scanline_length): Renamed from this...
45602 (grub_vbe_bios_get_scanline_length): ... to this.
45603 (grub_vbe_set_display_start): Renamed from this...
45604 (grub_vbe_bios_set_display_start): ... to this.
45605 (grub_vbe_get_display_start): Renamed from this...
45606 (grub_vbe_bios_get_display_start): ... to this.
45607 (grub_vbe_set_palette_data): Renamed from this...
45608 (grub_vbe_bios_set_palette_data): ... to this.
45609 (grub_vbe_bios_get_controller_info): Fixed problem with registers
45610 getting corrupted after calling it. Added more pushes and pops.
45611 (grub_vbe_bios_set_mode): Likewise.
45612 (grub_vbe_bios_get_mode): Likewise.
45613 (grub_vbe_bios_get_memory_window): Likewise.
45614 (grub_vbe_bios_set_scanline_length): Likewise.
45615 (grub_vbe_bios_get_scanline_length): Likewise.
45616 (grub_vbe_bios_get_display_start): Likewise.
45617 (grub_vbe_bios_set_palette_data): Likewise.
45618
45619 * normal/cmdline.c (cl_set_pos): Refresh the screen.
45620 (cl_insert): Likewise.
45621 (cl_delete): Likewise.
45622
45623 * term/gfxterm.c: New file.
45624
45625 * term/i386/pc/vesafb.c: Removed file.
45626
45627 * video/video.c: New file.
45628
45629 * video/i386/pc/vbe.c (real2pm): Added new function.
45630 (grub_video_vbe_draw_pixel): Likewise.
45631 (grub_video_vbe_get_video_ptr): Likewise.
45632 (grub_video_vbe_get_pixel): Likewise
45633 (grub_video_vbe_init): Likewise.
45634 (grub_video_vbe_fini): Likewise.
45635 (grub_video_vbe_setup): Likewise.
45636 (grub_video_vbe_get_info): Likewise.
45637 (grub_video_vbe_set_palette): Likewise.
45638 (grub_video_vbe_get_palette): Likewise.
45639 (grub_video_vbe_set_viewport): Likewise.
45640 (grub_video_vbe_get_viewport): Likewise.
45641 (grub_video_vbe_map_color): Likewise.
45642 (grub_video_vbe_map_rgb): Likewise.
45643 (grub_video_vbe_map_rgba): Likewise.
45644 (grub_video_vbe_unmap_color): Likewise.
45645 (grub_video_vbe_fill_rect): Likewise.
45646 (grub_video_vbe_blit_glyph): Likewise.
45647 (grub_video_vbe_blit_bitmap): Likewise.
45648 (grub_video_vbe_blit_render_target): Likewise.
45649 (grub_video_vbe_scroll): Likewise.
45650 (grub_video_vbe_swap_buffers): Likewise.
45651 (grub_video_vbe_create_render_target): Likewise.
45652 (grub_video_vbe_delete_render_target): Likewise.
45653 (grub_video_vbe_set_active_render_target): Likewise.
45654 (grub_vbe_set_pixel_rgb): Remove function.
45655 (grub_vbe_set_pixel_index): Likewise.
45656 (index_color_mode): Remove static variable.
45657 (active_mode): Likewise.
45658 (framebuffer): Likewise.
45659 (bytes_per_scan_line): Likewise.
45660 (grub_video_vbe_adapter): Added new static variable.
45661 (framebuffer): Likewise.
45662 (render_target): Likewise.
45663 (initial_mode): Likewise.
45664 (mode_in_use): Likewise.
45665 (mode_list): Likewise.
45666
45667 2006-03-10 Marco Gerards <marco@gnu.org>
45668
45669 * configure.ac (AC_INIT): Bumped to 1.93.
45670
45671 * DISTLIST: Added `include/grub/hfs.h'.
45672
45673 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
45674
45675 * boot/i386/pc/boot.S (general_error): Before looping, try INT
45676 18H, which might help the BIOS falling back to next boot media.
45677
45678 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
45679
45680 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
45681 Poe Chen <poe.poechen@gmail.com>.
45682
45683 2006-01-17 Marco Gerards <marco@gnu.org>
45684
45685 * include/grub/normal.h: Include <grub/script.h>.
45686 (grub_command_list): Removed struct.
45687 (grub_command_list_t): Removed type.
45688 (grub_menu_entry): Remove members `num' and `command_list'. Add
45689 members `commands' and `sourcecode'.
45690 * include/grub/script.h: Add inclusion guards.
45691 (grub_script_cmd_menuentry): New struct.
45692 (grub_script_execute_menuentry): New prototype.
45693 (grub_script_lexer_record_start): Likewise.
45694 (grub_script_lexer_record_stop): Likewise.
45695 * normal/execute.c (grub_script_execute_menuentry): New function.
45696 * normal/lexer.c (record, recording, recordpos, recordlen): New
45697 variables.
45698 (grub_script_lexer_record_start): New function.
45699 (grub_script_lexer_record_stop): Likewise.
45700 (recordchar): Likewise.
45701 (nextchar): Likewise.
45702 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
45703 2048 as the buffer size. Add the tokens `menuentry' and `@'.
45704 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
45705 (current_menu): New variable.
45706 (free_menu): Mainly rewritten.
45707 (grub_normal_menu_addentry): New function.
45708 (read_config_file): Rewritten.
45709 * normal/menu.c (run_menu_entry): Mainly rewritten.
45710 * normal/menu_entry.c (make_screen): Rewritten the code to insert
45711 the menu entry.
45712 (run): Mainly rewritten.
45713 * normal/parser.y (menu_entry): New variable.
45714 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
45715 (menuentry): New rule.
45716 (command): Add `menuentry'.
45717 (if_statement): Allow additional returns before `fi'.
45718 * normal/script.c (grub_script_create_cmdmenu): New function.
45719
45720 2006-01-03 Marco Gerards <marco@gnu.org>
45721
45722 * INSTALL: GNU Bison is required.
45723 * configure.ac: Rewritten the test to detect Bison.
45724 * Makefile.in (YACC): New variable. Reported by Xun Sun
45725 <xun.sun.cn@gmail.com>.
45726
45727 2006-01-03 Marco Gerards <marco@gnu.org>
45728
45729 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
45730 the HFS+ filesystem to filesystem blocks.
45731 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
45732 GCC warning is silenced.
45733
45734 2006-01-03 Marco Gerards <marco@gnu.org>
45735
45736 * partmap/apple.c (apple_partition_map_iterate): Convert the data
45737 read from disk from big endian to host byte order.
45738
45739 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
45740
45741 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
45742 documentation.
45743 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
45744 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
45745 embedded HFS+ filesystem.
45746 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
45747 (grub_hfs_sblock): Move from here...
45748 * include/grub/hfs.h: To here... New file.
45749 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
45750 documentation.
45751 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
45752 New macros.
45753 (grub_hfsplus_volheader): Change type of member `magic' to
45754 `grub_uint16_t'.
45755 (grub_hfsplus_data): Add new member `embedded_offset'.
45756 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
45757 returned block.
45758 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
45759 Calculate the offset.
45760
45761 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
45762
45763 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
45764 Removed.
45765 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
45766
45767 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
45768
45769 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
45770 ENV->NAME is NULL after allocating ENV->VALUE.
45771
45772 2005-12-25 Marco Gerards <marco@gnu.org>
45773
45774 * kern/env.c (grub_env_set): Rewritten the error handling code.
45775
45776 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
45777
45778 * geninit.sh: Made more robust, and more portable.
45779
45780 2005-12-25 Marco Gerards <marco@gnu.org>
45781
45782 Add support for Apple HFS+ filesystems.
45783
45784 * fs/hfsplus.c: New file.
45785
45786 * DISTLIST: Added `fs/hfsplus.c'.
45787
45788 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
45789 (hfsplus_mod_SOURCES): New variable.
45790 (hfsplus_mod_CFLAGS): Likewise.
45791 (hfsplus_mod_LDFLAGS): Likewise.
45792 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
45793 (grub_setup_SOURCES): Likewise.
45794 (grub_mkdevicemap_SOURCES): Likewise.
45795 (grub_emu_SOURCES): Likewise.
45796 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45797
45798 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
45799
45800 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
45801
45802 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
45803
45804 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
45805 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
45806 include/grub/parser.h, include/grub/script.h, kern/parser.c,
45807 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
45808 normal/lexer.c, normal/parser.y, normal/script.c, and
45809 partmap/gpt.c.
45810 Removed kern/sparc64/cache.c.
45811
45812 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
45813 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
45814 grub_emu_init.c.
45815
45816 * configure.ac (AC_INIT): Bumped to 1.92.
45817
45818 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
45819
45820 * kern/err.c (grub_error_push): Added new function to support error
45821 stacks.
45822 (grub_error_pop): Likewise.
45823 (grub_error_stack_items): New local variable to support error stacks.
45824 (grub_error_stack_pos): Likewise.
45825 (grub_error_stack_assert): Likewise.
45826 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
45827 stack depth.
45828 (grub_print_error): Added support to print errors from error stack.
45829
45830 * include/grub/err.h (grub_error_push): Added function prototype.
45831 (grub_error_pop): Likewise.
45832
45833 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
45834
45835 * configure.ac: Accept `powerpc64' as host_cpu.
45836 (amd64): Rename to `biarch32'.
45837
45838 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
45839 non-cacheline-aligned addresses.
45840
45841 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
45842 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
45843 if `size' is non-zero.
45844
45845 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
45846
45847 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
45848 and `cd' to make sure the filename is not prefixed with a
45849 directory name.
45850 (pkgdata_MODULES): Add `gpt.mod'.
45851 (gpt_mod_SOURCES): New variable.
45852 (gpt_mod_CFLAGS): Likewise.
45853 (gpt_mod_LDFLAGS): Likewise.
45854
45855 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
45856
45857 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
45858 New macro.
45859
45860 * partmap/gpt.c: New file.
45861
45862 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
45863 GPT partition map is detected.
45864
45865 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
45866
45867 * commands/i386/pc/play.c: New file.
45868 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
45869 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
45870 macros.
45871
45872 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
45873
45874 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
45875 ((unused))' to silence gcc warning.
45876
45877 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
45878
45879 * configure.ac: Correct `AC_PROG_YACC' test.
45880
45881 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
45882
45883 * util/powerpc/ieee1275/grub-install.in: Run the mount point
45884 check before installing files.
45885
45886 2005-11-22 Mike Small <smallm@panix.com>
45887
45888 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
45889 number regex so multidigit numbers are recognized correctly.
45890
45891 2005-11-22 Mike Small <smallm@panix.com>
45892
45893 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
45894 debugging message before attempting to claim memory.
45895 (grub_rescue_cmd_initrd): Add a claim debugging message and try
45896 multiple addresses in case of failure.
45897
45898 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
45899
45900 * term/tparm.c (get_space): Remove empty `if' statement.
45901
45902 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
45903
45904 * kern/parser.c (check_varstate): Rename `state' to 's'.
45905
45906 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
45907
45908 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
45909 variable definitions to the beginning of each function. Sort stack
45910 variables by size.
45911 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
45912 `buf' argument to `char *'.
45913
45914 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
45915
45916 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
45917 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
45918 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
45919 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
45920 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
45921 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
45922 configfile.mod, search.mod, gzio.mod and test.mod.
45923 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
45924 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
45925 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
45926 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
45927 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
45928 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
45929 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
45930 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
45931 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
45932 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
45933 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
45934 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
45935 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
45936 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
45937 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
45938 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
45939 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
45940 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
45941 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
45942 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
45943 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
45944 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
45945 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
45946
45947 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
45948 `grep --include'.
45949 (pkgdata_MODULES): Add test.mod.
45950
45951 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45952
45953 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
45954 appending to variables with "+=".
45955 (PModule): Use full pathname to generate *.lst filenames.
45956
45957 * Makefile.in: Fixed list rules moved from genmk.rb.
45958 (.DELETE_ON_ERROR): New special target.
45959 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
45960
45961 * conf/i386-pc.rmk: Include conf/common.mk.
45962 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
45963 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
45964 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
45965 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
45966 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
45967 configfile.mod, search.mod, gzio.mod and test.mod.
45968 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
45969 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
45970 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
45971 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
45972 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
45973 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
45974 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
45975 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
45976 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
45977 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
45978 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
45979 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
45980 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
45981 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
45982 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
45983 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
45984 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
45985 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
45986 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
45987 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
45988 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
45989 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
45990 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
45991 here...
45992 * conf/common.rmk: ... to here. New file.
45993
45994 * conf/common.mk: New file.
45995
45996 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
45997
45998 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
45999 (grub_script.tab.c): ... here.
46000
46001 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
46002 (grub_script.tab.c): ... here.
46003
46004 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
46005 (grub_script.tab.c): ... here.
46006
46007 * normal/command.c (grub_command_find): Fixed a memory leak of
46008 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
46009
46010 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46011
46012 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
46013 "@" which marks the start of a comment on ARM.
46014 (VARIABLE): Likewise.
46015
46016 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46017
46018 Add support for Linux/ADFS partition tables.
46019
46020 * partmap/acorn.c: New file.
46021
46022 * include/grub/acorn_filecore.h: Likewise.
46023
46024 * DISTLIST: Added `partmap/acorn.c' and
46025 `include/grub/acorn_filecore.h'.
46026
46027 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46028 `partmap/acorn.c'.
46029 (pkgdata_MODULES): Add `acorn.mod'.
46030 (acorn_mod_SOURCES): New variable.
46031 (acorn_mod_CFLAGS): Likewise.
46032
46033 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
46034 `partmap/acorn.c'.
46035 (pkgdata_MODULES): Add `acorn.mod'.
46036 (acorn_mod_SOURCES): New variable.
46037 (acorn_mod_CFLAGS): Likewise.
46038
46039 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
46040 (pkgdata_MODULES): Add `acorn.mod'.
46041 (acorn_mod_SOURCES): New variable.
46042 (acorn_mod_CFLAGS): Likewise.
46043 (acorn_mod_LDFLAGS): Likewise.
46044
46045 * include/types.h (grub_disk_addr_t): New typedef.
46046
46047 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
46048
46049 * geninit.sh: New file.
46050
46051 * geninitheader.sh: Likewise.
46052
46053 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
46054 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
46055 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
46056 * commands/configfile.c (grub_configfile_init)
46057 (grub_configfile_fini): Likewise.
46058 * commands/default.c (grub_default_init, grub_default_fini):
46059 Likewise.
46060 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
46061 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
46062 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
46063 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
46064 Likewise.
46065 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
46066 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
46067 Likewise.
46068 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
46069 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
46070 Likewise.
46071 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
46072 Likewise.
46073 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
46074 Likewise.
46075 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
46076 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
46077 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
46078 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
46079 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
46080 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
46081 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
46082 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
46083 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
46084 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
46085 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
46086 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
46087 * partmap/amiga.c (grub_amiga_partition_map_init)
46088 (grub_amiga_partition_map_fini): Likewise.
46089 * partmap/apple.c (grub_apple_partition_map_init)
46090 (grub_apple_partition_map_fini): Likewise.
46091 * partmap/pc.c (grub_pc_partition_map_init)
46092 (grub_pc_partition_map_fini): Likewise.
46093 * partmap/sun.c (grub_sun_partition_map_init,
46094 grub_sun_partition_map_fini): Likewise.
46095 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
46096 Likewise.
46097
46098 * util/grub-emu.c: Include <grub_modules_init.h>.
46099 (main): Don't initialize and de-initialize any modules directly,
46100 use `grub_init_all' and `grub_fini_all' instead.
46101
46102 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
46103 `grub_vesafb_mod_init'.
46104 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
46105 all users.
46106 * term/i386/pc/vga.c (grub_vga_init): Renamed to
46107 `grub_vga_mod_init'. Updated all users.
46108 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
46109
46110 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
46111 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
46112 rules.
46113
46114 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
46115 Generate a function to initialize the module in utilities.
46116 Updated all callers.
46117 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
46118 initialize the module in utilities. Updated all callers.
46119
46120 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
46121
46122 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
46123 escape sequence and a literal ^L to clear the screen.
46124
46125 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
46126 when returning from Open Firmware.
46127
46128 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
46129
46130 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
46131 (grub_ofconsole_height): Likewise.
46132 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
46133 manually insert a '\n'.
46134 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
46135 `grub_ofconsole_height'. Return early if these are already set.
46136
46137 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
46138
46139 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
46140 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
46141 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
46142 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
46143 and `normal/script.c'.
46144 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
46145 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
46146 (test_mod_SOURCES): New variable.
46147 (test_mod_CFLAGS): Likewise.
46148 (test_mod_LDFLAGS): Likewise.
46149 (pkgdata_MODULES): Add `test.mod'.
46150 (grub_script.tab.c): New rule.
46151 (grub_script.tab.h): Likewise.
46152
46153 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
46154
46155 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46156 `commands/test.c', `normal/execute.c', `normal/lexer.c',
46157 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
46158 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
46159 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
46160 (test_mod_SOURCES): New variable.
46161 (test_mod_CFLAGS): Likewise.
46162 (pkgdata_MODULES): Add `test.mod'.
46163 (grub_script.tab.c): New rule.
46164 (grub_script.tab.h): Likewise.
46165
46166 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
46167
46168 Add initial scripting support.
46169
46170 * commands/test.c: New file.
46171 * include/grub/script.h: Likewise.
46172 * normal/execute.c: Likewise.
46173 * normal/function.c: Likewise.
46174 * normal/lexer.c: Likewise.
46175 * normal/parser.y: Likewise.
46176 * normal/script.c: Likewise.
46177
46178 * configure.ac: Add `AC_PROG_YACC' test.
46179
46180 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
46181 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
46182 `normal/function.c' and `normal/script.c'.
46183 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
46184 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
46185 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
46186 variables.
46187 (pkgdata_MODULES): Add `test.mod'.
46188 (grub_script.tab.c): New rule.
46189 (grub_script.tab.h): Likewise.
46190
46191 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
46192
46193 * include/grub/normal.h (grub_test_init): New prototype.
46194 (grub_test_fini): Likewise.
46195
46196 * normal/command.c: Include <grub/script.h>.
46197 (grub_command_execute): Rewritten.
46198
46199 * util/grub-emu.c (main): Call `grub_test_init' and
46200 `grub_test_fini'.
46201
46202 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
46203
46204 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
46205 to 0.
46206 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
46207 there are no pending characters.
46208
46209 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
46210
46211 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
46212 `grub_strndup' to drop device arguments. Replace unnecessary
46213 `grub_strndup' with `grub_strdup'.
46214
46215 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
46216
46217 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
46218 `debug' environment variable has been set.
46219
46220 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
46221
46222 * Makefile.in (install-local): Use $(DATA).
46223 (uninstall): Likewise.
46224 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
46225 (sbin_UTILITIES): ... to here.
46226 (sbin_SCRIPTS): New variable.
46227 (grub_install_SOURCES): New variable.
46228 * util/powerpc/ieee1275/grub-install.in: New file.
46229 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
46230 variable.
46231 (add_segments): Call `grub_util_get_path'.
46232
46233 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
46234
46235 From Timothy Baldwin:
46236 * commands/ls.c (grub_ls_list_files): Close FILE with
46237 grub_file_close.
46238 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
46239
46240 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
46241
46242 * include/grub/parser.h: New file.
46243
46244 * kern/parser.c: Likewise.
46245
46246 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
46247 (grub_setup_SOURCES): Likewise.
46248 (grub_probefs_SOURCES): Likewise.
46249 (grub_emu_SOURCES): Likewise.
46250 (kernel_img_HEADERS): Add `parser.h'.
46251
46252 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
46253 (grub_emu_SOURCES): Add `kern/parser.c'.
46254 (grubof_SOURCES): Likewise.
46255
46256 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
46257 (grubof_SOURCES): Add `kern/parser.c'.
46258
46259 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
46260
46261 * kern/misc.c (grub_split_cmdline): Removed function.
46262
46263 * kern/rescue.c: Include <grub/parser.h>.
46264 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
46265 of `grub_split_cmdline'.
46266
46267 * normal/command.c: Include <grub/parser.h>.
46268 (grub_command_execute): Use `grub_parser_split_cmdline' instead
46269 of `grub_split_cmdline'.
46270
46271 * normal/completion.c: Include <grub/parser.h>.
46272 (cmdline_state): New variable.
46273 (iterate_dir): End the filename with a quote depending on the
46274 command line state.
46275 (get_state): new function.
46276 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
46277 split the arguments and determine the current argument. When the
46278 argument string is not quoted, escape all spaces.
46279
46280 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
46281
46282 * normal/sparc64/setjmp.S: New file.
46283
46284 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
46285
46286 * include/grub/sparc64/libgcc.h: New file.
46287 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
46288 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
46289 normal/sparc64/setjmp.c.
46290
46291 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
46292
46293 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
46294 * kern/sparc64/cache.S: New file.
46295 * kern/sparc64/cache.c: Removed.
46296 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
46297 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
46298 -mtune=ultrasparc.
46299 (COMMON_LDFLAGS): Add -melf64_sparc.
46300 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
46301 (grubof_SOURCES): Use cache.S instead of cache.c.
46302 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
46303 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
46304 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
46305 commented though.
46306 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
46307 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
46308 (linux_mod_CFLAGS): Commented out.
46309 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
46310 out because module isn't built.
46311 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
46312 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
46313 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
46314 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
46315 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
46316 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
46317 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
46318 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
46319 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
46320 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
46321 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
46322 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
46323 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
46324 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
46325
46326 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
46327
46328 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
46329 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
46330 longer, because HFS should not be used on PC.
46331
46332 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46333
46334 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
46335 consistently within the loop.
46336
46337 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
46338
46339 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
46340 directory can not be read.
46341
46342 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
46343
46344 * configure.ac (AC_INIT): Increase the version number to 1.91.
46345
46346 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
46347 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
46348 term/i386/pc/serial.c.
46349
46350 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
46351
46352 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
46353 file size must be permitted.
46354
46355 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
46356 between %ah and %al.
46357
46358 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
46359
46360 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
46361 grub_uint64_t.
46362 Call the hook with a NUL-terminated filename.
46363 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
46364 grub_cpu_to_be32.
46365
46366 * kern/term.c (cursor_state): New variable.
46367 (grub_term_set_current): Reset the cursor state on a new
46368 terminal.
46369 (grub_setcursor): Rewritten to use CURSOR_STATE.
46370 (grub_getcursor): New function.
46371
46372 * include/grub/term.h (grub_getcursor): New prototype.
46373
46374 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
46375 integers on ARM. Reported by Timothy Baldwin
46376 <T.E.Baldwin99@members.leeds.ac.uk>.
46377
46378 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
46379
46380 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
46381 allocated.
46382 (grub_sfs_dir): Likewise.
46383
46384 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
46385
46386 Add support for the SFS filesystem.
46387
46388 * fs/sfs.c: New file.
46389
46390 * DISTLIST: Added `fs/sfs.c'.
46391
46392 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
46393 (grub_probefs_SOURCES): Likewise.
46394 (grub_emu_SOURCES): Likewise.
46395 (pkgdata_MODULES): Add `sfs.mod'.
46396 (sfs_mod_SOURCES): New variable.
46397 (sfs_mod_CFLAGS): Likewise.
46398 (sfs_mod_LDFLAGS): Likewise.
46399
46400 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
46401 (pkgdata_MODULES): Add `sfs.mod'.
46402 (sfs_mod_SOURCES): New variable.
46403 (sfs_mod_CFLAGS): Likewise.
46404
46405 * util/grub-emu.c (main): Call `grub_sfs_init' and
46406 `grub_sfs_fini'.
46407
46408 * include/grub/fs.h (grub_sfs_init): New prototype.
46409 (grub_sfs_fini): Likewise.
46410
46411 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
46412
46413 Add support for the AFFS filesystem.
46414
46415 * fs/affs.c: New file.
46416
46417 * DISTLIST: Added `fs/affs.c'.
46418
46419 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
46420 (grub_probefs_SOURCES): Likewise.
46421 (grub_emu_SOURCES): Likewise.
46422 (pkgdata_MODULES): Add `affs.mod'.
46423 (affs_mod_SOURCES): New variable.
46424 (affs_mod_CFLAGS): Likewise.
46425 (affs_mod_LDFLAGS): Likewise.
46426
46427 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
46428 (pkgdata_MODULES): Add `affs.mod'.
46429 (affs_mod_SOURCES): New variable.
46430 (affs_mod_CFLAGS): Likewise.
46431
46432 * util/grub-emu.c (main): Call `grub_affs_init' and
46433 `grub_affs_fini'.
46434
46435 * include/grub/fs.h (grub_affs_init): New prototype.
46436 (grub_affs_fini): Likewise.
46437
46438 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
46439
46440 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
46441
46442 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
46443
46444 * configure.ac: Accept `x86_64' as host_cpu. In that case add
46445 `-m32' to CFLAGS.
46446
46447 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
46448 linking.
46449
46450 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
46451 (COMMON_LDFLAGS): New variable.
46452 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
46453 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
46454 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
46455 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
46456 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
46457 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
46458 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
46459 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
46460 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
46461 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
46462 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
46463 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
46464 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
46465 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
46466 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
46467 variables.
46468 (normal_mod_ASFLAGS): Add `-m32'.
46469
46470 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
46471 (grub_host_size_t, grub_host_ssize_t): New types.
46472 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
46473 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
46474 `GRUB_HOST_SIZEOF_VOID_P'.
46475
46476 * include/grub/kernel.h (struct grub_module_header): Type of
46477 member offset changed to `grub_host_off_t'. Type of member size
46478 changed to `grub_host_size_t'.
46479 (struct grub_module_info): Type of member offset changed to
46480 `grub_host_off_t'. Type of member size changed to
46481 `grub_host_size_t'.
46482
46483 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
46484
46485 Make GRUB's kernel compliant to Multiboot Specification.
46486
46487 * kern/i386/pc/startup.S (multiboot_header): New label.
46488 (multiboot_entry): Likewise.
46489 (multiboot_trampoline): Likewise.
46490
46491 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
46492 Increased to 0x4A0.
46493
46494 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
46495 put parentheses after a question mark.
46496 [!GRUB_UTIL] (my_mod): New variable.
46497
46498 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
46499
46500 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
46501
46502 Adds support for the XFS filesystem. Btrees are not supported
46503 yet.
46504
46505 * fs/xfs.c: New file.
46506
46507 * DISTLIST: Added `fs/xfs.c'.
46508
46509 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
46510 (grub_probefs_SOURCES): Likewise.
46511 (grub_emu_SOURCES): Likewise.
46512 (pkgdata_MODULES): Add `xfs.mod'.
46513 (xfs_mod_SOURCES): New variable.
46514 (xfs_mod_CFLAGS): Likewise.
46515
46516 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
46517 (pkgdata_MODULES): Add `xfs.mod'.
46518 (xfs_mod_SOURCES): New variable.
46519 (xfs_mod_CFLAGS): Likewise.
46520
46521 * util/grub-emu.c (main): Call `grub_xfs_init' and
46522 `grub_xfs_fini'.
46523
46524 * include/grub/fs.h (grub_xfs_init): New prototype.
46525 (grub_xfs_fini): Likewise.
46526
46527
46528 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
46529
46530 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
46531 color modes, allow greater than 16 colors to be configured as
46532 a default palette.
46533
46534 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
46535
46536 * normal/completion.c (complete_arguments): Add the qualifier
46537 const into OPTIONS.
46538
46539 From Omniflux <omniflux+lists@omniflux.com>:
46540 * include/grub/terminfo.h: New file.
46541 * include/grub/tparm.h: Likewise.
46542 * include/grub/i386/pc/serial.h: Likewise.
46543 * term/terminfo.c: Likewise.
46544 * term/tparm.c: Likewise.
46545 * term/i386/pc/serial.c: Likewise.
46546 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
46547 serial.mod.
46548 (terminfo_mod_SOURCES): New variable.
46549 (terminfo_mod_CFLAGS): Likewise.
46550 (serial_mod_SOURCES): Likewise.
46551 (serial_mod_CFLAGS): Likewise.
46552
46553 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
46554
46555 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
46556 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
46557 and kern/powerpc/ieee1275/cmain.c, respectively.
46558
46559 * boot/powerpc/ieee1275/crt0.S: Moved to ...
46560 * kern/powerpc/ieee1275/crt0.S: ... here.
46561
46562 * boot/powerpc/ieee1275/cmain.c: Moved to ...
46563 * kern/powerpc/ieee1275/cmain.c: ... here.
46564
46565 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
46566 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
46567 instead of boot/powerpc/ieee1275/crt0.S and
46568 boot/powerpc/ieee1275/cmain.c, respectively.
46569
46570 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
46571 sectors. It was not used anyway.
46572
46573 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
46574
46575 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
46576 `unused parameter' warning.
46577
46578 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
46579
46580 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
46581 function.
46582 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
46583 getcharwidth.
46584
46585 2005-08-28 Marco Gerards <metgerards@student.han.nl>
46586
46587 * include/grub/normal.h (enum grub_completion_type): Added
46588 `GRUB_COMPLETION_TYPE_ARGUMENT'.
46589
46590 * normal/cmdline.c (print_completion): Handle
46591 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
46592 * normal/menu_entry.c (store_completion): Likewise.
46593
46594 * normal/completion.c (complete_arguments): New function.
46595 (grub_normal_do_completion): Call `complete_arguments' when the
46596 current words start with a dash.
46597
46598 2005-08-27 Marco Gerards <metgerards@student.han.nl>
46599
46600 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
46601 `gzio.mod' instead of `io.mod').
46602
46603 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
46604
46605 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
46606 (DISTDIRS): Added io and video.
46607 Rewrite the search routine to make an output consistently.
46608
46609 * DISTLIST: Added conf/sparc64-ieee1275.mk,
46610 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
46611 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
46612 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
46613 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
46614 util/powerpc/ieee1275/misc.c.
46615
46616 * include/grub/gzio.h: New file.
46617 * io/gzio.c: Likewise.
46618
46619 * kern/file.c (grub_file_close): Call grub_device_close only if
46620 FILE->DEVICE is not NULL.
46621
46622 * include/grub/mm.h [!NULL] (NULL): New macro.
46623
46624 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
46625
46626 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
46627 (pkgdata_MODULES): Added gzio.mod.
46628 (gzio_mod_SOURCES): New variable.
46629 (gzio_mod_CFLAGS): Likewise.
46630
46631 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
46632 (pkgdata_MODULES): Added gzio.mod.
46633 (gzio_mod_SOURCES): New variable.
46634 (gzio_mod_CFLAGS): Likewise.
46635
46636 * commands/cat.c: Include grub/gzio.h.
46637 (grub_cmd_cat): Use grub_gzfile_open instead of
46638 grub_file_open.
46639
46640 * commands/cmp.c: Include grub/gzio.h.
46641 (grub_cmd_cmp): Use grub_gzfile_open instead of
46642 grub_file_open.
46643
46644 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
46645 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
46646 grub_file_open.
46647 (grub_rescue_cmd_module): Likewise.
46648
46649 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
46650
46651 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
46652 kern/sparc64/ieee1275/init.c because it contains _start.
46653 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
46654
46655 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
46656
46657 * configure.ac: Add support for sparc64 host with ieee1275
46658 firmware.
46659 * configure: Generated from configure.ac.
46660 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
46661 instead of int.
46662 (grub_ofdisk_read): Likewise.
46663 (grub_ofdisk_open): Use %p to print pointer values, and cast the
46664 pointers as (void *) to remove a warning.
46665 (grub_ofdisk_close): Likewise.
46666 (grub_ofdisk_read): Likewise.
46667 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
46668 returns, so make it return void to remove a warning.
46669 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
46670 Corresponding prototype change.
46671 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
46672 values, and cast the pointers as (void *) to remove a warning.
46673 (grub_mm_dump): Likewise.
46674 * conf/sparc64-ieee1275.mk: New file.
46675 * conf/sparc64-ieee1275.rmk: Likewise.
46676 * include/grub/sparc64/setjmp.h: Likewise.
46677 * include/grub/sparc64/types.h: Likewise.
46678 * include/grub/sparc64/ieee1275/console.h: Likewise.
46679 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
46680 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
46681 * include/grub/sparc64/ieee1275/time.h: Likewise.
46682 * kern/sparc64/cache.c: Likewise.
46683 * kern/sparc64/dl.c: Likewise.
46684 * kern/sparc64/ieee1275/init.c: Likewise.
46685 * kern/sparc64/ieee1275/openfw.c: Likewise.
46686
46687 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
46688
46689 * util/console.c (grub_ncurses_putchar): If C is greater than
46690 0x7f, set C to a question mark.
46691 (grub_ncurses_getcharwidth): New function.
46692 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
46693 getcharwidth.
46694
46695 * normal/menu.c (print_entry): Made aware of Unicode. First,
46696 convert TITLE to UCS-4, and predict the cursor position by
46697 grub_getcharwidth.
46698
46699 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
46700 const to SRC.
46701 * kern/misc.c (grub_utf16_to_utf8): Likewise.
46702
46703 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
46704
46705 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
46706 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
46707 grub_strcat.
46708
46709 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
46710 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
46711 grub_strcpy and grub_strlen. Take it into account that a space
46712 character is inserted as a delimiter.
46713
46714 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
46715
46716 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
46717 invalid magic in the error.
46718
46719 * commands/search.c: New file.
46720
46721 * util/grub-emu.c (main): Call grub_search_init and
46722 grub_search_fini.
46723
46724 * kern/rescue.c (grub_rescue_print_disks): Removed.
46725 (grub_rescue_print_devices): New function.
46726 (grub_rescue_cmd_ls): Use grub_device_iterate with
46727 grub_rescue_print_devices instead of grub_disk_dev_iterate with
46728 grub_rescue_print_disks.
46729
46730 * kern/partition.c (grub_partition_iterate): Return the result of
46731 PARTMAP->ITERATE instead of GRUB_ERRNO.
46732
46733 * kern/device.c: Include grub/partition.h.
46734 (grub_device_iterate): New function.
46735
46736 * include/grub/partition.h (grub_partition_iterate): Return int
46737 instead of grub_err_t.
46738
46739 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
46740 prototype.
46741 [GRUB_UTIL] (grub_search_fini): Likewise.
46742
46743 * include/grub/device.h (grub_device_iterate): New prototype.
46744
46745 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
46746 commands/search.c.
46747 (pkgdata_MODULES): Added search.mod.
46748 (search_mod_SOURCES): New variable.
46749 (search_mod_CFLAGS): Likewise.
46750
46751 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
46752 (pkgdata_MODULES): Added search.mod.
46753 (search_mod_SOURCES): New variable.
46754 (search_mod_CFLAGS): Likewise.
46755
46756 * commands/ls.c (grub_ls_list_disks): Renamed to ...
46757 (grub_ls_list_devices): ... this, and use grub_device_iterate.
46758 All callers changed.
46759
46760 * DISTLIST: Added commands/search.c.
46761
46762 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
46763
46764 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
46765 conversion.
46766 (grub_getcharwidth): New function.
46767
46768 * kern/misc.c (grub_utf8_to_ucs4): New function.
46769
46770 * include/grub/term.h (struct grub_term): Added a new member
46771 "getcharwidth".
46772 (grub_getcharwidth): New prototype.
46773
46774 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
46775
46776 * term/i386/pc/console.c (map_char): New function. Segregated from
46777 grub_console_putchar.
46778 (grub_console_putchar): Use map_char.
46779 (grub_console_getcharwidth): New function.
46780 (grub_console_term): Specified grub_console_getcharwidth as
46781 getcharwidth.
46782
46783 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
46784 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
46785
46786 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
46787 GRUB_ERRNO.
46788 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
46789 on grub_strtoul completely.
46790 (write_char): Declare local variables in the beginning of the
46791 function.
46792 (grub_vesafb_getcharwidth): New function.
46793 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
46794 getcharwidth.
46795
46796 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
46797
46798 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
46799 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
46800 commands/i386/pc/vbetest.c.
46801
46802 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
46803 call grub_vbe_get_controller_info again, because the returned
46804 information is volatile.
46805 (grub_vbe_set_video_mode): Mostly rewritten.
46806 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
46807 grub_vbe_status_t correctly.
46808 (grub_vbe_get_video_mode_info): Likewise.
46809 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
46810 several if statements.
46811
46812 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
46813 * commands/i386/pc/vbeinfo.c: ... this.
46814
46815 * commands/i386/pc/vbe_test.c: Renamed to ...
46816 * commands/i386/pc/vbetest.c: ... this.
46817
46818 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
46819 ...
46820 (grub_cmd_vbeinfo): ... this. Save video modes before
46821 iterating. Skip a video mode, if it is not available, not enough
46822 information is given or it is monochrome. Show the memory
46823 model. Leave the interpretation of MODEVAR to grub_strtoul
46824 completely.
46825 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
46826 (GRUB_MOD_FINI): Likewise.
46827
46828 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
46829 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
46830 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
46831 duplicated grub_env_get. Leave the interpretation of MODEVAR to
46832 grub_strtoul completely.
46833 (real2pm): Removed.
46834 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
46835 (GRUB_MOD_FINI): Likewise.
46836
46837 * normal/misc.c: Include grub/mm.h.
46838
46839 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
46840 vbe_list_modes with vbetest.mod and vbeinfo.mod.
46841 (vbe_list_modes_mod_SOURCES): Removed.
46842 (vbe_list_modes_mod_CFLAGS): Likewise.
46843 (vbe_test_mod_SOURCES): Likewise.
46844 (vbe_test_mod_CFLAGS): Likewise.
46845 (vbeinfo_mod_SOURCES): New variable.
46846 (vbeinfo_mod_CFLAGS): Likewise.
46847 (vbetest_mod_SOURCES): Likewise.
46848 (vbetest_mod_CFLAGS): Likewise.
46849
46850 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
46851
46852 * normal/misc.c: New file.
46853
46854 * DISTLIST: Added normal/misc.c.
46855
46856 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
46857 DISK to HOOK. Call HOOK with DISK.
46858 * partmap/apple.c (apple_partition_map_iterate): Likewise.
46859 * partmap/pc.c (pc_partition_map_iterate): Likewise.
46860 * partmap/sun.c (sun_partition_map_iterate): Likewise.
46861
46862 * normal/menu_entry.c (struct screen): Added a new member
46863 "completion_shown".
46864 (completion_buffer): New global variable.
46865 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
46866 (store_completion): New function.
46867 (complete): Likewise.
46868 (clear_completions): Likewise.
46869 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
46870 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
46871 a tab, call complete.
46872
46873 * normal/completion.c (disk_dev): Removed.
46874 (print_simple_completion): Likewise.
46875 (print_partition_completion): Likewise.
46876 (print_func): New global variable.
46877 (add_completion): Do not take the arguments WHAT or PRINT any
46878 longer. Added a new argument TYPE. Instead of printing directly,
46879 call PRINT_FUNC if not NULL.
46880 All callers changed.
46881 (complete_device): Use a local variable DEV instead of
46882 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
46883 (grub_normal_do_completion): Take a new argument HOOK. Do not
46884 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
46885 empty string, return NULL instead.
46886 All callers changed.
46887
46888 * normal/cmdline.c (print_completion): New function.
46889
46890 * kern/partition.c (grub_partition_iterate): Add an argument DISK
46891 to HOOK.
46892 All callers changed.
46893
46894 * kern/disk.c (grub_print_partinfo): Removed.
46895
46896 * include/grub/partition.h (struct grub_partition_map): Add a new
46897 argument DISK into HOOK of ITERATE.
46898 (grub_partition_iterate): Add a new argument DISK to HOOK.
46899
46900 * include/grub/normal.h (enum grub_completion_type): New enum.
46901 (grub_completion_type_t): New type.
46902 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
46903 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
46904 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
46905 (GRUB_COMPLETION_TYPE_FILE): Likewise.
46906 (grub_normal_do_completion): Added a new argument HOOK.
46907 (grub_normal_print_device_info): New prototype.
46908
46909 * include/grub/disk.h (grub_print_partinfo): Removed.
46910
46911 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
46912 (normal_mod_SOURCES): Likewise.
46913 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46914 (normal_mod_SOURCES): Likewise.
46915
46916 * commands/ls.c (grub_ls_list_disks): Use
46917 grub_normal_print_device_info instead of grub_print_partinfo. Free
46918 PNAME.
46919 (grub_ls_list_files): Use grub_normal_print_device_info instead of
46920 duplicating the code.
46921
46922 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
46923
46924 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
46925 follow GCS more precisely.
46926 * commands/i386/pc/vbe_test.c: Likewise.
46927 * include/grub/i386/pc/vbe.h: Likewise.
46928 * term/i386/pc/vesafb.c: Likewise.
46929 * video/i386/pc/vbe.c: Likewise.
46930
46931 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
46932
46933 * DISTLIST: Added term/i386/pc/vesafb.c
46934 DISTLIST: Added video/i386/pc/vbe.c
46935 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
46936 DISTLIST: Added commands/i386/pc/vbe_test.c.
46937 * commands/i386/pc/vbe_list_modes.c: New file.
46938 * commands/i386/pc/vbe_test.c: Likewise.
46939 * term/i386/pc/vesafb.c: Likewise.
46940 * video/i386/pc/vbe.c: Likewise.
46941 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
46942 (grub_vbe_probe) Added prototype.
46943 (grub_vbe_set_video_mode) Likewise.
46944 (grub_vbe_get_video_mode) Likewise.
46945 (grub_vbe_get_video_mode_info) Likewise.
46946 (grub_vbe_set_pixel_rgb) Likewise.
46947 (grub_vbe_set_pixel_index) Likewise.
46948 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
46949 (pkgdata_MODULES): Added vesafb.mod.
46950 (pkgdata_MODULES): Added vbe_list_modes.mod.
46951 (pkgdata_MODULES): Added vbe_test.mod.
46952 (vbe_mod_SOURCES): Added.
46953 (vbe_mod_CFLAGS): Likewise.
46954 (vesafb_mod_SOURCES): Likewise.
46955 (vesafb_mod_CFLAGS): Likewise.
46956 (vbe_list_modes_mod_SOURCES): Likewise.
46957 (vbe_list_modes_mod_CFLAGS): Likewise.
46958 (vbe_test_mod_SOURCES): Likewise.
46959 (vbe_test_mod_CFLAGS): Likewise.
46960
46961 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
46962
46963 * normal/command.c (grub_command_execute): If INTERACTIVE is
46964 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
46965 CMDLINE. Disable the pager if INTERACTIVE is true.
46966 All callers are changed.
46967
46968 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
46969 before reading a config file.
46970 * normal/main.c (read_config_file): Even if a command is not
46971 found, register it if it is within an entry.
46972
46973 * util/grub-emu.c: Include sys/types.h and unistd.h.
46974 (options): Added --hold.
46975 (struct arguments): Added a new member "hold".
46976 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
46977 missing.
46978 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
46979 cleared by a debugger, if it is not zero.
46980
46981 * include/grub/normal.h (grub_command_execute): Add an argument
46982 INTERACTIVE.
46983
46984 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
46985
46986 * DISTLIST: Added include/grub/i386/pc/vbe.h.
46987
46988 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
46989
46990 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
46991 program with another one, because the old one didn't detect a bug
46992 in gcc-3.4. Always use regparm 2, because the new test is still
46993 not enough for gcc-4.0. Someone must investigate a simple test
46994 case which detects a bug in gcc-4.0.
46995
46996 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
46997
46998 * DISTLIST: Added normal/completion.c.
46999
47000 * normal/completion.c: New file.
47001
47002 * term/i386/pc/console.c (grub_console_getwh): New function.
47003 (grub_console_term): Assign grub_console_getwh to getwh.
47004
47005 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
47006 function is defined in normal/completion.c as
47007 grub_normal_do_completion.
47008 (grub_cmdline_get): Use grub_normal_do_completion instead of
47009 grub_tab_complete.
47010
47011 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
47012 returns non-zero, otherwise return 0.
47013 (grub_partition_iterate): First, probe the partition map. Then,
47014 call ITERATE only for this partition map.
47015
47016 * kern/misc.c (grub_strncmp): Rewritten.
47017
47018 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
47019 returns non-zero. Otherwise return 0.
47020
47021 * include/grub/partition.h (grub_partition_map_iterate): Return
47022 int instead of void.
47023
47024 * include/grub/normal.h (grub_normal_do_completion): New prototype.
47025
47026 * include/grub/misc.h (grub_strncmp): Change the type of N to
47027 grub_size_t.
47028
47029 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
47030 of void.
47031
47032 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
47033 unsigned explicitly before comparing it with I.
47034
47035 * kern/main.c (grub_env_write_root): Add the attribute unused into
47036 VAR.
47037
47038 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
47039 normal/completion.c.
47040 (normal_mod_SOURCES): Likewise.
47041 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
47042 (normal_mod_SOURCES): Likewise.
47043
47044 * normal/command.c (grub_iterate_commands): If ITERATE returns
47045 non-zero, return one immediately.
47046
47047 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
47048
47049 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
47050 * kern/i386/pc/startup.S: Updated Global Descriptor table's
47051 descriptions.
47052 (grub_vbe_get_controller_info): New function.
47053 (grub_vbe_get_mode_info): Likewise.
47054 (grub_vbe_set_mode): Likewise.
47055 (grub_vbe_get_mode): Likewise.
47056 (grub_vbe_set_memory_window): Likewise.
47057 (grub_vbe_get_memory_window): Likewise.
47058 (grub_vbe_set_scanline_length): Likewise.
47059 (grub_vbe_get_scanline_length): Likewise.
47060 (grub_vbe_set_display_start): Likewise.
47061 (grub_vbe_get_display_start): Likewise.
47062 (grub_vbe_set_palette_data): Likewise.
47063 * include/grub/i386/pc/vbe.h: New file.
47064
47065 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
47066
47067 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
47068 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
47069 * DISTLIST: Likewise.
47070 * kern/ieee1275/of.c: Moved to ...
47071 * kern/ieee1275/ieee1275.c: ... here.
47072
47073 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
47074
47075 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
47076 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
47077 Pass 0 as `end' parameter to grub_strtoul().
47078
47079 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
47080
47081 * include/grub/powerpc/ieee1275/console.h: Do not include
47082 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
47083 ifdef.
47084 (grub_console_cur_color): Remove i386-specific prototype.
47085 (grub_console_real_putchar): Likewise.
47086 (grub_console_checkkey): Likewise.
47087 (grub_console_getkey): Likewise.
47088 (grub_console_getxy): Likewise.
47089 (grub_console_gotoxy): Likewise.
47090 (grub_console_cls): Likewise.
47091 (grub_console_setcursor): Likewise.
47092 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
47093 Include <grub/machine/console.h>.
47094 * term/ieee1275/ofconsole.c: Likewise.
47095
47096 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
47097
47098 * Makefile.in (LIBLZO): New variable.
47099
47100 * configure.ac: Check for LZO version 2.
47101
47102 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
47103 lzo/lzo1x.h instead of lzo1x.h.
47104
47105 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
47106 of -llzo.
47107
47108 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
47109 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
47110
47111 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
47112 copying the data from PARTITION to P.
47113
47114 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
47115
47116 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
47117 negative, unload the module.
47118
47119 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
47120 map is "pc_partition_map" but not "pc".
47121 (usage): Fix the description. The options are --boot-image and
47122 --core-image but not --boot-file or --core-file.
47123 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
47124 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
47125 DEFAULT_DIRECTORY.
47126
47127 * util/i386/pc/grub-install.in: Do not specify --boot-file or
47128 --core-file. Specify INSTALL_DEVICE as an argument.
47129
47130 * util/console.c: Include config.h.
47131 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
47132 [HAVE_NCURSES_H]: Include ncurses.h.
47133 [HAVE_CURSES_H]: Include curses.h.
47134 [!A_NORMAL] (A_NORMAL): Defined as zero.
47135 [!A_STANDOUT] (A_STANDOUT): Likewise.
47136
47137 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
47138 -lncurses.
47139 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
47140
47141 * configure.ac: Check for curses libraries and headers.
47142
47143 * Makefile.in (LIBCURSES): New variable.
47144
47145 * genmk.rb (Script::rule): Set the executable bits.
47146
47147 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
47148 name of the PC partition map is "pc_partition_map" but not "pc".
47149
47150 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
47151
47152 * util/i386/pc/grub-install.in (grub_probefs): New variable.
47153 (modules): Likewise.
47154 (usage): Added descriptions for --modules and --grub-probefs.
47155 Handle --modules and --grub-probefs. Save the arguments in MODULES
47156 and GRUB_PROBEFS, respectively.
47157 Auto-detect a filesystem module against GRUBDIR. If the result is
47158 empty and modules are not specified explicitly, abort the
47159 installation. Add the result to MODULES.
47160
47161 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
47162 disk/powerpc/ieee1275/ofdisk.c,
47163 include/grub/powerpc/ieee1275/init.h and
47164 term/powerpc/ieee1275/ofconsole.c.
47165 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
47166 term/ieee1275/ofconsole.c.
47167
47168 * include/grub/powerpc/ieee1275/console.h: Resurrected.
47169
47170 * COPYING: Upgraded to the latest version. Only the address of the
47171 FSF office has changed.
47172
47173 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
47174
47175 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
47176 kern/ieee1275.c with kern/ieee1275/of.c.
47177
47178 * kern/ieee1275.c: Moved to ...
47179 * kern/ieee1275/of.c: ... here.
47180
47181 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
47182
47183 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
47184 readability.
47185
47186 * config.guess: Updated to the latest version from gnulib.
47187 * config.sub: Likewise.
47188 * install.sh: Likewise.
47189 * mkinstalldirs: Likewise.
47190
47191 * include/grub/console.h: Removed. This file is arch-specific. Do
47192 not put this in include/grub.
47193
47194 * include/grub/i386/pc/console.h: Resurrected.
47195
47196 * util/console.c: Include grub/machine/console.h instead of
47197 grub/console.h.
47198 * util/grub-emu.c: Likewise.
47199
47200 2005-08-04 Marco Gerards <metgerards@student.han.nl>
47201
47202 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
47203 hardcoded value.
47204
47205 From Vincent Pelletier <subdino2004@yahoo.fr>
47206 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
47207 Redefined to use grub_getwh.
47208 (grub_term): New member named getwh.
47209 (grub_getwh): New prototype.
47210 * kern/term.c (grub_getwh): New function.
47211 * term/i386/pc/console.c (grub_console_getwh): New function.
47212 (grub_console_term): New member `getwh'.
47213 * term/i386/pc/vga.c (grub_vga_getwh): New function.
47214 (grub_vga_term): New member `getwh'.
47215 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
47216 grub_ssize_t.
47217 (grub_ofconsole_getw): New function.
47218 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
47219 (grub_ofconsole_term): New field named getwh and new initial
47220 value.
47221
47222 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
47223
47224 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
47225 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
47226 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
47227 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
47228 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
47229 of <grub/machine/ieee1275.h>.
47230 * commands/ieee1275/reboot.c: Likewise.
47231 * boot/powerpc/ieee1275/ieee1275.c: Move ...
47232 * kern/ieee1275.c: ... to here. All users updated. Change all
47233 parameter structs to use new type `grub_ieee1275_cell_t'.
47234 * term/powerpc/ieee1275/ofconsole.c: Move ...
47235 * term/ieee1275/ofconsole.c: ... to here. All users updated.
47236 * disk/powerpc/ieee1275/ofdisk.c: Move ...
47237 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
47238 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
47239 to return int.
47240 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
47241 Remove unused prototypes. All users updated.
47242 * include/grub/powerpc/ieee1275/console.h: Removed.
47243 * include/grub/powerpc/ieee1275/ieee1275.h: Define
47244 `grub_ieee1275_cell_t'.
47245 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
47246 Cast comparisons with -1 to the correct type.
47247 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
47248 type to match `grub_ieee1275_entry_fn'.
47249
47250 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
47251
47252 * DISTLIST: Added util/i386/pc/grub-probefs.c.
47253
47254 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
47255 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
47256 partmap/sun.c.
47257 (grub_probefs_SOURCES): New variable.
47258
47259 * util/i386/pc/grub-probefs.c: New file.
47260
47261 * util/i386/pc/grub-setup.c (main): Call
47262 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
47263 grub_hfs_init and grub_jfs_init to initialize the system. Call
47264 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
47265 grub_pc_partition_map_fini to finish the system.
47266
47267 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
47268
47269 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
47270 function.
47271 (grub_multiboot_load_elf32): Likewise.
47272 (grub_multiboot_is_elf64): Likewise.
47273 (grub_multiboot_load_elf64): Likewise.
47274 (grub_multiboot_load_elf): Likewise.
47275 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
47276 an ELF32 or ELF64 file.
47277 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
47278
47279 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
47280 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
47281 NULL before calling FS->LABEL.
47282 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
47283 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
47284 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
47285 before calling FS->LABEL.
47286
47287 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
47288
47289 * util/i386/pc/grub-install.in (datadir): New variable.
47290 (libdir): Removed.
47291 (pkgdatadir): New variable.
47292 (pkglibdir): Removed.
47293
47294 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
47295
47296 * DISTLIST: Added util/i386/pc/grub-install.in.
47297
47298 * util/i386/pc/grub-install.in: New file.
47299
47300 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
47301 (grub_install_SOURCES): Likewise.
47302
47303 * genmk.rb: Added support for scripts.
47304 (Script): New class.
47305 (scripts): New variable.
47306
47307 * Makefile.in (install-local): Install sbin_SCRIPTS by
47308 INSTALL_SCRIPT.
47309 (uninstall): Remove sbin_SCRIPTS.
47310
47311 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
47312 device, try to get a GRUB device by
47313 grub_util_biosdisk_get_grub_dev.
47314 Free DEST_DEV.
47315
47316 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
47317 description for --device-map.
47318
47319 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
47320
47321 Change the semantics of variable hooks. They now return strings
47322 instead of error values.
47323
47324 * util/i386/pc/grub-setup.c: Include grub/env.h.
47325 (setup): Use grub_device_set_root instead of grub_env_set.
47326
47327 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
47328 grub_env_get instead of grub_device_set_root and
47329 grub_device_get_root, respectively.
47330
47331 * kern/main.c (grub_env_write_root): New function.
47332 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
47333 grub_env_set instead of grub_device_set_root.
47334
47335 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
47336 many variables.
47337 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
47338 rather than calling ENV->WRITE_HOOK afterwards.
47339 (grub_env_get): Return the result of ENV->READ_HOOK rather than
47340 passing a pointer of a pointer.
47341 (grub_register_variable_hook): Change the types of "read_hook" and
47342 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
47343 respectively.
47344 Allocate the default empty string on the heap, because this string
47345 may be freed later.
47346
47347 * kern/device.c: Include grub/env.h.
47348 (grub_device_set_root): Removed.
47349 (grub_device_get_root): Likewise.
47350 (grub_device_open): Use grub_env_get instead of
47351 grub_device_get_root.
47352
47353 * include/grub/env.h (grub_env_read_hook_t): New type.
47354 (grub_env_write_hook_t): Likewise.
47355 (grub_env_var): Change the types of "read_hook" and "write_hook"
47356 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
47357 (grub_register_variable_hook): Likewise.
47358
47359 * include/grub/device.h (grub_device_set_root): Removed.
47360 (grub_device_set_root): Likewise.
47361
47362 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
47363 make sure that DIRNAME terminates with '/', so that
47364 grub_fat_find_dir will fail if PATH is not a directory.
47365
47366 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
47367 from DIRNAME.
47368 Use the qualifier auto for print_files and print_files_long.
47369 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
47370 as a regular file.
47371 Put a newline only if there is no error.
47372 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
47373 used.
47374
47375 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
47376
47377 * kern/partition.c (grub_partition_probe): Initialize PART to
47378 NULL. Otherwise, when no partition map is registered, this returns
47379 a garbage.
47380
47381 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
47382
47383 * partmap/apple.c (apple_partition_map_iterate): Check if POS
47384 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
47385 valid.
47386
47387 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
47388
47389 * commands/ls.c (grub_ls_list_disks): Print the filesystem
47390 information on each device, if it does not have partitions. Print
47391 "Device" instead of "Disk", because this function is not specific
47392 to disk devices.
47393
47394 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
47395 static to ensure that it is put on the memory rather than a
47396 register.
47397
47398 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
47399
47400 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
47401 (grub_cat_init): Likewise.
47402 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
47403 (options): Likewise.
47404 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
47405 (grub_configfile_init): Likewise.
47406 * font/manager.c (GRUB_MOD_INIT): Likewise.
47407 * commands/help.c (GRUB_MOD_INIT): Likewise.
47408 (grub_help_init): Likewise.
47409 * normal/command.c (grub_command_init): Likewise.
47410 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
47411 * disk/loopback.c (grub_loop_init): Likewise.
47412 (GRUB_MOD_INIT): Likewise.
47413 * commands/ls.c (grub_ls_init): Likewise.
47414 (GRUB_MOD_INIT): Likewise.
47415 (options): Likewise.
47416 * commands/boot.c (grub_boot_init): Likewise.
47417 (GRUB_MOD_INIT): Likewise.
47418 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
47419 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
47420 (GRUB_MOD_INIT): Likewise.
47421 * commands/cmp.c (grub_cmp_init): Likewise.
47422 (GRUB_MOD_INIT): Likewise.
47423
47424 * normal/arg.c: Use <> instead of "" to include header files.
47425 (SHORT_ARG_HELP): New macro.
47426 (SHORT_ARG_USAGE): Likewise.
47427 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
47428 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
47429 descriptions.
47430 (find_short): Check if C is 'h' or 'u' explicitly.
47431 (grub_arg_show_help): Use space characters instead of tabs. Treat
47432 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
47433 are shown with --help and --usage only if they are not used for
47434 the command itself.
47435 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
47436 'h' and 'u'.
47437
47438 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
47439 const into "longarg". Change the type of "shortarg" to int.
47440
47441 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
47442
47443 * boot/i386/pc/boot.S (boot_drive_check): New label.
47444
47445 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
47446 macro.
47447
47448 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
47449 which do not pass a boot drive correctly. Copied from GRUB Legacy.
47450
47451 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
47452
47453 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
47454 When turning off Gate A20, skip the check and return immediately,
47455 because this is not fatal usually.
47456
47457 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
47458
47459 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
47460 be 0x7C00 instead of 0x8000.
47461
47462 * boot/i386/pc/pxeboot.S: Rewritten.
47463
47464 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
47465 EXT_C.
47466 (gate_a20_check_state): Read a byte from 0x108000. Invert the
47467 result.
47468
47469 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
47470
47471 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
47472 robustness. This routine now supports a BIOS call and System
47473 Control Port A to modify the gate A20.
47474
47475 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
47476 Increased to 0x440.
47477
47478 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
47479
47480 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
47481 device path and resulting ihandle.
47482 (grub_ofdisk_close): dprintf the ihandle being closed.
47483 (grub_ofdisk_read): dprintf function parameters.
47484 * kern/mm.c (grub_mm_init_region): Likewise.
47485 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
47486 (grub_linux_boot): dprintf the Linux entry point, initrd address and
47487 size, and boot arguments.
47488 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
47489 before loading into memory.
47490 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
47491 before loading into memory.
47492
47493 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
47494
47495 * kern/mm.c: Added much documentation.
47496 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
47497 8, set to 5 instead of 8.
47498
47499 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
47500
47501 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
47502
47503 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
47504 (grub_mkdevicemap_SOURCES): New variable.
47505
47506 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
47507 lib/device.c of GRUB Legacy.
47508
47509 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
47510
47511 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
47512 instead of PATH is NULL.
47513
47514 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
47515
47516 * commands/cmp.c (BUFFER_SIZE): New macro.
47517 (grub_cmd_cmp): Close the right file at the right time. Compare
47518 only data just read. Don't report files of different size as
47519 identical. Dynamically allocate buffers. Move variable
47520 declarations at the beginning of function.
47521
47522 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
47523
47524 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
47525 reverse.
47526
47527 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
47528
47529 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
47530 when backspace is pressed at beginning of line.
47531
47532 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
47533
47534 * DISTLIST: Added genfslist.sh.
47535
47536 * normal/main.c (fs_module_list): New variable.
47537 (autoload_fs_module): New function.
47538 (read_fs_list): Likewise.
47539 (grub_normal_execute): Call read_fs_list.
47540
47541 * kern/fs.c (grub_fs_autoload_hook): New variable.
47542 (grub_fs_probe): Added support for auto-loading.
47543
47544 * include/grub/normal.h (struct grub_fs_module_list): New struct.
47545 (grub_fs_module_list_t): New type.
47546
47547 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
47548 (grub_fs_autoload_hook): New prototype.
47549
47550 * genfslist.sh: New file.
47551
47552 * genmk.rb: Added a rule to generate a filesystem list.
47553
47554 2005-06-30 Marco Gerards <metgerards@student.han.nl>
47555
47556 * configure.ac: Fix the test for cross-compiling.
47557
47558 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
47559 define GRUB_UTIL anymore.
47560
47561 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
47562 so this function works on other systems than just big endian.
47563 (load_modules): Likewise.
47564 (add_segments): Likewise.
47565
47566 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
47567
47568 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
47569 contains `l' modifier, get a long from va_arg().
47570
47571 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
47572
47573 * kern/mm.c (grub_free): If the next free block which is being
47574 merged is the first free block, set the first block to the block
47575 being freed.
47576 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
47577
47578 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
47579
47580 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
47581 `grub_ieee1275_chosen'.
47582
47583 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
47584
47585 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
47586 (grub_ieee1275_chosen): New variable.
47587 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
47588 `chosen'.
47589 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
47590 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
47591 Rename first argument to `phandle' for consistency.
47592 (grub_ieee1275_get_property_length): Likewise.
47593 (grub_ieee1275_next_property): Likewise. Change type of first argument
47594 to grub_ieee1275_phandle_t.
47595 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
47596 Move export next to declaration.
47597 (grub_ieee1275_chosen): New variable.
47598 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
47599 Correct cosmetic typo.
47600 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
47601 `grub_ieee1275_chosen'.
47602 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
47603 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
47604 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
47605 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
47606 `grub_ieee1275_chosen'.
47607
47608 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
47609
47610 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
47611 /chosen/bootargs.
47612 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
47613 /chosen/bootargs as "variable=value" pairs.
47614
47615 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
47616
47617 * include/grub/misc.h (grub_dprintf): New macro.
47618 (grub_real_dprintf): New prototype.
47619 (grub_strword): Likewise.
47620 (grub_iswordseparator): Likewise.
47621 * kern/misc.c (grub_real_dprintf): New function.
47622 (grub_strword): Likewise.
47623 (grub_iswordseparator): Likewise.
47624
47625 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
47626
47627 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
47628 (roundup): Remove macro.
47629 (grub_ieee1275_flags): Make static.
47630 (grub_ieee1275_realmode): Remove.
47631 (grub_ieee1275_test_flag): New function.
47632 (grub_ieee1275_set_flag): Likewise.
47633 (find_options): Rename to `grub_ieee1275_find_options'; update
47634 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
47635 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
47636 (cmain): New prototype.
47637 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
47638 `grub_ieee1275_flags' directly.
47639 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
47640 machine/biosdisk.h.
47641 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
47642 Don't include grub/machine/init.h.
47643 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
47644 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
47645 Remove prototype.
47646 (grub_ieee1275_realmode): Likewise.
47647 (grub_ieee1275_flag): New enum.
47648 (grub_ieee1275_test_flag): New prototype.
47649 (grub_ieee1275_set_flag): New prototype.
47650 * include/grub/powerpc/ieee1275/init.h: Remove file.
47651 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
47652 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
47653 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
47654 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
47655 comment.
47656 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
47657 `grub_ieee1275_test_flag'.
47658 (grub_ieee1275_encode_devname): Likewise.
47659
47660 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
47661
47662 * include/grub/powerpc/ieee1275/ieee1275.h
47663 (grub_ieee1275_encode_devname): New prototype.
47664 (grub_ieee1275_get_filename): Likewise.
47665 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
47666 function.
47667 (grub_set_prefix): Likewise.
47668 (grub_machine_init): Call grub_set_prefix.
47669 * kern/powerpc/ieee1275/openfw.c: Fix typos.
47670 (grub_parse_type): New enum.
47671 (grub_ieee1275_get_devargs): New function.
47672 (grub_ieee1275_get_devname): Likewise.
47673 (grub_ieee1275_parse_args): Likewise.
47674 (grub_ieee1275_get_filename): Likewise.
47675 (grub_ieee1275_encode_devname): Likewise.
47676
47677 2005-03-30 Marco Gerards <metgerards@student.han.nl>
47678
47679 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
47680 `grub_loader_unset'.
47681
47682 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
47683
47684 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
47685 instead of grub_ieee1275_interpret.
47686 (grub_halt_init): New function.
47687 (grub_halt_fini): Likewise.
47688 (GRUB_MOD_INIT): Correct message grammar.
47689 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
47690 instead of grub_ieee1275_interpret.
47691 (grub_reboot_init): New function.
47692 (grub_reboot_fini): Likewise.
47693 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
47694 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
47695 util/i386/pc/misc.c with commands/ieee1275/halt.c,
47696 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
47697 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
47698 function.
47699 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
47700 Add prototype.
47701 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
47702 prototype.
47703 (grub_halt): Likewise.
47704 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
47705 (cmain): Remove __attribute__((unused)).
47706 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
47707 (grub_heap_len): Likewise.
47708 (grub_machine_fini): New function.
47709 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
47710 (grub_halt): Likewise.
47711 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
47712 function.
47713 * util/powerpc/ieee1275/misc.c: New file.
47714
47715 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
47716
47717 * DISTLIST: New file.
47718 * gendistlist.sh: Likewise.
47719
47720 * Makefile.in (COMMON_DISTFILES): Removed.
47721 (BOOT_DISTFILES): Likewise.
47722 (CONF_DISTFILES): Likewise.
47723 (DISK_DISTFILES): Likewise.
47724 (FS_DISTFILES): Likewise.
47725 (INCLUDE_DISTFILES): Likewise.
47726 (KERN_DISTFILES): Likewise.
47727 (LOADER_DISTFILES): Likewise.
47728 (TERM_DISTFILES): Likewise.
47729 (UTIL_DISTFILES): Likewise.
47730 (DISTFILES): Likewise.
47731 (uninstall): Uninstall files in $(pkgdata_DATA).
47732 (DISTLIST): New target.
47733 (distdir): Use the contents of the file DISTLIST to get a list of
47734 distributed files.
47735
47736 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
47737
47738 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
47739 descriptor. This is ported from GRUB Legacy.
47740
47741 * gencmdlist.sh: Added an extra semicolon to make it work with
47742 old sed versions. Reported by Robert Bihlmeyer
47743 <robbe@orcus.priv.at>.
47744
47745 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
47746
47747 Automatic loading of commands is supported.
47748
47749 * normal/main.c (read_command_list): New function.
47750 (grub_normal_execute): Call read_command_list.
47751
47752 * normal/command.c (grub_register_command): Return zero or CMD.
47753 Allocate CMD->NAME from the heap.
47754 Initialize CMD->MODULE_NAME to zero.
47755 Find the same name as well. If the same command is found and it is
47756 a dummy command, overwrite members. If it is not a dummy command,
47757 return zero.
47758 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
47759 (grub_command_find): If a dummy command is found, load a module
47760 and retry to find a command only once.
47761
47762 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
47763 make sure that each command is loaded.
47764
47765 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
47766 macro.
47767 (struct grub_command): Remove const from the member `name'.
47768 Add a new member `module_name'.
47769 (grub_register_command): Return grub_command_t.
47770
47771 * commands/help.c (grub_cmd_help): Call grub_command_find to make
47772 sure that each command is loaded.
47773
47774 * genmk.rb (PModule::rule): Specify a module name without the
47775 suffix ".mod" to gencmdlist.sh.
47776
47777 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
47778
47779 * gencmdlist.sh: New file.
47780
47781 * genmk.rb (PModule::rule): Generate a rule for a command list.
47782 Clean command.lst.
47783 Generate command.lst from $(COMMANDFILES).
47784
47785 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
47786 (DATA): Added $(pkgdata_DATA).
47787 (install-local): Install files in $(pkgdata_DATA).
47788
47789 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
47790
47791 * term/i386/pc/vga.c (debug_command): Removed.
47792 (GRUB_MOD_INIT): Do not register the command "debug".
47793
47794 From Hollis Blanchard:
47795 * commands/configfile.c: New file.
47796 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
47797 commands/configfile.c.
47798 (pkgdata_MODULES): Added configfile.mod.
47799 (configfile_mod_SOURCES): New variable.
47800 (configfile_mod_CFLAGS): Likewise.
47801 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
47802 commands/configfile.c.
47803 (pkgdata_MODULES): Added configfile.mod.
47804 (configfile_mod_SOURCES): New variable.
47805 (configfile_mod_CFLAGS): Likewise.
47806 * util/grub-emu.c (main): Call grub_configfile_init and
47807 grub_configfile_fini.
47808 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
47809 prototype.
47810 [GRUB_UTIL] (grub_configfile_fini): Likewise.
47811
47812 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
47813
47814 * normal/arg.c (grub_arg_show_help): Do not show the bug report
47815 address.
47816
47817 * commands/help.c (grub_cmd_help): Do not print newlines after
47818 the last command in print_command_help.
47819
47820 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
47821
47822 * commands/default.h: New file.
47823 * commands/timeout.h: Likewise.
47824 * normal/context.c: Likewise.
47825
47826 * util/misc.c: Do not include sys/times.h.
47827 Include sys/time.h and grub/machine/time.h.
47828 (grub_get_rtc): Rewritten with gettimeofday.
47829
47830 * util/grub-emu.c (main): Call grub_default_init and
47831 grub_timeout_init before grub_normal_init, and call
47832 grub_timeout_fini and grub_default_fini after grub_main.
47833
47834 * util/console.c (grub_ncurses_checkkey): Return the read
47835 character or -1.
47836
47837 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
47838 timeouts.
47839
47840 * normal/main.c (read_config_file): Push MENU. If this fails,
47841 print an error and wait for a user input.
47842 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
47843 If a menu is empty or an error occurs, pop MENU.
47844 (grub_normal_execute): Pop and free MENU after grub_menu_run
47845 returns.
47846
47847 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
47848
47849 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
47850 include time.h.
47851 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
47852 without GRUB_UTIL.
47853 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
47854 time.h.
47855 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
47856 without GRUB_UTIL.
47857
47858 * include/grub/normal.h (struct grub_menu_list): New struct.
47859 (grub_menu_list_t): New type.
47860 (struct grub_context): New struct.
47861 (grub_context_t): New type.
47862 (grub_register_command): Got rid of EXPORT_FUNC.
47863 (grub_unregister_command): Likewise.
47864 (grub_context_get): New prototype.
47865 (grub_context_get_current_menu): Likewise.
47866 (grub_context_push_menu): Likewise.
47867 (grub_context_pop_menu): Likewise.
47868 [GRUB_UTIL] (grub_default_init): Likewise.
47869 [GRUB_UTIL] (grub_default_fini): Likewise.
47870 [GRUB_UTIL] (grub_timeout_init): Likewise.
47871 [GRUB_UTIL] (grub_timeout_fini): Likewise.
47872
47873 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
47874 commands/timeout.c and normal/context.c.
47875 (pkgdata_MODULES): Added default.mod and timeout.mod.
47876 (normal_mod_SOURCES): Added normal/context.c.
47877 (default_mod_SOURCES): New variable.
47878 (default_mod_CFLAGS): Likewise.
47879 (timeout_mod_SOURCES): Likewise.
47880 (timeout_mod_CFLAGS): Likewise.
47881 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
47882 conf/i386-pc.rmk.
47883 (pkgdata_MODULES): Added default.mod and timeout.mod.
47884 (normal_mod_SOURCES): Added normal/context.c.
47885 (default_mod_SOURCES): New variable.
47886 (default_mod_CFLAGS): Likewise.
47887 (timeout_mod_SOURCES): Likewise.
47888 (timeout_mod_CFLAGS): Likewise.
47889
47890 * Makefile.in (all-local): Added $(MKFILES).
47891
47892 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
47893
47894 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
47895 (grub_emu_SOURCES): Likewise.
47896 (pkgdata_MODULES): Add `sun.mod'.
47897 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
47898 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47899 `partmap/sun.c'.
47900 (pkgdata_MODULES): Add `sun.mod'.
47901 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
47902 * include/grub/partition.h (grub_sun_partition_map_init): New
47903 prototype.
47904 (grub_sun_partition_map_fini): Likewise.
47905 * partmap/sun.c: New file.
47906 * util/grub-emu.c (main): Initialize and de-initialize the sun
47907 partitionmap support.
47908
47909 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
47910
47911 This implements an Emacs-like menu entry editor.
47912
47913 * normal/menu_entry.c: New file.
47914
47915 * util/console.c (grub_ncurses_putchar): Translate some Unicode
47916 characters to ASCII.
47917 (saved_char): New variable.
47918 (grub_ncurses_checkkey): Rewritten completely.
47919 (grub_ncurses_getkey): Likewise.
47920 (grub_ncurses_init): Call raw instead of cbreak.
47921
47922 * normal/menu.c (print_entry): Do not put a space.
47923 (init_page): Renamed to ...
47924 (grub_menu_init_page): ... this. All callers changed.
47925 (edit_menu_entry): Removed.
47926 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
47927
47928 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
47929
47930 * kern/misc.c (grub_vprintf): Call grub_refresh.
47931
47932 * normal/menu.c (DISP_LEFT): Renamed to ...
47933 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
47934 * normal/menu.c (DISP_UP): Renamed to ...
47935 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
47936 * normal/menu.c (DISP_RIGHT): Renamed to ...
47937 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
47938 * normal/menu.c (DISP_DOWN): Renamed to ...
47939 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
47940 * normal/menu.c (DISP_HLINE): Renamed to ...
47941 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
47942 * normal/menu.c (DISP_VLINE): Renamed to ...
47943 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
47944 * normal/menu.c (DISP_UL): Renamed to ...
47945 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
47946 * normal/menu.c (DISP_UR): Renamed to ...
47947 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
47948 * normal/menu.c (DISP_LL): Renamed to ...
47949 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
47950 * normal/menu.c (DISP_LR): Renamed to ...
47951 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
47952 * normal/menu.c (TERM_WIDTH): Renamed to ...
47953 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
47954 * normal/menu.c (TERM_HEIGHT): Renamed to ...
47955 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
47956 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
47957 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
47958 * normal/menu.c (TERM_MARGIN): Renamed to ...
47959 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
47960 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
47961 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
47962 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
47963 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
47964 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
47965 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
47966 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
47967 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
47968 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
47969 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
47970 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
47971 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
47972 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
47973 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
47974 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
47975 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
47976 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
47977 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
47978 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
47979 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
47980 All callers changed.
47981
47982 * include/grub/normal.h: New prototype.
47983
47984 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
47985 normal/menu_entry.c.
47986 (normal_mod_SOURCES): Likewise.
47987 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47988 (normal_mod_SOURCES): Likewise.
47989
47990 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
47991
47992 * include/grub/normal.h (grub_halt_init): New prototype.
47993 (grub_halt_fini): Likewise.
47994 (grub_reboot_init): Likewise.
47995 (grub_reboot_fini): Likewise.
47996
47997 * util/grub-emu.c: Include signal.h.
47998 (main_env): New global variable.
47999 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
48000 catch C-c.
48001 (grub_machine_fini): New function.
48002 (main): Call grub_halt_init and grub_reboot_init before
48003 grub_main, and grub_reboot_fini and grub_halt_fini after it.
48004 Call setjmp with MAIN_ENV to go back afterwards.
48005 Call grub_machine_fini right before return.
48006
48007 * include/grub/util/misc.h: Include setjmp.h.
48008 (main_env): New prototype.
48009
48010 * include/grub/kernel.h (grub_machine_fini): New prototype.
48011 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
48012 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
48013
48014 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
48015 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
48016 * term/i386/pc/console.c (grub_console_fini): Likewise.
48017
48018 * util/i386/pc/misc.c: New file.
48019
48020 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
48021 util/i386/pc/misc.c, commands/i386/pc/halt.c and
48022 commands/i386/pc/reboot.c.
48023
48024 2005-02-14 Guillem Jover <guillem@hadrons.org>
48025
48026 * include/grub/dl.h (grub_dl_check_header): New prototype.
48027 (grub_arch_dl_check_header): Change return type to grub_err_t,
48028 remove size parameter and export function. Update all callers.
48029 * kern/dl.c (grub_dl_check_header): New function.
48030 (grub_dl_load_core): Use `grub_dl_check_header' instead of
48031 `grub_arch_dl_check_header'. Check ELF type. Check if sections
48032 are inside the core.
48033 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
48034 independent ELF header checks.
48035 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
48036 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
48037 `grub_dl_check_header' instead of explicit checks. Check for the
48038 ELF type.
48039 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
48040 `grub_dl_check_header' instead of explicit checks. Remove arch
48041 specific ELF header checks.
48042
48043 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
48044 argument SIZE.
48045
48046 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
48047
48048 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
48049 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
48050
48051 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
48052
48053 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
48054 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
48055 (part_map_iterate): Clear `grub_errno' and return 0 if
48056 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
48057 * partmap/amiga.c (amiga_partition_map_iterate): Return
48058 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
48059 * partmap/apple.c (apple_partition_map_iterate): Likewise.
48060
48061 2005-02-01 Guillem Jover <guillem@hadrons.org>
48062
48063 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
48064 help info.
48065
48066 2005-01-31 Marco Gerards <metgerards@student.han.nl>
48067
48068 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
48069 Removed prototype.
48070 (grub_rescue_cmd_linux): New prototype.
48071 (grub_rescue_cmd_initrd): Likewise.
48072 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
48073 `bi_rec'.
48074 (grub_linux_release_mem): Release the memory for the initrd.
48075 (grub_load_linux): Renamed from this...
48076 (grub_rescue_cmd_linux): ...To this. Changed all callers.
48077 Changed `entry' not to be static. Loop over memory regions to
48078 find another one when the default fails.
48079 (grub_rescue_cmd_initrd): New function.
48080 (grub_linux_init): Remove function.
48081 (grub_linux_fini): Likewise.
48082 (GRUB_MOD_INIT): Register `initrd'.
48083 (GRUB_MOD_FINI): Unregister `initrd'.
48084 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
48085 Function removed.
48086 (grub_linux_normal_fini): Likewise.
48087 (GRUB_MOD_INIT): Register `initrd'.
48088 (GRUB_MOD_FINI): Unregister `initrd'.
48089
48090 2005-01-31 Marco Gerards <metgerards@student.han.nl>
48091
48092 * commands/help.c: New file.
48093 * normal/arg.c (show_help): Renamed to...
48094 (grub_arg_show_help): ... this.
48095 * commands/i386/pc/halt.c: New file.
48096 * commands/i386/pc/reboot.c: Likewise.
48097 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
48098 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
48099 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
48100 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
48101 variables.
48102 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
48103 `commands/help.c'.
48104 (pkgdata_MODULES): Add `help.mod'.
48105 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
48106 * grub/i386/pc/init.h (grub_reboot): New prototype.
48107 (grub_halt): Likewise.
48108 * include/grub/normal.h (grub_arg_show_help): New prototype.
48109 (grub_help_init): Likewise.
48110 (grub_help_fini): Likewise.
48111 * util/grub-emu.c (main): Initialize and deinitialize the help
48112 command.
48113
48114 * normal/cmdline.c (grub_cmdline_get): Doc fix.
48115
48116 * normal/command.c (grub_command_init): Fixed the description of
48117 the `set' and `unset' commands.
48118
48119 2005-01-31 Marco Gerards <metgerards@student.han.nl>
48120
48121 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
48122 function.
48123 * commands/ieee1275/halt.c: New file.
48124 * commands/ieee1275/reboot.c: Likewise.
48125 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
48126 `__attribute__ ((unused))'. Some GCS related fixed.
48127 (grub_suspend_init) [GRUB_UTIL]: Function removed.
48128 (grub_suspend_fini): Likewise.
48129 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
48130 and `halt.mod'.
48131 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
48132 (halt_mod_CFLAGS): New variables.
48133 * include/grub/powerpc/ieee1275/ieee1275.h
48134 (grub_ieee1275_interpret): New prototype.
48135
48136 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
48137
48138 * include/grub/misc.h (memmove): New prototype.
48139 (memcpy): Likewise.
48140
48141 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
48142
48143 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
48144 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
48145
48146 2005-01-22 Marco Gerards <metgerards@student.han.nl>
48147
48148 * kern/misc.c (grub_strndup): Function rewritten.
48149
48150 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
48151
48152 * normal/menu.c (TERM_WIDTH): Macro redefined.
48153 (TERM_TOP_BORDER_Y): Likewise.
48154 (draw_border): Replaced while-loop by a for-loop. Make the number
48155 of lines consistent with the number of lines displayed in
48156 print_entries. Added a margin below the rectangle.
48157 (print_entry): Make the entry fit in the rectangle.
48158 (print_entries): Display the scroll arrows next to the right
48159 border.
48160
48161 2005-01-21 Marco Gerards <metgerards@student.han.nl>
48162
48163 * fs/minix.c (grub_minix_find_file): Reserve more space for
48164 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
48165 `grub_strncpy' to copy `path' into it.
48166
48167 2005-01-21 Marco Gerards <metgerards@student.han.nl>
48168
48169 Add the loopback device, a device via which files can be accessed
48170 as devices.
48171
48172 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
48173 (pkgdata_MODULES): Add loopback.mod.
48174 (loopback_mod_SOURCES): New variable.
48175 (loopback_mod_CFLAGS): Likewise.
48176 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
48177 `disk/loopback.c'.
48178 (pkgdata_MODULES): Add loopback.mod.
48179 (loopback_mod_SOURCES): New variable.
48180 (loopback_mod_CFLAGS): Likewise.
48181 * disk/loopback.c: new file.
48182 * include/grub/normal.h (grub_loop_init): New prototype.
48183 (grub_loop_fini): New prototype.
48184 * util/grub-emu.c (main): Initialize and de-initialize loopback
48185 support.
48186 * include/grub/disk.h (grub_disk_dev_id): Add
48187 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
48188
48189 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
48190
48191 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
48192 function.
48193 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
48194 (suspend_mod_SOURCES): New variable.
48195 (suspend_mod_CFLAGS): Likewise.
48196 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
48197 New prototype.
48198 * commands/ieee1275/suspend.c: New file.
48199
48200 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
48201
48202 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
48203 ((unused))' to `__attribute__ ((used))'.
48204 (GRUB_MOD_FINI): Likewise.
48205 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
48206 * genmk.rb (PModule): Assign space to common symbols when linking
48207 modules.
48208
48209 2005-01-20 Marco Gerards <metgerards@student.han.nl>
48210
48211 * include/grub/mm.h (grub_mm_init_region): Change the type of the
48212 `unsigned' arguments to `grub_size_t'.
48213 (grub_malloc): Likewise.
48214 (grub_realloc): Likewise.
48215 (grub_memalign): Likewise.
48216 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
48217 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
48218 * util/misc.c (grub_malloc): Likewise.
48219 (grub_realloc): Likewise.
48220 * kern/mm.c (get_header_from_pointer): Change the casts to
48221 `unsigned' into a cast to `grub_size_t'.
48222
48223 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
48224 point to `currnode' when `currnode' is changed.
48225
48226 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
48227 Schottelius <nico-linux@schottelius.org>.
48228
48229 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
48230
48231 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
48232 (note_path): Remove variable.
48233 (GRUB_IEEE1275_NOTE_NAME): New macro.
48234 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
48235 (grub_ieee1275_note_hdr): New structure.
48236 (grub_ieee1275_note_desc): Likewise.
48237 (grub_ieee1275_note): Likewise.
48238 (load_note): Remove `dir' argument. All callers updated. Remove
48239 `note_img' and `path'. Do not load a file from `note_path'.
48240 Initialize a struct grub_ieee1275_note and write that to `out'.
48241 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
48242
48243 2005-01-05 Marco Gerards <metgerards@student.han.nl>
48244
48245 * util/misc.c (grub_util_read_image): Revert last change. It
48246 called `grub_util_read_at', which seeks from the beginning of the
48247 file.
48248
48249 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
48250
48251 * TODO: Add note about endianness in grub-mkimage.
48252 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
48253 section.
48254 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
48255 (grub_mkimage_SOURCES): New target.
48256 * include/grub/kernel.h (grub_start_addr): Remove variable.
48257 (grub_end_addr): Likewise.
48258 (grub_total_module_size): Likewise.
48259 (grub_kernel_image_size): Likewise.
48260 (GRUB_MODULE_MAGIC): New constant.
48261 (grub_module_info): New structure.
48262 (grub_arch_modules_addr): New prototype.
48263 (grub_get_end_addr): Remove prototype.
48264 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
48265 * include/grub/powerpc/ieee1275/kernel.h: New file.
48266 * include/grub/util/misc.h (grub_util_get_fp_size): New
48267 prototype.
48268 (grub_util_read_at): Likewise.
48269 (grub_util_write_image_at): Likewise.
48270 * kern/main.c (grub_get_end_addr): Remove function.
48271 (grub_load_modules): Call grub_arch_modules_addr instead of using
48272 grub_end_addr. Look for a grub_module_info struct in memory. Use
48273 the grub_module_info fields instead of calling grub_get_end_addr
48274 as loop conditions. Move grub_add_unused_region code here.
48275 (grub_add_unused_region): Remove function.
48276 * kern/i386/pc/init.c: Include grub/cache.h.
48277 (grub_machine_init): Remove call to grub_get_end_addr. Remove
48278 one call to add_mem_region.
48279 (grub_arch_modules_addr): New function.
48280 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
48281 (grub_total_module_size): Likewise.
48282 Include grub/machine/kernel.h.
48283 (grub_arch_modules_addr): New function.
48284 * util/grub-emu.c (grub_end_addr): Remove variable.
48285 (grub_total_module_size): Likewise.
48286 (grub_arch_modules_addr): New function.
48287 * util/misc.c: Include unistd.h.
48288 (grub_util_get_fp_size): New function.
48289 (grub_util_read_at): Likewise.
48290 (grub_util_write_image_at): Likewise.
48291 (grub_util_read_image): Call grub_util_read_at.
48292 (grub_util_write_image): Call grub_util_write_image_at.
48293 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
48294 additional memory in kernel_img for a struct grub_module_info.
48295 Fill in that grub_module_info.
48296 * util/powerpc/ieee1275/grub-mkimage.c: New file.
48297
48298 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
48299
48300 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
48301 New function.
48302 * include/grub/powerpc/ieee1275/ieee1275.h
48303 (grub_ieee1275_milliseconds): New prototype.
48304 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
48305 Change to 1000.
48306 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
48307 grub_ieee1275_milliseconds.
48308
48309 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
48310
48311 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
48312 variable.
48313 (find_options): New function.
48314 (cmain): Call find_options.
48315 * include/grub/powerpc/ieee1275/ieee1275.h
48316 (grub_ieee1275_realmode): New extern variable.
48317 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
48318 grub_map if grub_ieee1275_realmode is false.
48319
48320 2004-12-29 Marco Gerards <metgerards@student.han.nl>
48321
48322 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
48323 lines are inserted and make it work like readline. Reported by
48324 Vincent Pelletier <subdino2004@yahoo.fr>.
48325
48326 2004-12-28 Marco Gerards <metgerards@student.han.nl>
48327
48328 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
48329
48330 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
48331 `kern/powerpc/cache.S'.
48332
48333 2004-12-27 Marco Gerards <metgerards@student.han.nl>
48334
48335 * genmk.rb: Handle the `Program' class in the main loop. Written
48336 by Johan Rydberg <jrydberg@gnu.org>.
48337 (Program): New class.
48338 (programs): New variable.
48339 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
48340 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
48341 instead of "grub/kernel.h". Include <grub/machine/init.h>.
48342 (help_arch): Function removed.
48343 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
48344 `powerpc/libgcc.h' and `loader.h'.
48345 (pkgdata_PROGRAMS): New variable.
48346 (sbin_UTILITIES): Variable removed.
48347 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
48348 (grubof_SOURCES): Variable re-defined so it only includes the
48349 core functionality.
48350 (grubof_CFLAGS): Remove `-DGRUBOF'.
48351 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
48352 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
48353 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
48354 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
48355 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
48356 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
48357 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
48358 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
48359 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
48360 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
48361 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
48362 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
48363 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
48364 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
48365 (pc_mod_CFLAGS): New variables.
48366 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
48367 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
48368 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
48369 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
48370 Moved from here...
48371 * include/grub/i386/pc/init.h (grub_os_area_addr)
48372 (rub_os_area_size): ... to here.
48373 * include/grub/powerpc/ieee1275/ieee1275.h
48374 (grub_ieee1275_entry_fn): Export symbol.
48375 * include/grub/powerpc/ieee1275/init.h: New file.
48376 * include/grub/powerpc/libgcc.h: Likewise.
48377 * include/grub/cache.h: Likewise.
48378 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
48379 <hollis@penguinppc.org>.
48380 * kern/dl.c: Include <grub/cache.h>.
48381 (grub_dl_flush_cache): New function.
48382 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
48383 for this module.
48384 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
48385 (grub_console_init): Removed prototypes.
48386 (grub_machine_init): Don't initialize the modules anymore.
48387 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
48388 static.
48389 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
48390 Macro undef removed.
48391 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
48392 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
48393 relocation `R_PPC_REL32'. Return an error when the relocation is
48394 unknown.
48395 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
48396 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
48397 * util/misc.c (grub_arch_sync_caches): Likewise.
48398
48399 2004-12-19 Marco Gerards <metgerards@student.han.nl>
48400
48401 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
48402 `symlist.c', add `grubof_symlist.c'.
48403 (symlist.c): Variable removed.
48404 (grubof_HEADERS): Variable added.
48405 (grubof_symlist.c): New target.
48406 (kernel_syms.lst): Use `grubof_HEADERS' instead of
48407 `kernel_img_HEADERS'.
48408 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
48409 * kern/powerpc/dl.c: New file.
48410 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
48411 Function removed.
48412 (grub_arch_dl_relocate_symbols): Likewise.
48413 (grub_register_exported_symbols): Likewise.
48414
48415 2004-12-13 Marco Gerards <metgerards@student.han.nl>
48416
48417 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
48418 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
48419 to fail instead. Reported by Vincent Pelletier
48420 <subdino2004@yahoo.fr>.
48421
48422 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
48423 it is not allocated. Reported by Vincent Pelletier
48424 <subdino2004@yahoo.fr>.
48425
48426 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
48427 output so the output looks better.
48428
48429 2004-12-04 Marco Gerards <metgerards@student.han.nl>
48430
48431 Modulize the partition map support and add support for the amiga
48432 partition map.
48433
48434 * commands/ls.c: Include <grub/partition.h> instead of
48435 <grub/machine/partition.h>.
48436 * kern/disk.c: Likewise.
48437 * kern/rescue.c: Likewise.
48438 * loader/i386/pc/chainloader.c: Likewise.
48439 * normal/cmdline.c: Likewise.
48440 * kern/powerpc/ieee1275/init.c: Likewise.
48441 (grub_machine_init): Call `grub_pc_partition_map_init',
48442 `grub_amiga_partition_map_init' and
48443 `grub_apple_partition_map_init'.
48444 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
48445 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
48446 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
48447 `partition.h' and `pc_partition.h'.
48448 (grub_setup_SOURCES): Remove
48449 `disk/i386/pc/partition.c'. Add `kern/partition.c',
48450 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
48451 (grub_emu_SOURCES): Likewise.
48452 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
48453 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
48454 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
48455 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
48456 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
48457 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
48458 (grubof_SOURCES): Likewise.
48459 * disk/i386/pc/partition.c: File removed.
48460 * disk/powerpc/ieee1275/partition.c: Likewise.
48461 * include/grub/powerpc/ieee1275/partition.h: Likewise.
48462 * include/grub/i386/pc/partition.h: Likewise.
48463 * kern/partition.c: New file.
48464 * partmap/amiga.c: Likewise.
48465 * partmap/apple.c: Likewise.
48466 * partmap/pc.c: Likewise.
48467 * include/grub/partition.h: Likewise..
48468 * include/grub/pc_partition.h: Likewise.
48469 * util/grub-emu.c: Include <grub/partition.h> instead of
48470 <grub/machine/partition.h>.
48471 (main): Call `grub_pc_partition_map_init',
48472 `grub_amiga_partition_map_init' and
48473 `grub_apple_partition_map_init' and deinitialize afterwards.
48474 * util/i386/pc/biosdisk.c: Include `#include
48475 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
48476 `<grub/machine/partition.h>'.
48477 * util/i386/pc/grub-setup.c: Likewise.
48478 * util/i386/pc/biosdisk.c: Likewise.
48479 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
48480 partition information in case of a PC partition.
48481 * util/i386/pc/grub-setup.c: Include `#include
48482 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
48483 `<grub/machine/partition.h>'.
48484 (setup): Only access the PC specific partition information in case
48485 of a PC partition.
48486
48487 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
48488
48489 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
48490 (grub_longjmp): Likewise.
48491 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
48492 20.
48493 * normal/powerpc/setjmp.S: New file.
48494 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
48495 `normal/powerpc/setjmp.S'.
48496 (grubof_CFLAGS): Add `-DGRUBOF'.
48497 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
48498 [GRUB_UTIL && !GRUBOF].
48499
48500 2004-11-16 Marco Gerards <metgerards@student.han.nl>
48501
48502 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
48503 property named `name'. Correctly handle the error returned by
48504 `grub_ieee1275_finddevice' if a device can not be opened.
48505
48506 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
48507
48508 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
48509 `actual' for negativity.
48510 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
48511 kern/fshelp.c.
48512
48513 2004-11-01 Marco Gerards <metgerards@student.han.nl>
48514
48515 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
48516 (PAGE_OFFSET): New macro.
48517 (CRTC_ADDR_PORT): Likewise.
48518 (CRTC_DATA_PORT): Likewise.
48519 (START_ADDR_HIGH_REGISTER): Likewise.
48520 (START_ADDR_LOW_REGISTER): Likewise.
48521 (GRAPHICS_ADDR_PORT): Likewise.
48522 (GRAPHICS_DATA_PORT): Likewise.
48523 (READ_MAP_REGISTER): Likewise.
48524 (INPUT_STATUS1_REGISTER): Likewise.
48525 (INPUT_STATUS1_VERTR_BIT): Likewise.
48526 (page): New variable.
48527 (wait_vretrace): New function.
48528 (set_read_map): Likewise.
48529 (set_start_address): Likewise.
48530 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
48531 the right page.
48532 (check_vga_mem): Take the page into account.
48533 (write_char): Likewise.
48534 (write_cursor): Likewise.
48535 (scroll_up): Likewise. Copy the page to the page that is not
48536 shown and switch between both pages.
48537 (grub_vga_putchar): Fix off by one error.
48538 (grub_vga_cls): Wait for the vertical retrace. Take the page into
48539 account.
48540
48541 2004-11-01 Marco Gerards <metgerards@student.han.nl>
48542
48543 Add support for iso9660 (including rockridge).
48544
48545 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
48546 (iso9660_mod_SOURCES): New variable.
48547 (iso9660_mod_CFLAGS): Likewise.
48548 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
48549 * include/grub/fs.h (grub_iso9660_init): New prototype.
48550 * util/grub-emu.c (main): Call `grub_iso9660_init'.
48551 * fs/iso9660.c: New file.
48552
48553 * include/grub/misc.h (grub_strncat): New prototype.
48554 * kern/misc.c (grub_strncat): New function.
48555
48556 * fs/hfs.c (grub_hfs_mount): Translate the error
48557 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
48558 * fs/jfs.c (grub_jfs_mount): Likewise.
48559 * fs/ufs.c (grub_ufs_mount): Likewise.
48560
48561 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
48562
48563 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
48564 which initialized BAT registers.
48565 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
48566 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
48567 Move from here...
48568 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
48569 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
48570 ... to here.
48571 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
48572 (grub_mapclaim): Likewise.
48573 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
48574 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
48575 hand.
48576
48577 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
48578
48579 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
48580 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
48581 -ffreestanding and -msoft-float.
48582
48583 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
48584
48585 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
48586 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
48587 set in grub_ieee1275_flags.
48588
48589 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
48590
48591 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
48592 prototype.
48593 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
48594 grub_console_init first.
48595 Change the memory range used for grub_ieee1275_claim and
48596 grub_mm_init_region.
48597 Print an error message if the claim fails.
48598 Include <grub/misc.h>.
48599
48600 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
48601
48602 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
48603 Call grub_children_iterate for device nodes of type `scsi',
48604 `ide', or `ata'.
48605 (grub_ofdisk_open): Remove manual device alias resolution.
48606 Fix memory leak when device cannot be opened.
48607 * include/grub/powerpc/ieee1275/ieee1275.h
48608 (grub_children_iterate): New prototype.
48609 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
48610 New function.
48611 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
48612 Return -1 if args.size was -1.
48613
48614 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
48615
48616 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
48617 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
48618 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
48619 Open Firmware's memory for it; claim memory from _start to _end.
48620 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
48621 (_end): New extern.
48622 (_start): Zero BSS from __bss_start to _end.
48623 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
48624 New extern.
48625 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
48626
48627 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
48628
48629 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
48630 -1 if args.base was -1.
48631
48632 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
48633
48634 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
48635 escape sequence instead of a literal ^L. Also call
48636 grub_ofconsole_gotoxy.
48637
48638 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
48639
48640 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
48641 void * arguments to grub_addr_t. All callers updated. Also make
48642 the `result' argument optional.
48643 (grub_ieee1275_release): change void * arguments to grub_addr_t.
48644 All callers updated.
48645
48646 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
48647
48648 * commands/ls.c (grub_ls_list_files): Use the string following the
48649 initial ')', if present, as the filesystem path.
48650 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
48651
48652 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
48653
48654 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
48655
48656 Make the source code of the menu interface more readable.
48657
48658 * normal/menu.c: Include grub/mm.h.
48659 (TERM_WIDTH): New macro.
48660 (TERM_HEIGHT): Likewise.
48661 (TERM_INFO_HEIGHT): Likewise.
48662 (TERM_MARGIN): Likewise.
48663 (TERM_SCROLL_WIDTH): Likewise.
48664 (TERM_TOP_BORDER_Y): Likewise.
48665 (TERM_LEFT_BORDER_X): Likewise.
48666 (TERM_BORDER_WIDTH): Likewise.
48667 (TERM_MESSAGE_HEIGHT): Likewise.
48668 (TERM_BORDER_HEIGHT): Likewise.
48669 (TERM_NUM_ENTRIES): Likewise.
48670 (TERM_FIRST_ENTRY_Y): Likewise.
48671 (TERM_ENTRY_WIDTH): Likewise.
48672 (TERM_CURSOR_X): Likewise.
48673 (draw_border): Use macros instead of magic numbers.
48674 (print_entry): Likewise.
48675 (print_entries): Likewise.
48676 (run_menu): Likewise. Also, handle the key 'e'.
48677 (run_menu_entry): Ignore empty command lines.
48678 (print_message): Added a new argument EDIT. If EDIT is true,
48679 print a different message.
48680 (init_page): Likewise.
48681 (edit_menu_entry): New function. Not implemented yet.
48682
48683 2004-09-17 Marco Gerards <metgerards@student.han.nl>
48684
48685 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
48686 can be loaded from normal mode.
48687
48688 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
48689 `multiboot.mod'.
48690 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
48691 (multiboot_mod_CFLAGS): New variables.
48692 * loader/i386/pc/linux_normal.c: New file.
48693 * loader/i386/pc/multiboot_normal.c: Likewise.
48694
48695 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
48696 attribute `unused'.
48697
48698 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
48699 `fdiro' to read the mode information from instead of `diro'.
48700
48701 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
48702 looking up a symlink.
48703
48704 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
48705 macro.
48706 * normal/command.c (grub_command_execute): Don't parse the
48707 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
48708 flags of the command.
48709
48710 * normal/menu.c (grub_menu_run): Fix typo.
48711
48712 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
48713
48714 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
48715
48716 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
48717 `y + 1' instead of `y - 1'.
48718
48719 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
48720
48721 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
48722
48723 From Hollis Blanchard <hollis@penguinppc.org>:
48724 * kern/misc.c (memmove): New alias for grub_memmove.
48725 (memcmp): New alias for grub_memcmp.
48726 (memset): New alias for grub_memset.
48727 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
48728 Change "int handle" to "grub_ieee1275_phandle_t handle".
48729 * include/grub/powerpc/ieee1275/ieee1275.h
48730 (grub_ieee1275_get_property): Likewise.
48731
48732 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
48733
48734 Added normal mode command `chainloader' as module chain.mod, which
48735 depends on normal.mod and _chain.mod.
48736
48737 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
48738 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
48739 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
48740 Deleted prototype.
48741 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
48742 but arguments parsing moved to ...
48743 (grub_chainloader_cmd): ... here. New function.
48744 * include/grub/i386/pc/chainloader.h: New file.
48745 * loader/i386/pc/chainloader_normal.c: Likewise.
48746
48747 2004-09-11 Marco Gerards <metgerards@student.han.nl>
48748
48749 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
48750 (grub_mkimage_LDFLAGS): Likewise.
48751 (grub_emu_SOURCES): Likewise.
48752 (kernel_img_HEADERS): Added fshelp.h.
48753 * fs/ext2.c: Include <grub/fshelp.h>.
48754 (FILETYPE_REG): New macro.
48755 (FILETYPE_INO_REG): Likewise.
48756 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
48757 Changed all users.
48758 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
48759 all users.
48760 (grub_fshelp_node): New struct.
48761 (grub_ext2_data): Added member `diropen'. Changed member `inode'
48762 to a pointer.
48763 (grub_ext2_get_file_block): Removed function.
48764 (grub_ext2_read_block): New function.
48765 (grub_ext2_read_file): Replaced parameter `data' by `node'.
48766 This function was written.
48767 (grub_ext2_mount): Read the root inode. Create a diropen struct.
48768 (grub_ext2_find_file): Removed function.
48769 (grub_ext2_read_symlink): New function.
48770 (grub_ext2_iterate_dir): Likewise.
48771 (grub_ext2_open): Rewritten.
48772 (grub_ext2_dir): Rewritten.
48773 * include/grub/fshelp.h: New file.
48774 * fs/fshelp.c: Likewise.
48775
48776 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
48777
48778 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
48779 (print_message): Add a missing newline.
48780 (run_menu): Added timeout support.
48781 (run_menu_entry): New local function.
48782 (grub_menu_run): Added support for booting.
48783
48784 * kern/loader.c (grub_loader_is_loaded): New function.
48785
48786 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
48787 (grub_get_rtc): Exported.
48788
48789 * include/grub/i386/pc/time.h: Include grub/symbol.h.
48790 (grub_get_rtc): Exported.
48791
48792 * include/grub/normal.h (struct grub_command_list): Remove
48793 constant from the member `command'.
48794
48795 * include/grub/loader.h (grub_loader_is_loaded): Declared.
48796
48797 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
48798
48799 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
48800
48801 2004-08-28 Marco Gerards <metgerards@student.han.nl>
48802
48803 Add support for the JFS filesystem.
48804
48805 * fs/jfs.c: New file.
48806 * include/grub/fs.h (grub_jfs_init): New prototype.
48807 (grub_jfs_fini): New prototype.
48808 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
48809 (grub_emu_SOURCES): Likewise.
48810 (pkgdata_MODULES): Add jfs.mod.
48811 (jfs_mod_SOURCES): New variable.
48812 (jfs_mod_CFLAGS): Likewise.
48813 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
48814 (grubof_SOURCES): Likewise.
48815 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
48816
48817 * fs/fat.c (grub_fat_find_dir): Convert the filename little
48818 endian to the host endian.
48819 (grub_fat_utf16_to_utf8): Move function from there...
48820 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
48821 the endianness of the source string anymore.
48822 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
48823
48824 2004-08-24 Marco Gerards <metgerards@student.han.nl>
48825
48826 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
48827 (grub_boot_fini) [GRUB_UTIL]: Likewise.
48828 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
48829 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
48830
48831 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
48832 (grub_hfs_iterate_dir): Make the function static. Add prototypes
48833 for `node_found' and `it_dir'.
48834 (grub_hfs_dir): Add prototype for `dir_hook'.
48835
48836 * fs/minix.c (grub_minix_get_file_block): Add prototype for
48837 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
48838 and `indir32' to silence a gcc warning.
48839
48840 * include/grub/fs.h (grub_hfs_init): New prototype.
48841 (grub_hfs_fini): Likewise.
48842
48843
48844 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
48845
48846 Each disk device has its own id now. This is useful to make use
48847 of multiple disk devices.
48848
48849 * include/grub/disk.h (grub_disk_dev_id): New enum.
48850 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
48851 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
48852
48853 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
48854 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
48855
48856 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
48857 GRUB_DISK_DEVICE_OFDISK_ID as an id.
48858
48859 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
48860 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
48861
48862 * include/grub/disk.h (struct grub_disk_dev): Added a new member
48863 "id" which is used by the cache manager.
48864
48865 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
48866 of just "GRUB".
48867
48868 2004-08-18 Marco Gerards <metgerards@student.han.nl>
48869
48870 * fs/hfs.c: New file.
48871 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
48872 (grub_emu_SOURCES): Likewise.
48873 (pkgdata_MODULES): Add hfs.mod.
48874 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
48875 (grubof_SOURCES): Likewise.
48876 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
48877
48878 * include/grub/misc.h (grub_strncasecmp): Add prototype.
48879 * kern/misc.c (grub_strncasecmp): Add function.
48880
48881 2004-08-14 Marco Gerards <metgerards@student.han.nl>
48882
48883 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
48884 with parentheses.
48885
48886 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
48887 (grub_ext2_dir): In case the directory entry type is unknown, read
48888 it from the inode.
48889
48890 2004-08-02 Peter Bruin <pjbruin@dds.nl>
48891
48892 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
48893 grub_load_linux instead of grub_rescue_cmd_linux as second
48894 argument of grub_rescue_register_command.
48895
48896 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
48897
48898 2004-07-27 Marco Gerards <metgerards@student.han.nl>
48899
48900 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
48901 function.
48902 * commands/boot.c: Remove the check for `GRUB_UTIL'.
48903 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
48904 `loader/powerpc/ieee1275/linux.c',
48905 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
48906 * include/grub/powerpc/ieee1275/ieee1275.h
48907 (grub_ieee1275_release): New prototype.
48908 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
48909 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
48910 normal, boot, linux and linux_normal.
48911 * loader/powerpc/ieee1275/linux.c: New file.
48912 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48913
48914 2004-07-12 Marco Gerards <metgerards@student.han.nl>
48915
48916 * normal/arg.c (grub_arg_parse): Correct error handling after
48917 reallocating the argumentlist (check if `argl' is not null instead
48918 of checking if `args' is not null).
48919 * kern/mm.c (grub_realloc): Return the same pointer when using the
48920 same region, instead of returning the header address.
48921
48922 2004-07-11 Marco Gerards <metgerards@student.han.nl>
48923
48924 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
48925 one block instead of two when looking for the initial partition.
48926 (grub_partition_probe): Initialize the local variable `p' with 0.
48927 Use base 10 for the grub_strtoul call.
48928 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
48929 need for one local variable.
48930 (grub_strtoul): Don't add the new value to `num', instead of that
48931 just assign it.
48932
48933 2004-07-11 Marco Gerards <metgerards@student.han.nl>
48934
48935 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
48936 (pxeboot_img_SOURCES): New variable.
48937 (pxeboot_img_ASFLAGS): Likewise.
48938 (pxeboot_img_LDFLAGS): Likewise.
48939 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
48940 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
48941 <lode_leroy@hotmail.com>.
48942
48943 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
48944
48945 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
48946 there was no input.
48947
48948 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
48949
48950 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
48951 the history buffer logic.
48952
48953 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
48954
48955 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
48956 (FILETYPE_INO_SYMLINK): New macros.
48957 (grub_ext2_find_file): Check if the node is a directory using the
48958 inode stat information instead of using the filetype in the
48959 dirent. Exclude the first character of an absolute symlink.
48960 (grub_ext2_dir): Mask out the filetype part of the mode member of
48961 the inode.
48962
48963 2004-05-24 Marco Gerards <metgerards@student.han.nl>
48964
48965 Add support for UFS version 1 and 2. Add support for the minix
48966 filesystem version 1 and 2, both the variants with 14 and 30 long
48967 filenames.
48968
48969 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
48970 fs/minix.c.
48971 (grub_emu_SOURCES): Likewise.
48972 (pkgdata_MODULES): Add ufs.mod and minix.mod.
48973 (ufs_mod_SOURCES): New variable.
48974 (ufs_mod_CFLAGS): Likewise.
48975 (minix_mod_SOURCES): Likewise.
48976 (minix_mod_CFLAGS): Likewise.
48977 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
48978 fs/minix.c.
48979 (grubof_SOURCES): Likewise.
48980 * fs/ufs.c: New file.
48981 * fs/minix.c: New file.
48982 * include/grub/fs.h (grub_ufs_init): New prototype.
48983 (grub_ufs_fini): Likewise.
48984 (grub_minix_init): Likewise.
48985 (grub_minix_fini): Likewise.
48986 * util/grub-emu.c (main): Initialize and deinitialize UFS and
48987 minix fs.
48988
48989 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
48990
48991 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
48992 commands/ls.c, commands/terminal.c, commands/boot.c,
48993 commands/cmp.c and commands/cat.c.
48994 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
48995
48996 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
48997 "env.h"
48998
48999 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
49000
49001 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
49002 and grub_, respectively. Because the conversion is trivial and
49003 mechanical, I omit the details here. Please refer to the CVS
49004 if you need more information.
49005
49006 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
49007
49008 * include/pupa: Renamed to ...
49009 * include/grub: ... this.
49010 * util/i386/pc/pupa-mkimage.c: Renamed to ...
49011 * util/i386/pc/grub-mkimage.c: ... this.
49012 * util/i386/pc/pupa-setup.c: Renamed to ...
49013 * util/i386/pc/grub-setup.c: ... this.
49014 * util/pupa-emu.c: Renamed to ...
49015 * util/grub-emu.c: ... this.
49016
49017 2004-03-29 Marco Gerards <metgerards@student.han.nl>
49018
49019 Add support for the newworld apple macintosh (PPC). This has been
49020 tested on the powerbook 2000 only. It only adds support for
49021 generic ieee1275 functions, console and disk support. This should
49022 be easy to port to other architectures with support for Open
49023 Firmware.
49024
49025 * configure.ac: Accept the powerpc as host_cpu. In the case of
49026 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
49027 specific tests are only executed while building for the i386.
49028 Inverse test for crosscompile.
49029 * genmk.rb (Utility): Allow assembler files.
49030 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
49031 * conf/powerpc-ieee1275.rmk: New file.
49032 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
49033 * disk/powerpc/ieee1275/partition.c: Likewise.
49034 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
49035 * include/pupa/powerpc/ieee1275/console.h: Likewise.
49036 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
49037 * include/pupa/powerpc/ieee1275/time.h: Likewise.
49038 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
49039 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
49040 * include/pupa/powerpc/ieee1275/loader.h
49041 * include/pupa/powerpc/setjmp.h: Likewise.
49042 * include/pupa/powerpc/types.h: Likewise.
49043 * kern/powerpc/ieee1275/init.c: Likewise.
49044 * kern/powerpc/ieee1275/openfw.c: Likewise.
49045 * term/powerpc/ieee1275/ofconsole.c: Likewise.
49046
49047 These files were written by Johan Rydberg
49048 (jrydberg@night.trouble.net) and I only modified them slightly.
49049
49050 * boot/powerpc/ieee1275/cmain.c: New file.
49051 * boot/powerpc/ieee1275/crt0.S: Likewise.
49052 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
49053 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
49054
49055 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
49056
49057 * Makefile.in: Update copyright.
49058 * genmodsrc.sh: Likewise.
49059 * gensymlist.sh: Likewise.
49060 * term/i386/pc/vga.c: Indent correctly.
49061
49062 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
49063 bugreporting address.
49064 * util/i386/pc/pupa-setup.c (usage): Likewise,
49065 (main): Call pupa_ext2_init and pupa_ext2_fini.
49066
49067 * fs/fat.c (log2): Renamed to ...
49068 (fat_log2): ... this.
49069 All callers changed.
49070 * kern/misc.c (memcpy): Alias to pupa_memmove.
49071 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
49072 lvalue cast.
49073 * util/console.c (pupa_ncurses_fini): Return 0.
49074
49075 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
49076 Move fail label here.
49077 [__GNU__]: Don't warn when using stat.
49078 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
49079 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
49080 long int. Use strtol instead of strtoul.
49081
49082 2004-03-14 Marco Gerards <metgerards@student.han.nl>
49083
49084 * commands/boot.c: New file.
49085 * commands/cat.c: Likewise.
49086 * commands/cmp.c: Likewise.
49087 * commands/ls.c: Likewise.
49088 * commands/terminal.c: Likewise.
49089 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
49090 (pupa_register_command): Changed interface to match the new
49091 argument parser.
49092 (pupa_command_execute): Changed (almost rewritten) so it uses
49093 pupa_split_command. Added support for setting variables using the
49094 syntax `foo=bar'.
49095 (rescue_command): Changed to work with the new argument parser.
49096 (terminal_command): Moved from here to commands/terminal.c.
49097 (set_command): New function.
49098 (unset_command): New function.
49099 (insmod_command): New function.
49100 (rmmod_command): New function.
49101 (lsmod_command): New function.
49102 (pupa_command_init): Don't initialize the command terminal
49103 anymore. Initialize the commands set, unset, insmod, rmmod and
49104 lsmod.
49105 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
49106 (kernel_img_HEADERS): Add arg.h and env.h.
49107 (pupa_mkimage_LDFLAGS): Add kern/env.c.
49108 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
49109 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
49110 normal/arg.c.
49111 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
49112 terminal.mod.
49113 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
49114 (boot_mod_SOURCES): New variable.
49115 (terminal_mod_SOURCES): Likewise.
49116 (ls_mod_SOURCES): Likewise.
49117 (cmp_mod_SOURCES): Likewise.
49118 (cat_mod_SOURCES): Likewise.
49119
49120 * normal/arg.c: New file.
49121 * kern/env.c: Likewise.
49122 * include/pupa/arg.h: Likewise.
49123 * include/pupa/env.h: Likewise.
49124 * font/manager.c (font_command): Changed to match argument parsing
49125 interface changes.
49126 (PUPA_MOD_INIT): Likewise.
49127 * hello/hello.c (pupa_cmd_hello): Likewise.
49128 (PUPA_MOD_INIT): Likewise.
49129 * include/pupa/disk.h: Include <pupa/device.h>.
49130 (pupa_print_partinfo): New prototype.
49131 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
49132 (pupa_dl_get_prefix): Likewise.
49133 * include/pupa/misc.h: Include <pupa/err.h>.
49134 (pupa_isgraph): New prototype.
49135 (pupa_isdigit): Likewise.
49136 (pupa_split_cmdline): Likewise.
49137 * include/pupa/normal.h: Include <pupa/arg.h>.
49138 (pupa_command): Changed the prototype of the member `func' to
49139 match the argument parsing interface. Added member `options'.
49140 (pupa_register_command): Updated to match function.
49141 (pupa_arg_parse): New prototype.
49142 (pupa_hello_init) [PUPA_UTIL]: New prototype.
49143 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
49144 (pupa_ls_init) [PUPA_UTIL]: Likewise.
49145 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
49146 (pupa_cat_init) [PUPA_UTIL]: Likewise.
49147 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
49148 (pupa_boot_init) [PUPA_UTIL]: Likewise.
49149 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
49150 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
49151 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
49152 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
49153 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
49154 * kern/disk.c: Include <pupa/file.h>.
49155 (pupa_print_partinfo): New function.
49156 * kern/dl.c: Include <pupa/env.h>.
49157 (pupa_dl_dir): Variable removed.
49158 (pupa_dl_load): Use the environment variable `prefix' instead of
49159 the variable pupa_dl_dir.
49160 (pupa_dl_set_prefix): Function removed.
49161 (pupa_dl_get_prefix): Likewise.
49162 * kern/i386/pc/init.c: Include <pupa/env.h>.
49163 (pupa_machine_init): Use the environment variable `prefix' instead of
49164 using pupa_dl_set_prefix to set the prefix.
49165 * kern/main.c: Include <pupa/env.h>.
49166 (pupa_set_root_dev): Use the environment variable `prefix' instead of
49167 using pupa_dl_get_prefix to get the prefix.
49168 * kern/misc.c: Include <pupa/env.h>.
49169 (pupa_isdigit): New function.
49170 (pupa_isgraph): Likewise.
49171 (pupa_ftoa): Likewise.
49172 (pupa_vsprintf): Added support for printing values of the type
49173 `double'. Make it possible to format variable output when using
49174 formatting like `%1.2%f'.
49175 (pupa_split_cmdline): New function.
49176 * kern/rescue.c: Include <pupa/env.h>.
49177 (next_word): Removed function.
49178 (pupa_rescue_cmd_prefix): Likewise.
49179 (pupa_rescue_cmd_set): New function.
49180 (pupa_rescue_cmd_unset): New function.
49181 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
49182 split the command line instead of splitting it here. Added
49183 support for setting variables using the syntax `foo=bar'. Don't
49184 initialize the prefix command anymore. Initialized the set and
49185 unset commands.
49186 * normal/cmdline.c: Include <pupa/env.h>.
49187 (pupa_tab_complete): Added prototypes for print_simple_completion,
49188 print_partition_completion, add_completion, iterate_commands,
49189 iterate_dev, iterate_part and iterate_dir. Moved code to print
49190 partition information from here to kern/disk.c.
49191 (pupa_cmdline_run): Don't check if the function exists anymore.
49192 * normal/main.c: Include <pupa/env.h>.
49193 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
49194 instead of using pupa_dl_get_prefix to get the prefix.
49195 * term/i386/pc/vga.c: Include <pupa/arg.h>.
49196 (check_vga_mem): Cast pointers to `void *' to silence a gcc
49197 warning.
49198 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
49199 (pupa_vga_setcolor): Declare unused variables with `__attribute__
49200 ((unused))' to silence a gcc warning.
49201 (pupa_vga_setcolor): Likewise.
49202 (debug_command): Changed to match argument parsing
49203 interface changes.
49204 * util/pupa-emu.c: Include <pupa/env.h>.
49205 (options): Added 0's for unused fields to silence a gcc warning.
49206 (argp): Likewise.
49207 (main): Use the environment variable `prefix' instead of using
49208 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
49209 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
49210 and terminal.
49211
49212 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
49213 * util/misc.c: Include <malloc.h>.
49214 (pupa_malloc): Rewritten so errors are correctly reported.
49215 (pupa_realloc): Likewise.
49216 (pupa_memalign): Likewise.
49217 (pupa_mm_init_region): Declare unused variables with
49218 `__attribute__ ((unused))' to silence a gcc warning.
49219 * normal/i386/setjmp.S: Remove tab at the end of the file to
49220 silence a gcc warning.
49221 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
49222 variables with `__attribute__ ((unused))' to silence a gcc
49223 warning.
49224 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
49225 local variable i unsigned to silence a gcc warning.
49226
49227 * kern/term.c: Include <pupa/misc.h>.
49228 (pupa_more_lines): New variable.
49229 (pupa_more): Likewise.
49230 (pupa_putcode): When the pager is active pause at the end of every
49231 screen.
49232 (pupa_set_more): New function.
49233 * include/pupa/term.h (pupa_set_more): New prototype.
49234
49235
49236 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
49237
49238 Now this project is GRUB 2 rather than PUPA. The location of
49239 the CVS repository was moved to GRUB's.
49240
49241 * configure.ac: Use bug-grub as the reporting address.
49242 Use GRUB instead of PUPA.
49243 Change the version number to 1.90.
49244
49245 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
49246
49247 * genkernsyms.sh: Updated copyright information.
49248 * genmk.rb: Likewise.
49249 * genmodsrc.sh: Likewise.
49250 * gensymlist.sh: Likewise.
49251 * boot/i386/pc/boot.S: Likewise.
49252 * boot/i386/pc/diskboot.S: Likewise.
49253 * disk/i386/pc/biosdisk.c: Likewise.
49254 * disk/i386/pc/partition.c: Likewise.
49255 * font/manager.c: Likewise.
49256 * fs/ext2.c: Likewise.
49257 * fs/fat.c: Likewise.
49258 * include/pupa/boot.h: Likewise.
49259 * include/pupa/device.h: Likewise.
49260 * include/pupa/disk.h: Likewise.
49261 * include/pupa/dl.h: Likewise.
49262 * include/pupa/elf.h: Likewise.
49263 * include/pupa/err.h: Likewise.
49264 * include/pupa/file.h: Likewise.
49265 * include/pupa/font.h: Likewise.
49266 * include/pupa/fs.h: Likewise.
49267 * include/pupa/kernel.h: Likewise.
49268 * include/pupa/loader.h: Likewise.
49269 * include/pupa/misc.h: Likewise.
49270 * include/pupa/mm.h: Likewise.
49271 * include/pupa/net.h: Likewise.
49272 * include/pupa/normal.h: Likewise.
49273 * include/pupa/rescue.h: Likewise.
49274 * include/pupa/setjmp.h: Likewise.
49275 * include/pupa/symbol.h: Likewise.
49276 * include/pupa/term.h: Likewise.
49277 * include/pupa/types.h: Likewise.
49278 * include/pupa/i386/setjmp.h: Likewise.
49279 * include/pupa/i386/types.h: Likewise.
49280 * include/pupa/i386/pc/biosdisk.h: Likewise.
49281 * include/pupa/i386/pc/boot.h: Likewise.
49282 * include/pupa/i386/pc/console.h: Likewise.
49283 * include/pupa/i386/pc/init.h: Likewise.
49284 * include/pupa/i386/pc/kernel.h: Likewise.
49285 * include/pupa/i386/pc/linux.h: Likewise.
49286 * include/pupa/i386/pc/loader.h: Likewise.
49287 * include/pupa/i386/pc/memory.h: Likewise.
49288 * include/pupa/i386/pc/multiboot.h: Likewise.
49289 * include/pupa/i386/pc/partition.h: Likewise.
49290 * include/pupa/i386/pc/time.h: Likewise.
49291 * include/pupa/i386/pc/vga.h: Likewise.
49292 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
49293 * include/pupa/util/getroot.h: Likewise.
49294 * include/pupa/util/misc.h: Likewise.
49295 * include/pupa/util/resolve.h: Likewise.
49296 * kern/device.c: Likewise.
49297 * kern/disk.c: Likewise.
49298 * kern/dl.c: Likewise.
49299 * kern/err.c: Likewise.
49300 * kern/file.c: Likewise.
49301 * kern/fs.c: Likewise.
49302 * kern/loader.c: Likewise.
49303 * kern/main.c: Likewise.
49304 * kern/misc.c: Likewise.
49305 * kern/mm.c: Likewise.
49306 * kern/rescue.c: Likewise.
49307 * kern/term.c: Likewise.
49308 * kern/i386/dl.c: Likewise.
49309 * kern/i386/pc/init.c: Likewise.
49310 * kern/i386/pc/lzo1x.S: Likewise.
49311 * kern/i386/pc/startup.S: Likewise.
49312 * loader/i386/pc/chainloader.c: Likewise.
49313 * loader/i386/pc/linux.c: Likewise.
49314 * loader/i386/pc/multiboot.c: Likewise.
49315 * normal/cmdline.c: Likewise.
49316 * normal/command.c: Likewise.
49317 * normal/main.c: Likewise.
49318 * normal/menu.c: Likewise.
49319 * normal/i386/setjmp.S: Likewise.
49320 * term/i386/pc/console.c: Likewise.
49321 * term/i386/pc/vga.c: Likewise.
49322 * util/console.c: Likewise.
49323 * util/genmoddep.c: Likewise.
49324 * util/misc.c: Likewise.
49325 * util/pupa-emu.c: Likewise.
49326 * util/resolve.c: Likewise.
49327 * util/unifont2pff.rb: Likewise.
49328 * util/i386/pc/biosdisk.c: Likewise.
49329 * util/i386/pc/getroot.c: Likewise.
49330 * util/i386/pc/pupa-mkimage.c: Likewise.
49331 * util/i386/pc/pupa-setup.c: Likewise.
49332
49333 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
49334
49335 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
49336 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
49337 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
49338 reading and reset it after reading.
49339 (pupa_ext2_close): Return PUPA_ERR_NONE.
49340
49341 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
49342 Correct value.
49343 (struct linux_kernel_header): Add kernel_version and
49344 initrd_addr_max.
49345 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
49346 pupa_file_read succeeds.
49347 (pupa_rescue_cmd_initrd): Implement.
49348
49349 2003-12-03 Marco Gerards <metgerards@student.han.nl>
49350
49351 * fs/ext2.c (pupa_ext2_label): New function.
49352 (pupa_ext2_fs): Added label.
49353 * fs/fat.c (pupa_fat_label): New function.
49354 (pupa_fat_fs): Added label.
49355 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
49356
49357 * kern/misc.c (pupa_strndup): New function.
49358 * include/pupa/misc.h (pupa_strndup): New prototype.
49359
49360 * include/pupa/normal.h: Include <pupa/err.h>.
49361 (pupa_set_history): New prototype.
49362 (pupa_iterate_commands): New prototype.
49363 * normal/cmdline.c: Include <pupa/machine/partition.h>,
49364 <pupa/disk.h>, <pupa/file.h>.
49365 (hist_size): New variable.
49366 (hist_lines): Likewise.
49367 (hist_end): Likewise.
49368 (hist_used): Likewise.
49369 (pupa_set_history): New function.
49370 (pupa_history_get): Likewise.
49371 (pupa_history_add): Likewise.
49372 (pupa_history_replace): Likewise.
49373 (pupa_tab_complete): Likewise.
49374 (pupa_cmdline_run): Added tab completion and history buffer. Tab
49375 completion shows partitionnames while completing partitions, this
49376 feature was suggested by Jeff Bailey.
49377 * normal/command.c (pupa_iterate_commands): New function.
49378 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
49379 (pupa_normal_init): Initialize history buffer.
49380 (PUPA_MOD_INIT): Likewise.
49381 (pupa_normal_fini): Free the history buffer.
49382 (PUPA_MOD_FINI): Likewise.
49383
49384 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
49385 key.
49386
49387 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
49388 * configure.ac [i386]: Check for regparam bug.
49389 (NESTED_FUNC_ATTR) [! i386]: Defined.
49390
49391 2003-11-17 Marco Gerards <metgerards@student.han.nl>
49392
49393 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
49394 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
49395 (pupa_emu_SOURCES): New variable.
49396 (pupa_emu_LDFLAGS): Likewise.
49397 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
49398 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
49399 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
49400 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
49401 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
49402 (pupa_jmp_buf): New typedef.
49403 (pupa_setjmp) [PUPA_UTIL]: New macro.
49404 (pupa_longjmp) [PUPA_UTIL]: Likewise.
49405 * include/pupa/term.h (struct pupa_term): New member `refresh'.
49406 (pupa_refresh): New prototype.
49407 * include/pupa/util/getroot.h: New file.
49408 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
49409 it.
49410 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
49411 (pupa_rescue_cmd_cat): Likewise.
49412 (pupa_rescue_cmd_ls): Likewise.
49413 (pupa_rescue_cmd_testload): Likewise.
49414 (pupa_rescue_cmd_lsmod): Likewise.
49415 * normal/cmdline.c (pupa_cmdline_get): Likewise.
49416 * normal/menu.c (run_menu): Likewise.
49417 * kern/term.c (pupa_cls): Likewise.
49418 (pupa_refresh): New function.
49419 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
49420 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
49421 * util/console.c: New file.
49422
49423 * util/i386/pc/getroot.c: New file.
49424 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
49425 (pupa_putchar): New function.
49426 (pupa_refresh): Likewise.
49427 (xgetcwd): Function moved to ...
49428 (strip_extra_slashes): Likewise.
49429 (get_prefix): Likewise.
49430 * util/i386/pc/getroot.c: ... here.
49431 (find_root_device): Function moved and renamed to...
49432 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
49433 Changed all callers.
49434 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
49435 and renamed to...
49436 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
49437 Changed all callers.
49438 * util/misc.c (pupa_memalign): New function.
49439 (pupa_mm_init_region): Likewise.
49440 (pupa_register_exported_symbols): Likewise.
49441 (pupa_putchar): Function removed.
49442 * util/pupa-emu.c: New file.
49443
49444 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
49445
49446 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
49447 (_multiboot_mod_SOURCES): New variable.
49448 (_multiboot_mod_CFLAGS): Likewise.
49449 * loader/i386/pc/multiboot.c: New file.
49450 * include/pupa/i386/pc/multiboot.h: Likewise.
49451 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
49452 (pupa_multiboot_real_boot): New function.
49453 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
49454 (pupa_multiboot_real_boot): New prototype.
49455 (pupa_rescue_cmd_multiboot): Likewise
49456 (pupa_rescue_cmd_module): Likewise.
49457
49458 * kern/loader.c (pupa_loader_set): Continue when
49459 pupa_loader_unload_func() fails.
49460 (pupa_loader_unset): New function.
49461 * include/pupa/loader.h (pupa_loader_unset): New prototype.
49462
49463 * kern/misc.c (pupa_stpcpy): New function.
49464 * include/pupa/misc.h (pupa_stpcpy): New prototype.
49465
49466 2003-11-12 Marco Gerards <metgerards@student.han.nl>
49467
49468 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
49469 for available extensions.
49470
49471 * include/pupa/i386/pc/time.h: New file.
49472 * kern/disk.c: Include <pupa/machine/time.h>.
49473 (PUPA_CACHE_TIMEOUT): New macro.
49474 (pupa_last_time): New variable.
49475 (pupa_disk_open): Flush the cache when there was a timeout.
49476 (pupa_disk_close): Reset the timer.
49477 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
49478 pupa_currticks.
49479 * util/misc.c: Include <sys/times.h>
49480 (pupa_get_rtc): New function.
49481
49482 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
49483
49484 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
49485 as blocks.
49486 (pupa_ext2_get_file_block): Use blocks member.
49487
49488 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
49489 first block. Return -1 instead of pupa_errno on error.
49490
49491 2003-10-27 Marco Gerards <metgerards@student.han.nl>
49492
49493 * README: In the pupa-mkimage example use _chain instead of chain
49494 and ext2 instead of fat.
49495 * TODO: Replace ext2fs with jfs as an example. Add an item for
49496 adding journal playback for ext2fs.
49497 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
49498 (pkgdata_MODULES): Added ext2.mod.
49499 (ext2_mod_SOURCES): New variable.
49500 (ext2_mod_CFLAGS): Likewise.
49501 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
49502 * include/pupa/misc.h (pupa_strncpy): New prototype.
49503 (pupa_strcat): Likewise.
49504 (pupa_strncmp): Likewise.
49505 * kern/misc.c (pupa_strcat): Enable function.
49506 (pupa_strncpy): New function.
49507 (pupa_strncmp): Likewise.
49508 * fs/ext2.c: New file.
49509
49510 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
49511 when the read failed before retrying.
49512 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
49513 (_FILE_OFFSET_BITS): Likewise.
49514 * configure.ac: Added AC_SYS_LARGEFILE.
49515
49516 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
49517
49518 * genmk.rb (PModule#rule): Make sure to get only symbol names
49519 from the output of nm.
49520 Reported by Robert Millan <rmh.grub@aybabtu.com>.
49521
49522 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
49523
49524 I forgot to check in these changes for a long time. This adds
49525 incomplete support for VGA console, and this is still very
49526 buggy. Also, a lot of consideration is required for I18N,
49527 UNICODE, and VGA font issues. Therefore, assume that this is
49528 such that "better than nothing".
49529
49530 * font/manager.c: New file.
49531 * include/pupa/font.h: Likewise.
49532 * include/pupa/i386/pc/vga.h: Likewise.
49533 * term/i386/pc/vga.c: Likewise.
49534 * util/unifont2pff.rb: Likewise.
49535
49536 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
49537 (pkgdata_MODULES): Added vga.mod and font.mod.
49538 (vga_mod_SOURCES): New variables.
49539 (vga_mod_CFLAGS): Likewise.
49540 (font_mod_SOURCES): Likewise.
49541 (font_mod_CFLAGS): Likewise.
49542
49543 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
49544
49545 * include/pupa/term.h: Include pupa/err.h.
49546 (struct pupa_term): Added init and fini.
49547 Changed the argument of putchar to pupa_uint32_t.
49548
49549 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
49550 (pupa_console_real_putchar): New prototype.
49551 (pupa_console_putchar): Removed.
49552 (pupa_console_checkkey): Exported.
49553 (pupa_console_getkey): Likewise.
49554
49555 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
49556 characters.
49557
49558 * kern/term.c (pupa_term_set_current): Rewritten.
49559 (pupa_putchar): Likewise.
49560 (pupa_putcode): New function.
49561
49562 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
49563 (pupa_console_real_putchar): ... this.
49564 (pupa_vga_set_mode): New function.
49565 (pupa_vga_get_font): Likewise.
49566
49567 * normal/command.c: Include pupa/term.h.
49568 (terminal_command): New function.
49569 (pupa_command_init): Register the command "terminal".
49570
49571 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
49572 (DISP_UP): Likewise.
49573 (DISP_RIGHT): Likewise.
49574 (DISP_DOWN): Likewise.
49575 (DISP_HLINE): Likewise.
49576 (DISP_VLINE): Likewise.
49577 (DISP_UL): Likewise.
49578 (DISP_UR): Likewise.
49579 (DISP_LL): Likewise.
49580 (DISP_LR): Likewise.
49581
49582 * term/i386/pc/console.c (pupa_console_putchar): New function.
49583
49584 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
49585
49586 * util/resolve.c (pupa_util_resolve_dependencies): BUG
49587 FIX. Reverse the path_list.
49588
49589 * include/pupa/normal.h: Export pupa_register_command and
49590 pupa_unregister_command.
49591
49592 * hello/hello.c (pupa_cmd_hello): New module.
49593 * conf/i386-pc.rmk: Added hello.mod.
49594
49595 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
49596
49597 * kern/i386/pc/lzo1x.S: New file.
49598
49599 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
49600 (compress_kernel): New variable.
49601 (generate_image): Heavily modified to support compressing a
49602 large part of the core image.
49603
49604 * util/misc.c (pupa_util_read_image): Fix a file descriptor
49605 leak.
49606 (pupa_util_load_image): New function.
49607
49608 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
49609 (pupa_compressed_size): New variable.
49610 (codestart): Enable Gate A20 here.
49611 Decompress the compressed part of the core image.
49612 Rearrange the code to put functions and variables which are
49613 required for initialization in the non-compressed part.
49614 Include lzo1x.S.
49615
49616 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
49617 here.
49618
49619 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
49620
49621 * include/pupa/i386/pc/kernel.h
49622 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
49623 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
49624 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
49625 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
49626 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
49627
49628 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
49629
49630 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
49631 (Utility#rule): Likewise.
49632
49633 * configure.ac: Check if LZO is available.
49634
49635 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
49636
49637 * include/pupa/normal.h: New file.
49638 * include/pupa/setjmp.h: Likewise.
49639 * include/pupa/i386/setjmp.h: Likewise.
49640 * normal/cmdline.c: Likewise.
49641 * normal/command.c: Likewise.
49642 * normal/main.c: Likewise.
49643 * normal/menu.c: Likewise.
49644 * normal/i386/setjmp.S: Likewise.
49645
49646 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
49647 (pupa_rescue_cmd_initrd): Likewise.
49648
49649 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
49650 Likewise.
49651
49652 * kern/i386/pc/startup.S (translation_table): New variable.
49653 (translate_keycode): New function.
49654 (pupa_console_getkey): Call translate_keycode.
49655
49656 * kern/rescue.c (attempt_normal_mode): New function.
49657 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
49658 it failed, print a message.
49659
49660 * kern/mm.c (pupa_real_malloc): Print more information when a
49661 free magic is broken.
49662 (pupa_free): If the first free header is not free actually, set
49663 it to P.
49664
49665 * kern/main.c (pupa_load_normal_mode): Just load the module
49666 "normal".
49667 (pupa_main): Don't print the message
49668 "Entering into rescue mode..." here.
49669
49670 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
49671 Declared.
49672 (pupa_rescue_cmd_initrd): Likewise.
49673 (pupa_rescue_cmd_initrd): Likewise.
49674
49675 * include/pupa/symbol.h (FUNCTION): Specify the type.
49676 (VARIABLE): Likewise.
49677
49678 * include/pupa/err.h (pupa_err_t): Added
49679 PUPA_ERR_UNKNOWN_COMMAND.
49680
49681 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
49682 (pupa_dl_get_prefix): Likewise.
49683
49684 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
49685 Added _chain.mod and _linux.mod instead of chain.mod and
49686 linux.mod.
49687 (chain_mod_SOURCES): Renamed to ...
49688 (_chain_mod_SOURCES): ... this.
49689 (chain_mod_CFLAGS): Renamed to ...
49690 (_chain_mod_CFLAGS): ... this.
49691 (linux_mod_SOURCES): Renamed to ...
49692 (_linux_mod_SOURCES): ... this.
49693 (linux_mod_CFLAGS): Renamed to ...
49694 (_linux_mod_CFLAGS): ... this.
49695 (normal_mod_SOURCES): New variable.
49696 (normal_mod_CFLAGS): Likewise.
49697 (normal_mod_ASFLAGS): Likewise.
49698
49699 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
49700
49701 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
49702 possible.
49703
49704 * kern/dl.c (pupa_dl_ref): Refer depending modules
49705 recursively.
49706 (pupa_dl_unref): Unrefer depending modules recursively.
49707 Don't call pupa_dl_unload implicitly, because PUPA can crash if
49708 a module is unloaded before one depending on that module is
49709 unloaded.
49710 (pupa_dl_unload): Unload depending modules explicitly,
49711 if possible.
49712
49713 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
49714
49715 * include/pupa/i386/pc/linux.h: New file.
49716 * loader/i386/pc/linux.c: Likewise.
49717
49718 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
49719 Removed.
49720 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
49721 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
49722 of PUPA_CHAINLOADER_BOOT_SECTOR.
49723
49724 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
49725 (pupa_linux_prot_size): New variable.
49726 (pupa_linux_tmp_addr): Likewise.
49727 (pupa_linux_real_addr): Likewise.
49728 (pupa_linux_boot_zimage): New function.
49729 (pupa_linux_boot_bzimage): Likewise.
49730
49731 * kern/i386/pc/init.c (struct mem_region): New structure.
49732 (MAX_REGIONS): New macro.
49733 (mem_regions): New variable.
49734 (num_regions): Likewise.
49735 (pupa_os_area_addr): Likewise.
49736 (pupa_os_area_size): Likewise.
49737 (pupa_lower_mem): Likewise.
49738 (pupa_upper_mem): Likewise.
49739 (add_mem_region): New function.
49740 (compact_mem_regions): Likewise.
49741 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
49742 the size of the conventional memory and that of so-called upper
49743 memory (before the first memory hole).
49744 Instead of adding each found region to free memory, use
49745 add_mem_region and add them after removing overlaps.
49746 Also, add only 1/4 of the upper memory to free memory. The rest
49747 is used for loading OS images. Maybe this is ad hoc, but this
49748 makes it much easier to relocate OS images when booting.
49749
49750 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
49751 (pupa_enter_rescue_mode): Don't register initrd and module.
49752
49753 * kern/mm.c: Include pupa/dl.h.
49754
49755 * kern/main.c: Include pupa/file.h and pupa/device.h.
49756
49757 * kern/loader.c (pupa_loader_load_module_func): Removed.
49758 (pupa_loader_load_module): Likewise.
49759
49760 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
49761 ``.o''.
49762
49763 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
49764 (pupa_linux_tmp_addr): Likewise.
49765 (pupa_linux_real_addr): Likewise.
49766 (pupa_linux_boot_zimage): Likewise.
49767 (pupa_linux_boot_bzimage): Likewise.
49768
49769 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
49770 (pupa_upper_mem): Likewise.
49771 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
49772 module is too dangerous.
49773
49774 * include/pupa/loader.h (pupa_os_area_addr): Declared.
49775 (pupa_os_area_size): Likewise.
49776 (pupa_loader_set): Remove the first argument. Loader doesn't
49777 manage modules or initrd any longer.
49778 (pupa_loader_load_module): Removed.
49779
49780 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
49781 (linux_mod_SOURCES): New variable.
49782 (linux_mod_CFLAGS): Likewise.
49783
49784 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
49785
49786 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
49787 the length of a blocklist correctly.
49788
49789 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
49790 Use ioctl only if the OS file is a block device.
49791 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
49792 not very useful for normal files.
49793
49794 * kern/main.c (pupa_set_root_dev): New function.
49795 (pupa_load_normal_mode): Likewise.
49796 (pupa_main): Call those above.
49797
49798 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
49799 pupa_uint16_t.
49800
49801 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
49802
49803 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
49804
49805 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
49806 (setup): Configure the installed partition information and the
49807 dl prefix.
49808
49809 * loader/i386/pc/chainloader.c (my_mod): New variable.
49810 (pupa_chainloader_unload): New function.
49811 (pupa_rescue_cmd_chainloader): Refer itself.
49812 (PUPA_MOD_INIT): Save its own module in MY_MOD.
49813
49814 * kern/i386/pc/startup.S (install_partition): Removed.
49815 (version_string): Likewise.
49816 (config_file): Likewise.
49817 (pupa_install_dos_part): New variable.
49818 (pupa_install_bsd_part): Likewise.
49819 (pupa_prefix): Likewise.
49820 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
49821
49822 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
49823 and pupa/misc.h.
49824 (make_install_device): New function.
49825 (pupa_machine_init): Set the dl prefix.
49826
49827 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
49828 (buf): Renamed to ...
49829 (linebuf): ... this.
49830 (pupa_rescue_cmd_prefix): New function.
49831 (pupa_rescue_cmd_insmod): Likewise.
49832 (pupa_rescue_cmd_rmmod): Likewise.
49833 (pupa_rescue_cmd_lsmod): Likewise.
49834 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
49835 rmmod and lsmod.
49836
49837 * kern/mm.c (pupa_memalign): If failed even after invalidating
49838 disk caches, unload unneeded modules and retry.
49839
49840 * kern/misc.c (pupa_memmove): New function.
49841 (pupa_memcpy): Removed.
49842 (pupa_strcpy): New function.
49843 (pupa_itoa): Made static.
49844
49845 * kern/dl.c (pupa_dl_iterate): New function.
49846 (pupa_dl_ref): Likewise.
49847 (pupa_dl_unref): Likewise.
49848 (pupa_dl_unload): Return if succeeded or not.
49849 (pupa_dl_unload_unneeded): New function.
49850 (pupa_dl_unload_all): Likewise.
49851 (pupa_dl_init): Renamed to ...
49852 (pupa_dl_set_prefix): ... this.
49853 (pupa_dl_get_prefix): New function.
49854
49855 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
49856 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
49857 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
49858 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
49859 (pupa_install_dos_part): Declared.
49860 (pupa_install_bsd_part): Likewise.
49861 (pupa_prefix): Likewise.
49862 (pupa_boot_drive): Likewise.
49863
49864 * include/pupa/types.h: Fix a typo.
49865
49866 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
49867 pupa_memmove.
49868 (pupa_memmove): Declared.
49869 (pupa_strcpy): Likewise.
49870
49871 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
49872 pupa_mod_init takes one argument, its own module.
49873 (pupa_dl_unload_unneeded): Declared.
49874 (pupa_dl_unload_all): Likewise.
49875 (pupa_dl_ref): Likewise.
49876 (pupa_dl_unref): Likewise.
49877 (pupa_dl_iterate): Likewise.
49878 (pupa_dl_init): Renamed to ...
49879 (pupa_dl_set_prefix): ... this.
49880 (pupa_dl_get_prefix): Declared.
49881
49882 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
49883 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
49884 unloaded.
49885 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
49886 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
49887
49888 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
49889 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
49890
49891 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
49892
49893 * util/i386/pc/pupa-setup.c (setup): Define the internal
49894 function find_first_partition_start at the top level, because GCC
49895 3.0.x cannot compile internal functions in deeper scopes
49896 correctly.
49897 (find_root_device): Use lstat instead of stat.
49898 Don't follow symbolic links.
49899 Fix the path-constructing code.
49900
49901 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
49902 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
49903 by a BLKGETSIZE ioctl first, because block devices don't fill
49904 the member st_mode of the structure stat on Linux.
49905 [__linux__] (linux_find_partition): Use a temporary buffer
49906 REAL_DEV for the working space. Copy it to DEV before returning.
49907 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
49908 buffer cache consistent.
49909 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
49910 strncmp. The previous value was merely wrong.
49911 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
49912
49913 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
49914 FAT size is 12. The previous value was merely wrong.
49915
49916 * kern/main.c (pupa_main): Don't split the starting message from
49917 newlines.
49918
49919 * kern/term.c (pupa_putchar): Put CR after LF instead of before
49920 LF, because BIOS goes crazy about character attributes in this
49921 case.
49922
49923 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
49924
49925 * include/i386/pc/util/biosdisk.h: New file.
49926 * util/i386/pc/biosdisk.c: Likewise.
49927 * util/i386/pc/pupa-setup.c: Likewise.
49928
49929 * Makefile.in (INCLUDE_DISTFILES): Added
49930 include/pupa/i386/pc/util/biosdisk.h.
49931 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
49932 directory util/i386/pc.
49933 (install-local): Added a rule for sbin_UTILITIES.
49934 (uninstall): Likewise.
49935
49936 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
49937
49938 * util/misc.c (xrealloc): New function.
49939 (pupa_malloc): Likewise.
49940 (pupa_free): Likewise.
49941 (pupa_realloc): Likewise.
49942 (pupa_stop): Likewise.
49943 (pupa_putchar): Likewise.
49944
49945 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
49946
49947 * include/pupa/util/misc.h (xrealloc): Declared.
49948
49949 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
49950 macro.
49951 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
49952 (PUPA_BOOT_MACHINE_BPB_END): ... this.
49953
49954 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
49955 [PUPA_UTIL] (pupa_fat_fini): Likewise.
49956
49957 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
49958 way should be implemented.
49959 [PUPA_UTIL] (pupa_fat_fini): Likewise.
49960
49961 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
49962 the size of NAME for safety.
49963 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
49964 0x88.
49965
49966 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
49967 (pupa_setup_SOURCES): Likewise.
49968
49969 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
49970
49971 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
49972
49973 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
49974 bunch of pushl's from pusha, because this destroys the return
49975 value.
49976
49977 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
49978
49979 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
49980 This means that any missing prototypes could be fatal. Also, you
49981 must take care when writing assembly code. See the comments at
49982 the beginning of startup.S, for more details.
49983
49984 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
49985 compilation mechanism.
49986 (pupa_chainloader_real_boot): Likewise.
49987 (pupa_biosdisk_rw_int13_extensions): Likewise.
49988 (pupa_biosdisk_rw_standard): Likewise.
49989 (pupa_biosdisk_check_int13_extensions): Likewise.
49990 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
49991 (pupa_biosdisk_get_diskinfo_standard): Likewise.
49992 (pupa_get_memsize): Likewise.
49993 (pupa_get_mmap_entry): Likewise.
49994 (pupa_console_putchar): Likewise.
49995 (pupa_console_setcursor): Likewise.
49996 (pupa_getrtsecs): Use pushl instead of push.
49997
49998 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
49999 memory instead of the stack for a mmap entry, because some
50000 BIOSes may ignore the maximum size and overflow.
50001
50002 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
50003
50004 * genmk.rb (PModule#rule): Compile automatically generated
50005 sources with module-specific CFLAGS as well as other sources.
50006
50007 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
50008
50009 * configure.ac: Check ld.
50010 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
50011 respectively, before checking endianness and sizes.
50012
50013 * Makefile.in (LD): New variable.
50014
50015 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
50016
50017 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
50018
50019 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
50020
50021 * Changelog: New file.
50022