]> git.proxmox.com Git - grub2.git/blob - ChangeLog
* grub-core/gdb_grub.in: Fix overflow and wrong field.
[grub2.git] / ChangeLog
1 2013-10-14 qwertial <qwertial>
2
3 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4
5 2013-10-14 Jon McCune <jonmccune@google.com>
6
7 * docs/grub.texi: Document new signatures possibility.
8
9 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10
11 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
12
13 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14
15 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
16 missing prototype.
17 (grub_util_tchar_to_utf8): Likewise.
18
19 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
20
21 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
22 * grub-core/kern/emu/main.c: Add missing include.
23 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
24 Don't call grub_util_init_nls.
25 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
26 Likewise.
27
28 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
29
30 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
31 stat.
32
33 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
34
35 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
36
37 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
38
39 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
40
41 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
42
43 Add a wrapper for fopen. On unix-like systems just pass-through. On
44 windows use unicode version.
45
46 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
47
48 Move set_program_name and init_nls to host_init. On windows
49 fix in this fuction console and argument charset as well.
50
51 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
52
53 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
54 GRUB_ENABLE_CRYPTODISK.
55
56 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
57 GRUB_ENABLE_CRYPTODISK.
58 * util/grub-mkconfig_lib.in: Likewise.
59
60 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
61
62 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
63
64 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
65
66 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
67 error when enabling debug.
68
69 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
70
71 * configure.ac: Use -melf_*_obsd on openbsd.
72
73 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
74
75 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
76
77 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
78
79 * include/grub/misc.h: Use gnu_printf rather than printf as format
80 template since our functions are independent of libc.
81
82 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
83
84 * util/grub-setup.c (setup): Move copying of partition table as
85 futher up as possible to avoid possible overwrite by floppy routines.
86
87 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
88
89 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
90
91 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
92
93 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
94 * docs/grub.texi: Likewise.
95
96 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
97
98 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
99 it's mostly unused. Move vestiges to the callers.
100
101 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
102
103 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
104 version of salt and hash. Use grub_snprintf rather than snprintf.
105
106 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
107
108 * docs/grub.texi: Fix problem with braces.
109
110 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
111
112 * conf/Makefile.extra-dist: Fix extra-dist list.
113 * grub-core/Makefile.core.def: Likewise.
114
115 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
116
117 * docs/grub.texi: Document disk names used on Windows and AROS.
118
119 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
120
121 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
122 with AROS devs.
123 * grub-core/osdep/aros/hostdisk.c: Likewise.
124
125 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
126
127 Avoid including hostfile.h when not necessarry as it pulls
128 in OS-specific headers which may redefine generic names
129 like "far".
130
131 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
132
133 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
134 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
135 scrollbar_bottom_pad
136 * docs/grub.texi: Likewise.
137
138 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
139
140 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
141
142 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
143
144 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
145
146 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
147
148 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
149 Removed.
150 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
151 Made static.
152
153 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
154
155 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
156 leftover.
157
158 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
159
160 Move OS-specific driver configuration to grub_util_fd_open. This
161 moves OS-dependent parts from kern/emu/hostdisk.c to
162 grub-core/osdep/*/hostdisk.c.
163
164 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
165
166 * util/grub-mkimage.c (generate_image): Use size_t instead of
167 grub_size_t.
168 * util/grub-mkimagexx.c (locate_sections): Likewise.
169 (load_image): Likewise.
170
171 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
172
173 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
174 size_t.
175 (grub_util_write_image): Likewise.
176
177 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
178
179 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
180 get random when no RNG is available.
181 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
182
183 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
184
185 * include/grub/util/lvm.h: Removed.
186
187 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
188
189 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
190 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
191
192 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
193
194 * grub-core/osdep/windows/sleep.c: Add missing config.h.
195
196 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
197
198 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
199
200 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
201
202 * grub-core/net/drivers/emu/emunet.c: Move to ..
203 * grub-core/osdep/linux/emunet.c: ..here.
204
205 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
206
207 * util/ieee1275/ofpath.c: Move to ...
208 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
209 * grub-core/osdep/basic/ofpath.c: ..here.
210
211 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
212
213 Move password-querying (util-version) routines to grub-core/osdep.
214
215 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
216
217 Move sleep routines to grub-core/osdep.
218
219 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
220
221 Move OS-dependent files to grub-core/osdep and document it.
222
223 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
224
225 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
226 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
227
228 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
229
230 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
231
232 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
233
234 * util/misc.c: Remove leftover inclusion of malloc.h.
235
236 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
237
238 * include/grub/setjmp.h: Remove leftover GRUBOF.
239
240 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
241
242 * util/raid.c: Fold into ...
243 * util/getroot_linux.c: ... here. Make all functions static.
244
245 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
246
247 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
248 macros to GRUB ones.
249
250 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
251
252 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
253 occasional bug. If there are too many boot entries or too low
254 scrollbar height then we need to use another formula to calculate
255 the position and size of the scrollbar thumb.
256
257 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
258
259 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
260
261 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
262
263 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
264 * docs/grub.texi: Likewise.
265
266 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
267
268 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
269 viewport.
270
271 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
272
273 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
274 minimal width calculations.
275
276 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
277
278 * docs/grub.texi: Update note on colors on emu console.
279
280 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
281
282 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
283 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
284 it's FS and not GRUB limitation.
285
286 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
287
288 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
289
290 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
291
292 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
293
294 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
295
296 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
297 kernels by version order.
298
299 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
300
301 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
302
303 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
304
305 Add AROS hostdisk and getroot routines.
306
307 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
308
309 Make cryptodisk and diskfilter probe data retrievable programmatically
310 and not just printable.
311
312 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
313
314 Split random retrieving code into separate files.
315
316 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
317
318 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
319 R_ARM_V4BX.
320
321 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
322
323 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
324 condition.
325 * grub-core/tests/fake_input.c: Likewise.
326 * grub-core/tests/cmdline_cat_test.c: Likewise.
327
328 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
329
330 * grub-core/video/capture.c: Do not do finalization when .fini
331 is called as there is explicit capture_end.
332
333 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
334
335 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
336 changing windows to avoid crash.
337
338 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
339
340 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
341
342 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
343
344 * po/exclude.pot: Add several strings to exclude.
345
346 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
347
348 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
349
350 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
351
352 * autogen.sh: Add ./util/grub-gen-widthspec.c and
353 ./util/grub-gen-asciih.c to exclude list.
354
355 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
356
357 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
358 and don't mark error strings for translation.
359
360 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
361
362 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
363 properly in case of missing block size.
364
365 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
366
367 * grub-core/lib/arm/setjmp.S: Add missing license section.
368
369 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
370
371 * po/swiss.sed: Add replacement for key names and for term computer.
372
373 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
374
375 * grub-core/gfxmenu/theme_loader.c: New global options for the
376 theme background image handling. desktop-image-scale-method,
377 desktop-image-h-align, desktop-image-v-align.
378 * grub-core/gfxmenu/view.c: Likewise.
379 * include/gfxmenu_view.h: Likewise.
380 * include/bitmap_scale.h: Proportional scale functions introduced.
381 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
382 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
383 cases of unexpected input variables for scale functions.
384 * docs/grub.texi: Updated documentation for new options.
385
386 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
387
388 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
389
390 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
391
392 * grub-core/tests/checksums.h: Corrected due to changes in
393 bilinear interpolation function.
394
395 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
396
397 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
398 to eliminate artefacts in bilinear interpolation.
399
400 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
401
402 * grub-core/video/readers/tga.c: Support paletted tga.
403
404 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
405
406 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
407 incorrect cbcr setting when in color mode.
408
409 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
410
411 * grub-core/video/readers/png.c: Support paletted images and clean up
412 greyscale support.
413
414 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
415
416 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
417 usage of wrong table which resulted in mishandling of 4-byte
418 sequences.
419
420 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
421
422 * grub-core/term/terminfo.c: Add Home and End key sequences.
423
424 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
425
426 * grub-core/video/readers/png.c (grub_png_decode_image_header):
427 Fix formula for computing total number of bytes.
428
429 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
430
431 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
432 image processing, fix big-endian and support grayscale.
433
434 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
435
436 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
437 Correctly will with maximum transparency when using index color.
438
439 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
440
441 * grub-core/video/readers/png.c: Support grayscale
442
443 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
444
445 * grub-core/video/readers/jpeg.c: Support grayscale.
446
447 2013-09-26 Jon McCune <jonmccune@google.com>
448
449 * grub-core/commands/loadenv.c: Support skipping signature check
450 and variable names filtering.
451
452 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
453
454 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
455 * grub-core/kern/emu/hostfs.c: Likewise.
456 * util/getroot_unix.c: Likewise.
457
458 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
459
460 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
461 Migrate all explicit defines to this new one.
462
463 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
464
465 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
466 grub_util_fd_strerror when using grub_util_fd_*.
467 (grub_util_fd_open_device): Likewise.
468 (grub_util_biosdisk_read): Likewise.
469 (grub_util_biosdisk_write): Likewise.
470 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
471 (grub_util_fd_strerror): Likewise.
472 (grub_util_fd_sync): Likewise.
473 (grub_util_fd_close): Likewise.
474 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
475 (grub_util_fd_close): Likewise.
476 (grub_util_fd_strerror): Likewise.
477 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
478 function proto rather than macro.
479 (grub_util_fd_sync): Likewise.
480 (grub_util_fd_open): Likewise.
481 (grub_util_fd_strerror): New proto.
482
483 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
484
485 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
486 platforms on which it doesn't work.
487
488 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
489
490 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
491 stat immediately to where it's used.
492
493 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
494
495 * util/getroot.c (grub_util_check_block_device): Move to ...
496 * util/getroot_unix.c (grub_util_check_block_device): ... here.
497 * util/getroot.c (grub_util_check_char_device): Move to ...
498 * util/getroot_unix.c (grub_util_check_char_device): ... here.
499
500 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
501
502 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
503 disk closing logic.
504
505 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
506
507 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
508
509 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
510
511 * docs/grub.texi (File name syntax): Document ZFS filenames
512 (/volume@snapshot/...).
513
514 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
515
516 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
517 Always return full path. Fixes a problem with mkrelpath.
518
519 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
520
521 * util/grub-install.in: Add GPT PReP support.
522 * util/grub-probe.c (probe): Support GPT partition type.
523 (main): Support -t gpt_parttype.
524
525 2013-09-23 Aleš Nesrsta <starous@volny.cz>
526
527 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
528
529 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
530
531 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
532
533 2013-09-23 Tim Hardeck <thardeck>
534
535 * util/grub.d/10_hurd.in: Filter out character for the class.
536 * util/grub.d/10_kfreebsd.in: Likewise.
537 * util/grub.d/10_linux.in: Likewise.
538 * util/grub.d/20_linux_xen.in: Likewise.
539
540 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
541
542 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
543 "changed".
544
545 2013-09-23 Josh Triplett <josh@joshtriplett.org>
546
547 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
548 boot partition.
549
550 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
551
552 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
553 doesn't use posix_wrap. Keep literal -fno-builtin however.
554
555 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
556
557 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
558
559 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
560 2013-09-23 neil
561
562 * configure.ac: Do not enable -Wmissing-noreturn as its
563 usefulness is limited and creates problems on some OS notably with
564 code generated by bison.
565
566 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
567 2013-09-23 neil
568
569 * configure.ac: Do not explicitly enable -Waddress as it's not
570 supported by all gcc and when it is, it's already enabled by -Wall.
571
572 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
573
574 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
575 desactivated use of EDID at all.
576
577 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
578 2013-09-23 neil
579
580 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
581 video if no text is available.
582
583 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
584 2013-09-23 neil
585
586 * configure.ac: Substitute TARGET_RANLIB.
587
588 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
589 2013-09-23 neil
590
591 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
592
593 Based on patches from AROS.
594
595 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
596 2013-09-23 neil
597
598 * grub-core/Makefile.am: Override STRIP and RANLIB.
599 * configure.ac: compute TARGET_RANLIB.
600 * INSTALL: Document TARGET_RANLIB
601
602 Based on patches from AROS.
603
604 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
605
606 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
607 that floppies are unpartitioned.
608
609 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
610
611 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
612 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
613
614 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
615
616 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
617 less nice but more portable.
618 * grub-core/lib/posix_wrap/wchar.h: Likewise.
619
620 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
621
622 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
623 for cheat_fd.
624 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
625 functions.
626 (grub_cryptodisk_cheat_insert): Likewise.
627 (grub_cryptodisk_close): Likewise.
628
629 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
630
631 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
632 Use windows path for DEFAULT_DIRECTORY.
633
634 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
635
636 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
637 difference was likely just gcc version, not anything mingw-related.
638
639 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
640
641 Use Winapi on both cygwin and mingw32 to share more code between both.
642
643 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
644
645 * util/grub-install.in: Add --grub-editenv option.
646 * util/grub-install_header (grub_compress_file): Explicitly check for
647 plain file to avoid cp error.
648
649 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
650
651 * docs/grub.texi (Device syntax): Document new LVM UUID based device
652 names; fix LVM driver name (lvm, not lv).
653 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
654 names.
655
656 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
657
658 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
659 files rather than one file with loads of #if's.
660 * util/getroot.c: Likewise.
661
662 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
663
664 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
665
666 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
667
668 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
669 GNU/Hurd to the list of checked PRNG.
670
671 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
672
673 * configure.ac: On FreeBSD use -melf_*_fbsd format.
674
675 2013-09-21 Ales Nesrsta <starous@volny.cz>
676
677 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
678
679 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
680
681 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
682 * grub-core/disk/lvm.c: Add LVM UUIDs.
683 * util/getroot.c: Use LVM UUIDs whenever possible.
684
685 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
686
687 * docs/grub.texi (Networking commands): Add documentation for
688 network related commands.
689
690 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
691
692 * util/getroot.c (grub_util_open_dm): Check major rather than the name
693 to determine if device is handled by devmapper.
694 (convert_system_partition_to_system_disk): Likewise.
695 (get_dm_uuid): Don't check explicitly if device is mapped, it's
696 already done in grub_util_open_dm.
697
698 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
699
700 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
701 Clean up stack manipulation (sync_caches_armv*)
702
703 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
704
705 * util/lvm.c: Remove since unused. Remove remaining references.
706
707 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
708
709 Handle the case of partitioned LVM properly.
710
711 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
712 Stop on meeting LVM, mpath or DMRAID.
713 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
714 (read_device_map): Likewise.
715 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
716 device is full disk rather than erroring out on LVM and similar cases.
717
718 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
719
720 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
721
722 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
723
724 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
725 4K before the end.
726 Reported by: Leif Lindholm
727
728 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
729 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
730
731 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
732 codes.
733
734 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
735
736 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
737 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
738
739 2013-09-18 Douglas Ray <dougray@cpan.org>
740
741 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
742 as secure.
743
744 2013-09-18 Aleš Nesrsta <starous@volny.cz>
745
746 * docs/grub.texi: Fix broken link.
747
748 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
749
750 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
751 to break endless loop.
752
753 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
754
755 * util/grub-fstest.c: Fix several printf formats.
756 * util/grub-mkimage.c: Likewise.
757 * util/grub-mkimagexx.c: Likewise.
758 * util/grub-script-check.c: Likewise.
759
760 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
761
762 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
763 error.
764
765 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
766
767 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
768
769 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
770
771 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
772 removed in current versions cygwin_conv_*.
773
774 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
775
776 * configure.ac: Disable efiemu runtime on cygwin.
777
778 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
779
780 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
781 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
782
783 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
784
785 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
786 error message.
787
788 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
789
790 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
791 windows variant.
792 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
793 data.
794
795 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
796
797 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
798 when on x86 and not cygwin.
799 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
800 -Wl,-melf_x86_64.
801
802 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
803
804 * configure.ac: Set CPP to build one when checkoing for freetype for
805 build.
806
807 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
808
809 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
810 [!GRUB_BUILD]: Remove has_argument.
811
812 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
813
814 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
815 Replace with a dummy.
816
817 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
818
819 * configure.ac: Don't change host_os from mingw to cygwin.
820
821 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
822
823 * configure.ac: Change target_os from windows to cygwin.
824
825 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
826
827 Handle grub-pe2elf and grub-mkfont for cases when build != host.
828
829 * Makefile.am (build-grub-mkfont): Don't include gnulib.
830 (build-grub-gen-asciih): Likewise.
831 (build-grub-gen-widthspec): Likewise.
832 * Makefile.util.def (grub-pe2elf): Remove.
833 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
834 * configure.ac: Separate tests for build.
835 Move ./build-grub-pe2elf to grub-core.
836 Fix typo.
837 * grub-core/Makefile.am (build-grub-pe2elf): New target.
838 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
839 defined.
840 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
841 constants.
842 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
843 * util/grub-pe2elf.c: Simplify not to rely on getopt.
844 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
845
846 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
847
848 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
849 mingw32 as well based on grub_util_get_disk_size.
850 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
851 grub_util_get_fd_size.
852 (sync): Removed.
853 (fsync): Moved to ...
854 * grub-core/kern/emu/misc.c (fsync): ... here.
855
856 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
857
858 * include/grub/mm.h (grub_extend_alloc): Remove.
859 * grub-core/loader/i386/pc/plan9.c: Use own version of
860 grub_extend_alloc with appropriate types.
861
862 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
863
864 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
865
866 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
867
868 * util/getroot.c: Include sys/wait.h only when we need waitpid.
869
870 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
871
872 Fix dependencies on cygwin.
873
874 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
875 dependencies when used and defined.
876 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
877
878 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
879
880 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
881 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
882
883 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
884
885 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
886 implementation available to cause compile-time rather than runtime
887 error.
888
889 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
890
891 * util/grub-fstest.c: Don't check for symlinks on windows.
892
893 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
894
895 * INSTALL: Mention unavailability of man pages when cross-compiling.
896
897 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
898
899 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
900 and gcry_log_bug.
901 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
902
903 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
904
905 * INSTALL: Document cross-compilation.
906 * acinclude.m4: Determine whether nm support -P and --defined-only.
907 * configure.ac: Add TARGET_ to all variables pertaining to target
908 that don't have it yet.
909 * gentpl.py: Likewise.
910 * grub-core/Makefile.am: Likewise.
911 * grub-core/genmod.sh.in: Likewise.
912 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
913 as well.
914
915 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
916
917 * configure.ac: Remove -Wempty-body. It's not essential and needs
918 recent gcc.
919
920 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
921
922 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
923 * util/getroot.c: Likewise.
924
925 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
926
927 * grub-core/disk/ahci.c: Add needed explicit cast.
928 * grub-core/lib/backtrace.c: Likewise.
929 * grub-core/net/ip.c: Likewise.
930 * grub-core/net/tcp.c: Likewise.
931 * grub-core/net/udp.c: Likewise.
932
933 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
934
935 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
936
937 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
938
939 * util/import_gcry.py: Add final newline in visibility.h.
940
941 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
942
943 * conf/Makefile.common: Fix typo.
944
945 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
946
947 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
948
949 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
950
951 * Makefile.am (widthspec.h): Fix typo.
952 * util/grub-gen-widthspec.c: Likewise.
953
954 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
955
956 Move ascii.h and widthspec.h generation to a separate build-time-only
957 tool.
958
959 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
960
961 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
962 Always fill bootdisk info and improve check for NetBSD disklabel.
963
964 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
965
966 * conf/Makefile.extra-dist: Add util/bin2h.c.
967 Reported by: floppym.
968
969 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
970
971 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
972
973 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
974
975 * configure.ac: Disable unifont and starfield if no freetype was found.
976
977 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
978
979 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
980 on NetBSD and OpenBSD.
981
982 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
983
984 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
985
986 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
987
988 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
989 reduced. Inheritant options are processed during the theme loading.
990
991 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
992
993 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
994
995 2013-08-14 Avik Sil <aviksil@in.ibm.com>
996
997 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
998
999 2013-08-14 Avik Sil <aviksil@in.ibm.com>
1000
1001 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
1002 using qemu.
1003
1004 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1005
1006 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
1007 remove-potcdate.sed.
1008
1009 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
1010
1011 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
1012 unused attribute from pull argument.
1013
1014 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
1015
1016 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
1017 memory leak.
1018
1019 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
1020
1021 * util/getroot.c (pull_lvm_by_command): add --separator option
1022 to vgs call to disable padding of output to 10 characters.
1023
1024 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1025
1026 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
1027 here ...
1028 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
1029 here.
1030
1031 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1032
1033 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
1034 length.
1035
1036 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1037
1038 Fix handling of build-time grub-bin2h and grub-mkfont when doing
1039 full Canadian cross. Tested with build=x86_64, host=arm,
1040 target=ppc-ieee1275.
1041
1042 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1043
1044 * configure.ac: Error if no $BUILD_CC could be found.
1045 Reported by: DevHC.
1046
1047 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1048
1049 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
1050 i386-multiboot.
1051
1052 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
1053
1054 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
1055 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
1056
1057 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
1058
1059 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
1060 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
1061 falling back to the partition device, otherwise a later call to this
1062 function may fail spuriously.
1063 Reported by Axel Beckert. Fixes Debian bug #708614.
1064
1065 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
1066
1067 * autogen.sh: Replace find -not by the POSIX-compliant find !.
1068
1069 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
1070
1071 Prevent shadowing of stdlib's devname(3) on BSD.
1072
1073 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
1074 and devlast to diskname and disklast, respectively.
1075
1076 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
1077
1078 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
1079
1080 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1081
1082 * docs/grub.texi: Introduce terminal window position options:
1083 terminal-left: terminal window's left position
1084 terminal-top: terminal window's top position
1085 terminal-width: terminal window's width
1086 terminal-height: terminal window's height
1087 terminal-border: terminal window's border width
1088 * grub-core/gfxmenu/theme-loader.c: Likewise.
1089 * include/grub/gfxmenu_view.h: Likewise.
1090 * po/exlude.pot: Likewise.
1091 * grub-core/gfxmenu/view.c: Likewise.
1092 Also updated minimal window size.
1093 Also terminal_sanity_check function has been introduced.
1094 * grub-core/tests/checksums.h: Update (terminal window height
1095 is adjusted now for low resolution screen)
1096
1097 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1098
1099 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
1100 position).
1101
1102 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1103
1104 * po/exclude.pot: Add few recent exceptions.
1105
1106 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1107
1108 * tests/grub_func_test.in: Add unicode.pf2.
1109
1110 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1111
1112 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
1113 standard rather than noral color, in line with other terminals.
1114
1115 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1116
1117 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
1118 analysis.
1119
1120 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1121
1122 * grub-core/loader/arm/linux.c: Change printf to dprintf.
1123
1124 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
1125
1126 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
1127 inappropriate printf.
1128
1129 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
1130
1131 * .bzrignore: Remove grub-core/lib/dtc-grub,
1132 grub-core/Makefile.libfdt.def
1133 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
1134
1135 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1136
1137 * include/grub/video.h (grub_video_register): Keep double-linked as
1138 well as single-linked invariants.
1139 Reported by: qwertial.
1140
1141 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
1142
1143 * grub-core/commands/nativedisk.c (get_uuid): Handle
1144 GRUB_DISK_DEVICE_UBOOTDISK_ID.
1145
1146 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
1147
1148 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
1149 maximum of NW, N, NE heights instead of N's height and maximum of
1150 NW, W, SW widths instead of W's width. (So the box will be always
1151 correctly drawn)
1152
1153 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
1154
1155 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
1156 Fix misuse of variable count.
1157
1158 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
1159 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
1160 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
1161
1162 New ports to arm-uboot and arm-efi.
1163 Mostly by Leif Lindholm with some additions from
1164 Francesco Lavra and cleanup by Vladimir Serbinenko.
1165
1166 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1167
1168 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
1169 and not before.
1170 Reported by: Leon Drugi.
1171
1172 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
1173
1174 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
1175 Reported by: Paulo Flabiano Smorigo.
1176
1177 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
1178
1179 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
1180
1181 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
1182
1183 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
1184
1185 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
1186
1187 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
1188
1189 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
1190
1191 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
1192
1193 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
1194
1195 * grub-core/net/bootp.c: Export net_* variables.
1196 * grub-core/net/net.c: Likewise.
1197
1198 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
1199
1200 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
1201
1202 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
1203
1204 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
1205
1206 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
1207
1208 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
1209
1210 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
1211
1212 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
1213
1214 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
1215
1216 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
1217 <= 0.
1218
1219 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
1220
1221 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
1222 functions.
1223
1224 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
1225
1226 * grub-core/fs/zfs/zfs_lz4.c: New file.
1227 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
1228
1229 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
1230
1231 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
1232
1233 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
1234
1235 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
1236 (check_pool_label): Likewise.
1237 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
1238
1239 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
1240
1241 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
1242
1243 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
1244
1245 * docs/grub.texi (Commands): Document postition parameters
1246 for menuentry command.
1247
1248 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
1249
1250 * util/grub-mknetdir.in: Remove stray line from help output.
1251
1252 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
1253
1254 Remove early sm712 init as there is no reason for it (the "watchdog"
1255 effect was due to wrong GPIO map).
1256
1257 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
1258
1259 * grub-core/commands/pcidump.c: Remove static variables.
1260
1261 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
1262
1263 * grub-core/commands/sleep.c: Refresh screen before sleeping.
1264
1265 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
1266
1267 * configure.ac: Move delimiter after the infos.
1268
1269 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
1270
1271 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
1272
1273 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
1274
1275 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
1276 not filling whole 8x16 space.
1277
1278 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
1279
1280 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
1281
1282 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
1283
1284 * configure.ac: Indicate which liblzma is used if any.
1285
1286 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
1287 2013-06-21 Craig Sanders <savannah@taz.net.au>
1288
1289 * util/grub-reboot.in: Document submenu usage.
1290
1291 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
1292
1293 * .bzrignore: Update with a number of new test-related files.
1294
1295 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
1296
1297 * util/grub-script-check.c: Fail on scripts containing no
1298 commands, to guard against corrupted grub-mkconfig setups that
1299 produce no useful output.
1300 * tests/grub_script_no_commands.in: New test.
1301 * Makefile.util.def (grub_script_no_commands): Add.
1302 Reported by Hans Putter. Fixes Debian bug #713886.
1303
1304 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
1305
1306 * grub-core/disk/diskfilter.c: Forgot to remove comment
1307 from previous commit.
1308
1309 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
1310
1311 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
1312 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
1313
1314 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
1315
1316 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
1317
1318 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
1319
1320 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
1321 rescan diskfilter devices until nothing new is found.
1322
1323 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1324
1325 Fix casts when compiling coreboot-specific code for 64-bit EFI.
1326
1327 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1328
1329 Don't try to detect cbfs on *-emu.
1330
1331 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1332
1333 * grub-core/term/gfxterm.c: USe right background color when scrolling.
1334
1335 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1336
1337 Add support for processed coreboot payload chainloading.
1338
1339 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1340
1341 Enable coreboot information commands even when not loaded as
1342 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
1343
1344 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1345
1346 Support for cbfs. Also factor out the part which is common
1347 for all archives to a separate module. This splits tar from cpio
1348 as they are very different but keeps cpio, cpio_be, odc and newc
1349 together since they're very similar.
1350
1351 2013-06-15 David Michael <fedora.dm0@gmail.com>
1352
1353 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
1354 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
1355
1356 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1357
1358 * tests/grub_script_eval.in: Really add the eval test.
1359
1360 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
1361
1362 Move flavour-specific parts out of common cpio.c file and
1363 rename remaining to cpio_common.c
1364
1365 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
1366
1367 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
1368 off new function grub_script_execute_new_scope. Change callers to use
1369 either of them as appropriate.
1370 * grub-core/commands/eval.c: New command eval.
1371 * docs/grub.texi (Commands): Document it.
1372
1373 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
1374
1375 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
1376 to fetch values when listing.
1377
1378 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
1379
1380 Fix make dist on non-pc.
1381
1382 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
1383
1384 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
1385 without a device name.
1386
1387 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1388
1389 Remove enable_executable_check as it's not needed anymore.
1390 Reported by: dougray.
1391
1392 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1393
1394 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
1395 ambigouos RAID before discovering RAIDs on top of it.
1396 Reported by: bodom.
1397
1398 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
1399
1400 Fix typo (failback vs fallback).
1401
1402 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
1403
1404 * util/grub.d/30_os-prober.in: Add support for probing EFI
1405 System Partition (as of os-prober 1.58).
1406
1407 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
1408
1409 * configure.ac: Add yet another path to unifont. For parabola.
1410
1411 2013-05-30 Josh Triplett <josh@joshtriplett.org>
1412
1413 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
1414 handling to copy the killed characters to the kill buffer as
1415 UCS4 stored as grub_uint32_t rather than as 8-bit characters
1416 stored as char. Eliminates UCS4 truncation and corruption
1417 observed when killing characters with Ctrl-u and yanking them
1418 back with Ctrl-y.
1419
1420 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1421
1422 Detach optional parts of gfxterm and integrate in with coreboot init.
1423
1424 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1425
1426 Move blit and fill dispatcher to appropriate files to decrease export
1427 and relocation overhead.
1428
1429 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1430
1431 * grub-core/font/font.c, include/grub/font.h: Inline simple font
1432 functions.
1433
1434 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1435
1436 * grub-core/Makefile.am: Fix compilation problem with some
1437 automake versions.
1438
1439 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1440
1441 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
1442
1443 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1444
1445 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
1446 automake versions.
1447
1448 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
1449
1450 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
1451 SSDT.
1452
1453 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
1454
1455 * grub-core/partmap/dfly.c: New partition map.
1456
1457 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
1458
1459 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
1460 checking.
1461 Reported by: Francesco Lavra.
1462
1463 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
1464
1465 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
1466 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
1467 false conditions.
1468 * conf/Makefile.common: define dist_grubconf_DATA
1469
1470 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1471
1472 Progressively skip menu elements on small terminals rather
1473 than crashing.
1474
1475 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1476
1477 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
1478 to avoid losing last column.
1479
1480 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1481
1482 * po/exclude.pot: Add missing string "%C".
1483
1484 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
1485
1486 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
1487 after the test.
1488
1489 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
1490
1491 * util/grub-install.in: Gettextize "Not found" message.
1492
1493 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
1494
1495 Fix distfiles list.
1496 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
1497
1498 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1499
1500 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
1501 present.
1502 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
1503
1504 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
1505
1506 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
1507
1508 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
1509
1510 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
1511 attribute since structure is not necessarily aligned.
1512
1513 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
1514
1515 * docs/grub.texi (Device syntax): Clarify description of network
1516 drives.
1517
1518 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1519
1520 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
1521 for vasprintf presence.
1522
1523 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1524
1525 * util/grub-install.in: Handle efibootmgr presence check.
1526 Reported by: Leif Lindholm.
1527
1528 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1529
1530 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
1531 new strings to translate.
1532
1533 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1534
1535 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
1536 yet another string (pun intended) to translate.
1537
1538 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1539
1540 * po/POTFILES-shell.in: Autogenerate it.
1541
1542 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1543
1544 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
1545
1546 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
1547
1548 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
1549 misnomer.
1550
1551 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
1552
1553 * docs/grub.texi (Network): Add description of net_default_interface,
1554 net_default_ip and net_default_mac. Rewrite variables description
1555 to emphasize that they are per-interface.
1556
1557 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1558
1559 New test: cmdline and cat.
1560
1561 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1562
1563 * grub-core/commands/cat.c: Show UTF-8 characters.
1564
1565 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1566
1567 * conf/Makefile.common: Poison float and double on non-emu.
1568
1569 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
1570
1571 * configure.ac: Don't disable extended registers on emu.
1572
1573 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1574
1575 * configure.ac: Don't use extended registers on x86_64.
1576 Reported by: Peter Jones.
1577
1578 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1579
1580 * grub-core/term/efi/console.c: Fix compile error.
1581
1582 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1583
1584 Compressed HFS+ support.
1585
1586 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1587
1588 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
1589 pixel".
1590
1591 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1592
1593 Menu color test.
1594
1595 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1596
1597 * grub-core/tests/setjmp_test.c: New test.
1598
1599 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1600
1601 New variables 'net_default_*' to determine MAC/IP of default interface.
1602
1603 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1604
1605 * tests/gettext_strings_test.in: A test to check for strings not
1606 marked for translation.
1607
1608 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1609
1610 * autogen.sh: Exclude unused libgcrypt files from translation.
1611
1612 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1613
1614 Simplify few strings.
1615
1616 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1617
1618 Mark few forgotten strings for translation.
1619
1620 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1621
1622 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
1623 rather than printf.
1624
1625 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1626
1627 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
1628 rather than printf.
1629 * grub-core/video/readers/tga.c: Likewise.
1630
1631 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1632
1633 * tests/priority_queue_unit_test.cc: New test.
1634
1635 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
1636
1637 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
1638 than printf.
1639
1640 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
1641
1642 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
1643 variable for one time boot menu entry.
1644
1645 2013-05-05 Bean <bean123ch@gmail.com>
1646
1647 * grub-core/commands/testspeed.c: New command testspeed.
1648
1649 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
1650
1651 Factor-out human-size printing.
1652
1653 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1654
1655 Agglomerate more mallocs to speed-up gfxterm.
1656
1657 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1658
1659 Speed-up gfxterm by slightly agglomerating mallocs.
1660
1661 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1662
1663 More video checks.
1664
1665 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1666
1667 Speed-up gfxterm by saving intermediate results in index+alpha
1668 format.
1669
1670 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1671
1672 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
1673 test.
1674
1675 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1676
1677 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
1678 line of timeout as it may contain the rest of long line.
1679
1680 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1681
1682 * grub-core/normal/main.c: Fix freed memory dereference.
1683
1684 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1685
1686 Fix several memory leaks.
1687
1688 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1689
1690 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
1691
1692 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1693
1694 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
1695
1696 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1697
1698 Fix test -a and -o precedence.
1699 Reported by: adrian15.
1700
1701 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
1702
1703 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
1704
1705 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
1706
1707 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
1708 and add it as source to functional_test module.
1709
1710 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1711
1712 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
1713
1714 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1715
1716 New series of tests for gfxterm and gfxmenu.
1717
1718 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1719
1720 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
1721 the theme path relative to $prefix/themes.
1722
1723 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1724
1725 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
1726 Fix order bug.
1727 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
1728
1729 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1730
1731 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
1732 descriptor.
1733
1734 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1735
1736 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
1737 grub_gfxmenu_timeout_notifications.
1738 (grub_gfxmenu_view_destroy): Likewise.
1739
1740 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
1741
1742 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
1743
1744 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1745
1746 Several fixes to ieee1275 and big-endian video.
1747
1748 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1749
1750 Add missing exports on mips.
1751
1752 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1753
1754 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
1755 if no unifont is found.
1756 Restore original keyboard.
1757
1758 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1759
1760 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
1761 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
1762
1763 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1764
1765 First automated video test (running videotest and comparing results)
1766
1767 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
1768
1769 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
1770 instead of 2 to have full RGB/CMY test pattern.
1771
1772 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
1773
1774 Add few more tests.
1775
1776 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
1777
1778 * include/grub/arc/arc.h: Account for missing "other" peripheral on
1779 ARCS. All users updated.
1780
1781 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
1782
1783 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
1784
1785 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
1786
1787 * grub-core/partmap/amiga.c: Fix size of checksummed block.
1788
1789 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1790
1791 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
1792 Reported by: qwertial.
1793
1794 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
1795
1796 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
1797 with syntax "XXX deg"/"XXX °".
1798
1799 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1800
1801 Make PCI init in i386-qemu port more robust.
1802
1803 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
1804
1805 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
1806 cached view is reused.
1807 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
1808 open boot menus.
1809
1810 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1811
1812 Unify more code in grub-install_header.
1813
1814 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1815
1816 Add few new tests.
1817
1818 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1819
1820 Enforce disabling of firmware disk drivers when native drivers kick in.
1821
1822 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1823
1824 * grub-core/commands/nativedisk.c: Customize the list of modules on
1825 platform. Don't try to search for disks already using native drivers.
1826
1827 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1828
1829 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
1830 platforms.
1831
1832 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1833
1834 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
1835 handling of variables containing backslash.
1836
1837 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1838
1839 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
1840 dereference.
1841 Reported by: qwertial.
1842
1843 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1844
1845 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
1846
1847 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
1848
1849 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
1850 dereference.
1851 Reported by: qwertial.
1852
1853 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1854
1855 * docs/grub.texi: Add a comment about usefullness of nativedisk.
1856
1857 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1858
1859 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
1860
1861 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1862
1863 New command `nativedisk'.
1864
1865 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1866
1867 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
1868 * grub-core/loader/i386/bsd.c: Likewise.
1869
1870 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1871
1872 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
1873
1874 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1875
1876 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
1877 grub_get_unaligned16 rather than shifts.
1878
1879 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1880
1881 * grub-core/kern/file.c: Use const char * rather than casting to
1882 non-const.
1883
1884 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1885
1886 * grub-core/commands/probe.c: Add missing grub_device_close.
1887
1888 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1889
1890 * INSTALL: Document linguas.sh.
1891
1892 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1893
1894 Remove POTFILES.in and regenerate it in autogen.sh.
1895
1896 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1897
1898 Move --directory/--override-directorry to grub-install_header and unify.
1899
1900 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
1901
1902 * grub-core/term/morse.c: Macroify dih and dah.
1903
1904 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1905
1906 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
1907
1908 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1909
1910 * grub-core/term/ns8250.c: Systematically probe ports by writing
1911 to SR before using them.
1912
1913 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1914
1915 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
1916 disks.
1917 (check_sas): Get sas_adress info.
1918
1919 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1920
1921 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
1922 ports.
1923
1924 2013-04-27 Leon Drugi <eyak>
1925
1926 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
1927 BSS clearing.
1928
1929 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1930
1931 Core compression test.
1932
1933 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1934
1935 Implement grub_machine_get_bootlocation for ARC.
1936
1937 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
1938
1939 Improve AHCI detection and command issuing.
1940
1941 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1942
1943 Fix pseries test.
1944
1945 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1946
1947 Make 'make check' work on emu.
1948
1949 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1950
1951 Replace libcurses with our own vt100 handling for the ease of testing
1952 and decreasing prerequisites.
1953
1954 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1955
1956 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
1957
1958 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1959
1960 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
1961 compile when not needed.
1962
1963 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1964
1965 * tests/pseries_test.in: New test.
1966
1967 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1968
1969 Add test to check that different boot mediums work.
1970
1971 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1972
1973 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
1974 ofw limited ISO support.
1975
1976 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
1977
1978 * configure.ac: Fix loongson conditional.
1979
1980 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1981
1982 Enable mipsel-arc.
1983
1984 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1985
1986 Add serial on ARC platform.
1987
1988 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1989
1990 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
1991 commit.
1992
1993 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1994
1995 * tests/partmap_test.in: Add missing double semicolon.
1996
1997 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
1998
1999 * util/grub-mkrescue.in: Fix loongson filename.
2000
2001 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
2002
2003 * util/grub-mkrescue.in: Move all files that don't have a location
2004 set in stone under /boot/grub. Use ISO hard links rather than copies
2005 to save some space.
2006
2007 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2008
2009 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
2010 bogus SLOF values.
2011
2012 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2013
2014 Make check work on mips-arc.
2015
2016 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2017
2018 * util/grub-mkrescue.in: Alias sashARCS as sash.
2019
2020 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2021
2022 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
2023 it's serial.
2024
2025 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2026
2027 * util/grub-install.in: Fix target fo qemu_mips.
2028 Fix extension on EFI.
2029
2030 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2031
2032 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
2033 in front of chosen entry to mark it even if highlighting is lost.
2034
2035 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2036
2037 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
2038 gfxpayload=keep if cbfb is active.
2039
2040 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2041
2042 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
2043
2044 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2045
2046 Add missing video ids to coreboot and ieee1275 video.
2047
2048 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2049
2050 * util/grub-mkrescue.in: Add mips-arc support.
2051
2052 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2053
2054 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
2055
2056 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
2057
2058 Move mips-arc link address. Previous link address was chosen
2059 in belief that RAM on SGI platforms grows down while in fact it
2060 grows up from an unusual base.
2061
2062 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2063
2064 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
2065 Fix a type which prevented CD-ROM and floppy boot.
2066
2067 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
2068
2069 Support coreboot framebuffer.
2070
2071 * grub-core/video/i386/coreboot/cbfb.c: New file.
2072
2073 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
2074
2075 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
2076 detecting too small regions.
2077
2078 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
2079
2080 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
2081
2082 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
2083
2084 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
2085 Remove dprintf.
2086 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
2087
2088 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2089
2090 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
2091 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
2092 * grub-core/loader/powerpc/ieee1275/linux.c
2093 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
2094
2095 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2096
2097 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
2098 Look for /boot-rom as well as /rom/boot-rom.
2099
2100 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2101
2102 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
2103 handling when creating text_layer failed.
2104 * grub-core/video/video.c (grub_video_create_render_target):
2105 Set result to 0 on error.
2106 (grub_video_delete_render_target): Do not dereference NULL.
2107
2108 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2109
2110 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
2111 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
2112 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
2113 (grub_linux_load64): Mask out 2 high bits.
2114
2115 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
2116
2117 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
2118 more place.
2119
2120 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
2121
2122 Add support for pseries and other bootinfo machines to grub-mkrescue.
2123
2124 Tested by: Paulo Flabiano Smorigo.
2125
2126 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
2127
2128 * util/grub-mkrescue.in: Add GPT for EFI boot.
2129
2130 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
2131
2132 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
2133 It improves performance in qemu.
2134
2135 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
2136
2137 * build-aux/snippet: Add missing gnulib files.
2138
2139 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
2140
2141 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
2142
2143 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
2144
2145 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
2146
2147 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
2148 2013-04-15 Peter Jones <pjones@redhat.com>
2149
2150 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
2151 sectors.
2152 Based on patch by Peter Jones.
2153
2154 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
2155
2156 Fix DMRAID partition handling.
2157
2158 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
2159
2160 * tests/grub_cmd_date.in: Skip on sparc64.
2161
2162 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
2163
2164 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
2165 firmware error messages.
2166
2167 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
2168
2169 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
2170 source and destination differ.
2171
2172 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
2173
2174 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
2175 detection.
2176
2177 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2178
2179 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
2180 match config-util.h to avoid warnings and increase compatibility.
2181
2182 2013-04-14 Szymon Janc <szymon@janc.net.pl>
2183 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2184
2185 Add option to compress files on install/image creation.
2186
2187 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2188
2189 * docs/grub-dev.texi: Rearrange menu to match the section order.
2190 Reported by: Bryan Hundven.
2191
2192 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2193
2194 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
2195
2196 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2197
2198 Move GRUB out of system area when using xorriso 1.2.9 or later.
2199
2200 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2201
2202 * tests/grub_cmd_date.in: Add missing exit 1.
2203
2204 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2205
2206 * tests/partmap_test.in: Skip on sparc64.
2207
2208 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2209
2210 Support grub-shell on sparc64.
2211
2212 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2213
2214 Support mkrescue on sparc64.
2215
2216 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2217
2218 Allow IEEE1275 ports on path even if it wasn't detected automatically.
2219 Needed on OpenBIOS due to incomplete device tree.
2220
2221 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2222
2223 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
2224 would be otherwise excluded.
2225
2226 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
2227
2228 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
2229 Inline name defines used only once.
2230
2231 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
2232
2233 Fix memory leaks in ofnet.
2234 Reported by: Francesco Lavra.
2235
2236 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2237
2238 * docs/man/grub-glue-efi.h2m: Add missing file.
2239
2240 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2241
2242 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
2243
2244 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2245
2246 Better support Apple Intel Macs on CD.
2247
2248 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2249
2250 Replace stpcpy with grub_stpcpy in tools.
2251
2252 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2253
2254 Handle Japanese special keys.
2255 Reported by: Hiroyuki YAMAMORI.
2256 Codes supplied by: Hiroyuki YAMAMORI.
2257
2258 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2259
2260 * util/grub-mkimage.c: Document memdisk implying --prefix.
2261
2262 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2263
2264 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
2265 much we can do about it anyway.
2266
2267 2013-04-12 Aleš Nesrsta <starous@volny.cz>
2268
2269 Fix handling of split transfers.
2270
2271 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2272
2273 * grub-core/net/http.c: Fix bad free.
2274
2275 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2276
2277 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
2278 than buffer size.
2279
2280 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2281
2282 Disable partmap check on i386-ieee1275 due to openfirmware issues.
2283
2284 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2285
2286 * tests/util/grub-shell.in: Fix it on powerpc.
2287
2288 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2289
2290 Turn off QEMU ACPI-way since new releases don't have shutdown port
2291 anymore.
2292
2293 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2294
2295 * docs/grub.texi: Update coreboot status info.
2296
2297 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2298
2299 * tests/grub_cmd_date.in: New test for datetime.
2300
2301 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
2302
2303 * tests/partmap_test.in: Fix missing qemudisk setting.
2304
2305 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2306
2307 Support i386-ieee1275 grub-mkrescue and make check on it.
2308
2309 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2310
2311 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
2312 feature for it.
2313
2314 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2315
2316 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
2317 GRUB_CMDLINE_XEN_DEFAULT.
2318 Reported by: Marc Warne (GigaTux) <gigatux>
2319
2320 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2321
2322 Import new gnulib.
2323
2324 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2325
2326 Use ACPI shutdown intests as traditional port was removed.
2327
2328 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
2329
2330 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
2331 distinction.
2332
2333 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
2334
2335 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
2336 Fix few warining messages and leaks while on it.
2337
2338 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
2339
2340 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
2341 links under grub-core/lib/libgcrypt-grub/mpi.
2342
2343 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2344
2345 Fix ia64-efi image generation on big-endian machines. Deduplicate
2346 some code while on it.
2347 Reported by: Leif Lindholm.
2348
2349 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
2350
2351 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
2352 as extra_dist.
2353
2354 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
2355
2356 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
2357
2358 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
2359
2360 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
2361 texinfo-5.1.
2362
2363 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
2364
2365 * grub-core/normal/term.c: Few more fixes for menu entry editor
2366 rendering.
2367 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
2368
2369 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
2370
2371 * grub-core/normal/term.c: Few more fixes for menu entry editor
2372 rendering.
2373 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
2374
2375 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
2376
2377 * conf/Makefile.extra-dist (EXTRA_DIST): Add
2378 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
2379
2380 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
2381
2382 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
2383 instead of hardcoding grub.mo.
2384
2385 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
2386
2387 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
2388
2389 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2390
2391 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
2392 grub-core/disk/geli.c.
2393
2394 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2395
2396 * util/grub-mkfont.c: Prefer enum to #define.
2397
2398 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2399
2400 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
2401
2402 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2403
2404 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
2405
2406 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2407
2408 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
2409
2410 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2411
2412 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
2413
2414 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2415
2416 * include/grub/bsdlabel.h: Use enums.
2417
2418 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
2419
2420 Move GRUB_CHAR_BIT to types.h.
2421
2422 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
2423
2424 * docs/grub.texi: Document more user commands.
2425
2426 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
2427
2428 * docs/grub.texi: Document menuentry --id option.
2429
2430 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
2431
2432 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
2433
2434 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2435
2436 Unify file copying setup across different install scripts. Add
2437 options for performing partial install.
2438
2439 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2440 2013-04-04 Peter Jones <pjones@redhat.com>
2441
2442 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
2443
2444 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2445
2446 Use TSC as a possible time source on i386-ieee1275.
2447
2448 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2449
2450 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
2451 Init err.
2452
2453 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2454
2455 * util/grub-setup.c (setup): Handle some corner cases.
2456
2457 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
2458
2459 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
2460
2461 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2462
2463 * grub-core/commands/verify.c: Save verified file to avoid it being
2464 tampered with after verification was done.
2465
2466 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2467
2468 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
2469 reported width by one to compensate for curesor algorithm problem.
2470
2471 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2472
2473 Fix screen corruption in menu entry editor and simplify the code
2474 flow while on it.
2475
2476 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
2477
2478 * util/grub-mount.c (fuse_init): Return error if fuse_main
2479 failed.
2480
2481 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
2482
2483 * include/grub/elf.h: Add missing ARM relocation codes and fix
2484 existing ones.
2485
2486 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
2487
2488 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
2489
2490 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
2491 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
2492
2493 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
2494 into account when calculating radius.
2495
2496 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
2497
2498 * grub-core/gfxmenu/view.c: Fix off-by-one error.
2499
2500 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
2501
2502 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
2503
2504 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
2505
2506 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
2507 missing closing bracket.
2508
2509 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
2510
2511 * INSTALL: Mention xorriso requirement.
2512
2513 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
2514
2515 * grub-core/commands/verify.c: Fix hash algorithms values for
2516 the first three hashes - they start with 1, not with 0.
2517
2518 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
2519
2520 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
2521 Try terminating EFI services several times due to quirks in some
2522 implementations.
2523
2524 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
2525
2526 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
2527 skipping Event, Device, Processor, PowerRes, ThermalZone, and
2528 BankField extended opcodes.
2529 (get_sleep_type): Add minimal scope handling (just enough to
2530 handle setting the scope to the root path).
2531 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
2532 * include/grub/acpi.h: Add enumeration values for Event, Device,
2533 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
2534
2535 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
2536
2537 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
2538 memory leak.
2539
2540 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
2541
2542 * grub-core/disk/ahci.c: Give more time for AHCI request.
2543
2544 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
2545
2546 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
2547 command.
2548
2549 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
2550
2551 Replace the region at 0 from coreboot tables to available in BSD
2552 memory map.
2553
2554 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2555
2556 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
2557 non-BIOS platforms.
2558
2559 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2560
2561 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
2562 platforms.
2563
2564 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2565
2566 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
2567 handling of multi-device filesystems.
2568
2569 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2570
2571 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
2572 platforms.
2573
2574 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
2575
2576 Add new 'proc' filesystem framework and put luks_script into it.
2577
2578 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
2579
2580 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
2581 and qemu.
2582
2583 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
2584
2585 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
2586
2587 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
2588
2589 Add ability to generate newc additions on runtime.
2590
2591 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
2592
2593 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
2594 description.
2595
2596 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
2597
2598 * po/POTFILES.in: Regenerate.
2599
2600 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2601
2602 * grub-core/commands/verify.c (hashes): Add several hashes
2603 from the spec.
2604
2605 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2606
2607 Slight improve in USB-related boot-time checkpoints.
2608
2609 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2610
2611 * grub-core/commands/boottime.c: Fix copyright header.
2612
2613 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2614
2615 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
2616 coreboot tables content. Support for cbmemc.
2617
2618 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2619
2620 Fix a conflict between ports structures with 2 controllers of
2621 same kind.
2622
2623 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
2624
2625 * include/grub/boottime.h: Add missing file.
2626
2627 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2628
2629 Initialize USB ports in parallel to speed-up boot.
2630
2631 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2632
2633 Fix USB devices not being detected when requested
2634 due to delayed attach.
2635
2636 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2637
2638 Implement boot time analysis framework.
2639
2640 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
2641
2642 Remove get_endpoint_descriptor and change all functions needing
2643 descriptor to just receive it as argument rather than endpoint
2644 address.
2645
2646 2013-03-19 Aleš Nesrsta <starous@volny.cz>
2647
2648 Better estimate the maximum USB transfer size.
2649
2650 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
2651
2652 Resend a packet if we got the wrong buffer in status.
2653
2654 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2655
2656 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
2657 multiplication rather than division.
2658
2659 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2660
2661 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
2662 than divisions.
2663
2664 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2665
2666 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
2667 operations to have intended shifts and not divisions.
2668
2669 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2670
2671 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
2672 intended shifts rather than division.
2673
2674 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2675
2676 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
2677 computation for some years before epoch. Avode confusing division
2678 while on it.
2679
2680 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2681
2682 * grub-core/video/i386/pc/vbe.c
2683 (grub_video_vbe_print_adapter_specific_info): Replace division by
2684 shifts.
2685
2686 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2687
2688 Adjust types in gdb module to have intended unsigned shifts rather than
2689 signed divisions.
2690
2691 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2692
2693 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
2694 maximum size is 4G - 1 on hfs
2695
2696 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2697
2698 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
2699
2700 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
2701
2702 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
2703 function.
2704
2705 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
2706
2707 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
2708 causing gcc error with gcc 4.7.1.
2709
2710 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
2711
2712 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
2713 dereference null pointer. While the code is technically correct, gcc
2714 may eliminate a null check if pointer is already dereferenced.
2715
2716 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
2717
2718 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
2719 OOM check.
2720 * grub-core/normal/term.c (read_terminal_list): Likewise.
2721
2722 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
2723
2724 Lift up core size limits on some platforms. Fix potential memory
2725 corruption with big core on small memory systems. Document remaining
2726 limits.
2727
2728 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
2729
2730 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
2731 gotoxy to 0,0.
2732
2733 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2734
2735 Remove all trampoline support. Add -Wtrampolines when
2736 present. Remove symbols used for trampolines to make
2737 link fail if trampolines are present.
2738
2739 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2740
2741 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
2742 append out of its parent.
2743
2744 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2745
2746 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
2747 parent.
2748
2749 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2750
2751 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
2752 all vars to a macro. All users updated.
2753
2754 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2755
2756 * grub-core/disk/ieee1275/nand.c: Fix compilation on
2757 i386-ieee1275.
2758
2759 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2760
2761 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
2762
2763 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2764
2765 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
2766
2767 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2768
2769 Move to more hookless approach in IEEE1275 devices handling.
2770
2771 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2772
2773 * grub-core/kern/term.c (grub_term_normal_color),
2774 (grub_term_highlight_color): Add back lost defaults.
2775
2776 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2777
2778 Make elfload not use hooks. Opt for flags and iterators instead.
2779
2780 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2781
2782 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
2783 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
2784
2785 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2786
2787 * grub-core/script/execute.c (gettext_append): Remove nested functions.
2788
2789 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2790
2791 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
2792 hook pass-through parameter. All users updated and unnested.
2793
2794 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2795
2796 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
2797 out of its parent.
2798
2799 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
2800
2801 * grub-core/fs/hfs.c: Remove nested functions.
2802
2803 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2804
2805 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
2806 the context through.
2807 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
2808
2809 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2810
2811 * util/grub-editenv.c (list_variables): Move print_var out of its
2812 parent.
2813
2814 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2815
2816 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
2817 function.
2818
2819 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2820
2821 * grub-core/gentrigtables.c: Make tables const.
2822
2823 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2824
2825 Remove nested functions from videoinfo iterators.
2826
2827 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2828
2829 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
2830 for 64-bit platforms.
2831
2832 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2833
2834 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
2835 a FOR_CHILDREN macro.
2836
2837 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
2838
2839 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
2840 platform from firmware path.
2841
2842 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2843
2844 Enable linux16 on non-BIOS systems for i.a. memtest.
2845
2846 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
2847 correctly.
2848 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
2849
2850 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2851
2852 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
2853 Fix end of table condition.
2854
2855 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2856
2857 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
2858 out of its parent.
2859
2860 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2861
2862 * grub-core/fs/jfs.c: Remove nested functions.
2863
2864 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2865
2866 * grub-core/fs/minix.c: Remove nested functions.
2867
2868 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2869
2870 * grub-core/fs/iso9660.c: Remove nested functions.
2871
2872 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2873
2874 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
2875 of parent function.
2876
2877 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
2878
2879 * util/grub-fstest.c: Remove nested functions.
2880
2881 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
2882
2883 * grub-core/loader/machoXX.c: Remove nested functions.
2884
2885 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
2886
2887 Remove nested functions from disk and file read hooks.
2888
2889 * include/grub/disk.h (grub_disk_read_hook_t): New type.
2890 (struct grub_disk): Add read_hook_data member.
2891 * include/grub/file.h (struct grub_file): Likewise.
2892 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
2893 argument.
2894
2895 Update all callers.
2896
2897 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
2898
2899 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
2900 Fix off by one error in enumerating extended partitions.
2901
2902 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
2903
2904 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
2905 memory leak if device name is not found.
2906
2907 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
2908
2909 * grub-core/normal/menu_entry.c (update_screen): remove
2910 unused variable `off' which caused scroll down arrow to be always shown.
2911
2912 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
2913
2914 * grub-core/normal/menu_entry.c (insert_string): fix off by one
2915 access to unallocated memory.
2916
2917 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
2918
2919 * Makefile.util.def: Add partmap/msdos.c to common library.
2920 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
2921 * grub-core/disk/ldm.c: Check for existence of
2922 GRUB_PC_PARTITION_TYPE_LDM.
2923
2924 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
2925
2926 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
2927 sizes and display sector size.
2928
2929 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
2930
2931 Implement new command cmosdump.
2932
2933 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2934
2935 Support Openfirmware disks with non-512B sectors.
2936
2937 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
2938 size of the disk.
2939 * (grub_ofdisk_get_block_size): New function.
2940 * (grub_ofdisk_prepare): Use the correct block size.
2941 * (grub_ofdisk_read): Likewise.
2942 * (grub_ofdisk_write): Likewise.
2943 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
2944 New proto.
2945
2946 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
2947
2948 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
2949
2950 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
2951
2952 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
2953 on first error.
2954
2955 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2956
2957 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
2958 freeing it.
2959
2960 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2961
2962 Implement USBDebug (full USB stack variant).
2963
2964 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2965
2966 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
2967 unless they have unexpected values.
2968
2969 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2970
2971 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
2972 grub_print_error.
2973
2974 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
2975
2976 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
2977 zero-out of port structure.
2978
2979 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
2980
2981 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
2982 of extended attributes.
2983
2984 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
2985
2986 * util/grub-install.in: change misleading comment about
2987 device.map creation
2988
2989 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
2990
2991 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
2992 when menu highlight color isn't set.
2993
2994 2013-01-27 C. Masloch <pushbx@38.de>
2995
2996 Improve FreeDOS direct loading support compatibility.
2997
2998 * include/grub/i386/relocator.h (grub_relocator16_state):
2999 New member ebp.
3000 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
3001 variable.
3002 (grub_relocator16_boot): Handle %ebp.
3003 * grub-core/lib/i386/relocator16.S: Likewise.
3004 * grub-core/loader/i386/pc/freedos.c:
3005 Load BPB to pass kernel which partition to load from.
3006 Check that kernel file is not too large.
3007 Set register dl to BIOS unit number as well.
3008
3009 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
3010
3011 * util/grub-reboot.in (usage): Document the need for
3012 GRUB_DEFAULT=saved.
3013 * util/grub-set-default.in (usage): Likewise.
3014 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
3015
3016 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3017
3018 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
3019 than defining WORDS_BIGENDIAN manually.
3020
3021 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3022
3023 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
3024 invariants.
3025
3026 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
3027
3028 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
3029 nested.
3030 (blit_comb: add_device_width): Likewise.
3031
3032 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
3033
3034 Remove nested functions from USB iterators.
3035
3036 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
3037 (grub_usb_controller_iterate_hook_t): Likewise.
3038 (grub_usb_iterate): Add hook_data argument.
3039 (grub_usb_controller_iterate): Likewise.
3040 (struct grub_usb_controller_dev.iterate): Likewise.
3041
3042 Update all implementations and callers.
3043
3044 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3045
3046 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
3047 margin when not needed.
3048
3049 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3050
3051 Make color variables global instead of it being per-terminal.
3052
3053 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3054
3055 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
3056 asterisk.
3057
3058 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
3059
3060 Fix powerpc and sparc64 build failures caused by un-nesting memory
3061 map iterators.
3062
3063 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
3064
3065 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
3066 parameter declarations.
3067
3068 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3069
3070 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
3071
3072 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
3073
3074 Improve spkmomdem reliability by adding a separator between bytes.
3075
3076 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
3077
3078 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
3079 an Acer registration utility with several sightings in the wild.
3080 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
3081
3082 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
3083
3084 Remove nested functions from filesystem directory iterators.
3085
3086 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
3087 (struct grub_fs.dir): Add hook_data argument.
3088
3089 Update all implementations and callers.
3090
3091 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
3092
3093 * docs/grub.texi (Multi-boot manual config): Fix typo for
3094 "recommended".
3095
3096 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
3097
3098 * util/grub-mkimage.c (main): Postpone freeing arguments.output
3099 until after its use in generate_image.
3100
3101 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
3102
3103 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
3104 initrd size to addr_min, since the initrd will be allocated after
3105 this address.
3106
3107 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
3108
3109 * conf/Makefile.common: Fix autogen rules to pass definition
3110 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
3111
3112 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
3113
3114 * include/grub/elf.h: Update ARM definitions based on binutils.
3115
3116 2013-01-20 Aleš Nesrsta <starous@volny.cz>
3117
3118 Split long USB transfers into short ones.
3119
3120 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
3121
3122 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
3123 is interrupted by ESC.
3124
3125 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3126
3127 * util/grub-script-check.c (main): Uniform the error message.
3128
3129 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
3130
3131 Remove nested functions from ELF iterators.
3132
3133 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
3134
3135 Remove nested functions from device iterators.
3136
3137 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
3138 (grub_arc_iterate_devs): Add hook_data argument.
3139 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
3140 (struct grub_ata_dev.iterate): Add hook_data argument.
3141 * include/grub/device.h (grub_device_iterate_hook_t): New type.
3142 (grub_device_iterate): Add hook_data argument.
3143 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
3144 (struct grub_disk_dev.iterate): Add hook_data argument.
3145 (grub_disk_dev_iterate): Likewise.
3146 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
3147 Likewise.
3148 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
3149 Likewise.
3150 * include/grub/partition.h (grub_partition_iterate_hook_t): New
3151 type.
3152 (struct grub_partition_map.iterate): Add hook_data argument.
3153 (grub_partition_iterate): Likewise.
3154 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
3155 (struct grub_scsi_dev.iterate): Add hook_data argument.
3156
3157 Update all callers.
3158
3159 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
3160
3161 Fix typos for "developer" and "development".
3162
3163 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
3164
3165 Add license header to spkmodem-recv.c.
3166
3167 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
3168
3169 Rewrite spkmodem to use PIT for timing. Double the speed.
3170
3171 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
3172
3173 Add new command pcidump.
3174
3175 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
3176
3177 New terminal outputs using serial: morse and spkmodem.
3178
3179 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
3180
3181 Improve bidi handling in entry editor.
3182
3183 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
3184
3185 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
3186 argument to prevent name collision.
3187
3188 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
3189
3190 Remove nested functions from script reading and parsing.
3191
3192 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
3193 getline_data argument, passed to getline.
3194 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
3195 getline_data argument, passed to grub_parser_split_cmdline.
3196 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
3197 lexerstate->getline_data to lexerstate->getline.
3198 (grub_script_lexer_init): Add getline_data argument, saved in
3199 lexerstate->getline_data.
3200 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
3201 argument, passed to grub_script_parse.
3202 * grub-core/script/script.c (grub_script_parse): Add getline_data
3203 argument, passed to grub_script_lexer_init.
3204 * include/grub/parser.h (grub_parser_split_cmdline): Update
3205 prototype. Update all callers to pass appropriate getline data.
3206 (struct grub_parser.parse_line): Likewise.
3207 (grub_rescue_parse_line): Likewise.
3208 * include/grub/reader.h (grub_reader_getline_t): Add void *
3209 argument.
3210 * include/grub/script_sh.h (struct grub_lexer_param): Add
3211 getline_data member.
3212 (grub_script_parse): Update prototype. Update all callers to pass
3213 appropriate getline data.
3214 (grub_script_lexer_init): Likewise.
3215 (grub_normal_parse_line): Likewise.
3216
3217 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
3218 data argument.
3219 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
3220 static instead of nested. Rename to ...
3221 (grub_parser_execute_getline): ... this.
3222 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
3223 data argument.
3224 * grub-core/normal/main.c (read_config_file: getline): Make static
3225 instead of nested. Rename to ...
3226 (read_config_file_getline): ... this.
3227 (grub_normal_read_line): Add unused data argument.
3228 * grub-core/script/execute.c (grub_script_execute_sourcecode:
3229 getline): Make static instead of nested. Rename to ...
3230 (grub_script_execute_sourcecode_getline): ... this.
3231 * util/grub-script-check.c (main: get_config_line): Make static
3232 instead of nested.
3233
3234 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
3235
3236 Remove nested functions from memory map iterators.
3237
3238 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
3239 argument, passed to hook.
3240 * grub-core/kern/i386/coreboot/mmap.c
3241 (grub_linuxbios_table_iterate): Likewise.
3242 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
3243 instead of nested.
3244 (grub_machine_mmap_iterate): Add hook_data argument.
3245 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
3246 Add hook_data argument, passed to hook.
3247 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
3248 Likewise.
3249 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
3250 Likewise.
3251 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
3252 Likewise.
3253 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
3254 Likewise.
3255 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
3256 Likewise.
3257 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
3258 Likewise.
3259 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
3260 (grub_machine_mmap_iterate): Likewise.
3261 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
3262 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
3263 prototype.
3264 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
3265 Remove NESTED_FUNC_ATTR from here and from all users.
3266 (grub_mmap_iterate): Update prototype.
3267 (grub_efi_mmap_iterate): Update prototype. Update all callers to
3268 pass appropriate hook data.
3269 (grub_machine_mmap_iterate): Likewise.
3270
3271 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
3272 static instead of nested.
3273 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
3274 Rename to ...
3275 (lsmmap_hook): ... this.
3276 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
3277 Likewise.
3278 (grub_efiemu_mmap_fill: fill_hook): Likewise.
3279 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
3280 heap_init): Likewise.
3281 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
3282 Rename to ...
3283 (mmap_iterate_hook): ... this.
3284 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
3285 Likewise.
3286 * grub-core/lib/ieee1275/relocator.c
3287 (grub_relocator_firmware_get_max_events: count): Likewise.
3288 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
3289 to ...
3290 (grub_relocator_firmware_fill_events_iter): ... this.
3291 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
3292 hook): Likewise. Rename to ...
3293 (grub_relocator_alloc_chunk_align_iter): ... this.
3294 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
3295 Rename to ...
3296 (generate_e820_mmap_iter): ... this.
3297 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
3298 Rename to ...
3299 (count_hook): ... this.
3300 (grub_linux_boot: hook): Likewise. Rename to ...
3301 (grub_linux_boot_mmap_find): ... this.
3302 (grub_linux_boot: hook_fill): Likewise. Rename to ...
3303 (grub_linux_boot_mmap_fill): ... this.
3304 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
3305 hook): Likewise. Rename to ...
3306 (grub_fill_multiboot_mmap_iter): ... this.
3307 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
3308 hook): Likewise. Rename to ...
3309 (count_hook): ... this.
3310 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
3311 hook): Likewise. Rename to ...
3312 (grub_fill_multiboot_mmap_iter): ... this.
3313 * grub-core/loader/powerpc/ieee1275/linux.c
3314 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
3315 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
3316 Likewise. Rename to ...
3317 (alloc_phys_choose): ... this.
3318 (determine_phys_base: get_physbase): Likewise.
3319 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
3320 find_hook): Likewise.
3321 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
3322 (malloc_hook: count_hook): Likewise.
3323 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
3324 Likewise. Rename to ...
3325 (lower_hook): ... this.
3326 (grub_mmap_get_upper: hook): Likewise. Rename to ...
3327 (upper_hook): ... this.
3328 (grub_mmap_get_post64: hook): Likewise. Rename to ...
3329 (post64_hook): ... this.
3330 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
3331 Likewise. Rename to ...
3332 (lower_hook): ... this.
3333 (grub_mmap_get_upper: hook): Likewise. Rename to ...
3334 (upper_hook): ... this.
3335 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
3336 (grub_mmap_iterate: fill_hook): Likewise.
3337 (fill_mask): Pass addr and mask within a single struct.
3338 (grub_cmd_badram: hook): Make static instead of nested. Rename
3339 to ...
3340 (badram_iter): ... this.
3341 (grub_cmd_cutmem: hook): Likewise. Rename to ...
3342 (cutmem_iter): ... this.
3343
3344 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
3345
3346 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
3347 delimit path in strings using quotes.
3348 * util/getroot.c (grub_guess_root_devices): Likewise.
3349 (grub_make_system_path_relative_to_its_root): Likewise.
3350 * util/grub-probe.c (probe): Likewise.
3351 * util/ieee1275/ofpath.c (find_obppath): Likewise.
3352 (xrealpath): Likewise.
3353
3354 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
3355
3356 Fix compilation with older compilers.
3357
3358 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
3359 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
3360 declarations.
3361 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
3362 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
3363 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
3364 identifier with b.
3365 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
3366 * include/grub/crypto.h: Add type defines.
3367 * util/import_gcrypth.sed: Remove duplicate type defines.
3368
3369 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
3370
3371 New command list_trusted.
3372
3373 * grub-core/commands/verify.c (grub_cmd_list): New function.
3374
3375 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
3376
3377 * util/grub-mkimage.c (generate_image): Fix "size of public key"
3378 info message.
3379
3380 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
3381
3382 Remove nested functions from PCI iterators.
3383
3384 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
3385 passed to hook. Update all callers to pass appropriate hook data.
3386 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
3387 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
3388 Remove NESTED_FUNC_ATTR from here and from all users.
3389 (grub_pci_iterate): Update prototype.
3390 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
3391 instead of nested. Rename to ...
3392 (grub_cs5536_find_iter): ... this.
3393 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
3394 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
3395 Likewise.
3396 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
3397 Likewise.
3398 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
3399 Likewise.
3400 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
3401 Likewise.
3402 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
3403 * grub-core/video/radeon_fuloong2e.c
3404 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
3405 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
3406 find_card): Likewise.
3407 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
3408 Likewise.
3409
3410 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
3411
3412 * grub-core/commands/verify.c: Mark messages for translating.
3413
3414 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
3415
3416 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
3417 fatal.
3418
3419 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
3420
3421 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
3422 fatal.
3423
3424 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
3425
3426 * autogen.sh: Do not try to delete nonexistant files.
3427 * util/import_gcrypth.sed: Add some missing header removals.
3428
3429 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
3430
3431 Clean up dangling references to grub-setup.
3432 Fixes Ubuntu bug #1082045.
3433
3434 * docs/grub.texi (Images): Refer generally to grub-install rather
3435 than directly to grub-setup.
3436 (Installing GRUB using grub-install): Remove direct reference to
3437 grub-setup.
3438 (Device map) Likewise.
3439 (Invoking grub-install): Likewise.
3440 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
3441 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
3442 * util/grub-install.in (usage): Likewise.
3443
3444 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
3445 Apply to grub-bios-setup and grub-sparc64-setup rather than to
3446 grub-setup.
3447 * configure.ac: Remove grub_setup output variable.
3448
3449 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
3450 to grub-bios-setup.
3451 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
3452 grub-setup to grub-sparc64-setup.
3453
3454 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
3455
3456 Import gcrypt public-key cryptography and implement signature checking.
3457
3458 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3459
3460 * grub-core/fs/ntfs.c: Ue more appropriate types.
3461 * grub-core/fs/ntfscomp.c: Likewise.
3462 * include/grub/ntfs.h: Likewise.
3463
3464 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3465
3466 Support Apple FAT binaries on non-Apple platforms.
3467
3468 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
3469 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
3470 Likewise.
3471 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
3472 Apple FAT binaries.
3473
3474 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
3475
3476 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
3477 sector devices.
3478
3479 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
3480
3481 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
3482 explicitly zeroing elements.
3483 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
3484 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
3485 of elements in a structure already allocated using grub_zalloc.
3486 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
3487
3488 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
3489
3490 * docs/grub.texi (grub_cpu): New subsection.
3491 (grub_platform): Likewise.
3492
3493 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
3494
3495 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
3496
3497 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
3498
3499 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
3500 divisions.
3501
3502 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
3503
3504 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
3505 * grub-core/fs/ntfscomp.c: Likewise.
3506 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
3507 (grub_ntfs_comp): Likewise.
3508
3509 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
3510
3511 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
3512 Rename to ...
3513 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
3514 of groups_per_block. All users updated.
3515
3516 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
3517
3518 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
3519 grub_error properly.
3520 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
3521 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
3522
3523 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
3524
3525 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
3526 always in /boot/zfs.
3527 Reported by: Yuta Satoh.
3528
3529 2013-01-03 Yuta Satoh <nigoro>
3530
3531 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
3532 ${grub_probe}
3533
3534 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
3535
3536 * configure.ac: Extend -Wno-trampolines to host.
3537
3538 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
3539
3540 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
3541 entry->len = 0.
3542
3543 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
3544
3545 * docs/grub.texi (Invoking grub-mkrelpath): New section.
3546 (Invoking grub-script-check): Likewise.
3547
3548 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
3549
3550 * docs/grub.texi (Invoking grub-mount): New section.
3551 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
3552
3553 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
3554
3555 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
3556 test failures, so that a failing unit test correctly causes 'make
3557 check' to fail.
3558
3559 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
3560
3561 Fix failing printf test.
3562
3563 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
3564 '$' in the correct order when collecting type information.
3565
3566 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
3567
3568 * docs/grub.texi (configfile): Explain environment variable
3569 handling.
3570 (source): New section.
3571 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
3572
3573 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
3574
3575 Remove several trivially-unnecessary uses of nested functions.
3576
3577 * grub-core/commands/i386/pc/sendkey.c
3578 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
3579 instead of nested.
3580 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
3581 Rename to ...
3582 (legacy_file_getline): ... this.
3583 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
3584 Likewise.
3585 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
3586 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
3587 to ...
3588 (probe_dummy_iter): ... this.
3589 * grub-core/kern/i386/coreboot/mmap.c
3590 (grub_linuxbios_table_iterate: check_signature): Likewise.
3591 * grub-core/kern/parser.c (grub_parser_split_cmdline:
3592 check_varstate): Likewise. Mark inline.
3593 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
3594 an additional parameter.
3595 (find_long: fnd_long): Likewise. Pass two additional parameters.
3596 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
3597 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
3598 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
3599 Likewise. Rename to ...
3600 (grub_cmos_find_port_iter): ... this.
3601 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
3602 Rename to ...
3603 (find_rtc_iter): ... this.
3604
3605 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
3606 function directly into the function body, since it is only called
3607 once.
3608
3609 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
3610
3611 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
3612 __attribute__ ((unused)).
3613 * grub-core/video/bochs.c (find_card): Likewise.
3614 * grub-core/video/cirrus.c (find_card): Likewise.
3615 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
3616 * grub-core/video/sis315pro.c (find_card): Likewise.
3617 * grub-core/video/sm712.c (find_card): Likewise.
3618
3619 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
3620
3621 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
3622 Fixes Savannah bug #37821.
3623
3624 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
3625
3626 Apply program name transformations at build-time rather than at
3627 run-time. Fixes Debian bug #696465.
3628
3629 * acinclude.m4 (grub_TRANSFORM): New macro.
3630 * configure.ac: Create output variables with transformed names for
3631 most programs.
3632 * util/bash-completion.d/grub-completion.bash.in: Use
3633 pre-transformed variables for program names.
3634 * util/grub-install.in: Likewise.
3635 * util/grub-kbdcomp.in: Likewise.
3636 * util/grub-mkconfig.in: Likewise.
3637 * util/grub-mkconfig_lib.in: Likewise.
3638 * util/grub-mknetdir.in: Likewise.
3639 * util/grub-mkrescue.in: Likewise.
3640 * util/grub-mkstandalone.in: Likewise.
3641 * util/grub-reboot.in: Likewise.
3642 * util/grub-set-default.in: Likewise.
3643 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3644 * tests/util/grub-shell-tester.in: Remove unused assignment.
3645 * tests/util/grub-shell.in: Likewise.
3646 * util/grub.d/00_header.in: Likewise.
3647
3648 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
3649
3650 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
3651
3652 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
3653 HAVE_RAW_DECL_GETS.
3654 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
3655
3656 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
3657
3658 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
3659 Reported by: Eriks Latosheks <foresterlv>.
3660
3661 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3662
3663 * docs/grub.texi (Network): Update instructions on generating netboot
3664 image.
3665
3666 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3667
3668 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
3669 around device name if necessarry.
3670
3671 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3672
3673 * util/grub-install.in: Follow the symbolic link parameter added
3674 to the file command.
3675
3676 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
3677
3678 * util/grub-install.in: Remove stale TODO.
3679
3680 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3681
3682 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
3683 dynamic allocation for the bootpath buffer.
3684
3685 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
3686
3687 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
3688 window too small.
3689
3690 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3691
3692 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
3693 argument rather than font name. All users updated.
3694 (grub_gfxterm_set_window): Likewise.
3695
3696 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
3697
3698 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
3699 from working.
3700
3701 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3702
3703 * util/getroot.c (convert_system_partition_to_system_disk): Support
3704 nbd disks.
3705
3706 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
3707
3708 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
3709 infinite loop on corrupted FS.
3710
3711 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
3712
3713 Fix big-endian mtime.
3714
3715 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
3716 together sec and usec.
3717 (grub_ufs_dir): Use correct byteswapping for UFS time.
3718
3719 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
3720
3721 Support big-endian UFS1.
3722
3723 * Makefile.util.def (libgrubmods): Add ufs_be.c
3724 * grub-core/Makefile.core.def (ufs1_be): New module.
3725 * grub-core/fs/ufs_be.c: New file.
3726 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
3727 the file.
3728
3729 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
3730
3731 * include/grub/types.h: Fix functionality unaffecting typo in
3732 GRUB_TARGET_WORDSIZE conditional macro.
3733
3734 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3735
3736 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
3737
3738 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
3739
3740 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
3741 that /netbsd appears first (when it exists).
3742
3743 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
3744
3745 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
3746 Fixes Savannah bug #37558.
3747
3748 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
3749
3750 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
3751 description of extract_entries_configfile.
3752
3753 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
3754
3755 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
3756 preferred_address.
3757 (grub_cmd_linux): Likewise.
3758 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
3759 preferred_lifetime. Update all users.
3760
3761 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
3762
3763 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
3764 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
3765
3766 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
3767
3768 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
3769 errors from grub-probe to /dev/null, not stdout.
3770
3771 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
3772
3773 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
3774 sector 1.
3775
3776 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
3777
3778 * util/grub-install.in: Make the error message if $source_dir
3779 doesn't exist more useful.
3780
3781 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
3782
3783 Fix grub-emu build on FreeBSD.
3784
3785 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
3786 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
3787 headers on Linux.
3788 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
3789 implementation is currently Linux-specific.
3790 * util/getroot.c (exec_pipe): Define only on Linux or when either
3791 libzfs or libnvpair is unavailable.
3792 (find_root_devices_from_poolname): Remove unused path variable.
3793
3794 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
3795
3796 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
3797 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
3798 should fit before end == 63.
3799
3800 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
3801
3802 * util/grub-setup.c (write_rootdev): Remove unused core_img
3803 parameter. Update all callers.
3804 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
3805 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
3806 GRUB_SETUP_BIOS.
3807
3808 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
3809
3810 * util/grub-mkconfig_lib.in (grub_tab): New variable.
3811 (grub_add_tab): New function.
3812 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
3813 * util/grub.d/10_illumos.in: Likewise.
3814 * util/grub.d/10_kfreebsd.in: Likewise.
3815 * util/grub.d/10_linux.in: Likewise.
3816 * util/grub.d/10_netbsd.in: Likewise.
3817 * util/grub.d/10_windows.in: Likewise.
3818 * util/grub.d/10_xnu.in: Likewise.
3819 * util/grub.d/20_linux_xen.in: Likewise.
3820 * util/grub.d/30_os-prober.in: Likewise.
3821
3822 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
3823
3824 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3825 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
3826 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
3827 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
3828 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
3829 ieee1275-nocursor.
3830 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
3831 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
3832
3833 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
3834
3835 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
3836 le-conversion.
3837 Reported by: BURETTE, Bernard.
3838
3839 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
3840
3841 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
3842 from comment.
3843
3844 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
3845
3846 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
3847 IEEE1275 machines. Fixes powerpc-emu compilation.
3848 * include/grub/terminfo.h: Likewise.
3849
3850 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3851
3852 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
3853 a const pointer.
3854 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
3855 const pointer.
3856 (efiemu_set_variable): Make vendor_guid a const pointer.
3857
3858 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3859
3860 Don't require grub-mkconfig_lib to generate manpages for programs.
3861
3862 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
3863 dependencies, don't add grub-mkconfig_lib.
3864 (program): Pass empty adddeps.
3865 (script): Pass grub-mkconfig_lib as adddeps.
3866
3867 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
3868
3869 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
3870 * util/getroot.c (grub_find_device): Likewise.
3871 (get_mdadm_uuid): Likewise.
3872 (grub_util_is_imsm): Likewise.
3873 (grub_util_pull_device): Likewise.
3874 * util/grub-probe.c (probe): Likewise.
3875
3876 2012-09-10 Benoit Gschwind <gschwind>
3877
3878 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
3879 (devs): Add devpath_8.
3880
3881 2012-09-08 Peter Jones <pjones@redhat.com>
3882
3883 * grub-core/Makefile.core.def (efifwsetup): New module.
3884 * grub-core/commands/efi/efifwsetup.c: New file.
3885 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
3886 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
3887 New define.
3888 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
3889
3890 2012-09-05 Jiri Slaby <jslaby@suse.cz>
3891
3892 * configure.ac: Add SuSe path.
3893
3894 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
3895
3896 * NEWS: Fix typo.
3897
3898 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
3899
3900 * util/import_gcry.py: Sort cipher_files, to make build system
3901 generation more deterministic.
3902
3903 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3904
3905 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
3906 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
3907 (grub_set_datetime): Likewise.
3908
3909 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3910
3911 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
3912 warnings.
3913
3914 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3915
3916 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
3917
3918 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3919
3920 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
3921
3922 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3923
3924 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
3925 required for checkouts from bzr, but it may be useful for users or
3926 distributors wishing to update translations against a tarball
3927 distribution, and it can be helpful for the tarball to be a superset
3928 of what's in bzr.
3929
3930 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3931
3932 * Makefile.am (EXTRA_DIST): Add
3933 grub-core/tests/boot/linux.init-mips.S,
3934 grub-core/tests/boot/linux.init-ppc.S, and
3935 grub-core/tests/boot/linux-ppc.cfg.
3936
3937 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3938
3939 * grub-core/mmap/mips/loongson: Remove empty directory.
3940
3941 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3942
3943 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
3944 gone.
3945
3946 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
3947
3948 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
3949 grub-sparc64-setup.
3950
3951 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
3952
3953 * configure.ac: Strengthen the test for working -nostdinc -isystem.
3954
3955 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
3956
3957 * po/POTFILES.in: Regenerated.
3958
3959 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
3960
3961 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
3962 (NetBSD): New subsection.
3963
3964 2012-07-22 Ales Nesrsta <starous@volny.cz>
3965
3966 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
3967 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
3968
3969 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3970
3971 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
3972 * util/grub.d/10_hurd.in: Add missing quoting.
3973 * util/grub.d/10_illumos.in: Likewise.
3974 * util/grub.d/10_kfreebsd.in: Likewise.
3975 * util/grub.d/10_linux.in: Likewise.
3976 * util/grub.d/20_linux_xen.in: Likewise.
3977
3978 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3979
3980 New command `lsefi'.
3981
3982 * grub-core/Makefile.core.def (lsefi): New module.
3983 * grub-core/commands/efi/lsefi.c: New file.
3984 * include/grub/efi/api.h: Add more GUIDs.
3985
3986 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3987
3988 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
3989 (grub_bsd_elf32_hook): Likewise.
3990 (grub_bsd_elf64_size_hook): Likewise.
3991 (grub_bsd_elf64_hook): Likewise.
3992 (grub_bsd_load_elf): Likewise.
3993
3994 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
3995
3996 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
3997 if hash function is unavailable.
3998 (dec_stream_header): Likewise.
3999
4000 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
4001
4002 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
4003 filter state.
4004
4005 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
4006
4007 Fix coreboot compilation.
4008
4009 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
4010 (grub_vga_text_init_real): ... this.
4011 (grub_vga_text_fini): Rename to ...
4012 (grub_vga_text_fini_real): ... this.
4013
4014 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
4015
4016 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
4017
4018 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4019
4020 * grub-core/lib/legacy_parse.c: Support clear and testload.
4021
4022 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4023
4024 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
4025
4026 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4027
4028 * grub-core/fs/ext2.c: Experimental support for 64-bit.
4029
4030 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4031
4032 * grub-core/net/tftp.c (ack): Fix endianness problem.
4033 (tftp_receive): Likewise.
4034 Reported by: Michael Davidsaver.
4035
4036 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4037
4038 * gentpl.py: Make mans depend on grub-mkconfig_lib.
4039
4040 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4041
4042 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
4043 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
4044 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
4045
4046 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
4047
4048 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
4049 efi_mmap_size.
4050 Reported by: Stuart Hayes.
4051
4052 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
4053
4054 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
4055
4056 * grub-core/Makefile.core.def (mda_text): New module.
4057 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
4058 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
4059 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
4060 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
4061 here.
4062 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
4063 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
4064 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
4065 here.
4066 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
4067 to ..
4068 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
4069 ... here
4070 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
4071 here.
4072 * grub-core/term/i386/vga_common.c: Removed.
4073 * include/grub/i386/vga_common.h: Likewise.
4074 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
4075 (grub_vga_cr_bw_read): Likewise.
4076 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
4077 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
4078 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
4079 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
4080 grub_vga_cr_read/grub_vga_cr_write.
4081 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
4082
4083 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4084
4085 * configure.ac: Bump version to 2.00.
4086 * grub-core/normal/main.c (features): Add feature_200_final.
4087
4088 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4089 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
4090
4091 * NEWS: Fix unclarity and language mistakes.
4092
4093 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4094
4095 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
4096 additional size to 3 pages.
4097 Reported by: Stuart Hayes.
4098
4099 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4100
4101 * NEWS: Add 2.00 entry.
4102
4103 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4104
4105 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
4106 put explicit "/" for empty path.
4107 (wildcard_expand): Improve dprintf.
4108
4109 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4110
4111 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
4112 it's equal to currnode. This can happen with "" symlink.
4113
4114 2012-06-27 Yves Blusseau <blusseau@zetam.org>
4115
4116 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
4117 echo shell command by printf command.
4118
4119 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4120
4121 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
4122 the value returned by firmware is the maximal position, not diumension.
4123 (grub_terminfo_output_state): Use a more sane fallback.
4124
4125 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4126
4127 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
4128
4129 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4130
4131 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
4132 frequency to 150 MHz.
4133
4134 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4135
4136 Apple fixes.
4137
4138 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
4139 __APPLE_
4140 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
4141 definition.
4142 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
4143
4144 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4145
4146 Handle slash in HFS label.
4147
4148 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
4149 (grub_hfs_dir): Tanslate slash.
4150 (grub_hfs_label): Don't translate slash.
4151
4152 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4153
4154 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
4155 network protocol listing since it introduces problematic dependency on
4156 net module.
4157
4158 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4159
4160 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
4161
4162 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4163
4164 Init video early on yeeloong to avoid being rebooted by watchdog.
4165
4166 * grub-core/Makefile.am (gensm712): New target.
4167 (sm712_start.S): Likewise.
4168 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
4169 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
4170 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
4171 description.
4172 * include/grub/vga.h: Move registry definitions to...
4173 * include/grub/vgaregs.h: ... here.
4174
4175 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
4176
4177 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
4178 signedness.
4179
4180 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4181
4182 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
4183 platforms with firmware disk drivers in the core.
4184
4185 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4186
4187 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
4188 informative verbose message.
4189 (read_lv): Handle 64-bit segment size.
4190
4191 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4192
4193 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
4194
4195 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4196
4197 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
4198 character but still remove trainling spaces.
4199 (grub_fat_label): Ignore archive flag.
4200
4201 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4202
4203 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
4204 cast between linux_kernel_header and linux_kernel_params.
4205
4206 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4207
4208 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
4209 type for size.
4210 (grub_raid6_recover_func_t): Likewise.
4211 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
4212 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
4213
4214 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4215
4216 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
4217
4218 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
4219
4220 Fix overflow.
4221
4222 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
4223 [__NetBSD__]: Add explicit cast before bitshift.
4224
4225 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4226
4227 * configure.ac: Bump to 2.00~rc1.
4228
4229 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4230
4231 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
4232 half of $a0.
4233
4234 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4235 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
4236
4237 * docs/grub.texi: Fix search syntax.
4238 (Multi-boot manual config): Put msdos rather than GPT example.
4239 Grammar corrections.
4240
4241 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4242
4243 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
4244
4245 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4246
4247 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
4248
4249 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4250
4251 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
4252 message on double free. Put the value of magic in case of mismatch.
4253
4254 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4255
4256 Speed-up video on yeeloong.
4257
4258 * grub-core/video/sm712.c (framebuffer): Remove render_target and
4259 add cached_ptr.
4260 (grub_video_sm712_video_fini): Unmap cached_ptr.
4261 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
4262 (grub_video_sm712_set_active_render_target): Removed.
4263 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
4264 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
4265 sync caches.
4266
4267 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4268
4269 Avoid flushing the same line multiple times on loongson.
4270
4271 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
4272 Step in 32 bytes and not 1 byte.
4273 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
4274 Likewise.
4275
4276 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4277
4278 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
4279 subvolumes.
4280
4281 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4282
4283 Implement flow control for http.
4284
4285 * grub-core/net/http.c (parse_line): Handle response 206.
4286 (http_receive): Stall if too many packets are in the queue.
4287 (http_establish): Fix range header.
4288 (http_seek): Fix double free.
4289 (http_close): Likewise.
4290 (http_packets_pulled): New function.
4291 (grub_http_protocol): Set http_seek
4292 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
4293 (ack_real): Set window depending on i_stall.
4294 (grub_net_send_tcp_packet): Likewise.
4295 (grub_net_tcp_stall): New function.
4296 (grub_net_tcp_unstall): Likewise.
4297 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
4298 (grub_net_tcp_unstall): Likewise.
4299
4300 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4301
4302 * grub-core/net/tftp.c: Decrease stall to 50 packets.
4303
4304 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4305
4306 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
4307
4308 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4309
4310 * tests/util/grub-shell.in: Fix a typo.
4311
4312 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4313
4314 Implement flow control for tftp.
4315
4316 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
4317 packets but stop only if stop condition is satisfied.
4318 (grub_net_fs_read_real): Call packets_pulled after real read. Use
4319 `stall' instead of `eof' as stop condition.
4320 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
4321 (http_err): Likewise.
4322 * grub-core/net/tftp.c (ack): Replace the first argument with data
4323 instead of socket.
4324 (tftp_receive): Stall if too many packets are in wait queue.
4325 (tftp_packets_pulled): New function.
4326 (grub_tftp_protocol): Set packets_pulled.
4327 * include/grub/net.h (grub_net_packets): New field count.
4328 (grub_net_put_packet): Increment count.
4329 (grub_net_remove_packet): Likewise.
4330 (grub_net_app_protocol): New field `packets_pulled'.
4331 (grub_net): New field `stall'.
4332
4333 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
4334
4335 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
4336 sync part to handle them.
4337
4338 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
4339
4340 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
4341 * grub-core/net/drivers/ieee1275/ofnet.c
4342 (grub_ieee1275_net_config_real): Likewise.
4343
4344 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
4345
4346 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
4347 the direct route for server/gateway.
4348
4349 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
4350
4351 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
4352 IP address to server name since we may not hame the DNS.
4353
4354 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
4355
4356 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
4357 freeing random buffer on failure.
4358 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
4359
4360 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
4361
4362 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
4363
4364 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
4365
4366 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
4367 reserved bytes.
4368 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
4369 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
4370 Handle malloc error correctly.
4371
4372 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
4373
4374 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
4375 blocks.
4376
4377 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
4378
4379 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
4380 increment.
4381
4382 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4383
4384 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
4385 none is explicitly specified.
4386
4387 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4388
4389 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
4390 while reallocating.
4391
4392 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4393
4394 Respect netmask from bootp/dhcp.
4395
4396 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
4397 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
4398 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
4399 into ...
4400 (grub_net_add_ipv4_local): ... this.
4401 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
4402 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
4403 (grub_net_add_ipv4_local): New proto.
4404
4405 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4406
4407 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
4408 determining EFI memory map size.
4409
4410 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4411
4412 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
4413
4414 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4415
4416 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
4417 when looking for partition separator.
4418
4419 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4420
4421 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
4422 Escape commas.
4423
4424 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4425
4426 Restructure FAT driver to avoid hook in label reading as it hits a
4427 GCC bug.
4428
4429 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
4430 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
4431 (grub_fat_iterate_dir): Split into ...
4432 (grub_fat_iterate_init): ... this, ...
4433 (grub_fat_iterate_fini): ... this, ...
4434 (grub_fat_iterate_dir_next): ... and this. All users updated.
4435
4436 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
4437
4438 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
4439 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
4440 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
4441 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
4442 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
4443 New fields last_key and last_key_time.
4444 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
4445 extended key-esc into extended key-extended key.
4446
4447 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
4448
4449 Avoid unnecessary memcpy of whole video buffer.
4450
4451 * grub-core/video/fb/video_fb.c (dirty): New struct.
4452 (framebuffer): Add members current_dirty and previous_dirty.
4453 (dirty): New function.
4454 (grub_video_fb_fill_rect): Update dirty.
4455 (common_blitter): Likewise.
4456 (grub_video_fb_scroll): Likewise.
4457 (doublebuf_blit_update_screen): Copy only dirty part.
4458 (doublebuf_pageflipping_update_screen): Likewise.
4459 (grub_video_fb_doublebuf_blit_init): Init dirty.
4460 (doublebuf_pageflipping_init): Likewise.
4461 (grub_video_fb_setup): Likewise.
4462
4463 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
4464
4465 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
4466 poll rate.
4467
4468 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
4469
4470 Fix wildcard regexp dot and other special characters handling.
4471 Reported by: Robert Mabee.
4472
4473 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
4474 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
4475 (split_path): Trigger expansion on '?'.
4476 (unescape): New function.
4477 (wildcard_expand): Unescape parts copied without globbing.
4478 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
4479 (grub_script_arglist_to_argv): Don't unescape expansions.
4480
4481 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
4482
4483 * include/grub/net.h (grub_net_card): New member txbufsize.
4484 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
4485 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
4486 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
4487 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
4488 txbufsize.
4489 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
4490 compatible property to check for macs. Set
4491 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
4492 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
4493 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
4494 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
4495 (send_card_buffer): Use txbuf.
4496 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
4497 nested function out of the parent while on it.
4498
4499 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
4500
4501 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
4502 presence check.
4503 (grub_ieee1275_net_config_real): Fix config pointer.
4504
4505 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
4506
4507 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
4508 filename parsing to non-block devices.
4509
4510 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
4511
4512 * grub-core/kern/device.c (grub_device_open): Remove dead code.
4513
4514 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
4515
4516 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
4517 All users updated.
4518
4519 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
4520
4521 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
4522 UUID search command even if hints probing failed.
4523
4524 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
4525
4526 * po/POTFILES.in: Regenerated.
4527
4528 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
4529
4530 Speed-up video on fuloong.
4531
4532 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
4533 New function.
4534 (grub_pci_device_unmap_range): Handle non-cached address.
4535 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
4536 add direct_ptr.
4537 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
4538 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
4539 (grub_video_sis315pro_set_active_render_target): Removed.
4540 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
4541 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
4542 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
4543 sync caches.
4544 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
4545 New proto.
4546
4547 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
4548
4549 * docs/grub.texi (Multi-boot manual config): New section.
4550
4551 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4552
4553 Avoid slow read-back from VRAM.
4554
4555 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
4556 Move from here ...
4557 * grub-core/video/fb/video_fb.c
4558 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
4559 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
4560 (front_target): Remove front_target. Add pages.
4561 (grub_video_fb_init): Skip setting front_pages.
4562 (grub_video_fb_fini): Likewise.
4563 (doublebuf_blit_update_screen): Use pages.
4564 (grub_video_fb_doublebuf_blit_init): Likewise.
4565 (doublebuf_pageflipping_init): Allocate offscreen buffer.
4566 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
4567 (grub_video_fb_setup): Prefer doublebuffing.
4568
4569 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4570
4571 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
4572 gzio.
4573
4574 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4575
4576 Add loongson tests.
4577
4578 * tests/util/grub-shell.in: Handle loongson.
4579 * tests/partmap_test.in: Add loongson to the list of platform using ATA
4580 drivers.
4581 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
4582 Reboot instead of shutdown if REBOOT is defined.
4583
4584 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4585
4586 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
4587 sized ports since unlike on real hardware qemu supports only 32-bit
4588 regs.
4589
4590 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
4591
4592 * Makefile.util.def (grub-mkrescue): Enable on loongson.
4593 * util/grub-mkrescue.in: Handle loongson.
4594
4595 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
4596
4597 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
4598 Set is_part appropriately.
4599 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
4600 names. Canonicalize partition without full disk.
4601
4602 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4603
4604 Revert usb-quiesce since it's wrong.
4605
4606 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
4607 (grub_ofdisk_init): Don't do quiesce.
4608
4609 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4610
4611 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
4612 PowerMac workaround to Xserves as well.
4613 Information supplied by: Benjamin Herrenschmidt.
4614
4615 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4616
4617 Don't assume that beginning address is also the entry point on ppc.
4618
4619 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
4620 (grub_linux_boot): Use linux_entry.
4621 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
4622 (grub_linux_load64): Likewise.
4623
4624 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4625
4626 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
4627
4628 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4629
4630 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
4631 needlessly lose the console.
4632
4633 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
4634
4635 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
4636 space.
4637
4638 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
4639
4640 Remove non-functional EFI grub_get_rtc. Put a better fatal message
4641 than current grub_get_rtc() not implemented when booted with
4642 coreboot without TSC.
4643
4644 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
4645 Add machine/time.h to kernel headers on loongson.
4646 * grub-core/Makefile.core.def (kernel): Remove
4647 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
4648 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
4649 (grub_get_rtc): Likewise.
4650 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
4651 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
4652 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
4653 * grub-core/kern/i386/tsc.c (grub_tsc_init)
4654 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
4655 rather than installing known non-working time source.
4656 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
4657 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
4658 * include/grub/time.h: Don't include machine/time.h.
4659 * include/grub/efi/time.h: Removed.
4660 * include/grub/i386/efi/time.h: Likewise.
4661 * include/grub/i386/ieee1275/time.h: Likewise.
4662 * include/grub/powerpc/ieee1275/time.h: Likewise.
4663 * include/grub/sparc64/ieee1275/time.h: Likewise.
4664 * include/grub/x86_64/efi/time.h: Likewise.
4665
4666 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
4667
4668 Remove dot on i and j when combining with above diacritics.
4669
4670 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
4671 value.
4672 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
4673 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
4674 with dotless variants when any combining above is present.
4675
4676 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4677
4678 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
4679 text and not binary.
4680
4681 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4682
4683 Stop polling as soon as we have the packet we were waiting for.
4684
4685 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
4686 All users updated.
4687 * grub-core/net/arp.c (have_pending): New var.
4688 (pending_req): Likewise.
4689 (grub_net_arp_send_request): Fill pending_req and use have_pending as
4690 stop indicator.
4691 (grub_net_arp_receive): Set have_pending.
4692 * grub-core/net/dns.c (recv_data): New field stop.
4693 (recv_hook): Set stop.
4694 (grub_net_dns_lookup): Init stop and use as stop condition.
4695 * grub-core/net/http.c (http_establish): Use headers_recv as stop
4696 condition.
4697 * grub-core/net/net.c (grub_net_poll_cards): New argument
4698 stop_condition. Stop when it goes true.
4699 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
4700 indicator.
4701 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
4702
4703 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4704
4705 Keep TX and RX buffers on EFI rather than always allocate new ones.
4706
4707 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
4708 card. All users updated.
4709 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
4710 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
4711 (get_card_packet): Likewise.
4712 (grub_efinet_findcards): Init new fields.
4713
4714 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4715
4716 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
4717 compilation error on sparc64.
4718
4719 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4720
4721 Use ITC on IA64 rather than broken routine based on daytime.
4722
4723 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
4724 ia64.
4725 (grub_get_rtc) [__ia64__]: Likewise.
4726 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
4727 (get_itc): New function.
4728 (grub_rtc_get_time_ms): Likewise.
4729 (grub_machine_init): Calibrate ITC.
4730 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
4731 Keep only on non-ia64. Don't export since it's broken and used only
4732 if TSC is unavailable.
4733
4734 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
4735
4736 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
4737 even if it's used.
4738 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
4739 Skip if parent is unused.
4740
4741 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4742
4743 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
4744
4745 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4746
4747 Fix wildcard escaping.
4748
4749 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
4750 * grub-core/script/execute.c (wildcard_escape): .. to here.
4751 Don't escape dot.
4752 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
4753 * grub-core/script/execute.c (wildcard_unescape): .. to here.
4754 Don't escape dot.
4755 * grub-core/script/execute.c (gettext_append): Always escape.
4756 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
4757 * grub-core/script/yylex.l: Don't cut away the escaping.
4758 * tests/grub_script_echo1.in: Add tests with wildcard.
4759
4760 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4761
4762 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
4763 (ftdi_hw_configure): Likewise.
4764 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
4765 define.
4766 (real_config): Handle 1.5 stop bits.
4767 (pl2303_hw_configure): Likewise.
4768
4769 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4770
4771 * Makefile.am: Add ppc linux bootcheck.
4772 * grub-core/tests/boot/linux-ppc.cfg: New file.
4773 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
4774
4775 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4776
4777 * tests/grub_script_expansion.in: Skip network protocols.
4778
4779 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4780
4781 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
4782
4783 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4784
4785 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
4786 --rom-directory.
4787 Add -graft-points.
4788
4789 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4790
4791 ESCC serial driver for conducting sautomated tests in qemu.
4792 Not tested on real hardware.
4793
4794 * include/grub/serial.h (grub_serial_port): New field escc_desc.
4795 * grub-core/term/ieee1275/escc.c: New file.
4796 * grub-core/Makefile.core.def (escc): New module.
4797
4798 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4799
4800 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
4801 invalid on error.
4802 (serial_hw_fetch): Don't read invalid handle.
4803 (serial_hw_put): Don't write into invalid handle.
4804
4805 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4806
4807 Add a 1.5 stop bits value.
4808
4809 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
4810 * include/grub/serial.h (grub_serial_stop_bits_t): Add
4811 GRUB_SERIAL_STOP_BITS_1_5.
4812
4813 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
4814
4815 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
4816 value rather than let it uninited.
4817
4818 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4819
4820 * grub-core/commands/wildcard.c (+check_file): New function.
4821 (wildcard_expand): Don't expand to non-existing files, expand with
4822 suffix and not attempt to expand if not needed.
4823
4824 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4825
4826 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
4827 out of partitions containing other partitions.
4828
4829 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4830
4831 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
4832 on some qemu versions with GRUB.
4833
4834 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
4835 define.
4836 (grub_openbsd_bootarg_pcibios): New struct.
4837 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
4838 Add PCIINFO.
4839
4840 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4841
4842 * tests/util/grub-shell.in: Trim firmware output on EFI.
4843
4844 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4845
4846 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
4847 and coreboot since it's already in kernel.
4848
4849 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4850
4851 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
4852 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
4853 to here. New return value start. All users updated.
4854 Recursively scan linear mappings.
4855 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
4856 proto.
4857 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
4858 Use grub_util_get_dm_node_linear_info.
4859 * util/getroot.c (convert_system_partition_to_system_disk): Use
4860 grub_util_info rather than grub_dprintf.
4861 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
4862
4863 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4864
4865 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
4866
4867 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
4868 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
4869
4870 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
4871
4872 * include/grub/types.h (grub_set_unaligned64): New function.
4873 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
4874 (setup): Likewise.
4875
4876 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4877
4878 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
4879 (grub_ofdisk_fini): Quiesce USB devices.
4880
4881 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4882
4883 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
4884 caches.
4885
4886 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4887
4888 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
4889
4890 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4891
4892 * grub-core/disk/pata.c (grub_pata_pio_read)
4893 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
4894 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
4895
4896 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4897
4898 Extend automated tests to qemu-mips.
4899
4900 * Makefile.am: reorganise tests and enable qemu-mips.
4901 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
4902 * grub-core/tests/boot/linux.init-mips.S: New file.
4903 * tests/partmap_test.in: Handle ata0 disks.
4904 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
4905 non-pc i386.
4906
4907 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4908
4909 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
4910 ia64.
4911 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
4912 quotes while on it.
4913
4914 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4915
4916 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
4917 (grub_halt): Likewise.
4918 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
4919
4920 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4921
4922 * grub-core/term/serial.c (grub_serial_register)
4923 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
4924 the behaviour in line with x86 platforms.
4925
4926 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4927
4928 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
4929 (grub_ata_strncpy): Likewise.
4930 (grub_ata_identify): Add missing byteswaps.
4931
4932 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4933
4934 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
4935 byte-swap.
4936 (screen_read_char): Likewise.
4937 (grub_vga_text_cls): Likewise.
4938
4939 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4940
4941 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
4942 filenames.
4943 (make_file_path): Likewise.
4944
4945 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
4946
4947 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
4948 machines.
4949 Tested by: Paulo Flabiano Smorigo.
4950 Crucial information about API supplied by: Coleen <Last name unknown>.
4951 Reviewed by: Coleen <Last name unknown>.
4952
4953 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4954
4955 * util/grub-mkimage.c: Disable -Wcast-align.
4956
4957 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4958
4959 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
4960 as they are fatal.
4961
4962 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4963
4964 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
4965
4966 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4967
4968 * util/grub-probe.c (escape_of_path): Fix double free.
4969
4970 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4971
4972 * grub-core/commands/videoinfo.c (hook): Show pitch.
4973
4974 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4975
4976 * util/grub.d/20_linux_xen.in: Skip xen-syms.
4977
4978 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
4979
4980 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
4981 (probe): Add ieee1275 to OFW devices.
4982
4983 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4984
4985 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
4986
4987 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
4988
4989 Handle IBM OFW path.
4990
4991 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
4992 available.
4993 (of_path_of_scsi): Handle vdevice.
4994
4995 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
4996
4997 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
4998 Allocate in multiples of 16 to avoid adding a few bytes free region the
4999 windows bugs upon.
5000
5001 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
5002
5003 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
5004 Allocate in multiples of 16 to avoid adding a few bytes free region the
5005 windows bugs upon.
5006 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
5007
5008 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5009
5010 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
5011 resolutions.
5012 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
5013 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
5014
5015 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
5016
5017 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
5018
5019 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5020
5021 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
5022 resulted in \\ at the end of the line.
5023
5024 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5025
5026 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
5027 (grub_parser_cmdline_state): Likewise.
5028 (grub_parser_split_cmdline): Likewise.
5029
5030 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5031
5032 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
5033 /dev/root and /dev/dm-*.
5034
5035 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5036
5037 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
5038 fix partially stale display.
5039
5040 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5041
5042 * grub-core/normal/menu_entry.c (backward_char): Use right line for
5043 substraction.
5044
5045 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
5046
5047 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
5048 Fix MBR remapping workaround.
5049 (grub_util_biosdisk_read) [__linux__]: Likewise.
5050
5051 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
5052
5053 * util/grub-install.in: Check for ieee1275 and not ieee1276.
5054
5055 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5056
5057 * configure.ac: Bump to beta6.
5058
5059 2012-05-31 Christer Weinigel <christer@weinigel.se>
5060
5061 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
5062
5063 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5064
5065 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
5066 (grub_cmd_linux): Likewise.
5067
5068 2012-05-31 Christer Weinigel <christer@weinigel.se>
5069
5070 Fix EHCI low-speed.
5071
5072 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
5073 (GRUB_EHCI_MULT_TWO): Likewise.
5074 (GRUB_EHCI_MULT_THREE): Likewise.
5075 (GRUB_EHCI_CMASK_MASK): New enum value.
5076 (GRUB_EHCI_SMASK_MASK): Likewise.
5077 (GRUB_EHCI_CMASK_OFF): Likewise.
5078 (GRUB_EHCI_SMASK_OFF): Likewise.
5079 (grub_ehci_pci_iter): Enable periodic schedule.
5080 (grub_ehci_parse_notrun): Likewise.
5081 (grub_ehci_restore_hw): Likewise.
5082 (grub_ehci_setup_qh): Set flags for low speed transfers.
5083 (grub_ehci_find_qh): Use periodic list for low speed.
5084 (grub_ehci_setup_transfer): Check periodic queue as well.
5085 (grub_ehci_check_transfer): Likewise.
5086 (grub_ehci_cancel_transfer): Cancel periodic transfer.
5087
5088 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5089
5090 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
5091 parameter is used.
5092
5093 2012-05-31 Peter Jones <pjones@redhat.com>
5094
5095 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
5096 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
5097 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
5098
5099 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
5100
5101 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
5102 uninited variable. Allocate at least setup_sects.
5103
5104 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5105
5106 Fix handling of EFI with big memory maps.
5107
5108 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
5109 (real_mode_mem): Likewise.
5110 (real_mode_target): Likewise.
5111 (real_mode_pages): Likewise.
5112 (prot_mode_pages): Likewise.
5113 (linux_params): New var.
5114 (linux_cmdline): Likewise.
5115 (free_pages): Don't set real mode variables.
5116 (allocate_pages): Don't allocate real mode memory.
5117 (grub_e820_add_region): Remove the limit.
5118 (grub_linux_boot): Allocate and copy real mode memory.
5119 (grub_linux_unload): Free linux_cmdline.
5120 (grub_cmd_linux): Use temporary storage for parameters.
5121 (grub_cmd_initrd): Likewise.
5122 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
5123 (linux_kernel_params): Make it 1K big.
5124
5125 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5126
5127 * Makefile.util.def: Remove -Wno-format.
5128 * grub-core/Makefile.core.def: Likewise.
5129
5130 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5131
5132 * tests/cmp_unit_test.c: Add missing failure message.
5133 * tests/example_unit_test.c: Likewise.
5134 * tests/printf_unit_test.c: Likewise.
5135
5136 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
5137
5138 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
5139 relaxation of protective MBR requirements.
5140
5141 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
5142
5143 * configure.ac: Add condition for COND_HOST_XNU.
5144 * Makefile.util.def (10_xnu): New script.
5145 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
5146
5147 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
5148
5149 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
5150 objconv bug.
5151
5152 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
5153
5154 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
5155 Binary on other platforms stays identical.
5156
5157 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5158
5159 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
5160 Apple.
5161
5162 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5163
5164 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
5165
5166 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5167
5168 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
5169 rather than defining size_t ourselves to avoid conflict.
5170
5171 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5172
5173 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
5174 initialisation to avoid __bzero reference.
5175
5176 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5177
5178 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
5179 version.
5180 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
5181 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
5182 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
5183 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
5184 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
5185
5186 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5187
5188 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
5189 * grub-core/kern/misc.c: Likewise.
5190 * grub-core/loader/i386/xnu.c: Likewise.
5191 * include/grub/i386/tsc.h: Likewise.
5192 * include/grub/symbol.h: Likewise.
5193
5194 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5195
5196 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
5197 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
5198 on older compiler.
5199
5200 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5201
5202 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
5203 Implement Apple flavour.
5204 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
5205
5206 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5207
5208 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
5209 (memmove) [__APPLE__]: Likewise.
5210 (memcpy) [__APPLE__]: Likewise.
5211 (memset) [__APPLE__]: Likewise.
5212 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
5213 (memmove) [__APPLE__]: Likewise.
5214 (memcpy) [__APPLE__]: Likewise.
5215 (memset) [__APPLE__]: Likewise.
5216
5217 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
5218
5219 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
5220 dependency discard.
5221
5222 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5223
5224 * grub-core/normal/main.c (read_config_file): Provide config_file and
5225 config_directory.
5226 * util/grub.d/41_custom.in: Use config_directoy when available.
5227
5228 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5229
5230 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
5231 (grub_bfs_dir): Likewise.
5232
5233 2012-05-27 Peter Jones <pjones@redhat.com>
5234
5235 The old code gives arguments to a printf function which can't work
5236 correctly, and the compiler complains.
5237
5238 * grub-core/tests/example_functional_test.c (example_test): Add
5239 missing text.
5240 * grub-core/tests/lib/test.c (add_failure): Rewrite.
5241 * include/grub/test.h (grub_test_assert_helper): New declaration.
5242 (grub_test_assert): Use grub_test_assert_helper.
5243
5244 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5245
5246 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
5247 (exfctest): ... this to avoid overlong filenames.
5248 All users updated.
5249
5250 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5251
5252 Handle "." and ".." on squashfs.
5253
5254 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
5255 Make inode numbers into stack.
5256 (grub_squash_read_symlink): Use stack.
5257 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
5258 (make_root_node): Fill stack.
5259 (grub_squash_open): Use stack.
5260
5261 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5262
5263 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
5264 freeing.
5265
5266 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5267
5268 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
5269 stderr on test calls.
5270
5271 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5272
5273 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
5274
5275 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5276
5277 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
5278
5279 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5280
5281 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
5282 "..".
5283
5284 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5285
5286 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
5287 (grub_hfsplus_iterate_dir): Add "." and "..".
5288
5289 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5290
5291 * grub-core/fs/cpio.c (canonicalize): Handle "..".
5292 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
5293
5294 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5295
5296 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
5297 (find_path): Handle "." and "..".
5298
5299 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
5300
5301 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
5302 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
5303 (grub_affs_iterate_dir): Handle hardlinks.
5304
5305 2012-05-26 Matthew Garrett <mjg@redhat.com>
5306
5307 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
5308 (grub_efi_console_fini): Likewise.
5309 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
5310 (grub_video_gop_fill_mode_info): Rename to ...
5311 (grub_video_gop_fill_real_mode_info): ... this.
5312 (grub_video_gop_fill_mode_info): New function.
5313 (grub_video_gop_setup): Setup double framebuffer.
5314 (grub_video_gop_get_info_and_fini): Use original framebuffer.
5315 Free offscreen.
5316 (grub_video_gop_swap_buffers): Copy framebuffer.
5317 (grub_video_gop_fini): Free offscreen buffer.
5318 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
5319 New enum.
5320 (grub_efi_gop_blt_pixel): New struct.
5321
5322 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
5323
5324 * gentpl.py: Remove error disabling for objconv.
5325
5326 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
5327
5328 * configure.ac: Remove -Wunitialized as it's not available on older
5329 compilers.
5330
5331 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
5332
5333 Fix extent overflow comparator.
5334
5335 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
5336 (grub_hfsplus_read_block): Set type.
5337 (grub_hfsplus_cmp_extkey): Compare type.
5338
5339 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
5340
5341 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
5342
5343 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
5344
5345 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
5346 than 0.
5347
5348 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
5349
5350 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
5351 (dejavu_bold_14.pf2): New target.
5352
5353 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
5354
5355 * configure.ac: Fix djvu font detection.
5356
5357 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
5358
5359 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
5360 ext* instead of ext2.
5361
5362 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
5363
5364 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
5365 name with \0.
5366
5367 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
5368
5369 * docs/grub-dev.texi: Remove dot from .png.
5370
5371 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
5372
5373 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
5374 protective entry in any slot.
5375 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
5376 if protective entry is found in any slot.
5377
5378 Protective entry in non-first slot make no sense but is a widespread
5379 brain damage.
5380
5381 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
5382
5383 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
5384
5385 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
5386
5387 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
5388 with old reiserfs.
5389 (grub_reiserfs_open): Don't free root.
5390
5391 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
5392
5393 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
5394 after freeing for safety.
5395
5396 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
5397
5398 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
5399 Reported by: Jordan Uggla.
5400
5401 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
5402
5403 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
5404 actual implementation. Specifically, clarify that the grub menu will
5405 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
5406 passed.
5407
5408 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
5409
5410 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
5411 of r0.
5412
5413 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
5414
5415 Remove unjustified hard dependency of normal.mod on gfxterm.
5416
5417 * include/grub/term.h (grub_term_output): New member fullscreen.
5418 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
5419 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
5420 (grub_gfxterm): Set .fullscreen.
5421 * grub-core/normal/menu.c (menu_init): Use fullscreen.
5422 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
5423
5424 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
5425
5426 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
5427 mentioning possible problems with non-ASCII (non-compliant) ISOs.
5428 Mention case-insensitive AFFS, SFS and JFS.
5429
5430 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
5431
5432 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
5433
5434 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
5435
5436 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
5437 a bad FS.
5438
5439 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5440
5441 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
5442 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
5443
5444 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5445
5446 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
5447 (grub_jfs_mount): Fill caseins.
5448 (grub_jfs_find_file): Respect caseins.
5449
5450 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5451
5452 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
5453 through UTF-16.
5454
5455 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5456
5457 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
5458 New argument origpath. All users updated.
5459
5460 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5461
5462 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
5463 (read_attr): Ensure that we read start of possibly compressed block.
5464
5465 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5466
5467 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
5468 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
5469 All users updated.
5470
5471 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5472
5473 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
5474 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
5475 (dejavu.pf2): Replace with ...
5476 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
5477 this.
5478
5479 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5480
5481 * util/grub.d/20_linux_xen.in: Add missing line.
5482
5483 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5484
5485 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
5486 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
5487 (grub_utf16_to_utf8): Likewise.
5488
5489 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5490
5491 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
5492 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
5493 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
5494 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
5495 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
5496 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
5497
5498 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5499
5500 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
5501 a bad FS.
5502
5503 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5504
5505 * grub-core/fs/udf.c (read_string): Bail out on size=0.
5506 (grub_udf_read_symlink): Handle read_string failure.
5507
5508 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
5509
5510 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
5511 comment.
5512
5513 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
5514
5515 Fix handling of UDF symlinks.
5516
5517 * grub-core/fs/udf.c (read_string): New argument outbuf.
5518 All users updated.
5519 (grub_ufs_read_symlink): Rename to ...
5520 (grub_udf_read_symlink): ... this. All users updated.
5521 Handle symlinks with more than one component.
5522
5523 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
5524
5525 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
5526 symlinks. Replace leading colon with a slash.
5527
5528 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
5529
5530 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
5531 filename.
5532
5533 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
5534
5535 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
5536 match in inner node.
5537
5538 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
5539
5540 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
5541 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
5542 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
5543 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
5544 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
5545 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
5546 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
5547 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
5548 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
5549
5550 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5551
5552 Use grub-probe and not cmp to check that disk is empty.
5553
5554 * util/grub-install.in: Use grub-probe for zero-check.
5555 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
5556 (probe): Handle PRINT_ZERO_CHECK.
5557 (argp_parser): Handle -t zero_check.
5558
5559 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
5560
5561 Flush block cache on adding disk to device map.
5562
5563 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
5564 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
5565 adding.
5566 (read_device_map): Likewise.
5567 (open_device): Flush on opening.
5568
5569 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5570
5571 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
5572 (handle_symlink): Fix off-by-one error.
5573 Canonicalize the target.
5574 (grub_cpio_dir): Canonicalize the name.
5575 Fix memory leak.
5576 Set directory.
5577 (grub_cpio_open): Canonicalize the name.
5578
5579 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5580
5581 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
5582 handling.
5583
5584 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5585
5586 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
5587 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
5588
5589 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5590
5591 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
5592 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
5593 All users updated.
5594
5595 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5596
5597 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
5598 counterpart.
5599
5600 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5601
5602 Fix UFS1 big file support.
5603
5604 * grub-core/fs/ufs.c (INODE): Removed.
5605 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
5606 64-bit.
5607 (INODE_MODE): Simplify.
5608 (grub_ufs_inode): Use uint64_t for size and not int64_t.
5609 (grub_ufs_lookup_symlink): Don't use INODE.
5610
5611 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5612
5613 Fix minixfs with non-power-of-two blocks since it's supported by minix.
5614
5615 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
5616 (grub_minix_data): Replace log_block_size with block_size.
5617 (grub_minix_read_file): Use block_size but avoid 64-bit division.
5618 (grub_minix_mount): Fill block_size.
5619
5620 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5621
5622 * configure.ac: Bump to beta5.
5623
5624 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5625
5626 Fix wrapped HFS+ handling.
5627
5628 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
5629 blocks_start. All users updated.
5630 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
5631 wrapping offset.
5632 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
5633
5634 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5635
5636 Fix long symlinks on reiserfs.
5637
5638 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
5639 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
5640 (grub_reiserfs_iterate_dir): Save size for non-directories.
5641 (grub_reiserfs_open): Don't reread stat block as we already know the
5642 size.
5643 (grub_reiserfs_read): Split into...
5644 (grub_reiserfs_read_real): ... and ...
5645 (grub_reiserfs_read): ...this.
5646
5647 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5648
5649 Fix non-indexed JFS.
5650
5651 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
5652 (grub_jfs_data): New field namecomponentlen.
5653 (grub_jfs_mount): Fill namecomponentlen.
5654 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
5655
5656 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5657
5658 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
5659 * tests/grub_script_echo1.in: Add tests.
5660
5661 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5662
5663 * util/grub-install.in: Ignore empty devicetree directory.
5664
5665 2012-05-08 Bean <bean123ch@gmail.com>
5666
5667 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
5668 All users updated.
5669 (free_rsm): Free header as well.
5670 (free_old_fragments): Fix memory leak.
5671 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
5672 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
5673 (destroy_pq): Likewise.
5674 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
5675
5676 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5677
5678 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
5679 resulting hash as a precaution.
5680
5681 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5682
5683 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
5684 '_' in variable names.
5685 * grub-core/net/net.c (grub_net_network_level_interface_register):
5686 Likewise.
5687
5688 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5689
5690 Fix AFFS with non-512B blocks.
5691
5692 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
5693 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
5694 (grub_affs_data): Replace blocksize with log_blocksize.
5695 (grub_affs_read_block): Fix non-512B blocks.
5696 (grub_affs_read_symlink): Likewise.
5697 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
5698 (grub_affs_read): Fix non-512B blocks.
5699 (grub_affs_label): Likewise.
5700 (grub_affs_mtime): Likewise.
5701 (grub_affs_mount): Fix block detection routine.
5702
5703 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
5704
5705 Add filesystem mtime to AFFS.
5706
5707 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
5708 (aftime2ctime): New function.
5709 (grub_affs_dir): Use aftime2ctime.
5710 (grub_affs_label): Fix return value.
5711 (grub_affs_mtime): New function.
5712 (grub_affs_fs): Add mtime.
5713
5714 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5715
5716 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
5717 UTF-8.
5718
5719 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5720
5721 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
5722 UTF-8.
5723
5724 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5725
5726 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
5727
5728 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
5729
5730 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
5731 flags.
5732 (FLAGS_CASE_SENSITIVE): New enum value.
5733 (cache_entry): New struct.
5734 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
5735 cache_size and cache.
5736 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
5737 Add log_blocksize and fshelp_flags.
5738 (grub_sfs_read_extent): Handle non-512 blocks.
5739 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
5740 (grub_sfs_read_file): Handle non-512 blocks.
5741 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
5742 fshelp_flags.
5743 (grub_sfs_read_symlink): Handle non-512 blocks.
5744 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
5745 (grub_sfs_dir): Free cache.
5746 (grub_sfs_close): Likewise.
5747
5748 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
5749
5750 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
5751 filesystems.
5752
5753 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
5754
5755 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
5756
5757 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
5758
5759 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
5760
5761 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
5762
5763 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
5764 (grub_sfs_read_extent): Likewise.
5765 (grub_sfs_read_block): Likewise.
5766 (grub_sfs_mount): Likewise.
5767 (grub_sfs_iterate_dir): Likewise.
5768 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
5769 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
5770
5771 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5772
5773 Fix errors on compressed NTFS with 512B clusters.
5774
5775 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
5776 types.
5777 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
5778 not 0.
5779 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
5780 Relax check for inline extents.
5781 (ntfscomp): Return correct -1 on error and not 0.
5782
5783 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5784
5785 * util/grub-install.in: Fix handling of prefix containing spaces.
5786
5787 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5788
5789 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
5790 (grub_squash_read_data): Fix offset byte-swapping.
5791
5792 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5793
5794 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
5795 per common usage and preffered in several parts of code.
5796 (grub_memcmp): Likewise.
5797 (grub_strncmp): Likewise.
5798 * include/grub/misc.h (grub_strcasecmp): Likewise.
5799 (grub_strncasecmp): Likewise.
5800 * Makefile.util.def (cmp_test): New test.
5801 (grub_script_strcmp): Likewise.
5802 * tests/cmp_unit_test.c: New file.
5803 * tests/grub_script_strcmp.in: Likewise.
5804 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
5805
5806 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5807
5808 * include/grub/pci.h: Move enums into no-asm part.
5809
5810 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5811
5812 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
5813
5814 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5815
5816 * util/getroot.c (find_hurd_root_device): Try to make error message
5817 and comments to translators clearer.
5818
5819 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5820
5821 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
5822
5823 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5824
5825 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
5826 btrfs.
5827
5828 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5829
5830 * docs/grub.cfg: Update.
5831
5832 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5833
5834 * docs/grub.texi (PXE): Remove not present variables.
5835
5836 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
5837
5838 * grub-core/net/net.c (defserver_set_env): New function.
5839 (defserver_get_env): Likewise.
5840 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
5841
5842 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5843
5844 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
5845 entries.
5846
5847 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5848
5849 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
5850 * grub-core/kern/emu/hostdisk.c: Likewise.
5851
5852 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5853
5854 Handle hurd userspace partitions.
5855
5856 * util/getroot.c (find_hurd_root_device): New function.
5857 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
5858
5859 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5860
5861 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
5862 names.
5863 Reported by: Bastian Blank.
5864
5865 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5866
5867 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
5868 crossing page boundary.
5869
5870 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5871
5872 Fix B-tree search in BFS, especially in presence of non-ASCII
5873 characters.
5874
5875 * grub-core/fs/bfs.c (bfs_strcmp): New function.
5876 (find_in_b_tree): Use standard bsearch + btree algorithm.
5877
5878 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5879
5880 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
5881 and so on.
5882
5883 2012-05-03 Matthew Garrett <mjg@redhat.com>
5884 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5885
5886 Suspend broadcom cards in order to stop their DMA.
5887
5888 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
5889 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
5890 (pci): Don't build on x86 EFI.
5891 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
5892 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
5893 New function.
5894 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
5895 stop_broadcom if running on EFI.
5896 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
5897 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
5898 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
5899 (grub_pci_find_capability): New proto.
5900
5901 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5902
5903 * docs/grub.texi: Remove dot from the extension as it apparently
5904 doesn't work with some makeinfo versions.
5905
5906 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5907
5908 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
5909 with GRUB expectance.
5910
5911 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5912
5913 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
5914
5915 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5916
5917 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
5918 zero after directory block since last entry may be not 0-terminated if
5919 it ends on block boundary. Use continue instead of if spanning whole
5920 loop.
5921
5922 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5923
5924 Support 4K sectors UDF inline files.
5925
5926 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
5927 (grub_udf_extended_file_entry): Likewise.
5928 (grub_fshelp_node): Name the anonymous union. Put block at the end.
5929 All users updated.
5930 (get_fshelp_size): New function.
5931 (grub_udf_read_icb): Read whole block.
5932 (grub_udf_iterate_dir): Likewise.
5933 (grub_udf_dir): Likewise.
5934 (grub_udf_open): Likewise.
5935
5936 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5937
5938 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
5939
5940 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5941
5942 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
5943 inline symlinks in addition to workaround.
5944
5945 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5946
5947 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
5948
5949 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5950
5951 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
5952
5953 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
5954
5955 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
5956
5957 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5958
5959 Fix reiserfs big seek times.
5960
5961 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
5962 exact. All users updated.
5963 (grub_reiserfs_read): Use nearest btree search for seeking.
5964 Fix return value on error.
5965
5966 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5967
5968 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
5969 entries.
5970 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
5971 * docs/grub.texi: Update menuentry description.
5972
5973 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5974
5975 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
5976 crash when embedding onto filesystem.
5977
5978 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
5979
5980 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
5981 name.
5982
5983 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5984
5985 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
5986
5987 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5988
5989 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
5990 commit.
5991
5992 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5993 2012-05-01 Bean <bean123ch@gmail.com>
5994
5995 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
5996
5997 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
5998
5999 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
6000 Special behaviour for len = 0 to read whole file isn't used anywhere and
6001 can cause buffer ovewrflows in several places.
6002
6003 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6004
6005 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
6006
6007 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6008
6009 Handle RAIDZ on non-512B sectors.
6010
6011 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
6012 max_children_ashift.
6013 (fill_vdev_info_real): Fill max_children_ashift.
6014 (read_device): Use max_children_ashift.
6015
6016 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6017
6018 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
6019
6020 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6021
6022 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
6023 disk names.
6024 * docs/grub.texi: Update device.map parts.
6025
6026 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
6027
6028 Don't scan into non-diskfilter devices having diskfilter names.
6029
6030 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
6031 (scan_disk): New argument accept_diskfilter. Fix recursion depth
6032 handling.
6033 (scan_disk_hook): New function.
6034
6035 2012-04-29 Bean <bean123ch@gmail.com>
6036
6037 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
6038 allocation.
6039
6040 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
6041
6042 * configure.ac: Detect starfield theme font path
6043 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
6044
6045 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6046
6047 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
6048 geometry on serial consoles.
6049
6050 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6051
6052 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
6053 because of network consoles.
6054
6055 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6056
6057 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
6058 handling.
6059
6060 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6061
6062 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
6063 falls on Q syndrom.
6064
6065 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6066
6067 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
6068 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
6069
6070 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6071
6072 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
6073 Allocate at lest 8192 for temporary buffer as required for lzo.
6074
6075 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6076
6077 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
6078 to cluster_bits, since it's already added in.
6079 (grub_fat_read_data): Likewise.
6080
6081 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6082
6083 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
6084 as long as cluster size is multiple of 512 bytes.
6085
6086 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
6087
6088 * util/grub-mkrescue.in: Fix locale directory.
6089
6090 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
6091
6092 * grub-core/kern/emu/hostdisk.c (map): Make static.
6093
6094 2012-04-23 Bean <bean123ch@gmail.com>
6095
6096 * util/grub-fstest.c (fstest): Add missing break.
6097
6098 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
6099
6100 Fix hurd build.
6101
6102 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
6103 not define nr variable.
6104 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
6105 find_root_devices_from_poolname, find_root_devices_from_libzfs,
6106 grub_find_device): Do not define.
6107
6108 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6109
6110 Fix kfreebsd compile and behaviour.
6111
6112 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
6113 format-security.
6114 * util/getroot.c: Fix wait.h include.
6115 (grub_guess_root_devices): Error if grub_find_device fails.
6116 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
6117 (grub_util_get_dev_abstraction): Likewise.
6118 (grub_util_pull_device): Likewise.
6119 (grub_util_get_grub_dev): Likewise.
6120 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
6121
6122 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6123
6124 Fix and unify wholedisk detection.
6125
6126 * util/getroot.c (convert_system_partition_to_system_disk): New argument
6127 is_part. All users updated.
6128 (device_is_wholedisk): Removed.
6129 (grub_util_biosdisk_get_grub_dev): Use is_part.
6130
6131 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6132
6133 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
6134 mode.
6135
6136 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6137
6138 * configure.ac: Bump to beta4.
6139
6140 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6141
6142 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
6143 --fs-uuid --set UUID syntax.
6144
6145 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6146
6147 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
6148 disunification.
6149
6150 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6151
6152 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
6153
6154 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
6155
6156 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
6157
6158 2012-04-18 Mike Gilbert <floppym@gentoo.org>
6159
6160 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
6161
6162 2012-04-18 Bean <bean123ch@gmail.com>
6163
6164 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
6165 place.
6166
6167 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6168
6169 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
6170 users updated.
6171 (grub_util_biosdisk_read): Handle Linux partitions not exactly
6172 corresponding to GRUB partitions.
6173 (grub_util_biosdisk_write): Likewise.
6174
6175 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6176
6177 Scan mdraid before LVM.
6178
6179 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
6180 (grub_diskfilter_register_front): ... this.
6181 (grub_diskfilter_register_back): New function.
6182 All users of grub_diskfilter_register updated.
6183
6184 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6185
6186 * util/grub-install.in: Fix an automatic target detection bug.
6187
6188 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6189
6190 * util/grub-install.in: New option --efi-directory.
6191
6192 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6193
6194 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
6195 boot services if we have no other choice.
6196
6197 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6198
6199 * util/grub-mknetdir.in: Rename --override-directory to --directory and
6200 document it.
6201 * tests/util/grub-shell.in: Update to --directory.
6202
6203 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6204
6205 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
6206
6207 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6208
6209 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
6210 (grub_minix_read_file): Likewise.
6211 (grub_minix_read_inode): Likewise.
6212 (grub_minix_find_file): Likewise.
6213 (grub_minix_dir): Likewise.
6214
6215 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6216
6217 * util/grub-setup.c (setup): Fix partition handling and blocklist
6218 check.
6219
6220 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
6221
6222 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
6223 redundant buggy overlap check.
6224
6225 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6226
6227 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
6228 and grub-mknetdir.
6229
6230 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6231
6232 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
6233 kh.loadflags on pre-2.00 kernels.
6234
6235 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6236
6237 Terminate UNDI and PXE before launching the payload to avoid problems
6238 with DMA.
6239
6240 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
6241 (grub_loader_flags): ... this. All users updated.
6242 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
6243 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
6244 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
6245 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
6246 function.
6247 (grub_pxe_restore): Likewise.
6248 (fini_hnd): New var.
6249 (GRUB_MOD_INIT): Register shutdown hook.
6250 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
6251 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
6252 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
6253 (grub_loader_set): Rename second argument to flags.
6254
6255 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6256
6257 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
6258 written bytes.
6259 (grub_get_num_of_utf8_bytes): New function.
6260 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
6261 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
6262 executing it.
6263 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
6264 (grub_ucs4_to_utf8): Change return type.
6265
6266 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6267
6268 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
6269 warning.
6270 * grub-core/fs/bfs.c (hop_level): Likewise.
6271 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
6272
6273 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6274
6275 * grub-core/lib/adler32.c: Recode due to license unclearness.
6276
6277 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6278
6279 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
6280 (test_header): Likewise.
6281
6282 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6283
6284 Fix --help formatting.
6285
6286 * util/grub-mkconfig_lib.in (print_option_help): New function.
6287 (grub_fmt): Likewise.
6288 * util/grub-install.in: Use print_option_help and grub_fmt.
6289 * util/grub-kbdcomp.in: Likewise.
6290 * util/grub-mkconfig.in: Likewise.
6291 * util/grub-mknetdir.in: Likewise.
6292 * util/grub-mkrescue.in: Likewise.
6293 * util/grub-mkstandalone.in: Likewise.
6294 * util/grub-reboot.in: Likewise.
6295 * util/grub-set-default.in: Likewise.
6296 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6297
6298 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
6299
6300 * linguas.sh: Remove autogenerated *.po.
6301
6302 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6303
6304 * po/README: Move language fetcing to ...
6305 * linguas.sh: ... here.
6306 * po/README: Point to linguas.sh.
6307
6308 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6309
6310 * po/README: Exclude ko.po due to disclaimer problems.
6311
6312 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6313
6314 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
6315 len = 0.
6316 (grub_gettext_translate_real): Handle 0th string.
6317 (grub_gettext_translate): Ensure that "" isn't translated.
6318
6319 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6320
6321 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
6322 TRANSLATORS comment.
6323 (grub_diskfilter_print_partmap): Propagate changing of error into
6324 warning.
6325
6326 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
6327
6328 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
6329 to uint64_t to prevent overflow.
6330 (grub_diskfilter_lv): Increase start_extent and extent_count
6331 to uint64_t to prevent overflow.
6332
6333 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
6334
6335 * configure.ac: Increase version.
6336
6337 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
6338
6339 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
6340
6341 * po/Rules-translit: New file.
6342 * po/arabic.sed: Likewise.
6343 * po/cyrillic.sed: Likewise.
6344 * po/greek.sed: Likewise.
6345 * po/hebrew.sed: Likewise.
6346 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
6347 * po/Makefile.in.in: Add extra_dist4.
6348
6349 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
6350
6351 Handle big-endian minixfs (fixes minixfs tests on bigendian).
6352
6353 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
6354 modify names. Introduce MODE_BIGENDIAN.
6355 * grub-core/fs/minix_be.c: New file.
6356 * grub-core/fs/minix2_be.c: Likewise
6357 * grub-core/fs/minix3_be.c: Likewise.
6358 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
6359 minix3_be.
6360 * grub-core/Makefile.core.def (minix_be): New module.
6361 (minix2_be): Likewise.
6362 (minix3_be): Likewise.
6363
6364 2012-04-01 Felix <email@hamburg.de>
6365
6366 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
6367 (devs): Add MBP 2011.
6368
6369 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
6370
6371 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
6372
6373 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
6374
6375 * grub-core/normal/cmdline.c (print_completion): New field
6376 prompt_len.
6377 (grub_cmdline_get): Handle width properly.
6378
6379 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
6380
6381 * grub-core/commands/lsacpi.c (options): Add missing terminator.
6382
6383 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
6384
6385 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6386 after 29th of February.
6387
6388 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
6389
6390 Fix exfat endianness handling.
6391
6392 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
6393 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
6394 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
6395 Byte-swap utf16 when necessary.
6396 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
6397
6398 2012-03-31 Anton Blanchard <anton@samba.org>
6399 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
6400
6401 Fix btrfs endianness handling.
6402
6403 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
6404 (lower_bound): Make root uint64_t. Use root in le.
6405 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
6406 (find_path): Fix template key init.
6407 (grub_btrfs_dir): Fix mtime byteswap.
6408 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
6409
6410 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
6411
6412 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
6413 recursion_depth. Break infinite resursions. All users updated.
6414
6415 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
6416
6417 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
6418 after free.
6419 Reported by: Peter Jones.
6420
6421 2012-03-31 Anton Blanchard <anton@samba.org>
6422
6423 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
6424 8 bit values.
6425
6426 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
6427
6428 * util/grub-install.in: Fix nvram call for PreP.
6429
6430 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
6431
6432 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
6433 the error when some elements are missing into a warning.
6434
6435 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
6436
6437 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
6438
6439 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
6440
6441 * docs/grub.texi (Invoking grub-probe): New section.
6442 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
6443
6444 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
6445
6446 Fix tab and wide character handling in editor and menu.
6447
6448 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
6449 agglomerate control characters with combining marks.
6450 (bidi_line_wrap): Allow break on tab.
6451 (grub_unicode_get_comb_start): New function.
6452 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
6453 and tab correctly.
6454 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
6455 with a space.
6456 * grub-core/normal/term.c (print_ucs4_terminal): New argument
6457 fixed_tab_size. All users updated.
6458 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
6459 (grub_term_getcharwidth): Handle \t.
6460 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
6461 and copy.
6462
6463 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6464
6465 Handle big-endian mdraid.
6466
6467 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
6468 * grub-core/Makefile.core.def (mdraid09_be): New module.
6469 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
6470 rather than grub_le_to_cpu* and grub_cpu_to_le*.
6471 * grub-core/disk/mdraid_linux_be.c: New file.
6472
6473 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6474
6475 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
6476
6477 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6478
6479 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
6480 missing quotes which caused confusion among translators.
6481
6482 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6483
6484 * util/grub-mkconfig_lib.in: Fix typo.
6485
6486 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6487
6488 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
6489 spaces.
6490 * tests/grub_script_leading_whitespace.in: New file.
6491 * Makefile.util.def (grub_script_leading_whitespace): New test.
6492
6493 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6494
6495 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
6496 to work.
6497
6498 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6499
6500 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
6501 starts with control character.
6502
6503 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6504
6505 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
6506 overflow.
6507 (grub_gdb_outbuf): Likewise.
6508
6509 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
6510
6511 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
6512 zero terminator. Fixes a crash.
6513
6514 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
6515
6516 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
6517 beyond 4 GiB.
6518 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
6519 images independently of preffered adderss field.
6520
6521 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
6522
6523 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
6524 * grub-core/commands/regexp.c: Likewise.
6525 * grub-core/loader/i386/linux.c: Likewise.
6526 * grub-core/partmap/msdos.c: Likewise.
6527 * grub-core/script/execute.c: Likewise.
6528 * grub-core/term/gfxterm.c: Likewise.
6529
6530 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
6531
6532 Add variable parsing in $"..." and fix several mismatches with bash.
6533
6534 * Makefile.util.def (grub_script_gettext): New test.
6535 * grub-core/script/execute.c (parse_string): New function.
6536 (gettext_append): Likewise.
6537 (grub_script_arglist_to_argv): Use gettext_append.
6538 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
6539 * tests/grub_script_gettext.in: New file.
6540
6541 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
6542
6543 Fix handling of leading spaces in scripts.
6544
6545 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
6546 spaces.
6547 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
6548 other than skipping \r. All users updated.
6549 * tests/grub_script_echo1.in: Add space-related tests.
6550 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
6551
6552 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
6553
6554 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
6555
6556 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6557
6558 * configure.ac: Bump up the version to beta2.
6559
6560 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6561
6562 Fix gettext reload bugs (e.g. inability to disable gettext
6563 once enabled).
6564
6565 * grub-core/gettext/gettext.c: Encapsulate all static variables in
6566 main_context and secondary_context. All functions updated.
6567 (grub_gettext_translate): Rename to ...
6568 (grub_gettext_translate_real): ... this. Return NULL on failed
6569 translate.
6570 (grub_gettext_translate): Handle secondary context.
6571 (grub_gettext_delete_list): Close file and zero-out the context.
6572 (grub_mofile_open): Don't call grub_gettext_delete_list.
6573 Don't close file.
6574 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
6575 if locale="" to avoid pointless error message.
6576 (grub_gettext_env_write_lang): Update lang even if load fails.
6577 Handle secondary context.
6578 (grub_gettext_reread_prefix): New function.
6579 (read_main): Likewise.
6580 (read_secondary): Likewise.
6581 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
6582 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
6583 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
6584 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
6585
6586 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6587
6588 * configure.ac: Decrease warning level to avoid spurious warnings and
6589 to be able to compile with GCC 4.2.
6590 * Makefile.util.def: Remove -Wno-error=logical-op.
6591
6592 2012-03-10 William Bittner <william.bittner@gmail.com>
6593
6594 * util/import_unicode.py: Add missing brackets around string for
6595 python 3 support.
6596
6597 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6598
6599 Fix efi chainloader on network root.
6600
6601 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
6602 network devices.
6603 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
6604 New function.
6605
6606 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6607
6608 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
6609 unused show_text member.
6610 * docs/grub.texi: Document "text" property.
6611
6612 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6613
6614 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
6615 in dprintf.
6616
6617 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6618
6619 Fix IMSM handling on Fedora.
6620
6621 * util/getroot.c (grub_util_is_imsm): New function.
6622 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
6623
6624 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6625
6626 * Makefile.am: Strip gold section.
6627 * conf/Makefile.common: Likewise.
6628 * gentpl.py: Likewise.
6629 * grub-core/Makefile.core.def: Likewise.
6630 * grub-core/genmod.sh.in: Likewise.
6631
6632 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6633
6634 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
6635 * util/grub.d/20_linux_xen.in: Likewise.
6636 Based on Debian patch.
6637
6638 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6639
6640 * util/grub.d/10_linux.in: Fix syntax error resulting in
6641 Richard Laager's patch.
6642 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
6643
6644 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6645
6646 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
6647 dependencies.
6648
6649 2012-03-10 Richard Laager <rlaager@wiktel.com>
6650
6651 * util/grub.d/10_linux.in: Fix ZFS root passing.
6652
6653 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6654
6655 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
6656 * grub-core/commands/xnu_uuid.c: Likewise.
6657 * grub-core/loader/efi/appleloader.c: Likewise.
6658 * grub-core/script/execute.c: Likewise.
6659 * grub-core/script/main.c: Likewise.
6660 * util/grub-mkfont.c: Likewise.
6661
6662 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6663
6664 * util/grub-mkfont.c (options): Use more appropriate "select" that
6665 "set" for face index.
6666
6667 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6668
6669 * util/grub-editenv.c (options): Gettextize command summaries.
6670
6671 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6672
6673 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
6674 "out of memory" error messagge.
6675
6676 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6677
6678 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
6679 of diskfilter for diskfilter on diskfilter support.
6680
6681 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6682
6683 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
6684
6685 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6686
6687 * util/grub-install.in: Check for themes/starfield/theme.txt and not
6688 themes/starfield.
6689
6690 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6691
6692 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
6693
6694 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6695
6696 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
6697
6698 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
6699
6700 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
6701 of error message.
6702
6703 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
6704
6705 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
6706
6707 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
6708
6709 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
6710 message.
6711 * util/grub-install.in: Fix and gettextize error message.
6712
6713 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6714
6715 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
6716 Gettextize.
6717 * util/grub-mount.c (options): Likewise.
6718
6719 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6720
6721 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
6722 gettextize.
6723 * grub-core/commands/search_wrap.c (options): Likewise.
6724
6725 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6726
6727 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
6728
6729 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6730
6731 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
6732 size calculation.
6733 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
6734 none is known.
6735
6736 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6737
6738 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
6739 "temporary" since it's used in identifier and is limited in space.
6740
6741 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6742
6743 * po/POTFILES.in: Regenerate. Include *.h since they contain
6744 translatable strings as well.
6745
6746 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
6747
6748 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
6749 byte-swap on big-endian.
6750 Reported by: Lennart Sorensen
6751
6752 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
6753
6754 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
6755 (allocate_pages): Improve dprintf.
6756 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
6757 code32_start. Fill code32_start and kernel_alignment in params.
6758 (grub_cmd_initrd): Use prot_init_space.
6759
6760 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6761
6762 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
6763
6764 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6765
6766 * util/grub-install.in: Add missing dot at the end of sentence.
6767
6768 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6769
6770 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
6771 * grub-core/commands/videotest.c: Likewise.
6772 * grub-core/loader/i386/linux.c: Likewise.
6773
6774 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6775
6776 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
6777 sentence.
6778 Reported by: Milo Casagrande.
6779
6780 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6781
6782 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
6783 * grub-core/commands/gptsync.c: Likewise.
6784 * grub-core/commands/hashsum.c: Likewise.
6785 * grub-core/commands/i386/pc/sendkey.c: Likewise.
6786 * grub-core/commands/legacycfg.c: Likewise.
6787 * grub-core/io/gzio.c: Likewise.
6788 * grub-core/net/net.c: Likewise.
6789 * grub-core/term/gfxterm.c: Likewise.
6790 * grub-core/term/terminfo.c: Likewise.
6791 * grub-core/tests/test_blockarg.c: Likewise.
6792 * grub-core/video/video.c: Likewise.
6793 * util/grub-install.in: Likewise.
6794 * util/grub-mkfont.c: Likewise.
6795
6796 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6797
6798 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
6799
6800 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6801
6802 * grub-core/commands/search_wrap.c (options): Fix a typo.
6803 Reported by: David Prévot.
6804
6805 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6806
6807 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
6808 description.
6809
6810 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6811
6812 * util/grub-script-check.c (main): Fix a syntax error message which was
6813 unclear.
6814
6815 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6816
6817 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
6818
6819 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6820
6821 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
6822 messages.
6823
6824 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
6825
6826 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
6827 without argument.
6828 * util/grub-mount.c (options): Likewise.
6829
6830 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6831
6832 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
6833
6834 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6835
6836 * grub-core/net/http.c: Add TRANSLATORS comments.
6837 * grub-core/normal/cmdline.c: Likewise.
6838 * grub-core/normal/misc.c: Likewise.
6839 * grub-core/partmap/msdos.c: Likewise.
6840 * grub-core/parttool/msdospart.c: Likewise.
6841 * grub-core/script/execute.c: Likewise.
6842 * grub-core/script/main.c: Likewise.
6843 * grub-core/term/terminfo.c: Likewise.
6844 * grub-core/video/bitmap.c: Likewise.
6845 * util/grub-install.in: Likewise.
6846 * util/grub-mkimage.c: Likewise.
6847 * util/grub-mklayout.c: Likewise.
6848 * util/grub-setup.c: Likewise.
6849
6850 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6851
6852 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
6853 with similar messages in grub-fstest.
6854
6855 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6856
6857 * util/grub-install.in: Unify "option requires an argument" message
6858 with similar messages in other files.
6859 * util/grub-mkconfig.in: Likewise.
6860
6861 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6862
6863 * util/grub-set-default.in: Replace printf with gettext_printf (the
6864 string in in question is already translated from grub-reboot)
6865
6866 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
6867
6868 * configure.ac: Bump up the version to beta1.
6869
6870 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6871
6872 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
6873 case when min_align = 0.
6874
6875 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6876
6877 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
6878 and fix a case when line_start overflows.
6879
6880 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6881
6882 * util/grub-reboot.in (usage): Mention id posibility.
6883 * util/grub-set-default.in (usage): Likewise.
6884
6885 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6886
6887 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
6888 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
6889 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
6890 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
6891 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
6892 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6893 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
6894
6895 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6896
6897 * grub-core/commands/menuentry.c (options): Remove
6898 GRUB_ARG_OPTION_REPEATABLE.
6899 Reported by: Andreas Vogel
6900
6901 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
6902
6903 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
6904
6905 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
6906
6907 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
6908 error.
6909
6910 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6911
6912 Use sort -V by the idea of Georgi Georgiev.
6913
6914 * util/grub-mkconfig_lib.in (version_sort): New function.
6915 (version_test_numeric): Use version_sort.
6916
6917 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6918
6919 Use submenus in grub-mkconfig.
6920
6921 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
6922 * util/grub-mkconfig_lib.in (grub_quote): New function.
6923 (gettext_printf): Use gettext and not gettext_quoted to fix several
6924 messages.
6925 * util/grub.d/10_hurd.in: Use submenus.
6926 * util/grub.d/10_kfreebsd.in: Likewise.
6927 * util/grub.d/10_linux.in: Likewise.
6928 * util/grub.d/10_netbsd.in: Likewise.
6929 * util/grub.d/20_linux_xen.in: Likewise.
6930 * util/grub.d/30_os-prober.in: Likewise.
6931 * util/grub.d/10_illumos.in: Add missing quoting.
6932 * util/grub.d/10_windows.in: Likewise.
6933
6934 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6935
6936 Fix menu title instability bug.
6937
6938 * grub-core/commands/menuentry.c (options): New option --id.
6939 (grub_normal_add_menu_entry): New argument id. All users updated.
6940 (grub_cmd_menuentry): Handle --id.
6941 (grub_menu_init): Accept unknown arguments.
6942 * grub-core/normal/main.c (features): Add feature_menuentry_id and
6943 feature_menuentry_options.
6944 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
6945 saved_entry.
6946 (get_entry_number): Match with id as well.
6947 * include/grub/menu.h (grub_menu_entry): New member id.
6948 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
6949 * util/grub.d/00_header.in: Define menuentry_id_option.
6950 * util/grub.d/10_hurd.in: Define id.
6951 * util/grub.d/10_illumos.in: Likewise.
6952 * util/grub.d/10_kfreebsd.in: Likewise.
6953 * util/grub.d/10_linux.in: Likewise.
6954 * util/grub.d/10_netbsd.in: Likewise.
6955 * util/grub.d/10_windows.in: Likewise.
6956 * util/grub.d/20_linux_xen.in: Likewise.
6957 * util/grub.d/30_os-prober.in: Likewise.
6958
6959 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
6960
6961 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
6962 "scope" with "body".
6963
6964 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6965
6966 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
6967 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
6968 prot_size and prot_file_size.
6969
6970 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6971
6972 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
6973 All users updated. If easily=1 require raid-5/-6 to be full.
6974 (is_node_readable): Likewise.
6975 (scan_devices): Scan incomplete but readable LVs at the end.
6976 (grub_diskfilter_memberlist): Pull missing devices.
6977 (insert_array): Skip scanning until device is complete or scan is
6978 done otherwise.
6979 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
6980 check.
6981 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
6982 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
6983
6984 2012-03-03 Matthew Garrett <mjg@redhat.com>
6985 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
6986
6987 Avoid EFI boot services when loading Linux.
6988
6989 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
6990 avoid_efi_bootservices. All users updated.
6991 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
6992 argument avoid_efi_bootservices. All users updated.
6993 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
6994 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
6995 align, min_align, relocatable, prefered_address. All users updated.
6996 Allocate avoiding boot services if kernel is relocatable.
6997 (grub_cmd_linux): Check if kernel is relocatable.
6998 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
6999 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
7000 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
7001 avoid_efi_boot_services.
7002 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
7003 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
7004 (linux_kernel_params): Likewise.
7005
7006 2012-03-03 Matthew Garrett <mjg@redhat.com>
7007 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7008
7009 Use EDID on EFI.
7010
7011 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
7012 datasize_out.
7013 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
7014 modes. Set gop_handle.
7015 (grub_video_gop_get_edid): New function.
7016 (grub_gop_get_preferred_mode): Likewise.
7017 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
7018 (grub_video_efi_gop_adapter): Set .get_edid.
7019 * include/grub/efi/edid.h: New file.
7020 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
7021
7022 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7023
7024 * util/grub-install.in: Load efivars unconditionally.
7025
7026 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7027
7028 * po/Rules-piglatin: Change suffix from .po-update-en to
7029 .po-update-en-piglatin.
7030
7031 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7032
7033 Add a pig farm.
7034
7035 * po/piglatin.sed: New file.
7036 * po/en@piglatin.header: Likewise.
7037 * po/Rules-piglatin: Likewise.
7038 * po/README: Add en@piglatin to autogenerated languages.
7039
7040 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7041
7042 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
7043 "Command for ...".
7044 * grub-core/commands/hdparm.c (options): Use "Display" rather than
7045 "Check" since we don't check anything.
7046 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
7047 is 64-bit one.
7048 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
7049 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
7050 (grub_md_sha512_real): Likewise.
7051
7052 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7053
7054 * grub-core/commands/gptsync.c: Fix typographic quoting.
7055 * grub-core/commands/ieee1275/suspend.c: Likewise.
7056 * grub-core/commands/parttool.c: Likewise.
7057 * grub-core/commands/search_wrap.c: Likewise.
7058 * grub-core/commands/videoinfo.c: Likewise.
7059 * grub-core/gfxmenu/gui_label.c: Likewise.
7060 * grub-core/hello/hello.c: Likewise.
7061 * grub-core/kern/emu/main.c: Likewise.
7062 * grub-core/net/net.c: Likewise.
7063 * grub-core/normal/menu.c: Likewise.
7064 * grub-core/normal/menu_text.c: Likewise.
7065 * grub-core/normal/misc.c: Likewise.
7066 * util/grub-editenv.c: Likewise.
7067 * util/grub-install.in: Likewise.
7068 * util/grub-kbdcomp.in: Likewise.
7069 * util/grub-mkconfig.in: Likewise.
7070 * util/grub-mknetdir.in: Likewise.
7071 * util/grub-mkrescue.in: Likewise.
7072 * util/grub-mkstandalone.in: Likewise.
7073 * util/grub-reboot.in: Likewise.
7074 * util/grub-set-default.in: Likewise.
7075 * util/grub-setup.c: Likewise.
7076 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7077
7078 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7079
7080 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
7081 * grub-core/commands/keystatus.c: Likewise.
7082 * grub-core/commands/loadenv.c: Likewise.
7083 * grub-core/commands/probe.c: Likewise.
7084 * grub-core/commands/regexp.c: Likewise.
7085 * grub-core/commands/true.c: Likewise.
7086 * grub-core/commands/videoinfo.c: Likewise.
7087 * grub-core/disk/cryptodisk.c: Likewise.
7088 * grub-core/disk/ldm.c: Likewise.
7089 * grub-core/disk/loopback.c: Likewise.
7090 * grub-core/disk/luks.c: Likewise.
7091 * grub-core/fs/zfs/zfsinfo.c: Likewise.
7092 * grub-core/kern/disk.c: Likewise.
7093 * grub-core/kern/emu/hostdisk.c: Likewise.
7094
7095 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7096
7097 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
7098 * util/grub-install.in: Add missing quote in the comment.
7099
7100 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7101
7102 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
7103 * grub-core/commands/lsmmap.c: Likewise.
7104 * grub-core/commands/minicmd.c: Likewise.
7105 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
7106 * grub-core/commands/regexp.c: Likewise.
7107 * grub-core/gdb/gdb.c: Likewise.
7108 * grub-core/term/gfxterm.c: Likewise.
7109 * util/grub-mkconfig.in: Likewise.
7110 * util/grub-mkfont.c: Likewise.
7111 * util/grub-mklayout.c: Likewise.
7112 * util/grub-mknetdir.in: Likewise.
7113 * util/grub-mkrescue.in: Likewise.
7114 * util/grub.d/30_os-prober.in: Likewise.
7115
7116 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7117
7118 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
7119 with "Direct color" and "Packed" with "Packed pixel".
7120 (grub_cmd_videoinfo): Simplify legend.
7121
7122 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7123
7124 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
7125 absolutely unclear error message.
7126
7127 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7128
7129 * util/grub-mkstandalone.in: Remove confusing leftover print.
7130
7131 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7132
7133 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
7134 comments.
7135 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
7136 (GRUB_MOD_INIT): Likewise.
7137 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
7138 VGA mode.
7139 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
7140 comments.
7141 * util/grub-install.in (usage): Likewise.
7142 Spell ID in whole letters.
7143 Add missing ending dot.
7144 Quote variables.
7145 * util/grub-reboot.in: Fix capitalisation.
7146 * util/grub-set-default.in: Likewise.
7147
7148 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7149
7150 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
7151 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
7152 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
7153 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
7154 Disable -Werror for -Wdeprecated-declarations.
7155 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
7156 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
7157 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
7158 (grub_util_get_grub_dev): Make luks handling dependent on
7159 HAVE_DEVICE_MAPPER and not __linux__.
7160 (get_win32_path): Fix format security.
7161 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
7162 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
7163 Don't try grub_find_zpool_from_dir.
7164 (grub_make_system_path_relative_to_its_root) [!__linux__]:
7165 #ifdef-out paresdir.
7166
7167 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7168
7169 * util/grub-pe2elf.c (usage): Add missing noreturn.
7170 (write_section_data): Rename name to shname to avoid shadowing.
7171 (write_symbol_table): Rename name to symname to avoid shadowing.
7172 Fix write_reloc_section call.
7173
7174 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7175
7176 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
7177 to ensure that it's after the last byte of .text.
7178
7179 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7180
7181 * util/ieee1275/ofpath.c (my_isdigit): New function.
7182 (trailing_digits): Use my_isdigit.
7183 (strip_trailing_digits): Likewise.
7184
7185 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7186
7187 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
7188 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
7189
7190 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7191
7192 * grub-core/kern/i386/pc/startup.S: Define __start.
7193
7194 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7195
7196 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
7197 strip already transforms he format.
7198
7199 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7200
7201 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
7202
7203 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7204
7205 * util/grub-install.in: Add missing gettext init.
7206 * util/grub-kbdcomp.in: Likewise.
7207 * util/grub-mkconfig.in: Likewise.
7208 * util/grub-mknetdir.in: Likewise.
7209 * util/grub-mkrescue.in: Likewise.
7210 * util/grub-mkstandalone.in: Likewise.
7211 * util/grub-reboot.in: Likewise.
7212 * util/grub-set-default.in: Likewise.
7213 * util/grub.d/00_header.in: Likewise.
7214 * util/grub.d/10_hurd.in: Likewise.
7215 * util/grub.d/10_windows.in: Likewise.
7216 * util/grub.d/30_os-prober.in: Likewise.
7217 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7218
7219 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7220
7221 * po/Rules-swiss: Fix header comment.
7222
7223 2012-02-29 Andreas Vogel <anvoit>
7224
7225 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
7226 resulted in leak of arguments.
7227
7228 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7229
7230 * grub-core/boot/i386/pc/startup_raw.S: Use separate
7231 reed_solomon_size const definition instead of computing it since
7232 Apple assembler doesn't support the later.
7233
7234 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7235
7236 * gentpl.py (kernel): Rewrite Apple part.
7237
7238 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7239
7240 * include/grub/kernel.h (FOR_MODULES): Check module magic.
7241
7242 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7243
7244 * util/grub-mkimagexx.c (locate_sections): Support non-standard
7245 ELF section gap.
7246 (load_image): Likewise.
7247
7248 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7249
7250 * configure.ac: Fix a typo in previous commit.
7251
7252 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7253
7254 Don't add -Wl,-N on Apple platform.
7255
7256 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
7257 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
7258
7259 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7260
7261 * grub-core/Makefile.core.def (lzma_decompress): Use
7262 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
7263
7264 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7265
7266 * grub-core/genmod.sh.in: Rewrite the Apple part.
7267
7268 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7269
7270 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
7271 comparison.
7272
7273 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7274
7275 * acinclude.m4 (grub_CHECK_PIC): New test.
7276 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
7277
7278 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7279
7280 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
7281 to avoid the warning.
7282
7283 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7284
7285 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
7286 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
7287 after. All users updated.
7288
7289 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7290
7291 Use the common size routine in hostfs so we can read disks as well.
7292
7293 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
7294 (grub_util_get_fd_size): ... this. Return size in bytes.
7295 All users updated.
7296 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
7297 grub_util_get_fd_size.
7298
7299 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7300
7301 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
7302 Add blocksize retrieval.
7303
7304 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7305
7306 * configure.ac: Restore CFLAGS after efiemu check.
7307
7308 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7309
7310 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
7311 Apple bug.
7312
7313 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7314
7315 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
7316
7317 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7318
7319 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
7320 (grub_cmd_halt): Likewise.
7321
7322 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7323
7324 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
7325 for local arithmetics.
7326 Break %sp init into 2 instructions.
7327 Add 0 byte at the end.
7328
7329 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7330
7331 * grub-core/disk/diskfilter.c (read_segment): Initialise err
7332 before loops.
7333
7334 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7335
7336 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
7337 for context.
7338
7339 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7340
7341 * grub-core/disk/ldm.c (make_vg): Init part.name.
7342 (grub_ldm_detect): Silence spurious warning.
7343 (grub_util_is_ldm): Likewise.
7344
7345 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7346
7347 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
7348 sane value to avoid a spurious warning.
7349
7350 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7351
7352 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
7353 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
7354
7355 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7356
7357 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
7358 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
7359
7360 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7361
7362 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
7363 hardcoding the relevant info.
7364
7365 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7366
7367 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
7368 missing const qualifiers.
7369 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
7370
7371 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7372
7373 * util/getroot.c [__APPLE__]: Add missing includes.
7374 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
7375
7376 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7377
7378 * util/grub-mkimage.c (generate_image): Silence spurious warning.
7379
7380 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7381
7382 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
7383 avoid conflicts.
7384
7385 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7386
7387 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
7388
7389 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7390
7391 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
7392 and grub_file_close call.
7393
7394 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7395
7396 Add LZSS Mach-O support (needed for new xnu kernelcache).
7397
7398 * grub-core/Makefile.core.def (xnu): Add file lzss.c
7399 * grub-core/loader/lzss.c: New file.
7400 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
7401 on Mach-O open failure.
7402 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
7403 Don't free cmdsXX in uncompressedXX is set.
7404 (grub_macho_file): Init new fields.
7405 New argument is_64bit. All users updated.
7406 Handle compressed. Error out if no suitable architecture is found.
7407 Don't close file.
7408 (grub_macho_open): New argument is_64bit. All users updated.
7409 * grub-core/loader/macho32.c: Add defines for new fields.
7410 * grub-core/loader/macho64.c: Likewise.
7411 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
7412 (grub_macho_parse): Handle compressed.
7413 Defer actual processing if compressed.
7414 (grub_macho_cmds_iterate): Decompress if compressed. New argument
7415 "filename". All users updated.
7416 (grub_macho_size): New argument "filename". All users updated.
7417 (grub_macho_get_entry_point): Likewise.
7418 (grub_macho_load): Handle compressed.
7419 * include/grub/macho.h (grub_macho_lzss_header): New struct.
7420 (GRUB_MACHO_LZSS_OFFSET): New define.
7421 (grub_decompress_lzss): New proto.
7422 * include/grub/machoload.h (grub_macho_file): New fields to handle
7423 compressed.
7424 (grub_macho_contains_macho64): Remove proto.
7425 (grub_macho_contains_macho32): Likewise.
7426 * util/grub.d/30_os-prober.in: Use kernel cache if available.
7427
7428 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
7429
7430 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
7431
7432 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7433
7434 Fix make dist.
7435
7436 * Makefile.am (starfield_theme_files): New var.
7437 (starfield_DATA): Use starfield_theme_files.
7438 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
7439 Add bootcheck-related files.
7440 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
7441 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
7442 and font_char_metrics.txt.
7443 * grub-core/Makefile.core.def (kernel): Update extra_dist.
7444 (setjmp): Add lib/ia64/longjmp.S.
7445 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
7446 * po/POTFILES.in: Regenerate.
7447 * po/Rules-swiss: use DISTFILES.common.extra2 and not
7448 DISTFILES.common.extra1.
7449 * util/devicemap.c: Removed.
7450 * grub-core/lib/i386/relocator_backward.S: Likewise.
7451 * util/import_gcry.py: Remove unused files. Add extra_dist for
7452 ChangeLog.
7453
7454 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7455
7456 * grub-core/gettext/gettext.c (grub_mofile_open): Call
7457 grub_gettext_delete_list before changing grub_gettext_max to avoid
7458 running out of array bounds.
7459
7460 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7461
7462 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
7463 grub_vga_text_init/grub_vga_text_fini.
7464
7465 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7466
7467 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
7468
7469 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7470
7471 * configure.ac: Bump to 2.00~beta0.
7472
7473 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7474
7475 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
7476 missing initialisation.
7477
7478 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7479
7480 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
7481
7482 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7483
7484 Support v2 xnu boot arguments.
7485
7486 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
7487 New argument fsbfreq_out.
7488 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
7489 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
7490 be used.
7491 * grub-core/loader/machoXX.c (grub_macho_load): New argument
7492 darwin_version.
7493 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
7494 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
7495 (grub_xnu_boot_params): Rename to ...
7496 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
7497 (grub_xnu_boot_params_v2): New struct.
7498
7499 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7500
7501 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
7502 zeroing of CRC field before computing CRC.
7503
7504 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7505
7506 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
7507 Change order of allocations to decrease fragmentation.
7508
7509 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7510
7511 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
7512
7513 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
7514
7515 Use write-combining MTRR to speed up video with buggy BIOSes.
7516
7517 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
7518 (cpuid): New define.
7519 (rdmsr): Likewise.
7520 (wrmsr): Likewise.
7521 (mtrr_base): Likewise.
7522 (mtrr_mask): Likewise.
7523 (grub_vbe_enable_mtrr_entry): New function.
7524 (grub_vbe_enable_mtrr): Likewise.
7525 (grub_vbe_disable_mtrr): Likewise.
7526 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
7527 control off to BIOS.
7528 (grub_video_vbe_init): Fill mtrr.
7529 (grub_video_vbe_fini): Disable mtrr.
7530 (grub_video_vbe_get_info_and_fini): Likewise.
7531 (grub_video_vbe_setup): Enable mtrr.
7532
7533 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
7534
7535 * include/grub/partition.h (grub_partition_map): Change prototype of
7536 embed to take a maximum value for nsectors.
7537 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
7538 * include/grub/fs.h (grub_fs): Likewise.
7539 * grub-core/partmap/msdos.c (embed_signatures): New array.
7540 (pc_partition_map_embed): Check for and avoid sectors matching any
7541 of the signatures in embed_signatures, up to max_nsectors.
7542 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
7543 returned sector map to max_nsectors.
7544 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
7545 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
7546 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
7547 * util/grub-setup.c (setup): Allow for the embedding area being
7548 split into multiple blocklists. Tell dest_partmap->embed the
7549 maximum number of sectors we care about.
7550
7551 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7552
7553 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
7554 Specify blocklist_install and reserver_first_sector for all fs.
7555 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
7556 blocklists.
7557
7558 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7559
7560 * util/grub-install.in: Clarify strings.
7561 Fix source dir check.
7562
7563 2012-02-27 Richard Laager <rlaager@wiktel.com>
7564
7565 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
7566 "zfs" and "fuse.zfs" as synonyms.
7567
7568 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7569
7570 * configure.ac: Put platform and target_cpu substitutions back since
7571 they are used for directories.
7572
7573 2012-02-27 Richard Laager <rlaager@wiktel.com>
7574 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7575
7576 * util/grub.d/10_linux.in: Add ZFS-related arguments.
7577 * util/grub.d/20_linux_xen.in: Likewise.
7578
7579 2012-02-27 Richard Laager <rlaager@wiktel.com>
7580
7581 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
7582 with full paths.
7583
7584 2012-02-27 Richard Laager <rlaager@wiktel.com>
7585
7586 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
7587 unescape.
7588
7589 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7590
7591 Don't use insecure popen in getroot.
7592
7593 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
7594 (exec_pipe): ... here.
7595 (find_root_devices_from_poolname): Use exec_pipe.
7596
7597 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7598
7599 Remove platform and target_cpu replacement.
7600
7601 * configure.ac: Remove platform and target_cpu substitutions.
7602 * tests/util/grub-shell.in: Use modinfo.
7603 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
7604 explicitly.
7605
7606 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7607
7608 Autodetect platform in grub-install but allow override.
7609
7610 * util/grub-install.in: Autodetect platform. Support --target and
7611 --directory. Read platform from modinfo.sh.
7612
7613 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7614
7615 Support btrfs multi-volume probe.
7616
7617 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
7618 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
7619 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
7620 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
7621 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
7622 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
7623 grub_find_root_devices_from_btrfs if on btrfs.
7624
7625 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7626
7627 Remove any awareness of *.c util files about target.
7628
7629 * Makefile.util.def (grub-setup): Split to ...
7630 (grub-bios-setup): ... and this.
7631 (grub-sparc64-setup): ... and this.
7632 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
7633 * docs/man/grub-setup.h2m: Split into ...
7634 * docs/man/grub-sparc64-setup.h2m: ... this.
7635 * docs/man/grub-bios-setup.h2m: ... and this.
7636 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
7637 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
7638 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
7639 (grub_target_addr_t): Remove.
7640 (grub_target_size_t): Remove.
7641 (grub_target_ssize_t): Remove.
7642 * util/grub-install.in: Use new grub-*-setup.
7643 * util/grub-mkimagexx.c (Elf_Word): New define.
7644 (Elf_Half): Likewise.
7645 (Elf_Section): Likewise.
7646 (ELF_ST_TYPE): Likewise.
7647 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
7648 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
7649
7650 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7651
7652 Replace grub_target_addr with more appropriate types.
7653
7654 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
7655 grub_target_addr with grub_addr.
7656 * grub-core/commands/iorw.c (grub_cmd_read): Replace
7657 grub_target_addr with grub_port.
7658 (grub_cmd_write): Likewise.
7659 * grub-core/commands/memrw.c (grub_cmd_read): Replace
7660 grub_target_addr with grub_addr.
7661 (grub_cmd_write): Likewise.
7662 * grub-core/video/efi_uga.c (find_line_len): Likewise.
7663
7664 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7665
7666 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
7667 const qualifier for vendor_guid.
7668
7669 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7670
7671 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
7672 const qualifier.
7673 (efiemu_memequal): Likewise.
7674 (find_variable): Likewise.
7675
7676 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7677
7678 Fix missing console prototype on qemu-mips.
7679
7680 * include/grub/mips/qemu_mips/console.h: New file.
7681
7682 2012-02-27 Matthew Garrett <mjg@redhat.com>
7683 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7684
7685 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
7686 * include/grub/efi/efi.h: Likewise.
7687 * include/grub/efi/api.h: Add guid for EFI-specified variables.
7688 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
7689 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
7690 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
7691 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
7692 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
7693
7694 2012-02-27 Matthew Garrett <mjg@redhat.com>
7695
7696 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
7697
7698 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7699
7700 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
7701 error.
7702
7703 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7704
7705 * configure.ac: Remove inappropriate use of program_transform_name
7706 on grubdir and bootdir but allow explicit specification of those
7707 variables.
7708
7709 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7710
7711 * util/grub-mknetdir.in (grub_prefix): Removed.
7712 (subdir): Use @bootdirname@ and @grubdirname@.
7713
7714 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7715
7716 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
7717
7718 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7719
7720 * po/POTFILES.in: Regenerated.
7721
7722 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7723
7724 Remove improper use of program_transform_name on pkglibrootdir.
7725
7726 * configure.ac (pkglibrootdir): Removed.
7727 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
7728 * util/grub-mkimage.c: Likewise.
7729
7730 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7731
7732 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
7733 warning.
7734
7735 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7736
7737 * util/grub-install.in: Use file identifier if no UUID is available
7738 or user explicitly prompted for it.
7739
7740 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
7741
7742 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
7743 (freebsd_get_zfs): New function.
7744 (grub_freebsd_boot): Pass zfs UUID.
7745 (grub_cmd_freebsd): Set zfs UUID.
7746
7747 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7748
7749 * conf/Makefile.common (platformdir): Base on pkglibdir and not
7750 pkglibrootdir.
7751
7752 2012-02-27 Mike Gilbert <floppym@gentoo.org>
7753
7754 Add configure flag to control libzfs integration.
7755
7756 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
7757
7758 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7759
7760 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
7761 device.
7762 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
7763 small devices.
7764
7765 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7766
7767 Remove grub_{modname}_init and grub_{modname}_fini. They should never
7768 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
7769 be used on non-modules.
7770
7771 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
7772 Rename to grub_boot_init.
7773 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
7774 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
7775 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
7776 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
7777 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
7778 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
7779 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
7780 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
7781 includes.
7782 (grub_machine_init): Remove empty inits.
7783 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
7784 includes.
7785 (grub_machine_init): Remove empty inits.
7786 * grub-core/term/arc/console.c: Remove explicit proto.
7787 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
7788 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
7789 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7790 grub_at_keyboard_fini.
7791 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
7792 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
7793 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7794 grub_gfxterm_fini.
7795 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
7796 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
7797 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7798 grub_vgatext_fini.
7799 * grub-core/term/ieee1275/console.c: Remove explicit proto.
7800 * grub-core/term/serial.c (GRUB_MOD_INIT)
7801 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
7802 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7803 grub_serial_fini.
7804 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
7805 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
7806 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
7807 grub_terminfo_fini.
7808 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
7809 (GRUB_MOD_FINI): Likewise.
7810 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
7811 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
7812 (GRUB_MOD_FINI) [LOONGSON]: Rename to
7813 grub_video_radeon_fuloong2e_fini.
7814 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
7815 [LOONGSON]: Rename to grub_video_sis315pro_init.
7816 (GRUB_MOD_FINI) [LOONGSON]: Rename to
7817 grub_video_sis315pro_fini.
7818 * grub-core/video/sm712.c (GRUB_MOD_INIT)
7819 [LOONGSON]: Rename to grub_video_sm712_init.
7820 (GRUB_MOD_FINI) [LOONGSON]: Rename to
7821 grub_video_sm712_fini.
7822 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
7823 (grub_at_keyboard_fini): Likewise.
7824 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
7825 Don't declare grub_{modname}_init.
7826 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
7827 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
7828 New proto.
7829 (grub_keylayouts_fini) [!EMU]: Likewise.
7830 * include/grub/serial.h (grub_serial_init) [!EMU]:
7831 New proto.
7832 (grub_serial_fini) [!EMU]: Likewise.
7833 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
7834 New proto.
7835 (grub_terminfo_fini) [!EMU]: Likewise.
7836 * include/grub/video.h (grub_font_init) [!EMU]:
7837 New proto.
7838 (grub_font_fini) [!EMU]: Likewise.
7839 (grub_gfxterm_init) [!EMU]: Likewise.
7840 (grub_gfxterm_fini) [!EMU]: Likewise.
7841 (grub_video_sm712_init) [!EMU]: Likewise.
7842 (grub_video_sm712_fini) [!EMU]: Likewise.
7843 (grub_video_sis315pro_init) [!EMU]: Likewise.
7844 (grub_video_sis315pro_fini) [!EMU]: Likewise.
7845 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
7846 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
7847
7848 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7849
7850 Make nand a prefix for nand devices.
7851
7852 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
7853
7854 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7855
7856 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
7857 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
7858
7859 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7860
7861 * include/grub/env.h (grub_env_find): Remove prototype.
7862 * grub-core/kern/env.c (grub_env_find): Make static.
7863 (grub_env_set): Remove useless set.
7864
7865 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7866
7867 * grub-core/kern/i386/realmode.S: Remove useless align.
7868
7869 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7870
7871 * include/grub/dl.h (grub_dl_load_file): Don't export.
7872
7873 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7874
7875 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
7876 grub_dprintf.
7877
7878 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7879
7880 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
7881 grub_errors.
7882 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
7883 not reloading whole superblock but only the part which is really needed.
7884 Remove useless grub_errors.
7885 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
7886 grub_errors.
7887
7888 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7889
7890 Don't export grub_get_rtc.
7891
7892 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
7893 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
7894
7895 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7896
7897 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
7898
7899 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7900
7901 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
7902 argument since it can be deduced from diskfilter. All users updated.
7903
7904 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7905
7906 Remove prio_list.
7907
7908 * include/grub/list.h (grub_prio_list): Removed.
7909 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
7910 GRUB_COMMAND_PRIO_MASK.
7911 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
7912 GRUB_COMMAND_FLAG_ACTIVE.
7913 (grub_prio_list_insert): Removed.
7914 (grub_prio_list_remove): Likewise.
7915 (GRUB_AS_PRIO_LIST): Likewise.
7916 (GRUB_AS_PRIO_LIST_P): Likewise.
7917 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
7918 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
7919 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
7920 * grub-core/kern/command.c (grub_register_command_prio): Inline
7921 the prio_list code.
7922 (grub_unregister_command): Likewise.
7923
7924 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7925
7926 Fix interrupt mixup from previous commit.
7927
7928 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
7929 (grub_realidt): New var.
7930 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
7931 Load idt.
7932 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
7933 New declaration.
7934 (grub_relocator16_boot): Set grub_relocator16_idt.
7935 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
7936 (LOCAL(realidt)): ... this.
7937 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
7938 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
7939 (grub_realidt): New variable.
7940
7941 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7942
7943 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
7944 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
7945 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
7946 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
7947 Gettextize.
7948 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
7949 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
7950 * po/POTFILES.in: Regenerate.
7951
7952 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7953
7954 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
7955 errors.
7956
7957 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7958
7959 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
7960 \0.
7961 (add_length): Likewise.
7962
7963 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7964 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
7965
7966 GDB serial and backtrace support.
7967
7968 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
7969 (prot_to_real): Likewise.
7970 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
7971 * grub-core/Makefile.core.def (backtrace): New module.
7972 (gdb): Likewise.
7973 * grub-core/gdb/cstub.c: New file.
7974 * grub-core/gdb/gdb.c: Likewise.
7975 * grub-core/gdb/i386/idt.c: Likewise.
7976 * grub-core/gdb/i386/machdep.S: Likewise.
7977 * grub-core/gdb/i386/signal.c: Likewise.
7978 * grub-core/lib/i386/backtrace.c: Likewise.
7979 * grub-core/lib/backtrace.c: Likewise.
7980 * include/grub/backtrace.h: Likewise.
7981 * include/grub/gdb.h: Likewise.
7982 * include/grub/i386/gdb.h: Likewise.
7983
7984 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7985
7986 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
7987 New function.
7988 (add_length): Likewise.
7989 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
7990 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
7991 proto.
7992 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
7993 __argp_get_display_len.
7994
7995 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7996
7997 $"..." support in scripts.
7998
7999 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
8000 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
8001 * grub-core/script/yylex.l: Likewise.
8002 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
8003 value.
8004
8005 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8006
8007 * gentpl.py: Remove obsolete pkglib_DATA handling.
8008
8009 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8010
8011 Don't transform PACKAGE_TARNAME following a discussion on autoconf
8012 mailing list.
8013
8014 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
8015 * util/grub-kbdcomp.in: Likewise.
8016 * util/grub-mkconfig.in: Likewise.
8017 * util/grub-mkconfig_lib.in: Likewise.
8018 * util/grub-mknetdir.in: Likewise.
8019 * util/grub-mkrescue.in: Likewise.
8020 * util/grub-mkstandalone.in: Likewise.
8021 * util/grub-reboot.in: Likewise.
8022 * util/grub-set-default.in: Likewise.
8023 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8024
8025 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8026
8027 Remove GRUB_PREFIX.
8028
8029 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
8030 * util/grub.d/00_header.in: Compute prefix in the only place it's still
8031 used for backward compatibility.
8032
8033 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8034
8035 Add new all_video module.
8036
8037 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
8038 * grub-core/Makefile.core.def (all_video): New module.
8039 * grub-core/genmoddep.awk: Generate dependency of all_video from
8040 video.lst.
8041 * grub-core/lib/fake_module.c: New file.
8042 * grub-core/normal/main.c (features): Add feature_all_video_module.
8043 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
8044 don't do explicit search again.
8045 insmod all_video in load_video if available.
8046
8047 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8048
8049 Another round of string clarification and adding TRANSLATORS comments.
8050
8051 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8052
8053 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
8054
8055 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8056
8057 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
8058 to grub_ssize_t.
8059 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
8060 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
8061
8062 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8063
8064 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
8065 trailing newline implicitly. All users updated.
8066
8067 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8068
8069 Implement serial on IEEE1275 and EFI.
8070
8071 * docs/grub.texi (Platform-specific limitations): Fix the columen video
8072 on emu. Mention arc and emu as the only platforms without serial
8073 support.
8074 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
8075 ieee1275 platforms.
8076 * grub-core/term/efi/serial.c: New file.
8077 * grub-core/term/ieee1275/serial.c: Likewise.
8078 * grub-core/term/serial.c (grub_serial_find): Disable direct port
8079 specification if no ns8250 driver is available.
8080 (grub_cmd_serial): Likewise.
8081 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
8082 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
8083 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
8084 (grub_efi_parity_type_t): New type.
8085 (grub_efi_stop_bits_t): Likewise.
8086 (grub_efi_serial_io_interface): New struct.
8087 * include/grub/serial.h (grub_serial_port): Make 'broken' field
8088 available for all interfaces.
8089 Add EFI and IEEE1275 fields.
8090 (grub_ofserial_init): New proto.
8091 (grub_efiserial_init): Likeiwse.
8092 * util/grub.d/00_header.in: Don't check for the presence of serial
8093 module.
8094
8095 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8096
8097 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
8098 name as if it was an alias.
8099
8100 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
8101
8102 * grub-core/commands/lsacpi.c (options): Fix typo.
8103
8104 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
8105
8106 Convert grub-emu to argp.
8107
8108 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
8109 emu.
8110 * util/argp_common.c: Rename to ...
8111 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
8112 Add missing includes.
8113 * grub-core/kern/emu/main.c: Convert to argp.
8114 * po/POTFILES.in: Regenerate.
8115 * util/grub-install.in (usage): Make first letter lowcase in messages
8116 for uniformity.
8117 * util/grub-setup.c (options): Likewise.
8118
8119 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8120
8121 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
8122 Put back accidently commented-out code.
8123
8124 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8125
8126 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
8127 loop check using Brent algorithm.
8128 (grub_hfsplus_btree_search): Likewise.
8129
8130 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8131
8132 * util/grub-install.in: Fix usage of wrong device for PreP install.
8133
8134 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8135
8136 * conf/Makefile.common (CFLAGS_GNULIB): Add
8137 -Wno-unsafe-loop-optimizations.
8138 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
8139 on tools.
8140 * grub-core/commands/legacycfg.c: Add pragma to skip
8141 -Wunsafe-loop-optimizations.
8142 (check_password_md5_real): Fix loop counter type.
8143 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
8144 reading.
8145 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
8146 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
8147 loop condition.
8148 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
8149 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
8150 * grub-core/net/net.c (grub_net_route_address): Add safety loop
8151 condition.
8152 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
8153 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
8154 avoid possible infinite loops.
8155 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
8156 and -Wunsafe-loop-optimizations.
8157 * grub-core/script/yylex.l: Likewise.
8158 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
8159 (print_glyphs): Avoid infinite loops.
8160 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
8161
8162 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
8163
8164 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
8165 to avoid infinite loop.
8166 (disp_acpi_rsdt_table): Likewise.
8167
8168 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8169
8170 * grub-core/font/font.c (grub_font_load): Add support for default
8171 path for fonts ($prefix/fonts).
8172 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
8173 for checking if string is a path.
8174 * grub-core/normal/main.c (features): Add feature_default_font_path.
8175 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
8176 * util/grub.d/00_header.in: Use default directory if possible.
8177 * util/grub-install.in: Install unicode.pf2.
8178
8179 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8180
8181 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
8182 * po/Rules-swiss: New file.
8183 * po/swiss.sed: Likewise.
8184
8185 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
8186
8187 * grub-core/fs/btrfs.c (find_device): Fix typos.
8188 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
8189 * util/grub-mkrelpath.c (argp_parser): Likewise.
8190 Reported by: Yuri Chornoivan.
8191
8192 2012-02-23 Dalet Omega <daletomega@gmail.com>
8193
8194 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
8195 for usual informative messages.
8196
8197 2012-02-23 Dalet Omega <daletomega@gmail.com>
8198
8199 Starfield theme.
8200
8201 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
8202 * conf/Makefile.common: Define starfielddir.
8203 * configure.ac: Configure starfield.
8204 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
8205 * themes/starfield/README: Likewise.
8206 * themes/starfield/blob_w.png: Likewise.
8207 * themes/starfield/boot_menu_c.png: Likewise.
8208 * themes/starfield/boot_menu_e.png: Likewise.
8209 * themes/starfield/boot_menu_n.png: Likewise.
8210 * themes/starfield/boot_menu_ne.png: Likewise.
8211 * themes/starfield/boot_menu_nw.png: Likewise.
8212 * themes/starfield/boot_menu_s.png: Likewise.
8213 * themes/starfield/boot_menu_se.png: Likewise.
8214 * themes/starfield/boot_menu_sw.png: Likewise.
8215 * themes/starfield/boot_menu_w.png: Likewise.
8216 * themes/starfield/slider_c.png: Likewise.
8217 * themes/starfield/slider_n.png: Likewise.
8218 * themes/starfield/slider_s.png: Likewise.
8219 * themes/starfield/src/blob_nw.xcf: Likewise.
8220 * themes/starfield/src/bootmenu/: Likewise.
8221 * themes/starfield/src/bootmenu/center.xcf: Likewise.
8222 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
8223 * themes/starfield/src/bootmenu/side.xcf: Likewise.
8224 * themes/starfield/src/slider_c.xcf: Likewise.
8225 * themes/starfield/src/slider_n.xcf: Likewise.
8226 * themes/starfield/src/slider_s.xcf: Likewise.
8227 * themes/starfield/src/terminalbox/: Likewise.
8228 * themes/starfield/src/terminalbox/center.xcf: Likewise.
8229 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
8230 * themes/starfield/src/terminalbox/side.xcf: Likewise.
8231 * themes/starfield/starfield.png: Likewise.
8232 * themes/starfield/terminal_box_c.png: Likewise.
8233 * themes/starfield/terminal_box_e.png: Likewise.
8234 * themes/starfield/terminal_box_n.png: Likewise.
8235 * themes/starfield/terminal_box_ne.png: Likewise.
8236 * themes/starfield/terminal_box_nw.png: Likewise.
8237 * themes/starfield/terminal_box_s.png: Likewise.
8238 * themes/starfield/terminal_box_se.png: Likewise.
8239 * themes/starfield/terminal_box_sw.png: Likewise.
8240 * themes/starfield/terminal_box_w.png: Likewise.
8241 * themes/starfield/theme.txt: Likewise.
8242
8243 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
8244
8245 * util/grub.d/00_header.in: Add missing export theme.
8246
8247 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8248
8249 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
8250 already included.
8251 Reported by: Eren D.
8252
8253 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8254
8255 * conf/Makefile.common (grubdatadir): Removed.
8256 (Makefile.am): Move eveything grubdata to pkgdata.
8257
8258 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8259
8260 * grub-core/commands/acpihalt.c (get_sleep_type):
8261 Remove unused variable.
8262
8263 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8264
8265 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
8266 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
8267 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
8268 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
8269 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
8270 i18n with gettext no-op.
8271 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
8272 GRUB_ACPI_OPCODE_STRING_CONST.
8273 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
8274 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
8275
8276 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8277
8278 * po/POTFILES.in: Regenerate.
8279
8280 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8281
8282 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
8283 -Wno-error=missing-noreturn.
8284
8285 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8286
8287 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
8288 condition to avoid possibly infinite loops.
8289 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
8290 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
8291
8292 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8293
8294 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
8295 condition to avoid possibly infinite loops.
8296
8297 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8298
8299 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
8300 on show_error.
8301
8302 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8303
8304 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
8305
8306 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8307
8308 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
8309
8310 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8311
8312 * util/bin2h.c (usage): Add missing attribute noreturn.
8313
8314 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8315
8316 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
8317 if the size isn't divisible by 512.
8318
8319 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8320
8321 Make list_push and list_remove functions rather than inline functions
8322 to decrease size and avoid aliasing violations.
8323
8324 * include/grub/list.h (grub_list_push): Move to ...
8325 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
8326 * include/grub/list.h (grub_list_remove): Move to ...
8327 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
8328
8329 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
8330
8331 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
8332 and -Wunused-result.
8333
8334 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
8335
8336 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
8337 Reported by: Seth Goldberg
8338
8339 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
8340
8341 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
8342
8343 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
8344
8345 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
8346 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
8347 command line.
8348 * docs/grub.texi (Simple configuration): Document
8349 GRUB_CMDLINE_GNUMACH.
8350
8351 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
8352
8353 * conf/Makefile.common (platform_SCRIPTS): New variable.
8354 (platform_PROGRAMS): Likewise.
8355 * gentpl.py: Mark *,module and *.image for install.
8356 * grub-core/gdb_grub.in: Add a notice of expected environment.
8357 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
8358 (gmodule.pl): Likewise.
8359
8360 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
8361
8362 Replace grub_checkkey with grub_getkey_noblock.
8363
8364 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
8365 (grub_getkey_noblock): ... this. All users updated.
8366
8367 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
8368
8369 * grub-core/kern/emu/console.c: Move to ...
8370 * grub-core/term/emu/console.c: ...here.
8371 (grub_ncurses_getkey): Fix return value if no key is detected.
8372
8373 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8374
8375 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
8376 (grub_unit_test_fini): Likewise.
8377 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
8378
8379 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8380
8381 * include/grub/test.h (GRUB_UNIT_TEST)
8382
8383 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8384
8385 * grub-core/script/execute.c (grub_script_break): Clarify logic.
8386 Better error handling.
8387 (grub_script_return): Likewise.
8388 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
8389
8390 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8391
8392 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
8393 rimplicit redifinition.
8394
8395 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8396
8397 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
8398 GRUB.
8399
8400 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8401
8402 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
8403 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
8404 prompt here.
8405
8406 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8407
8408 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
8409 as GRUB_ERR_BUG. Don't malloc if no device is available.
8410
8411 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8412
8413 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
8414 Mark calling with invalid term as GRUB_ERR_BUG.
8415
8416 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8417
8418 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
8419 packets rather than raising an error.
8420
8421 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8422
8423 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
8424 in if.
8425
8426 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8427
8428 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
8429 diagnostic to dprintf.
8430 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
8431
8432 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8433
8434 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
8435 device name.
8436
8437 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8438
8439 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
8440 (grub_ntfs_iterate_dir): Likewise.
8441
8442 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8443
8444 Efiemu stylistic fixes and gettext.
8445
8446 * grub-core/efiemu/i386/loadcore32.c
8447 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
8448 * grub-core/efiemu/i386/loadcore64.c
8449 (grub_arch_efiemu_relocate_symbols64): Likewise.
8450 * grub-core/efiemu/i386/pc/cfgtables.c
8451 (grub_machine_efiemu_init_tables): Likewise.
8452 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
8453 (grub_efiemu_loadcore_initXX): Add a filename argument.
8454 All users updated.
8455 Improved error message.
8456 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
8457 Add a filename argument.
8458 All users updated.
8459 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
8460 Reclassify double relocation as GRUB_ERR_BUG.
8461
8462 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8463
8464 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
8465 handling.
8466
8467 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8468
8469 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
8470 on partition.
8471
8472 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8473
8474 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
8475
8476 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
8477
8478 Improve string. Gettextize.
8479
8480 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
8481
8482 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
8483 utils.
8484 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
8485
8486 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
8487
8488 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
8489 [GRUB_UTIL]: New function.
8490 (insert_array) [GRUB_UTIL]: Store partmaps.
8491 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
8492 partmaps.
8493 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
8494 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
8495 (probe_abstraction): Print diskfilter and not raid.
8496 Reported by: Lennart Sorensen
8497
8498 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
8499
8500 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
8501 * util/grub-mkimagexx.c (MASK3): New define.
8502 (add_value_to_slot_20b): Use MASK3.
8503 (add_value_to_slot_21): Likewise.
8504 (relocate_addresses): Fix format specification.
8505 (load_image): Explicitly init symtab_section.
8506
8507 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
8508
8509 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
8510 (grub_util_biosdisk_get_grub_dev): Fix format specification.
8511
8512 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
8513
8514 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
8515 on powerpc.
8516 Reported by: Lennart Sorensen
8517
8518 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
8519
8520 * gentpl.py: Add missing license header.
8521 * docs/grub.texi: Update copyright year.
8522
8523 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
8524
8525 Source grub-mkconfig_lib from the build directory at build time.
8526 Suggested by: Vladimir Serbinenko.
8527
8528 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
8529 * util/grub-install.in: Define pkgdatadir if not already set, and source
8530 grub-mkconfig_lib from there.
8531 * util/grub-kbdcomp.in: Likewise.
8532 * util/grub-mkconfig.in: Likewise.
8533 * util/grub-mknetdir.in: Likewise.
8534 * util/grub-mkrescue.in: Likewise.
8535 * util/grub-mkstandalone.in: Likewise.
8536 * util/grub-reboot.in: Likewise.
8537 * util/grub-set-default.in: Likewise.
8538 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8539
8540 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8541
8542 Increase warning level.
8543
8544 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
8545 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
8546 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
8547 (TARGET_CFLAGS): Likewise.
8548 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
8549 * grub-core/Makefile.core.def (decompressor_xz): Add
8550 -Wno-unreachable-code.
8551 (normal): Add -Wno-redundant-decls.
8552 (xzio): Add -Wno-unreachable-code.
8553 (lzopio): Add -Wno-redundant-decls -Wno-error.
8554 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
8555 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
8556 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
8557 * grub-core/kern/dl.c: Add exception to -Wcast-align.
8558 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
8559 * grub-core/kern/i386/coreboot/init.c: Add exception to
8560 -Wsuggest-attribute=noreturn.
8561 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
8562 * grub-core/kern/ia64/dl_helper.c: Likewise.
8563 * grub-core/kern/mips/dl.c: Likewise.
8564 * grub-core/kern/sparc64/dl.c: Likewise.
8565 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
8566 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
8567 (memcmp): Likewise.
8568 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
8569 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
8570 * grub-core/loader/mips/linux.c: Likewise.
8571 * grub-core/loader/multiboot_elfxx.c: Likewise.
8572 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
8573 * grub-core/video/sm712.c: Add exception to -Wcast-align.
8574 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
8575 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
8576 fixme.
8577 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
8578 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
8579 Fix prototype.
8580
8581 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8582
8583 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
8584 address.
8585
8586 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8587
8588 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
8589 Avoid improper use of strings.
8590 (grub_cmd_legacy_initrdnounzip): Likewise.
8591
8592 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8593
8594 * include/grub/emu/misc.h (grub_util_warn): Add missing format
8595 attribute.
8596 (grub_util_info): Likewise.
8597 (grub_util_error): Likewise.
8598
8599 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8600
8601 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
8602 * util/grub-fstest.c (fstest): Likewise.
8603
8604 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8605
8606 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
8607 (grub_md_sha512_real): Likewise.
8608 (grub_util_get_geli_uuid): Likewise.
8609 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
8610 (grub_util_biosdisk_open): Fix format specification.
8611 Respect format security.
8612 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
8613 (xrealloc): Likewise.
8614 (xasprintf): Likewise.
8615
8616 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8617
8618 * util/import_gcry.py: Include grub/crypto.h in init.c.
8619
8620 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8621
8622 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
8623 (generate_image): Make prefix a const char *.
8624 Fix format specifications. Respect format security.
8625 Avoid void * arithmetics.
8626 Avoid shadowing.
8627 (argp_parser): Remove unused variable. Respect format security.
8628 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
8629 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
8630 (count_funcs): Remove unused variable.
8631 (relocate_addresses): Fix format specification.
8632 Disable x86-64 with elf32. Remove unused variables.
8633 (add_fixup_entry): Avoid shadowing.
8634 (make_reloc_section): Fix format specification.
8635 Use assert.
8636 (locate_sections): Fix format specifications.
8637 (load_image): Avoid shadowing.
8638
8639 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8640
8641 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
8642 Fix format specifications. Respect format security.
8643 Don't translate already translated grub_errmsg.
8644 (argp_parser): Remove unused variable
8645
8646 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8647
8648 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
8649
8650 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8651
8652 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
8653 (main): Likewise. Use xmalloc. Respect format security.
8654
8655 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8656
8657 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
8658 a const char *.
8659 (argp_parser): Remove unused variable.
8660
8661 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8662
8663 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
8664 (add_pixel): Make static.
8665 (add_font): Likewise.
8666 (write_string_section): Make name and str a const char *.
8667 (write_be16_section): Make name a const char *.
8668 (print_glyphs): Make static.
8669 (write_font_ascii_bitmap): Likewise.
8670 (write_font_width_spec): Likewise.
8671 (write_font_pf2): Likewise.
8672 (argp_parser): Remove unused variable.
8673 Respect format security.
8674 (main): Avoid shadowing. Respect format security.
8675
8676 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8677
8678 * util/grub-editenv.c (argp_parser): Make static.
8679 (create_envblk_file): Use xmalloc.
8680 (open_envblk_file): Likewise.
8681 Resepect format security.
8682 (set_variables): Respect format security.
8683
8684 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8685
8686 * util/getroot.c (grub_find_device): Respect format security.
8687 (get_mdadm_uuid): Remove unused variable.
8688 (grub_util_pull_device): Dont call gettext on already translated
8689 grub_errmsg.
8690 (find_system_device): Remove unused variable.
8691 (grub_util_get_grub_dev): Likewise.
8692 (grub_make_system_path_relative_to_its_root): Respect format security.
8693
8694 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8695
8696 * util/grub-fstest.c (execute_command): Make first argument
8697 a const char *.
8698 (read_file): Avoid shadowing.
8699 Reuse underlying error message if device open fails.
8700 (cmd_cmp): Respect format security.
8701 (root): Make const char *.
8702 (fstest): Remove args argument and use global copy.
8703 Respect format security.
8704 (argp_parser): Make static.
8705 (main): Make default_root const char *.
8706
8707 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8708
8709 * util/grub-mount.c (root): Make const char *.
8710 (execute_command): Make first argument a const char *.
8711 (fuse_init): Respect format security.
8712 (argp_parser): Make static. Remove unused variable.
8713 (main): Make default_root a const char *.
8714 Respect format security.
8715
8716 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8717
8718 * util/grub-probe.c (probe): Don't call gettext on already translated
8719 grub_errmsg.
8720 Remove unused variables.
8721 (argp_parser): Remove unused variable.
8722
8723 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8724
8725 * util/grub-script-check.c (argp_parser): Remove unused variable.
8726 (main): Rename read to curread to avoid shadowing.
8727
8728 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8729
8730 * util/misc.c (grub_util_write_image_at): Fix format specification.
8731 (grub_util_write_image): Likewise.
8732 (grub_script_execute_argument_to_string): Removed (unused).
8733 (grub_script_execute_menuentry): Likewise.
8734 (grub_putchar): Likewise.
8735
8736 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8737
8738 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
8739 (FUNCTION) [GRUB_UTIL]: Likewise.
8740 (VARIABLE) [GRUB_UTIL]: Likewise.
8741
8742 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8743
8744 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
8745 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
8746
8747 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8748
8749 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
8750 buffer.
8751
8752 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8753
8754 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
8755 (LzmaEnc_SaveState): Removed (unused).
8756 (LzmaEnc_RestoreState): Likewise.
8757 (LzmaEnc_InitPriceTables): Made static.
8758 (LzmaEnc_Construct): Likewise.
8759 (LzmaEnc_FreeLits): Likewise.
8760 (LzmaEnc_Destruct): Likewise.
8761 (LzmaEnc_Init): Likewise.
8762 (LzmaEnc_InitPrices): Likewise.
8763 (LzmaEnc_Finish): Likewise.
8764 (LzmaEnc_PrepareForLzma2): Removed (unused).
8765 (LzmaEnc_MemPrepare): Likewise.
8766 (LzmaEnc_GetNumAvailableBytes): Likewise.
8767 (LzmaEnc_GetCurBuf): Likewise.
8768 (LzmaEnc_CodeOneMemBlock): Likewise.
8769
8770 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8771
8772 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
8773 (grub_util_ldm_embed): Likewise.
8774
8775 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8776
8777 * util/grub-editenv.c (print_var): Rename name to varname to
8778 avoid shadowing.
8779 (main): Rename index to curindex to avoid shadowing.
8780 Make filename a const char *.
8781
8782 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8783
8784 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
8785 to arg_getline to avoid shadowing.
8786
8787 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8788
8789 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
8790 disk_ to avoid shadowing.
8791
8792 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8793
8794 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
8795 curindex to avoid shadowing.
8796 Make static.
8797 (MatchFinder_GetNumAvailableBytes): Make static.
8798
8799 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8800
8801 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
8802 avoid shadowing.
8803
8804 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8805
8806 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
8807 argument from encrypt to do_encrypt to avoid shadowing.
8808
8809 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8810
8811 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
8812 incorrect nesting of #if's.
8813
8814 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8815
8816 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
8817 checks which are always false on some platforms.
8818 (grub_cmd_lsacpi): Likewise.
8819 * grub-core/kern/misc.c (grub_strtoul): Likewise.
8820 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
8821 Likewise.
8822
8823 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8824
8825 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
8826 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
8827
8828 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8829
8830 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
8831 re_dfa_t to avoid breaking alignment invariants.
8832 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
8833 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
8834
8835 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8836
8837 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
8838 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
8839
8840 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8841
8842 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
8843 Fix declaration.
8844
8845 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8846
8847 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
8848 conserve alignment invariants.
8849 (grub_ehci_ehcc_read16): Likewise.
8850 (grub_ehci_oper_read32): Likewise.
8851 (grub_ehci_oper_write32): Likewise.
8852 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
8853 Conserve alignment invariants.
8854
8855 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8856
8857 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
8858 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
8859 declarations.
8860
8861 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8862
8863 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
8864 Remove unused variable.
8865
8866 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8867
8868 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
8869 Remove set in if.
8870
8871 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8872
8873 * include/grub/net.h: Remove double declarations.
8874
8875 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8876
8877 Remove "payload" command in ia64 Linux loader since I couldn't
8878 find any evidence of it being used for anything.
8879 Replace "relocate" command with an environment variable
8880
8881 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
8882 fields.
8883 (ia64_boot_payload): Removed.
8884 (last_payload): Likewise.
8885 (RELOCATE_OFF): Likewise.
8886 (RELOCATE_ON): Likewise.
8887 (RELOCATE_FORCE): Likewise.
8888 (relocate): Likewise.
8889 (free_pages): Don't free payloads.
8890 (grub_load_elf64): Use common error messages.
8891 Use "linux_relocate" variable.
8892 Increase the space after boot_params.
8893 (grub_cmd_payload): Removed.
8894 (grub_cmd_relocate): Likewise.
8895 (grub_cmd_fpswa): Improve messages.
8896 (cmd_payload): Removed.
8897 (cmd_relocate): Likewise.
8898 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
8899 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
8900
8901 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8902
8903 Convert UHCI to DMA framework.
8904
8905 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
8906 (grub_uhci_pci_iter): Fill new members
8907 (grub_alloc_td): Use P2V and V2P functions.
8908 (grub_free_queue): Likewise.
8909 (grub_alloc_qh): Likewise.
8910 (grub_uhci_setup_transfer): Likewise.
8911 (grub_uhci_check_transfer): Likewise.
8912
8913 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8914
8915 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
8916 Remove assignment in if while on it.
8917
8918 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8919
8920 * util/grub-mkstandalone.in: Fix modules directory.
8921
8922 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8923
8924 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
8925 on i386-pc target.
8926 (argp_parser): Accept "auto" as compression specification.
8927
8928 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8929
8930 Fix `help' with unloaded modules.
8931
8932 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
8933 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
8934 (grub_dyncmd_dispatcher): Small stylistic fix.
8935 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
8936 explicit help is requested.
8937
8938 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8939
8940 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
8941 Explicitly init restart while on it.
8942
8943 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8944
8945 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
8946 uninited variable.
8947
8948 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8949
8950 * util/grub-mknetdir.in: Use . rather than source for POSIX
8951 compatibility.
8952
8953 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8954
8955 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
8956
8957 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8958
8959 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
8960 variable.
8961
8962 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8963
8964 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
8965 without quotes.
8966
8967 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8968
8969 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
8970
8971 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8972
8973 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
8974 iteration of partitions.
8975
8976 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
8977
8978 Improve gettext support. Stylistic fixes and error handling fixes while
8979 on it.
8980
8981 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8982
8983 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
8984 part. Instead setup the correct stack in RM.
8985 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
8986 for stack.
8987 * include/grub/i386/relocator_private.h: New file.
8988
8989 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
8990
8991 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
8992 argument.
8993 * util/grub-fstest.c (options): Add missing DEVICE part.
8994
8995 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
8996
8997 Clarify and unify messages.
8998
8999 * grub-core/commands/hashsum.c (options): Unify messages.
9000 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
9001 literal-only message as translatable.
9002 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
9003 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
9004 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
9005 commands.
9006 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
9007 key, not the key used to unlock. Clarify what it's used for.
9008 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
9009 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
9010 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
9011 * util/grub-editenv.c (options): Unify "verbose" message.
9012 * util/grub-fstest.c (read_file): Unify error message.
9013 (fstest): Add quotes around commands.
9014 (options): Unify "verbose" message.
9015 * util/grub-install.in: Add quotes around variable name.
9016 * util/grub-kbdcomp.in: Unify error message.
9017 * util/grub-mkfont.c (main): Likewise.
9018 * util/grub-mkrescue.in: Likewise.
9019 * util/grub-mklayout.c (options): Unify "verbose" message.
9020 * util/grub-mkstandalone.in: Unify help and verbose messages.
9021 * util/grub-mount.c (options): Unify "verbose" message.
9022 * util/grub-probe.c (options): Likewise.
9023 * util/grub-script-check.c (options): Likewise.
9024 * util/grub-setup.c (setup): Unify no-terminator message.
9025 (options): Use DEVICE and not DEV.
9026 Unify "verbose" message.
9027 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
9028
9029 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
9030
9031 Improve and unify messages.
9032
9033 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
9034 name. All users updated.
9035 Print filename in error.
9036 (read_device_map): Print filename in error.
9037 * util/getroot.c (grub_guess_root_devices): Print filename in error.
9038 (grub_util_get_os_disk): Likewise.
9039 (grub_util_biosdisk_get_grub_dev): Likewise.
9040 (grub_util_check_block_device): Likewise.
9041 (grub_util_check_char_device): Likewise.
9042 (grub_make_system_path_relative_to_its_root): Likewise.
9043 * util/grub-editenv.c (create_envblk_file): Likewise.
9044 (open_envblk_file): Likewise.
9045 (write_envblk): Likewise.
9046 * util/grub-fstest.c (cmd_cp): Likewise.
9047 (cmd_cat): Likewise.
9048 (cmd_cmp): Likewise.
9049 * util/grub-menulst2cfg.c (main): Likewise.
9050 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
9051 (write_font_width_spec): Likewise.
9052 (write_font_pf2): Likewise.
9053 * util/grub-mkimage.c (generate_image): New argument outname.
9054 All users updated.
9055 Remove unreacheable message.
9056 (options): Unify messages.
9057 (help_filter): Likewise.
9058 * util/grub-mklayout.c (usage): Removed (unused).
9059 (main): Print filename in error.
9060 * util/grub-mkrescue.in: Fix wrong quoting.
9061 * util/grub-setup.c (setup): Print filename in error.
9062 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
9063 (check_sas): Likewise.
9064 * util/misc.c (grub_util_get_fp_size): Removed.
9065 (grub_util_get_image_size): Print filename in error.
9066 (grub_util_read_at): Removed.
9067 (grub_util_read_image): Print filename in error.
9068 (grub_util_load_image): Likewise.
9069 (grub_util_write_image_at): New argument filename. All users updated.
9070 Print filename in error.
9071 (grub_util_write_image): New argument filename. All users updated.
9072 Print filename in error.
9073 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
9074 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
9075
9076 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
9077
9078 * grub-core/Makefile.core.def (pxechain): New module.
9079 * grub-core/loader/i386/pc/pxechainloader.c: New file.
9080 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
9081 function.
9082 (grub_pc_net_config_real): Use grub_pxe_get_cached.
9083 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
9084
9085 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
9086
9087 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
9088 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
9089 * include/grub/err.h (grub_error_saved): New struct.
9090 (grub_errmsg): Make array size explicit.
9091 * include/grub/misc.h (grub_error_save): New function.
9092 (grub_error_load): Likewise.
9093 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
9094 (grub_error_push): Update `errno' member name.
9095 (grub_error_pop): Likewise
9096 * grub-core/net/tftp.c (tftp_data): New member save_err.
9097 (tftp_receive): Save error.
9098 (tftp_open): Restore error.
9099
9100 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
9101
9102 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
9103 to real mode down to execute A20-related code in protected mode as
9104 intended.
9105
9106 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
9107
9108 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
9109 NULL when the argument `level' has an unexpected value.
9110
9111 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
9112
9113 Move platform-dependent files from $prefix to $prefix/$platform.
9114
9115 * config.h.in (GRUB_TARGET_CPU): New definition.
9116 (GRUB_PLATFORM): Likewise.
9117 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
9118 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
9119 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
9120 * grub-core/kern/dl.c (grub_dl_load): Likewise.
9121 * grub-core/normal/autofs.c (read_fs_list): Likewise.
9122 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
9123 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
9124 * grub-core/normal/term.c (read_terminal_list): Likewise.
9125 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
9126 $prefix/locale.
9127 (grub_gettext_init_ext): Likewise.
9128 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
9129 grub_platform.
9130 * util/grub-install.in: Update directories.
9131 * util/grub-mknetdir.in: Likewise.
9132 * util/grub-mkrescue.in: Likewise.
9133
9134 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
9135
9136 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
9137 grub_error framework. All users updated.
9138
9139 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
9140
9141 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
9142 lists (by always binsearching), improve caching (cache strings
9143 used for binsearch, not only results), improve
9144 maintainability (by using more structured binary search) and correct
9145 error handling.
9146
9147 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
9148
9149 * grub-core/script/execute.c (grub_script_return): Fix warning.
9150
9151 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
9152
9153 * grub-core/script/execute.c (grub_script_return): Fix potential
9154 NULL-dereference.
9155 Reported by: Jim Meyering.
9156
9157 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9158
9159 * po/POTFILES.in: Regenerate.
9160 * util/grub-install.in: Gettextize the strings missed in first pass.
9161
9162 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9163
9164 * Makefile.util.def (grub-mkdevicemap): Removed.
9165 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
9166 * include/grub/util/deviceiter.h: Removed.
9167 * util/deviceiter.c: Likewise.
9168 * util/getroot.c (grub_util_get_os_disk): New function.
9169 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
9170 replacement for EFI.
9171 * util/grub-mkdevicemap.c: Removed.
9172 * util/grub-probe.c (probe): Handle PRINT_DISK.
9173 (argp_parser): Handle -t disk.
9174
9175 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9176
9177 * util/grub-mkfont.c: Migrate to argp.
9178 * util/grub-mklayout.c: Likewise.
9179 * util/grub-mkpasswd-pbkdf2.c: Likewise.
9180 * util/grub-mkrelpath.c: Likewise.
9181 * util/grub-probe.c: Likewise.
9182 * util/grub-script-check.c: Likewise.
9183
9184 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9185
9186 * util/grub-reboot.in: Add missing datarootdir.
9187 Add missing newline.
9188 * util/grub-set-default.in: Add missing datarootdir.
9189 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
9190 * util/grub-mkrescue.in: Likewise.
9191
9192 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9193
9194 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
9195
9196 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9197
9198 * util/grub-kbdcomp.in: Add decent help and gettextize.
9199 * docs/man/grub-kbdcomp.h2m: New file.
9200
9201 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9202
9203 Migrate grub-mkimage.c to argp.
9204
9205 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
9206 (grub-setup): Likewise.
9207 * util/grub-setup.c (print_version): Move to ...
9208 * util/argp_common.c (print_version): ... here.
9209 * util/grub-setup.c (argp_program_version_hook): Move to ...
9210 * util/argp_common.c (argp_program_version_hook): ... here.
9211 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
9212 safety.
9213 * util/grub-mkimage.c (main): Migrate to argp.
9214
9215 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9216
9217 * util/grub-mkrescue.in: Use same message as
9218 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
9219 for better translations.
9220
9221 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9222
9223 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
9224 options with generic grub-mkrescue.in with the goal of future
9225 merge.
9226
9227 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9228
9229 * grub-core/kern/mm.c: Add missing include of i18n.h
9230 * grub-core/lib/relocator.c: Likewise.
9231
9232 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9233
9234 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
9235 error.
9236 (allocate_pages): Check return value.
9237 Replace fatal with error.
9238 (grub_linux_boot): Replace printf with dprintf.
9239 Check find_mmap_size return value.
9240 Replace fatal with error.
9241 Don't call grub_machine_fini.
9242 (grub_load_elf64): Replace printf with dprintf.
9243 (grub_cmd_linux): Likewise.
9244 (grub_cmd_initrd): Likewise.
9245 (grub_cmd_payload): Likewise.
9246
9247 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9248
9249 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
9250 message.
9251 * grub-core/video/radeon_fuloong2e.c
9252 (grub_video_radeon_fuloong2e_setup): Likewise.
9253 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
9254 * grub-core/video/video.c (grub_video_set_mode): Don't override
9255 standard out of memory message.
9256
9257 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
9258
9259 NetBSD disk wedge support.
9260
9261 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
9262 [__NetBSD__]: Handle NetBSD disk wedges.
9263 * util/getroot.c (convert_system_partition_to_system_disk)
9264 [__NetBSD__]: Likewise.
9265
9266 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
9267
9268 * util/grub-mkconfig.in: Use umask rather than chmod to create
9269 grub.cfg.new to avoid insecure grub.cfg.
9270
9271 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9272
9273 * grub-core/commands/ls.c: Gettextize.
9274 * grub-core/commands/setpci.c: Likewise.
9275 * grub-core/commands/videotest.c: Likewise.
9276 * grub-core/disk/geli.c: Likewise.
9277 * grub-core/kern/mm.c: Likewise.
9278 * grub-core/lib/relocator.c: Likewise.
9279 * grub-core/loader/efi/appleloader.c: Likewise.
9280 * grub-core/loader/i386/xnu.c: Likewise.
9281 * grub-core/loader/ia64/efi/linux.c: Likewise.
9282 * grub-core/loader/xnu.c: Likewise.
9283 * grub-core/net/dns.c: Likewise.
9284 * grub-core/net/net.c: Likewise.
9285 * grub-core/script/lexer.c: Likewise.
9286 * grub-core/script/parser.y: Likewise.
9287 * grub-core/script/yylex.l: Likewise.
9288 * util/getroot.c: Likewise.
9289 * util/grub-setup.c: Likewise.
9290
9291 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9292
9293 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
9294 number.
9295
9296 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9297
9298 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
9299
9300 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9301
9302 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
9303 macro.
9304 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
9305 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
9306
9307 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9308
9309 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
9310 * util/grub-install.in: Gettextize.
9311 * util/grub-mkconfig.in: Likewise.
9312 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
9313 if not available.
9314 (grub_warn): Gettextize.
9315 * util/grub-mknetdir.in: Gettextize.
9316 * util/grub-mkrescue.in: Likewise.
9317 * util/grub-mkstandalone.in: Likewise.
9318 * util/grub-reboot.in: Likewise.
9319 * util/grub-set-default.in: Likewise.
9320 * util/grub.d/00_header.in: Likewise.
9321 * util/grub.d/10_hurd.in: Likewise.
9322 * util/grub.d/10_kfreebsd.in: Likewise.
9323 * util/grub.d/10_linux.in: Likewise.
9324 * util/grub.d/10_netbsd.in: Likewise.
9325 * util/grub.d/10_windows.in: Likewise.
9326 * util/grub.d/20_linux_xen.in: Likewise.
9327 * util/grub.d/30_os-prober.in: Likewise.
9328 * po/POTFILES-shell.in: Regenerate.
9329
9330 2012-02-03 Richard Laager <rlaager@wiktel.com>
9331
9332 * util/grub-mkimage.c (main): Fix format-security warning.
9333 * util/grub-mkrelpath.c (main): Likewise.
9334 * util/grub-probe.c (main): Likewise.
9335
9336 2012-02-03 Richard Laager <rlaager@wiktel.com>
9337
9338 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
9339 failure.
9340 Put back lost PRINT_DRIVE.
9341
9342 2012-02-03 Richard Laager <rlaager@wiktel.com>
9343
9344 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
9345 (grub_guess_root_devices): Replace strlen with sizeof.
9346 Avoid crash.
9347 (find_root_devices_from_poolname): Remove unused variable.
9348 Handle raidzN.
9349
9350 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9351
9352 Support install on multi-device filesystems.
9353
9354 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
9355 (grub_guess_root_devices): ...this. Return char **. All users updated.
9356 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
9357 Removed.
9358 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
9359 (find_root_devices_from_poolname): ... here.
9360 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
9361 Support zfs-fuse.
9362 (grub_guess_root_device): Rename to ...
9363 (grub_guess_root_devices): ... this. Return char **. All users updated.
9364 * util/grub-install.in: Handle multi-device filesystems.
9365 * util/grub-probe.c (probe). Make device_names a char **. Add delim
9366 argument. All users updated.
9367 Handle multi-device filesystems.
9368 Use 'delim' as separator.
9369 Remove device check to allow filesystems on file.
9370 (main): Support -0 argument. Handle multi-device.
9371 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
9372 Fix a cross-device check while on it.
9373 (arguments): Remove root_dev.
9374 (argp_parser): Remove -r.
9375 (main): Remove root_dev.
9376
9377 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
9378
9379 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
9380
9381 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
9382
9383 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
9384 symbol.
9385 Reported by: NODA, Kai <nodakai>.
9386
9387 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
9388
9389 Fix ehci on amd64.
9390
9391 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
9392 pointers.
9393 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
9394 (grub_ehci_setup_qh): Likewise.
9395 (grub_ehci_find_qh): Likewise.
9396 (grub_ehci_transaction): Likewise.
9397 (grub_ehci_setup_transfer): Likewise.
9398 (grub_ehci_check_transfer): Likewise.
9399 (grub_ehci_portstatus): Likewise.
9400 (grub_ehci_detect_dev): Likewise.
9401 (grub_ehci_transfer_controller_data): New field td_last_phys.
9402 (grub_ehci_setup_transfer): Fill td_last_phys.
9403 (grub_ehci_check_transfer): Use td_last_phys.
9404
9405 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
9406
9407 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
9408 if no submenu is present.
9409
9410 2012-02-01 Aleš Nesrsta <starous@volny.cz>
9411
9412 CBI support.
9413
9414 * include/grub/usb.h (grub_usbms_protocol_t): New values
9415 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
9416 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
9417 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
9418 (grub_usbms_dev): Add subclass, protocol and intrpt.
9419 Remove in_maxsz and out_maxsz.
9420 (grub_usbms_reset): Rename to ...
9421 (grub_usbms_bo_reset): .. this.
9422 (grub_usbms_cbi_cmd): New function.
9423 (grub_usbms_cbi_reset): Likewise.
9424 (grub_usbms_reset): Likewise.
9425 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
9426 (grub_usbms_transfer): Rename to ...
9427 (grub_usbms_transfer_bo): ... this.
9428 (grub_usbms_transfer_cbi): Likewise.
9429 (grub_usbms_transfer): Likewise.
9430
9431 2012-02-01 Aleš Nesrsta <starous@volny.cz>
9432 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
9433
9434 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
9435 the support for the CS5536 modification thereos and few bugfixes.
9436
9437 * grub-core/Makefile.core.def (ehci): New module.
9438 * grub-core/bus/usb/ehci.c: New file.
9439 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
9440 port and hubaddr. All users updated.
9441 Save port and hubaddr into dev structure.
9442 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
9443 define.
9444 * include/grub/pci.h (grub_dma_phys2virt): New function.
9445 (grub_dma_virt2phys): Likewise.
9446 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
9447
9448 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
9449
9450 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
9451 check as some mkfs implementations omit it.
9452
9453 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
9454
9455 * docs/grub.texi (Unicode): Mention identifier and space limitations.
9456
9457 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
9458
9459 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
9460 Add new member volname2.
9461 (grub_jfs_label): Use volname2 if available.
9462
9463 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
9464
9465 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
9466 over last_mounted as seen in image generated by mkfs.nilfs2.
9467 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
9468
9469 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
9470
9471 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
9472 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
9473 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
9474
9475 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
9476
9477 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
9478 over the sector.
9479
9480 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
9481
9482 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
9483 subvolume name (by removing a bogus and useless check).
9484
9485 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
9486
9487 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
9488 sizeof while on it.
9489
9490 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
9491
9492 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
9493 (grub_scsi_read_capacity10): ... this.
9494 (grub_scsi_read_capacity16): New function.
9495 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
9496 0xffffffff.
9497 Fix off-by-one error.
9498 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
9499 64-bit unsigned.
9500 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
9501 (grub_scsi_read_capacity10): ... this.
9502 (grub_scsi_read_capacity_data): Rename to ...
9503 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
9504 (grub_scsi_read_capacity16): New struct.
9505 (grub_scsi_read_capacity16_data): Likewise.
9506 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
9507 grub_scsi_cmd_read_capacity10.
9508 New command grub_scsi_cmd_read_capacity16.
9509
9510 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
9511
9512 SCSI >2TiB support.
9513
9514 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
9515 (grub_scsi_write16): Likewise.
9516 (grub_scsi_read): Use read16 when necessary.
9517 (grub_scsi_write): Likewise.
9518 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
9519 (grub_scsi_write16): Likewise.
9520 (grub_scsi_cmd_t): Add READ16 and WRITE16.
9521
9522 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
9523
9524 SCSI write support (for usbms mainly).
9525
9526 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
9527 a const pointer.
9528 (grub_scsi_write): Implement.
9529 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
9530
9531 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
9532
9533 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
9534 variable.
9535
9536 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9537
9538 * grub-core/lib/posix_wrap/string.h (memchr): New function.
9539
9540 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9541
9542 * po/POTFILES.in: Regenerate.
9543
9544 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9545
9546 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
9547 with grub_printf to avoid unnecessary fatal failure.
9548
9549 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9550
9551 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
9552 (INT_MAX): Likewise.
9553 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
9554 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
9555 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
9556 (strcpy): Likewise.
9557 (strstr): Likewise.
9558 (strchr): Likewise.
9559 (strncpy): Likewise.
9560 (strcat): Likewise.
9561 (strncat): Likewise.
9562 (strcoll): Likewise.
9563 * include/grub/types.h (GRUB_SHRT_MAX): New define.
9564 (GRUB_INT_MAX): Likewise.
9565
9566 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9567
9568 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
9569 unexpected error.
9570 (optimize_utf8): Likewise.
9571 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
9572
9573 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9574
9575 * grub-core/boot/i386/pc/lnxboot.S: Use
9576 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
9577 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
9578 location.
9579 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
9580 definition.
9581 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
9582
9583 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9584
9585 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
9586 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
9587 now to avoid double free.
9588 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
9589 hostdisk.
9590 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
9591 * util/grub-probe.c (escape_of_path): Always return a new copy.
9592 (print_full_name): Escape path.
9593 (probe): Don't call grub_util_devname_to_ofpath on NULL.
9594 Fix hints on abstractions.
9595
9596 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9597
9598 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
9599 Don't add "root" line if no compatibility hont is available.
9600 Suggested by: Seth Goldberg.
9601
9602 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9603
9604 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
9605 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
9606 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
9607 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
9608
9609 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9610
9611 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
9612
9613 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9614
9615 * util/grub-pe2elf.c (ehdr): Make static.
9616 (shdr): Likewise.
9617 (num_sections): Likewise.
9618 (offset): Likewise.
9619
9620 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9621
9622 Eliminate ofpath limits and possible overflows.
9623
9624 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
9625 (OF_PATH_MAX): Removed.
9626 (MAX_DISK_CAT): New const.
9627 (find_obppath): Use allocated rather than preallocated buffer.
9628 Return result. Argument of_path removed. All users updated.
9629 Add missing fdstat.
9630 (xrealpath): New function.
9631 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
9632 Allocate rather than use preallocated buffer. All users updated.
9633 (__of_path_common): Use allocated rather than preallocatecd buffer.
9634 Return result. Argument of_path removed. All users updated.
9635 (vendor_is_ATA): Read only needed part form the file.
9636 (check_sas): Allocate depending on contents rather than fixed.
9637 (main) [STANDALONE]: Handle NULL result.
9638
9639 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9640
9641 * grub-core/normal/completion.c (iterate_dev): Close the disk.
9642
9643 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9644
9645 Cryptodisk write support.
9646
9647 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
9648 (grub_cryptodisk_decrypt): Moved logic to ...
9649 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
9650 (grub_cryptodisk_write): Implement.
9651 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
9652 (grub_util_fd_write): ... this. Make global.
9653 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
9654
9655 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9656
9657 * include/grub/list.h (grub_list_remove): Don't crash if element is
9658 removed twice.
9659
9660 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9661
9662 Rename ofconsole to console.
9663
9664 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
9665 as sysnonym to console.
9666 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
9667 * grub-core/term/ieee1275/console.c: ... this. All users updated.
9668 Rename grub_ofconsole_ to grub_console_. All users updated
9669 (grub_console_term_output): Rename "ofconsole" to "console".
9670 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
9671 as "console".
9672
9673 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9674
9675 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
9676 handling.
9677 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
9678 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
9679 GRUB_DISK_DEVICE_FILE_ID.
9680
9681 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9682
9683 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
9684 and improve performance.
9685
9686 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9687
9688 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
9689 missing ieee1275/ prefix on whole disk.
9690
9691 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9692
9693 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
9694 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
9695
9696 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9697
9698 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
9699
9700 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
9701
9702 Merge common RAID and LVM logic to an abstract diskfilter.
9703 Add LDM support using the same framework.
9704
9705 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
9706 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
9707 (libgrubmods): Remove grub-core/disk/raid.c and
9708 grub-core/partmap/gpt.c.
9709 * grub-core/Makefile.core.def (ldm): New module.
9710 (raid): Renamed to diskfilter. All users updated.
9711 * grub-core/disk/raid.c: Moved to ...
9712 * grub-core/disk/diskfilter.c: ... here.
9713 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
9714 (lv_num): New var.
9715 (find_array): Renamed to ...
9716 (find_lv): ... this. Support multi-LV. Skip nameless LVs
9717 (grub_is_array_readable): Renamed to ...
9718 (grub_is_lv_readable): ... this. Support multinode hierarchy.
9719 (insert_array): New argument id.
9720 (is_node_readable): New function.
9721 (scan_device): Rename to ...
9722 (scan_disk): .. this. Restrict to one disk.
9723 (scan_devices): New function.
9724 (grub_diskfilter_iterate): Support multi-LV.
9725 Skip invisible and nameless LVs.
9726 (grub_diskfilter_memberlist): Support multi-LV.
9727 (grub_diskfilter_read_node): New function.
9728 (grub_raid_read): Most of logic moved to ...
9729 (read_segment): ... here
9730 (read_lv): New function.
9731 (grub_diskfilter_get_vg_by_uuid): New function.
9732 (grub_diskfilter_make_raid): Likewise.
9733 * grub-core/disk/ldm.c: New file.
9734 * grub-core/disk/lvm.c (vg_list): Removed.
9735 (lv_count): Likewise.
9736 (scan_depth): Likewise.
9737 (is_lv_readable): Likewise.
9738 (grub_lvm_getvalue): Advance pointer past the number.
9739 (find_lv): Removed.
9740 (do_lvm_scan): Refactored into ...
9741 (grub_lvm_detect): ... this. Support raid.
9742 (grub_lvm_iterate): Removed.
9743 (grub_lvm_memberlist): Likewise.
9744 (grub_lvm_open): Likewise.
9745 (grub_lvm_close): Likewise.
9746 (read_lv): Likewise.
9747 (read_node): Likewise.
9748 (is_node_readable): Likewise.
9749 (is_lv_readable): Likewise.
9750 (grub_lvm_read): Likewise.
9751 (grub_lvm_write): Likewise.
9752 (grub_lvm_dev): Use diskfilter
9753 (GRUB_MOD_INIT): Likewise.
9754 (GRUB_MOD_FINI): Likewise.
9755 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
9756 new interface.
9757 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
9758 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
9759 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
9760 grub_diskfilter_read_node.
9761 Fix a bug with xor.
9762 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
9763 grub_diskfilter_read_node.
9764 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
9765 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
9766 (grub_disk_dev_iterate): Move from here...
9767 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
9768 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9769 Make global.
9770 (grub_hostdisk_find_partition_start): Likewise.
9771 (grub_hostdisk_os_dev_to_grub_drive): New function.
9772 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
9773 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
9774 * util/getroot.c (make_device_name): ... here.
9775 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9776 Move to ...
9777 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
9778 * grub-core/kern/emu/hostdisk.c
9779 (convert_system_partition_to_system_disk): Move to ...
9780 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
9781 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
9782 * util/getroot.c (device_is_wholedisk): ... here.
9783 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
9784 * util/getroot.c (find_system_device): ... here.
9785 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
9786 Move to ...
9787 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
9788 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
9789 Move to ...
9790 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
9791 Handle LDM.
9792 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
9793 Move to ...
9794 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
9795 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
9796 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
9797 DISKFILTER.
9798 * include/grub/raid.h: Renamed to ...
9799 * include/grub/diskfilter.h: ... this.
9800 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
9801 (GRUB_RAID_LAYOUT_*): Make into array.
9802 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
9803 (grub_diskfilter_vg): New struct.
9804 (grub_diskfilter_pv_id): Likewise.
9805 (grub_raid_member): Removed.
9806 (grub_raid_array): Likewise.
9807 (grub_diskfilter_pv): New struct.
9808 (grub_diskfilter_lv): Likewise.
9809 (grub_diskfilter_segment): Likewise.
9810 (grub_diskfilter_node): Likewise.
9811 (grub_diskfilter_get_vg_by_uuid): New proto.
9812 (grub_raid_register): Inline.
9813 (grub_diskfilter_unregister): Likewise.
9814 (grub_diskfilter_make_raid): New proto.
9815 (grub_diskfilter_vg_register): Likewise.
9816 (grub_diskfilter_read_node): Likewise.
9817 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
9818 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
9819 (grub_util_is_ldm): Likewise.
9820 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
9821 (grub_hostdisk_find_partition_start): Likewise.
9822 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
9823 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
9824 New definition.
9825 (grub_gpt_partition_map_iterate): New proto.
9826 * include/grub/lvm.h (grub_lvm_vg): Removed.
9827 (grub_lvm_pv): Likewise.
9828 (grub_lvm_lv): Likewise.
9829 (grub_lvm_segment): Likewise.
9830 (grub_lvm_node): Likewise.
9831 * util/getroot.c [...]
9832 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
9833 (probe_abstraction): Likewise.
9834 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
9835 (main): Remove dead logic.
9836
9837 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
9838
9839 Simplify root device discover and don't fail when trying to open
9840 incorrect devices.
9841
9842 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
9843 function.
9844 (get_diskname_from_path): Likewise.
9845 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
9846 of iterating.
9847
9848 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
9849
9850 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
9851
9852 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
9853
9854 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
9855 pastthe end.
9856
9857 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
9858
9859 * util/grub-install.in: Add missing \.
9860 Reported by: gentoofan
9861
9862 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
9863
9864 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
9865 (direct_read): Use correct compressed size.
9866 (grub_squash_read_data): Likewise.
9867
9868 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
9869
9870 * docs/grub.texi (Platform limitations): New section.
9871 (Platform-specific operations): Likewise.
9872 * docs/grub-dev.texi (Porting): Likewise.
9873
9874 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9875
9876 IEEE1275 disk write support.
9877
9878 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
9879 const void *.
9880 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
9881 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
9882 and seek loginc to ...
9883 (grub_ofdisk_prepare): ... here.
9884 (grub_ofdisk_write): Implement.
9885
9886 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9887
9888 ARC disk write support.
9889
9890 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
9891 (reopen): New argument writable. All users updated.
9892 Handle required access mode.
9893 (grub_arcdisk_write): Implement.
9894 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
9895 (grub_arc_firmware_vector): Make buffer to write a const buffer.
9896
9897 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9898
9899 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
9900 (read_sblock): Don't attempt to read superblocks outside the disk size.
9901
9902 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9903
9904 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
9905 first superblock to find the second one when possible.
9906
9907 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
9908
9909 * util/grub-install.in: Fix an ARC bug.
9910 Print a warning if no platform-specific setup is available.
9911
9912 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9913
9914 Use static allocation rather than scratch pointer in reed_solomon.
9915 It decreases its size significantly and avoids a variable in .text.
9916
9917 * grub-core/lib/reed_solomon.c (scratch): Removed.
9918 (chosenstat): New const or static array.
9919 (sigma): Likewise.
9920 (errpot): Likewise.
9921 (errpos): Likewise.
9922 (sy): Likewise.
9923 (mstat): Likewise.
9924 (errvals): Likewise.
9925 (eqstat): Likewise.
9926 (pol_evaluate): Replace x with log_x argument. All users updated.
9927 (syndroms): Removed.
9928 (gauss_solve): Use statically allocated arrays.
9929 (rs_recover): Likewise.
9930 Calculate syndroms directly.
9931 (decode_block): Use statically allocated arrays.
9932 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
9933 (main) [TEST]: Allow -DTEST -DSTANDALONE.
9934
9935 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9936
9937 Eliminate fixed limit on reed solomon decoder length.
9938
9939 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
9940 rather than hardcoding the address.
9941 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
9942 no_reed_solomon_length.
9943 Move gate_a20 to no-reed-solomon part.
9944 Don't force a particular size of no reed-solomon part.
9945 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
9946 Removed.
9947 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
9948 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
9949
9950 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9951
9952 * grub-core/commands/wildcard.c (match_files): Handle filenames
9953 without explicit device.
9954 (wildcard_expand): Don't add explicit device if not already present.
9955 * tests/grub_script_echo1.in: Add a new expansion test.
9956
9957 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9958
9959 Replace single-linked with double-linked lists. It results in more
9960 compact and more efficient code.
9961
9962 * grub-core/kern/list.c (grub_list_push): Moved from here ...
9963 * include/grub/list.h (grub_list_push): ... to here. Set prev.
9964 (grub_list_remove): Moved from here ...
9965 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
9966 (grub_prio_list_insert): Set prev.
9967 * include/grub/list.h (grub_list): Add prev. All users updated.
9968
9969 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
9970
9971 Handle newer autotools. Add some missing quotes while on it.
9972
9973 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
9974 (pkglib_DATA): Move grub-mkconfig_lib from here ...
9975 (pkgdata_DATA): ... here.
9976 * Makefile.util.def (update-grub_lib): Removed.
9977 * conf/Makefile.common (pkglib_DATA): Removed.
9978 (pkglib_SCRIPTS): Likewise.
9979 (pkgdata_DATA): New variable.
9980 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
9981 needed.
9982 Add missing quotes.
9983 Remove unused variable while on it.
9984 * tests/util/grub-shell.in: Likewise.
9985 * util/grub-install.in: Likewise.
9986 * util/grub-mkconfig.in: Likewise.
9987 * util/grub-mknetdir.in: Likewise.
9988 * util/grub-mkrescue.in: Likewise.
9989 * util/grub-mkstandalone.in: Likewise.
9990 * util/grub.d/00_header.in: Likewise.
9991 * util/grub.d/10_hurd.in: Likewise.
9992 * util/grub.d/10_illumos.in: Likewise.
9993 * util/grub.d/10_kfreebsd.in: Likewise.
9994 * util/grub.d/10_linux.in: Likewise.
9995 * util/grub.d/10_netbsd.in: Likewise.
9996 * util/grub.d/10_windows.in: Likewise.
9997 * util/grub.d/20_linux_xen.in: Likewise.
9998 * util/grub.d/30_os-prober.in: Likewise.
9999 * util/update-grub_lib.in: Removed.
10000
10001 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
10002
10003 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
10004 a workaround for intel problem.
10005
10006 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
10007 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
10008 2012-01-23 pfsmorigo
10009
10010 * util/grub-install.in: Support dd'in into PreP partition.
10011 * util/grub-probe.c (probe): Support discovering partition type.
10012 (main): Support -t msdos_parttype.
10013
10014 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
10015
10016 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
10017 infinite recursion using counter.
10018 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
10019 init to skip it if the magic check fails.
10020 (dec_stream_header): Init s->crc32.
10021
10022 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
10023 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
10024 2012-01-22 Richard Laager <rlaager@wiktel.com>
10025
10026 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
10027 All users updated.
10028 (find_bestub): Determine correct size.
10029 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
10030 (scan_disk): Align the size down.
10031 Call check pool before find_bestub to have ashift.
10032
10033 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
10034
10035 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
10036 dprintf in no-malloc zone.
10037
10038 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
10039
10040 * configure.ac: Add back in test for limits.h.
10041
10042 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10043
10044 Support 4K-sector NTFS.
10045
10046 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
10047 (grub_ntfs_data): Remove blocksize.
10048 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
10049 Remove data argument. All users updated.
10050
10051 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10052
10053 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
10054 being in .text to avoid dprel references.
10055 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
10056 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
10057 (grub_arch_highmemsize): Likewise.
10058 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
10059 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
10060 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
10061
10062 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
10063
10064 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
10065
10066 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
10067 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
10068
10069 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
10070
10071 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
10072 GRUB_UTIL.
10073 (grub_set_datetime_cmos): Likewise.
10074
10075 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
10076
10077 Make XZ compression parameters dependent on target and not host CPU.
10078
10079 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
10080 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
10081
10082 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
10083
10084 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
10085 set but not used variable.
10086
10087 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10088
10089 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
10090 created when no uuid support is compiled into mkfs.reiser.
10091
10092 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10093
10094 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
10095 (utf8_to_macroman): Do the opposite.
10096 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
10097
10098 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10099
10100 * configure.ac: Refise build qemu_mips w/o unifont.
10101
10102 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10103
10104 Eliminate grub_min/grub_max prone to overflow usage.
10105
10106 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
10107 (poll_nonroot_hub): Likewise.
10108 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
10109 (grub_affs_label): Likewise.
10110 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
10111 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
10112 (grub_hfs_label): Likewise.
10113 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
10114 * grub-core/fs/zfs/zfs.c (MIN): Remove.
10115 (zap_leaf_array_equal): Use grub_size. Remove MIN.
10116 (zap_leaf_array_get): Likewise.
10117 (dnode_get_path): Likewise.
10118 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
10119 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
10120 * grub-core/script/execute.c (grub_script_break): Likewise.
10121 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
10122 grub_max.
10123 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
10124 * include/grub/misc.h (grub_min): Removed.
10125 (grub_max): Likewise.
10126
10127 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10128
10129 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
10130 direct.inode = 0.
10131
10132 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10133
10134 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
10135
10136 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10137
10138 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
10139
10140 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10141
10142 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
10143 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
10144
10145 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10146
10147 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
10148 rather than a hack for grub_strncasemap.
10149
10150 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10151
10152 Support multiple initrds
10153 Note: part of this was accidently committed in r3739.
10154
10155 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
10156 initrd.
10157 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
10158 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
10159 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
10160 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10161 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10162
10163 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10164
10165 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
10166 disks with unknown size.
10167 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
10168
10169 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10170
10171 Remove defines pertaining to arbitrary limits not affecting GRUB
10172 anymore.
10173
10174 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
10175 (EXT2_MAX_SYMLINKCNT): Likewise.
10176 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
10177 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
10178 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
10179 (GRUB_PXE_MAX_BLKSIZE): Likewise.
10180 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
10181 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
10182 (DN_MAX_OBJECT_SHIFT): Likewise.
10183 (DN_MAX_OFFSET_SHIFT): Likewise.
10184 (DN_MAX_OBJECT): Likewise.
10185 (DNODES_PER_LEVEL_SHIFT): Likewise.
10186 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
10187 (SPA_MAXBLOCKSIZE): Likewise.
10188 (SPA_BLOCKSIZES): Likewise.
10189 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
10190 (MZAP_MAX_BLKSZ): Likewise.
10191
10192 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10193
10194 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
10195 handle NULL appropriately.
10196 Remove MIN.
10197
10198 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
10199
10200 Fix efiemu.
10201
10202 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
10203 cpu/types.h.
10204 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
10205 * configure.ac: Fix efiemu check.
10206
10207 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
10208
10209 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
10210 grub_probe.
10211 Reported by: adamwill
10212
10213 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
10214
10215 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
10216
10217 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
10218
10219 Fix handling of wide characters in gfxterm.
10220
10221 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
10222 (clear_char): Likewise.
10223 (paint_char): Skip code == NULL chars.
10224 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
10225
10226 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
10227
10228 * grub-core/normal/charset.c: Move comment to right place.
10229
10230 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
10231
10232 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
10233 (GRUB_AFFS_FLAG_FFS): Put back where it was.
10234 (grub_affs_mount): Revert the correct version checking.
10235
10236 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
10237
10238 * docs/grub.texi (Unicode): Mention several other unsupported features.
10239
10240 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
10241
10242 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
10243 case statements as compile-time one.
10244 (direct_read): Prevent spurious warnings.
10245 (grub_squash_read_data): Likewise.
10246
10247 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
10248
10249 Various squash4 fixes and LZO and XZ support.
10250
10251 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
10252 Add xzembed source files.
10253 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
10254 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
10255 (grub_squash_inode): New subtype long_dir.
10256 (SQUASH_TYPE_LONG_DIR): New inode type.
10257 (COMPRESSION): New enum.
10258 (XZBUFSIZ): New const.
10259 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
10260 (read_chunk): Use data->decompress.
10261 (zlib_decompress): New function.
10262 (lzo_decompress): Likewise.
10263 (xz_decompress): Likewise.
10264 (squash_mount): Set new data fields.
10265 (grub_squash_iterate_dir): Handle long dir.
10266 (squash_unmount): Free xzdec and xzbuf.
10267 (grub_squash_open): Check ino type.
10268 (direct_read): Stylistic fixes. Use data->decompress.
10269 (grub_squash_read_data): Likewise.
10270 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
10271 (get_byte): Likewise.
10272 (grub_zlib_disk_read): Removed.
10273 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
10274 (GRUB_POSIX_BOOL_DEFINED): New define.
10275 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
10276 * grub-core/lib/xzembed/xz.h: Addmissing includes.
10277 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
10278 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
10279
10280 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
10281
10282 Don't override more informative errors.
10283
10284 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
10285 * grub-core/font/font.c (open_section): Likewise.
10286 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
10287 filename. Don't override errors.
10288 (grub_cmd_openbsd_ramdisk): Don't override errors.
10289 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
10290 (grub_cmd_initrd): Likewise.
10291 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10292 (grub_cmd_initrd): Likewise.
10293 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
10294 (grub_cmd_linux): Likewise.
10295 (grub_cmd_initrd): Likewise.
10296 (grub_cmd_payload): Likewise.
10297 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
10298 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
10299 (grub_cmd_module): Likewise.
10300 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10301 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
10302 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
10303 (grub_cmd_xnu_mkext): Likewise.
10304 (grub_cmd_xnu_ramdisk): Likewise.
10305 (grub_xnu_check_os_bundle_required): Likewise.
10306 (grub_xnu_load_kext_from_dir): Likewise.
10307 (grub_cmd_xnu_kextdir): Likewise.
10308 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
10309
10310 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10311
10312 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
10313 as 1024 in block size field. Found on one of my test images.
10314 Small optimisation while on it.
10315
10316 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10317
10318 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
10319 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
10320 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
10321 performance fixes while on it.
10322 (grub_sfs_close): Fix memory leak while on it.
10323 (grub_sfs_label): Convert Latin1 to UTF-8.
10324
10325 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10326
10327 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
10328 space to avoid overflows.
10329 (grub_hfs_label): Convert from macroman to UTF-8.
10330
10331 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10332
10333 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
10334
10335 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10336
10337 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
10338
10339 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10340
10341 * unicode: Import Unicode 6.0 data.
10342
10343 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10344
10345 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
10346 outside of range.
10347
10348 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10349
10350 Avoid cutting in the middle of UTF-8 character.
10351
10352 * include/grub/charset.h (grub_getend): New function.
10353 * grub-core/script/function.c (grub_script_function_find): Use
10354 grub_getend.
10355 * grub-core/normal/completion.c (add_completion): Likewise.
10356
10357 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10358
10359 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
10360 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
10361 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
10362 (GRUB_UNICODE_TAG_END): Likewise.
10363 (GRUB_UNICODE_LAST_VALID): Likewise.
10364
10365 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10366
10367 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
10368 len and make it smaller. All users updated.
10369 * util/import_unicode.py: Put length and not end character.
10370 Check length.
10371
10372 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10373
10374 Make better Unicode-compliant and unify some UTF-8 code pathes.
10375
10376 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
10377 valid character.
10378 (grub_is_valid_utf8): Use grub_utf8_process.
10379 Check resulting code range.
10380 (grub_utf8_to_ucs4): Use grub_utf8_process.
10381 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
10382 valid character.
10383
10384 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10385
10386 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
10387
10388 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10389
10390 * docs/grub.texi (Filesystems): Mention AFS.
10391
10392 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
10393
10394 * docs/grub.texi (Filesystems): Clarify restrictions.
10395 (Regexp): Mention non-Unicode regexp behaviour.
10396 (Other): Mention non-Unicode matching behaviour.
10397
10398 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
10399
10400 Make HFS implementation use MacRoman.
10401
10402 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
10403 (macroman): New const array.
10404 (macroman_to_utf8): New function.
10405 (utf8_to_macroman): Likewise.
10406 (grub_hfs_find_dir): Use utf8_to_macroman.
10407 (grub_hfs_dir): Use macroman_to_utf8.
10408 Set case_insensitive.
10409
10410 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
10411
10412 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
10413
10414 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
10415
10416 Integrate hints into autogeneration scripts.
10417
10418 * docs/grub.texi (Filesystems): Add a hostdisk example.
10419 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
10420 (grub-probe): Add ofpath.
10421 * gentpl.py: Remove group nosparc64.
10422 * grub-core/commands/search.c (cache_entry): New struct.
10423 (cache): New var.
10424 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
10425 * grub-core/commands/search_wrap.c (options): Add platform-specific
10426 hint options.
10427 (grub_cmd_search): Handle platform-specific hints.
10428 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
10429 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
10430 (grub_util_biosdisk_data): Likewise.
10431 (grub_util_biosdisk_open): Set device_map.
10432 (read_device_map): Handle "" as indication of no map.
10433 Set device_map.
10434 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
10435 (grub_util_biosdisk_get_compatibility_hint): New function.
10436 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
10437 * include/grub/emu/hostdisk.h
10438 (grub_util_biosdisk_get_compatibility_hint): New proto.
10439 * util/grub-install.in: Don't call grub-mkdevicemap.
10440 Add platform-specific hint to load.cfg.
10441 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
10442 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
10443 hints. Set root preliminary to compatibility hint, not to OS name.
10444 * util/grub-probe.c (PRINT_*): Add hints.
10445 (print): Make static.
10446 (escape_of_path): New function.
10447 (guess_bios_drive): Likewise.
10448 (guess_efi_drive): Likewise.
10449 (guess_baremetal_drive): Likewise.
10450 (print_full_name): Likewise.
10451 (probe): Handle hints.
10452 (main): Likewise.
10453 * util/ieee1275/devicemap.c: Removed.
10454 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
10455 updated.
10456 (grub_util_devname_to_ofpath): Return NULL on failure.
10457
10458 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
10459 resource leak.
10460 * util/getroot.c (grub_util_pull_device): Fix memory leak.
10461
10462 * po/POTFILES.in: Regenerated.
10463
10464 Allow purely long options
10465
10466 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
10467 (SHORT_ARG_USAGE): Likewise.
10468 (grub_arg_show_help): Compare opt with help_options.
10469 (parse_option): Receive opt as argument. If makes big simplificatons.
10470 All users updated
10471
10472 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
10473
10474 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
10475 Restructure to avoid warning.
10476
10477 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
10478
10479 * util/grub-install.in: Account for possible escaped comma in device
10480 name.
10481
10482 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
10483
10484 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
10485 channel.
10486
10487 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
10488
10489 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
10490 allocation and zero-setting.
10491 (grub_ieee1275_get_devname): Check that alias is complete.
10492
10493 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
10494
10495 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
10496 unaligned segments.
10497
10498 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
10499
10500 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
10501 prefix.
10502 (grub_ofdisk_open): Check and discard ieee1275 prefix.
10503 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
10504 Add ieee1275 prefix.
10505
10506 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10507
10508 * docs/grub.texi (Filesystems): Update.
10509
10510 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10511
10512 Support odc, newc and bigendian cpio formats.
10513
10514 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
10515 * grub-core/Makefile.core.def (newc): New module.
10516 (odc): Likewise.
10517 (cpio_be): Likewise.
10518 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
10519 (MAGIC): Likewise.
10520 (MAGIC2): Likewise.
10521 (head) [MODE_ODC]: Adapt for the format.
10522 (head) [MODE_NEWC]: Likewise.
10523 (head) [!MODE_*]: Write fields of interest as arrays.
10524 (MAGIC_USTAR): Removed.
10525 (read_number) [MODE_NEWC]: Change to hex.
10526 (read_number) [!MODE_*]: Parse binary arrays.
10527 (grub_cpio_find_file): Factor out the code for better structure and
10528 always use read_number.
10529 (grub_cpio_mount): Use MAGIC and MAGIC2.
10530 (grub_cpio_dir): Exit on first hook non-0 return.
10531 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
10532 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
10533 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
10534 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
10535 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
10536 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
10537 * grub-core/fs/newc.c: New file.
10538 * grub-core/fs/odc.c: Likewise.
10539 * grub-core/fs/cpio_be.c: Likewise.
10540
10541 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10542
10543 Fix handling of tar numbers occupying the whole field.
10544
10545 * grub-core/fs/cpio.c (read_number): New function.
10546 (grub_cpio_find_file): Use read_number instead of strtoull.
10547
10548 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10549
10550 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
10551 occupying the whole field size.
10552
10553 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
10554
10555 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
10556
10557 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10558
10559 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
10560
10561 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
10562
10563 * grub-core/Makefile.core.def (lzma_decompress): Add missing
10564 TARGET_IMG_LDFLAGS.
10565
10566 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10567
10568 * util/getroot.c (ESCAPED_PATH_MAX): New define.
10569 (mountinfo_entry): Increase the field size to take escaping into
10570 account.
10571 (find_root_device_from_libzfs): Add one byte to size of strings for
10572 security.
10573
10574 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10575
10576 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
10577 an assert.
10578 * util/grub-setup.c (setup): Likewise.
10579
10580 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
10581
10582 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
10583 _LzmaDecodeA.
10584
10585 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
10586
10587 * docs/grub.texi (Internationalisation): New section.
10588
10589 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
10590
10591 * docs/grub.texi (Loopback booting): New section.
10592
10593 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
10594
10595 * util/grub-mkstandalone.in: Fix minor typo errors.
10596
10597 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
10598
10599 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
10600
10601 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
10602 net/icmp.c and net/icmp6.c.
10603 (http): New module.
10604 (priority_queue): Likewise.
10605 * grub-core/io/bufio.c: Rewritten.
10606 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
10607 TYPE_WITH_CONFIGFILE_OPTION.
10608 (legacy_commands): Add bootp and dhcp.
10609 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
10610 (grub_legacy_parse): Likewise.
10611 * grub-core/lib/priority_queue.c: New file.
10612 * grub-core/net/arp.c: Add missing license header.
10613 (arp_find_entry): Removed.
10614 (arp_find_entry): Likewise.
10615 (grub_net_arp_resolve): Rename to ...
10616 (grub_net_arp_send_request): ...this.
10617 (grub_net_arp_receive): New card argument.
10618 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
10619 Set router and DNS server.
10620 (grub_net_configure_by_dhcp_ack): Handle routing information.
10621 (grub_cmd_bootp): Set checksum.
10622 (grub_bootp_init): Remove net_dhcp.
10623 * grub-core/net/dns.c: New file.
10624 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
10625 completion.
10626 (get_card_packet): Handle allocation.
10627 (grub_efinet_findcards): Set mtu.
10628 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
10629 (get_card_packet): Handle allocation.
10630 (emucard): Set mtu.
10631 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
10632 (GRUB_MOD_INIT): Set mtu.
10633 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
10634 mtu.
10635 (get_card_packet): Handle allocation.
10636 (grub_ofnet_findcards): Set mtu.
10637 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
10638 assert.
10639 (grub_net_recv_ethernet_packet): Handle IPv6.
10640 * grub-core/net/http.c: New file.
10641 * grub-core/net/icmp.c: Likewise.
10642 * grub-core/net/icmp6.c: Likewise.
10643 * grub-core/net/ip.c (ip6addr): New type.
10644 (ip6hdr): Likewise.
10645 (reassemble): Likewise.
10646 (cmp): New function.
10647 (reassembles): New variable.
10648 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
10649 (id): New variable.
10650 (send_fragmented): New function.
10651 (grub_net_send_ip_packet): Rename to ...
10652 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
10653 Handle non-UDP.
10654 (grub_net_recv_ip_packets): Rename to ...
10655 (handle_dgram): ... this. Check checksum. Handle non-UDP.
10656 (free_rsm): New function.
10657 (free_old_fragments): Likewise.
10658 (grub_net_recv_ip4_packets): New function.
10659 (grub_net_send_ip6_packet): Likewise.
10660 (grub_net_send_ip_packet): Likewise.
10661 (grub_net_recv_ip6_packets): Likewise.
10662 (grub_net_recv_ip_packets): Likewise.
10663 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
10664 (LINK_LAYER_CACHE_SIZE): New const.
10665 (link_layer_find_entry): New function.
10666 (grub_net_link_layer_add_address): Likewise.
10667 (grub_net_link_layer_resolve_check): Likewise.
10668 (grub_net_link_layer_resolve): Likewise.
10669 (grub_net_ipv6_get_slaac): Likewise.
10670 (grub_net_ipv6_get_link_local): Likewise.
10671 (grub_cmd_ipv6_autoconf): Likewise.
10672 (parse_ip): Handle one number representation.
10673 (parse_ip6): New functoion.
10674 (match_net): Handle IPv6.
10675 (grub_net_resolve_address): Handle IPv6 and DNS.
10676 (grub_net_resolve_net_address): Handle IPv6.
10677 (route_cmp): New function.
10678 (grub_net_route_address): Find best route.
10679 (grub_net_addr_to_str): Handle IPv6.
10680 (grub_net_addr_cmp): New function.
10681 (grub_net_add_addr): Register local route.
10682 (print_net_address): Handle net address.
10683 (grub_net_poll_cards): Retransmit TCP.
10684 (grub_net_poll_cards_idle_real): Likewise.
10685 (have_ahead): New function.
10686 (grub_net_seek_real): Use underlying seek.
10687 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
10688 * grub-core/net/tcp.c: New file.
10689 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
10690 (cmp): New function.
10691 (ack): Likewise.
10692 (tftp_receive): Handle unordered input.
10693 (destroy_pq): New function.
10694 (tftp_close): Close pq.
10695 * grub-core/net/udp.c: Put missing license header.
10696 (grub_net_udp_socket): New function.
10697 (udp_socket_register): Likewise.
10698 (grub_net_udp_close): Likewise.
10699 (grub_net_recv_udp_packet): Check checksum.
10700 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
10701 * include/grub/misc.h (grub_memchr): New function.
10702 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
10703 (grub_net_card_driver): Return buf in recv.
10704 (grub_net_slaac_mac_list): New struct.
10705 (grub_network_level_protocol_id): Add ipv6.
10706 (grub_net_network_level_addr): Likewise.
10707 (grub_net_network_level_net_addr): Likewise.
10708 (grub_net_app_protocol): Add seek.
10709 (grub_net_socket): Removed.
10710 (grub_net_sockets): Likewise.
10711 (grub_net_socket_register): Likewise.
10712 (grub_net_socket_unregister): Likewise.
10713 (FOR_NET_SOCKETS): Likewise.
10714 (grub_net_add_addr): Add const.
10715 (GRUB_NET_BOOTP_*): New enum.
10716 (grub_net_addr_cmp): New proto.
10717 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
10718 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
10719 (grub_net_hwaddr_to_str): NEw proto.
10720 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
10721 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
10722 (grub_dns_init): New proto.
10723 (grub_dns_fini): Likewise.
10724 (grub_net_tcp_retransmit): Likewise.
10725 (grub_net_link_layer_add_address): Likewise.
10726 (grub_net_link_layer_resolve_check): Likewise.
10727 (grub_net_link_layer_resolve): Likewise.
10728 (grub_net_dns_lookup): Likewise.
10729 (grub_net_add_dns_server): Likewise.
10730 (grub_net_remove_dns_server): Likewise.
10731 (GRUB_NET_TRIES): New const.
10732 (GRUB_NET_INTERVAL): Likewise.
10733 * include/grub/net/arp.h: Mostly rewritten.
10734 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
10735 * include/grub/net/ip.h: Mostly rewritten.
10736 * include/grub/net/netbuff.h: Indent.
10737 * include/grub/net/tcp.h: New file.
10738 * include/grub/net/udp.h: Mostly rewritten.
10739 * include/grub/priority_queue.h: New file.
10740 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
10741 (grub_swap_bytes64_compile_time): Likewise.
10742 (grub_cpu_to_be16_compile_time): Likewise.
10743 (grub_cpu_to_be32_compile_time): Likewise.
10744 (grub_cpu_to_be64_compile_time): Likewise.
10745 (grub_be_to_cpu64_compile_time): Likewise.
10746
10747 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
10748
10749 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
10750 UINT_TO_PTR with cast.
10751
10752 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10753
10754 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
10755 don't use them.
10756
10757 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10758
10759 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
10760 already there.
10761
10762 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10763
10764 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
10765 confusing ipxe.
10766
10767 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10768
10769 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
10770 Add missing const attribute.
10771 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
10772 Likewise.
10773 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
10774 Likewise.
10775
10776 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10777
10778 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
10779 misaligned access.
10780 (serpent_setkey): Likewise.
10781 (serpent_encrypt_internal): Likewise.
10782 (serpent_decrypt_internal): Likewise.
10783 (serpent_encrypt): Don't put an alignment-increasing cast.
10784 (serpent_decrypt): Likewise.
10785 (serpent_test): Likewise.
10786
10787 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10788
10789 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
10790
10791 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10792
10793 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
10794
10795 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
10796 grub_addr_t casts.
10797 (PTR_TO_UINT64): Likewise.
10798 (PTR_TO_UINT32): Likewise.
10799
10800 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10801
10802 * util/grub-mkimage.c (generate_image): Decrease the higher limit
10803 because of stack.
10804 * util/grub-setup.c (setup): Don't add redundancy past the higher load
10805 limit.
10806
10807 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10808
10809 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
10810 text_width > available width a bit more gracefully.
10811
10812 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10813
10814 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
10815 current address calculation.
10816
10817 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10818
10819 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
10820 stack.
10821 (encode_block): Likewise.
10822
10823 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10824
10825 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
10826 certainety.
10827
10828 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10829
10830 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
10831 non-RS part to avoid RS messing with GDT.
10832 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
10833 Increase to suit in realmode routines.
10834
10835 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
10836
10837 * grub-core/kern/i386/realmode.S: Increase alignment.
10838 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
10839
10840 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10841
10842 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
10843 be deterministic.
10844 (syndroms): Compute 0 syndrom.
10845 (rs_recover): Use 0 syndrom.
10846
10847 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10848
10849 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
10850
10851 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10852
10853 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
10854 brackets.
10855
10856 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10857
10858 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
10859 account.
10860 (get_top_pad): Likewise.
10861 (get_right_pad): Likewise.
10862 (get_bottom_pad): Likewise.
10863
10864 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10865
10866 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
10867
10868 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10869
10870 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
10871 attribute as the structure isn't guaranteed to be properly aligned.
10872 (grub_efi_pci_device_path): Likewise.
10873 (grub_efi_pccard_device_path): Likewise.
10874 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
10875 specify the size of `memory_type'.
10876 (grub_efi_vendor_device_path): Likewise.
10877 (grub_efi_controller_device_path): Likewise.
10878 (grub_efi_acpi_device_path): Likewise.
10879 (grub_efi_expanded_acpi_device_path): Likewise.
10880 (grub_efi_atapi_device_path): Likewise.
10881 (grub_efi_scsi_device_path): Likewise.
10882 (grub_efi_fibre_channel_device_path): Likewise.
10883 (grub_efi_1394_device_path): Likewise.
10884 (grub_efi_usb_device_path): Likewise.
10885 (grub_efi_usb_class_device_path): Likewise.
10886 (grub_efi_i2o_device_path): Likewise.
10887 (grub_efi_mac_address_device_path): Likewise.
10888 (grub_efi_ipv4_device_path): Likewise.
10889 (grub_efi_ipv6_device_path): Likewise.
10890 (grub_efi_infiniband_device_path): Likewise.
10891 (grub_efi_uart_device_path): Likewise.
10892 (grub_efi_vendor_messaging_device_path): Likewise.
10893 (grub_efi_hard_drive_device_path): Likewise.
10894 (grub_efi_cdrom_device_path): Likewise.
10895 (grub_efi_vendor_media_device_path): Likewise.
10896 (grub_efi_file_path_device_path): Likewise.
10897 (grub_efi_protocol_device_path): Likewise.
10898 (grub_efi_piwg_device_path): Likewise.
10899 (grub_efi_bios_device_path): Likewise.
10900
10901 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10902
10903 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
10904 (grub_ucs4_to_utf8_alloc): Likewise.
10905 (grub_ucs4_to_utf8): Likewise.
10906 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
10907 (grub_ucs4_to_utf8_alloc): Likewise.
10908
10909 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
10910
10911 AFFS never uses unicode.
10912
10913 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
10914 (grub_latin1_to_utf8): New inline function.
10915 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
10916
10917 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10918
10919 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
10920 overflow.
10921
10922 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10923
10924 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
10925 (grub_squash_dirent_header): Likewise.
10926 (read_chunk): Don't double swap.
10927 (grub_squash_iterate_dir): Fix swap sizes.
10928
10929 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10930
10931 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
10932
10933 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10934
10935 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
10936 (grub_hfs_iterate_dir): Likewise.
10937
10938 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10939
10940 Fix video on platforms where unaligned access is forbidden.
10941 Make several optimisations while on it.
10942
10943 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
10944 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
10945 (grub_video_fbblit_replace_32bit_1bit): Likewise.
10946 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
10947 Disable.
10948 (grub_video_fbblit_replace_16bit_1bit):
10949 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
10950 (grub_video_fbblit_replace_8bit_1bit): Likewise.
10951 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
10952 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
10953 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
10954 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
10955 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
10956 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
10957 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
10958 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
10959 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
10960 (grub_video_fbblit_replace_index_RGB888): Likewise.
10961 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
10962 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
10963 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
10964 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
10965 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
10966 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
10967 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
10968 Disable.
10969 (grub_video_fbblit_blend_XXX565_1bit):
10970 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
10971 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
10972 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
10973 void *.
10974 * grub-core/video/fb/video_fb.c (common_blitter)
10975 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
10976 (grub_video_fb_create_render_target_from_pointer)
10977 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
10978 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
10979 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
10980 definition.
10981 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
10982
10983 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10984
10985 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
10986 HH22 and HM10 relocations.
10987
10988 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10989
10990 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
10991
10992 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10993
10994 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
10995 allocation succeeded.
10996
10997 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
10998
10999 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
11000 argument a u8 pointer. All users updated.
11001 Handle unaligned buffers.
11002
11003 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11004
11005 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
11006 add_part to workaround compiler bug.
11007
11008 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11009
11010 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
11011
11012 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11013
11014 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
11015 Reserve alignment invariants.
11016 (grub_multiboot_load): Likewise.
11017 (retrieve_video_parameters): Likewise.
11018 (grub_multiboot_make_mbi): Likewise.
11019
11020 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11021
11022 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
11023 incorrect pointer.
11024
11025 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11026
11027 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
11028 (grub_pata_pio_write): Likewise.
11029
11030 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11031
11032 Add noreturn attributes and remove unreachable code.
11033
11034 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
11035 code.
11036 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
11037 code. Mark as noreturn.
11038 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
11039 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
11040 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
11041 unreachable code.
11042 * grub-core/kern/main.c (grub_main): Mark as noreturn.
11043 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
11044 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
11045 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
11046 * include/grub/kernel.h (grub_main): Mark as noreturn.
11047 * include/grub/reader.h (grub_rescue_run): Likewise.
11048
11049 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11050
11051 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
11052 redundant declaration.
11053
11054 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11055
11056 * include/grub/net.h (grub_net_network_level_interfaces): Remove
11057 redundant declaration.
11058 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
11059
11060 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11061
11062 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
11063 to ensure alignment.
11064 (grub_hdparm_print_identify): Make argument uint16 * to ensure
11065 alignment. Ensure tmp alignment.
11066 (grub_cmd_hdparm): Ensure buf alignment.
11067 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
11068 to ensure alignment.
11069 (grub_ata_dumpinfo): Ensure text alignment.
11070 (grub_atapi_identify): Preserve alignment invariant.
11071 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
11072
11073 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11074
11075 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
11076 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
11077 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
11078 * include/grub/misc.h (grub_reboot)
11079 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
11080 (grub_halt) [__mips__]: Likewise.
11081
11082 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11083
11084 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
11085 Remove redundant declaration.
11086 (grub_mmap_get_post64): Likewise.
11087 (grub_mmap_get_upper): Likewise.
11088 (grub_mmap_get_lower): Likewise.
11089
11090 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11091
11092 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
11093 uint32_t * to ensure alignment.
11094 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
11095
11096 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11097
11098 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
11099 uint16_t * to ensure alignment.
11100 (sun_pc_partition_map_iterate): Make `block' a union to ensure
11101 alignment.
11102
11103 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11104
11105 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
11106 to ensure alignment.
11107 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
11108
11109 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11110
11111 * grub-core/fs/ntfs.c (u16at): Make into inline function.
11112 Handle unaligned pointers.
11113 (u32at): Likewise.
11114 (u64at): Likewise.
11115 (fixup): Use byte access instead of v16at.
11116 (find_attr): Fix imporper usage of v32at.
11117 (read_data): Likewise.
11118 (list_file): Handle byte-swapping and unaligned strings.
11119 (grub_ntfs_label): Likewise.
11120
11121 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11122
11123 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
11124 as it's not necessarily aligned.
11125
11126 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11127
11128 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
11129 redundant declaration.
11130 (grub_serial_init): Likewise.
11131 (grub_terminfo_init): Likewise.
11132
11133 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11134
11135 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
11136 function.
11137 (ZAP_HASH_IDX): Likewise.
11138 (ZAP_LEAF_HASH_SHIFT): Likewise.
11139 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
11140 (LEAF_HASH): Likewise.
11141 (ZAP_LEAF_NUMCHUNKS): Likewise.
11142 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
11143 alignment invariants. Return pointer. All users updated.
11144 (ZAP_LEAF_ENTRY): Make into inline function.
11145 (NBBY): Removed.
11146 (xor): LIkewise.
11147 (xor_out): Use grub_crypto_xor.
11148 (dnode_get_path): Use grub_get_unaligned.
11149 (nvlist_find_value): Likewise.
11150 (grub_zfs_nvlist_lookup_uint64): Likewise.
11151 (grub_zfs_nvlist_lookup_string): Likewise.
11152 (get_nvlist_size): Likewise.
11153 (grub_zfs_open): Likewise.
11154 (fill_fs_info): Likewise.
11155 (grub_zfs_dir): Likewise.
11156 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
11157 alignment invariants.
11158 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
11159 necessarily aligned.
11160
11161 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11162
11163 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
11164
11165 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11166
11167 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
11168 arithmetic to conserve alignment invariants.
11169
11170 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11171
11172 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
11173 redundant declaration.
11174 (grub_efiemu_mm_obtain_request): Likewise.
11175 (grub_efiemu_prepare): Likewise.
11176
11177 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11178
11179 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
11180 to match types.
11181
11182 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11183
11184 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
11185 case of aunaligned recptr.
11186 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
11187 alignment.
11188 (grub_hfsplus_btree_search): Handle unaligned index.
11189
11190 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11191
11192 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
11193 to get freetag and skip.
11194
11195 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11196
11197 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
11198 array.
11199 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
11200 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
11201
11202 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11203
11204 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
11205 name for checksum and fix allocation algorithm.
11206
11207 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11208
11209 * include/grub/types.h (grub_properly_aligned_t): New type.
11210 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
11211 (grub_get_unaligned16): Add explicit casts.
11212 (grub_get_unaligned32): Likewise.
11213 (grub_get_unaligned64): Likewise.
11214 (grub_set_unaligned16): New function.
11215 (grub_set_unaligned32): Likewise.
11216
11217 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11218
11219 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
11220
11221 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11222
11223 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
11224 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
11225 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
11226
11227 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11228
11229 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
11230 conditionals.
11231
11232 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11233
11234 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
11235 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
11236
11237 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11238
11239 Unify and improve RAID and crypto xor.
11240
11241 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
11242 changed to grub_crypto_xor
11243 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
11244 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
11245 Use bigger types when possible.
11246
11247 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11248
11249 * grub-core/disk/raid.c (scan_devices): Fix condition.
11250
11251 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11252
11253 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
11254 Make name a const ptr.
11255
11256 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11257
11258 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
11259 first argument a const pointer.
11260 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
11261 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
11262 proto.
11263 (grub_children_iterate): Likewise.
11264 (grub_machine_mmap_iterate): Remove redundant declaration.
11265
11266 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11267
11268 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
11269 (grub_cmd_acpi) [!x86]: Disable EBDA.
11270
11271 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11272
11273 Enable UTF8 in gnulib regexp.
11274
11275 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
11276 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
11277 (isupper): Use grub_isupper.
11278 (isascii): New inline function.
11279 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
11280 * grub-core/lib/posix_wrap/wctype.h: Likewise.
11281 * grub-core/normal/charset.c (grub_utf8_process): New function.
11282 (grub_utf8_to_utf16): Use grub_utf8_process.
11283 (grub_encode_utf8_character): New function.
11284 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
11285 * include/grub/charset.h (grub_utf8_process): New declaration.
11286 (grub_encode_utf8_character): Likewise.
11287 * include/grub/misc.h (grub_islower): New inline function.
11288 (grub_isupper): Likewise.
11289 (grub_strchrsub): Moved down to fix the definitions.
11290
11291 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11292
11293 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
11294 specification.
11295
11296 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11297
11298 * include/grub/loader.h (grub_loader_register_preboot_hook):
11299 Use struct preboot * and not void * for handle. All users updated.
11300 (grub_loader_unregister_preboot_hook): Likewise.
11301
11302 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
11303
11304 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
11305 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
11306 UTF-16-BE. All users updated.
11307 (grub_hfsplus_cmp_catkey): Fix unicode handling.
11308 (grub_hfsplus_iterate_dir): Likewise.
11309 (grub_hfsplus_label): Likewise.
11310
11311 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
11312
11313 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
11314
11315 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
11316
11317 Add missing const qualifiers.
11318
11319 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
11320 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
11321 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
11322 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
11323 (grub_lvm_check_flag): Likewise.
11324 * grub-core/efiemu/i386/coredetect.c
11325 (grub_efiemu_get_default_core_name): Likewise
11326 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
11327 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
11328 * grub-core/fs/ntfs.c (fixup): Likewise.
11329 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
11330 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
11331 (fzap_lookup): Likewise.
11332 (zap_lookup): Likewise.
11333 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
11334 * grub-core/lib/legacy_parse.c (check_option): Likewise.
11335 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
11336 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
11337 (grub_freebsd_add_meta_module): Likewise.
11338 (grub_cmd_freebsd_module): Likewise.
11339 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
11340 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
11341 (grub_xnu_writetree_get_size): Likewise.
11342 (grub_xnu_writetree_toheap_real): Likewise.
11343 (grub_xnu_find_key): Likewise.
11344 (grub_xnu_create_key): Likewise.
11345 (grub_xnu_create_value): Likewise.
11346 (grub_xnu_register_memory): Likewise.
11347 (grub_xnu_check_os_bundle_required): Likewise.
11348 (grub_xnu_scan_dir_for_kexts): Likewise.
11349 (grub_xnu_load_kext_from_dir): Likewise.
11350 * grub-core/normal/color.c (color_list): Likewise.
11351 * grub-core/normal/completion.c (current_word): Likewise.
11352 * grub-core/normal/menu_entry.c (insert_string): Likewise.
11353 * grub-core/term/serial.c (grub_serial_find): Likewise.
11354 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
11355 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
11356 Likewise.
11357 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
11358 (grub_freebsd_add_meta_module): Likewise.
11359 * include/grub/lib/arg.h (grub_arg_option): Likewise.
11360 * include/grub/net.h (grub_net_card_driver): Likewise.
11361 (grub_net_card): Likewise.
11362 (grub_net_app_protocol): Likewise.
11363 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
11364 * include/grub/serial.h (grub_serial_find): Likewise.
11365 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
11366 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
11367 (grub_xnu_create_value): Likewise.
11368 (grub_xnu_find_key): Likewise.
11369 (grub_xnu_scan_dir_for_kexts): Likewise.
11370 (grub_xnu_load_kext_from_dir): Likewise.
11371
11372 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
11373 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
11374 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
11375 Moved from here ...
11376 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
11377
11378 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
11379
11380 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
11381
11382 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
11383
11384 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
11385 (read_device): Fix size calculation.
11386
11387 2011-11-25 Robert Millan <rmh@gnu.org>
11388
11389 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
11390 (find_root_device_from_libzfs): Add zpool output parser to be used
11391 as fallback when libzfs isn't available.
11392
11393 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
11394
11395 * po/Makefile.in.in: Add missing escape-continuation.
11396
11397 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
11398
11399 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
11400
11401 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
11402
11403 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
11404
11405 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
11406
11407 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
11408
11409 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
11410
11411 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
11412
11413 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
11414
11415 * grub-core/lib/adler32.c: Add missing license specification.
11416 * grub-core/lib/crc64.c: Likewise.
11417 * grub-core/loader/i386/pc/plan9.c: Likewise.
11418 * grub-core/partmap/plan.c: Likewise.
11419
11420 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
11421
11422 Add facility to debug GRUB with gdb under qemu.
11423
11424 * grub-core/gdb_grub.in: New file.
11425 * grub-core/gmodule.pl.in: Likewise.
11426 * grub-core/Makefile.core.def (gmodule.pl): New script.
11427 (gdb_grub): Likewise.
11428
11429 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
11430
11431 * util/grub-mount.c (argp_parser): Accept relative pathes.
11432 * util/grub-fstest.c (argp_parser): Likewise.
11433
11434 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
11435
11436 Plan9 support.
11437
11438 * Makefile.util.def (libgrubmods): Add
11439 grub-core/partmap/plan.c.
11440 * docs/grub.texi: Notice Plan9 support.
11441 * grub-core/Makefile.core.def (plan9): New module.
11442 (part_plan): Likewise.
11443 * grub-core/loader/i386/pc/plan9.c: New file.
11444 * grub-core/partmap/plan.c: Likewise.
11445 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
11446 define.
11447 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
11448 * include/grub/mm.h (grub_extend_alloc): New inline function.
11449
11450 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
11451
11452 Make Reed-Solomon faster by using power of generator representation of
11453 GF(256)*.
11454
11455 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
11456 (gf_double_t): Likewise.
11457 (gf_invert): Removed.
11458 (gf_powx): New array.
11459 (gf_powx_inv): Likewise.
11460 (scratch): Move higher.
11461 (gf_reduce): Removed.
11462 (gf_mul): Use powx.
11463 (gf_invert): Likewise.
11464 (init_inverts): Replaced with ...
11465 (init_powx): ...this. All users updated.
11466 (pol_evaluate): Replace multiplications with additions.
11467 (rs_encode): Likewise.
11468 (gauss_eliminate): Call gf_invert.
11469 (grub_reed_solomon_add_redundancy): Call init_powx.
11470 (grub_reed_solomon_recover): Call init_powx unconditionally.
11471
11472 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11473
11474 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
11475
11476 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11477
11478 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
11479 disk->partiton for safety.
11480
11481 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11482
11483 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
11484 Fix a memory leak.
11485 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
11486
11487 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11488
11489 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
11490
11491 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11492
11493 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
11494
11495 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11496
11497 Fix spaces handling in proc/self/mountinfo.
11498
11499 * util/getroot.c (unescape): New function.
11500 (grub_find_root_device_from_mountinfo): Use unescape.
11501
11502 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11503
11504 Support ZFS embedding.
11505
11506 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
11507 (grub_zfs_fs): Register grub_zfs_embed.
11508
11509 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11510
11511 Fix MIPS compilation.
11512
11513 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
11514 * include/grub/offsets.h: Rename decompressor fields from
11515 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
11516 * util/grub-mkimage.c (image_targets): Use new names.
11517
11518 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11519
11520 Defer multiboot device parsing until we're in compressed part.
11521
11522 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
11523 bsd_part. setdevice has fallen into disuse.
11524 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
11525 (bsd_part): Likewise.
11526 (boot_dev): New variable.
11527 (multiboot_trampoline): Don't parse multiboot device.
11528 Pass multiboot device in %edx.
11529 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
11530 grub_boot_device.
11531 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
11532 Likewise.
11533 * grub-core/kern/i386/pc/startup.S: Save edx.
11534 (grub_boot_drive): Removed.
11535 (grub_install_dos_part): Likewise.
11536 (grub_install_bsd_part): Likewise.
11537 (grub_boot_device): New variable.
11538 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
11539 (grub_install_bsd_part): Likewise.
11540 (grub_boot_drive): Likewise.
11541 (grub_boot_device): New variable.
11542 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
11543 Removed.
11544 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
11545 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
11546 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
11547 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
11548 * util/grub-install.in: Remove redundant condition.
11549
11550 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11551
11552 Fix bug introduced by previous commit.
11553
11554 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
11555
11556 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11557
11558 Use decompressors framework on i386-pc. It increases core size
11559 by 46 bytes but improves compatibility and maintainability.
11560
11561 * grub-core/Makefile.core.def (lzma_decompress): New image.
11562 (kernel): Add i386_pc_ldflags.
11563 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
11564 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
11565 to real_to_prot, prot_to_real and device info.
11566 * include/grub/offsets.h: Renamed decompressor offsets.
11567 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
11568 (image_target_desc): Remove raw_size and rename decompressor fields.
11569 (compress_kernel): Handle lzma.
11570 (generate_image): Handle decompressors on i386-pc.
11571
11572 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11573
11574 * configure.ac: Add -fno-asynchronous-unwind-tables.
11575
11576 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11577
11578 Move assembly code to C by using intwrap. It increases core size
11579 by 88 bytes but improves compatibility and maintainability.
11580
11581 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
11582 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
11583 ... here. Translated to C.
11584 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
11585 * grub-core/term/i386/pc/console.c (grub_console_getkey):
11586 ... here. Translated to C.
11587 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
11588 * grub-core/term/i386/pc/console.c (grub_console_getxy):
11589 ... here. Translated to C.
11590 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
11591 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
11592 ... here. Translated to C.
11593 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
11594 * grub-core/term/i386/pc/console.c (grub_console_cls):
11595 ... here. Translated to C.
11596 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
11597 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
11598 ... here. Translated to C.
11599 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
11600 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
11601 Translated to C.
11602 * grub-core/term/i386/pc/console.c (int10_9): New function.
11603 (grub_console_putchar): Likewise.
11604 * include/grub/i386/pc/console.h: Removed the not anymore shared
11605 functions.
11606
11607 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11608
11609 Move grub_chainloader_real_boot out of the kernel.
11610
11611 * grub-core/Makefile.am: Remove machine/loader.h.
11612 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
11613 Removed.
11614 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
11615 variable.
11616 (grub_relocator16_keep_a20_enabled): Likewise.
11617 (grub_relocator16_boot): Fill new variables.
11618 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
11619 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
11620 relocator.
11621 (grub_chainloader_unload): Likewise.
11622 (grub_chainloader_cmd): Likewise.
11623 * include/grub/i386/pc/loader.h: Removed.
11624 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
11625 and esi. All initialisers updated.
11626
11627 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
11628 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
11629
11630 * Makefile.util.def (grub-mount): New util.
11631 * .bzrignore: Add grub-mount.
11632 * configure.ac: Check for fuse and enable grub-mount if available.
11633 * docs/man/grub-mount.h2m: New file.
11634 * util/grub-mount.c: Likewise.
11635
11636 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11637
11638 * grub-core/commands/efi/fixvideo.c: Gettextize.
11639 * grub-core/commands/hashsum.c: Likewise.
11640 * grub-core/commands/i386/cmostest.c: Likewise.
11641 * grub-core/commands/i386/pc/drivemap.c: Likewise.
11642 * grub-core/commands/i386/pc/lsapm.c: Likewise.
11643 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11644 * grub-core/commands/lsmmap.c: Likewise.
11645 * grub-core/commands/menuentry.c: Likewise.
11646 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11647 * grub-core/commands/setpci.c: Likewise.
11648 * grub-core/loader/i386/bsd.c: Likewise.
11649 * grub-core/loader/i386/linux.c: Likewise.
11650 * util/getroot.c: Likewise.
11651 * util/grub-editenv.c: Likewise.
11652 * util/grub-fstest.c: Likewise.
11653 * util/grub-mkfont.c: Likewise.
11654 * util/grub-mkimage.c: Likewise.
11655 * util/grub-mkpasswd-pbkdf2.c: Likewise.
11656 * util/grub-pe2elf.c: Likewise.
11657 * util/grub-probe.c: Likewise.
11658 * util/grub-setup.c: Likewise.
11659 * util/ieee1275/ofpath.c: Likewise.
11660 * util/misc.c: Likewise.
11661 * util/raid.c: Likewise.
11662
11663 2011-11-11 Robert Millan <rmh@gnu.org>
11664
11665 * util/getroot.c (grub_util_get_geom_abstraction): Remove
11666 __attribute__((unused)) from `os_dev', which *is* being used.
11667
11668 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11669
11670 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
11671 forgotten define.
11672 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
11673 GRUB_IA64_DL_GOT_ALIGN.
11674 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
11675 GRUB_IA64_DL_TRAMP_ALIGN.
11676
11677 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11678
11679 Replace grub_fatal with normal errors in i386 linux loader.
11680
11681 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
11682 (allocate_pages): Check find_efi_mmap_size return value.
11683 (grub_e820_add_region): Return error.
11684 (grub_linux_boot): Check mmap return value.
11685
11686 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11687
11688 * grub-core/commands/acpihalt.c: Gettextized.
11689 * grub-core/commands/cacheinfo.c: Likewise.
11690 * grub-core/commands/cmp.c: Likewise.
11691 * grub-core/commands/efi/loadbios.c: Likewise.
11692 * grub-core/commands/gptsync.c: Likewise.
11693 * grub-core/commands/ieee1275/suspend.c: Likewise.
11694 * grub-core/commands/legacycfg.c: Likewise.
11695 * grub-core/commands/memrw.c: Likewise.
11696 * grub-core/commands/minicmd.c: Likewise.
11697 * grub-core/commands/parttool.c: Likewise.
11698 * grub-core/commands/time.c: Likewise.
11699 * grub-core/commands/videoinfo.c: Likewise.
11700 * grub-core/disk/geli.c: Likewise.
11701 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
11702 * grub-core/disk/luks.c: Likewise.
11703 * grub-core/disk/lvm.c: Likewise.
11704 * grub-core/font/font_cmd.c: Likewise.
11705 * grub-core/fs/zfs/zfscrypt.c: Likewise.
11706 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11707 * grub-core/gfxmenu/view.c: Likewise.
11708 * grub-core/kern/emu/hostdisk.c: Likewise.
11709 * grub-core/kern/emu/main.c: Likewise.
11710 * grub-core/kern/emu/misc.c: Likewise.
11711 * grub-core/kern/emu/mm.c: Likewise.
11712 * grub-core/kern/mips/arc/init.c: Likewise.
11713 * grub-core/kern/mips/loongson/init.c: Likewise.
11714 * grub-core/kern/partition.c: Likewise.
11715 * grub-core/lib/i386/halt.c: Likewise.
11716 * grub-core/lib/mips/arc/reboot.c: Likewise.
11717 * grub-core/lib/mips/loongson/reboot.c: Likewise.
11718 * grub-core/loader/i386/pc/chainloader.c: Likewise.
11719 * grub-core/loader/i386/xnu.c: Likewise.
11720 * grub-core/loader/multiboot.c: Likewise.
11721 * grub-core/net/bootp.c: Likewise.
11722 * grub-core/net/net.c: Likewise.
11723 * grub-core/normal/term.c: Likewise.
11724 * grub-core/partmap/bsdlabel.c: Likewise.
11725 * grub-core/parttool/msdospart.c: Likewise.
11726 * grub-core/term/gfxterm.c: Likewise.
11727 * grub-core/term/terminfo.c: Likewise.
11728 * grub-core/video/i386/pc/vbe.c: Likewise.
11729 * util/grub-menulst2cfg.c: Likewise.
11730 * util/grub-mkdevicemap.c: Likewise.
11731 * util/grub-mklayout.c: Likewise.
11732 * util/grub-mkrelpath.c: Likewise.
11733 * util/grub-script-check.c: Likewise.
11734 * util/ieee1275/grub-ofpathname.c: Likewise.
11735 * util/resolve.c: Likewise.
11736
11737 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11738
11739 Support %1$d syntax.
11740
11741 * tests/printf_unit_test.c: New file.
11742 * Makefile.util.def (printf_test): New test.
11743 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
11744
11745 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11746
11747 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
11748 fix.
11749
11750 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11751
11752 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
11753 dprintf.
11754 * grub-core/font/font.c (grub_font_load): Likewise.
11755
11756 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11757
11758 * util/grub-macho2img.c: Add comment concerning gettext.
11759 * grub-core/lib/legacy_parse.c: Likewise.
11760
11761 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11762
11763 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
11764 (grub_xvasprintf): Likewise.
11765
11766 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11767
11768 Add const keyword to grub_env_get and gettextize week days.
11769
11770 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
11771 (grub_read_hook_datetime): Return const char *.
11772 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
11773 updated.
11774 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
11775 Mark for gettext.
11776 (grub_get_weekday_name): Return const char *. Call gettext.
11777 * grub-core/script/argv.c (grub_script_argv_append): Receive const
11778 char * and len as the argument. All users updated.
11779 (grub_script_argv_split_append): Receive const char *.
11780 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
11781 * include/grub/env.h (grub_env_get): Likewise.
11782 (grub_env_read_hook_t): Return const char *.
11783 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
11784 (grub_script_argv_split_append): Likewise.
11785
11786 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11787
11788 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
11789
11790 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11791
11792 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
11793 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
11794
11795 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11796
11797 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
11798 Fix prototype.
11799
11800 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11801
11802 Fix mips compilation.
11803
11804 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
11805 normal decoder.
11806 (hashes): Use in embed decoder as well (for sizes).
11807 (dec_stream_header): Fix embed decompressor logic.
11808 (dec_stream_footer): Likewise.
11809
11810 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11811
11812 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
11813 an error and not a fatal on unrecognised relocation types.
11814
11815 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11816
11817 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
11818 Issue error rather than printf on unknown arguments.
11819
11820 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11821
11822 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
11823 Make buf a const.
11824
11825 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11826
11827 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
11828 Fix module name.
11829
11830 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11831
11832 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
11833 leftover debug printf.
11834
11835 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11836
11837 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
11838
11839 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11840
11841 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
11842 A stylistic fix.
11843
11844 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
11845
11846 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
11847
11848 2011-11-10 Shea Levy <slevy@tieronedesign.com>
11849
11850 Allow all modules to perform serial IO
11851
11852 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
11853 * include/grub/serial.h (grub_serial_port_configure): New inline
11854 function.
11855 (grub_serial_port_fetch): Likewise.
11856 (grub_serial_port_put): Likewise.
11857 (grub_serial_port_fini): Likewise.
11858 (grub_serial_find): New proto.
11859
11860 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11861
11862 Put symlink at the end of the node and fix a potential
11863 memory corruption.
11864
11865 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
11866 Make symlink into an array.
11867 (set_rockridge): Set have_symlink and alloc_dirents.
11868 (grub_iso9660_read_symlink): Use new layout.
11869 (grub_iso9660_iterate_dir): Fix memory corruption.
11870 Use new layout.
11871 (grub_iso9660_dir): Set have_symlink.
11872 (grub_iso9660_open): Likewise.
11873
11874 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11875
11876 Remove local keyword.
11877
11878 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
11879 (version_test_gt): Likewise.
11880 (version_find_latest): Likewise.
11881 (gettext_printf): Likewise.
11882 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
11883
11884 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11885
11886 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
11887
11888 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11889
11890 Fix ZFS memory and resource leaks.
11891
11892 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
11893 All users updated.
11894 Free type on exit.
11895 (fill_vdev_info): New parameter inserted. All users updated.
11896 (check_pool_label): Likewise.
11897 (scan_disk): Likewise.
11898 (scan_devices): Close non-inserted disks.
11899 (fzap_iterate): Free l.
11900 (unmount_device): Free children descripto memory.
11901
11902 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11903
11904 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
11905 argument (access out of bounds).
11906
11907 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11908
11909 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
11910 >= 6 drives.
11911
11912 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
11913
11914 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
11915 Fix declaration.
11916
11917 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
11918
11919 Fix several memory leaks.
11920
11921 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
11922 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
11923 (grub_cpio_dir): Likewise.
11924 * grub-core/fs/fat.c (grub_fat_label): Likewise.
11925 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
11926 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
11927 (grub_romfs_label): Likewise.
11928 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
11929 (squash_unmount): New function.
11930 (grub_squash_dir): Fix memory leak.
11931 (grub_squash_open): Likewise.
11932 (grub_squash_read): Likewise.
11933 (grub_squash_mtime): Likewise.
11934 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
11935 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
11936 * util/grub-fstest.c (fstest): Likewise.
11937
11938 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
11939
11940 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
11941 avoid accessing beyond the array.
11942
11943 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
11944
11945 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
11946
11947 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
11948
11949 Several AFFS fixes.
11950
11951 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
11952 (GRUB_AFFS_FLAG_FFS): Removed.
11953 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
11954 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
11955 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
11956 (grub_fshelp_node): Make block 32-bit.
11957 Add block_cache and last_block_cache.
11958 (grub_affs_read_block): Fill and use block cache.
11959 (grub_affs_read_file): Removed.
11960 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
11961 boot block.
11962 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
11963 safety.
11964 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
11965 space.
11966 (grub_affs_close): Free block cache.
11967 (grub_affs_read): Use grub_fshelp_read_file directly.
11968
11969 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11970
11971 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
11972 with no error set.
11973
11974 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11975
11976 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
11977 used variable.
11978 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
11979 Likewise.
11980
11981 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11982
11983 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
11984
11985 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
11986 byteswap when needed.
11987
11988 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11989
11990 Fix FreeBSD compilation.
11991
11992 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
11993 to avoid circular dependency.
11994 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
11995 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
11996 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
11997
11998 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
11999
12000 Fix ZFS crypto error types.
12001
12002 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
12003 (grub_gcm_decrypt): Likewise.
12004 (grub_zfs_load_key_real): Fix error code type. Handle possible error
12005 from PBKDF2.
12006
12007 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12008
12009 Illumos support.
12010
12011 * Makefile.util.def (10_illumos): New script.
12012 * configure.ac: Set COND_HOST_ILLUMOS.
12013 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
12014 Support Illumos calls.
12015 (find_partition_start) [__sun__]: Likewise.
12016 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
12017 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
12018 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
12019 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
12020 device.
12021 * util/grub-probe.c (probe) [__sun__]: Do character check.
12022 * util/grub.d/10_illumos.in: New file.
12023
12024 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12025
12026 Support escaped commas in hostdisk.
12027
12028 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
12029 (find_grub_drive): Use unescape_cmp.
12030 (make_device_name): Escape commas.
12031
12032 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12033
12034 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
12035
12036 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12037
12038 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
12039 variable.
12040
12041 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
12042
12043 Support trampoline jumps on powerpc.
12044
12045 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
12046 __ia64__ path.
12047 (grub_dl_load_segments): Set mod->sz.
12048 (grub_dl_flush_cache): Flush whole space occupied by module, not just
12049 segments.
12050 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
12051 (jump): Likewise.
12052 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
12053 function.
12054 (trampoline): New struct.
12055 (trampoline_template): New const.
12056 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
12057 * include/grub/dl.h (grub_dl): Add sz element.
12058 [__powerpc__]: Follow __ia64__.
12059 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
12060 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
12061 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
12062 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
12063
12064 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
12065
12066 ZFS crypto support.
12067
12068 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
12069 * grub-core/Makefile.core.def (zfscrypt): New module.
12070 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
12071 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
12072 it. All users updated.
12073 (grub_zfs_decrypt): New var.
12074 (grub_zfs_load_key): Likewise.
12075 (zio_checksum_functions): Add SHA256+MAC.
12076 (zio_checksum_verify): Handle incomplete comparison due to MAC.
12077 (zio_read): Handle encrypted blocks.
12078 (zap_verify): Remove incorrect check.
12079 (fzap_iterate): Handle non-standard fzap.
12080 (zap_iterate): Likewise.
12081 (zap_iterate_u64): New function.
12082 (dnode_get_fullpath): Load keys.
12083 * grub-core/fs/zfs/zfscrypt.c: New file.
12084 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
12085 (grub_crypto_ecb_encrypt): Make input const.
12086 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
12087 (grub_crypto_ecb_encrypt): Make input const.
12088 (GRUB_CIPHER_AES): New macro.
12089 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
12090 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
12091 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
12092 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
12093 prefix. All users updated.
12094 (grub_zfs_add_key): New proto.
12095 (grub_zfs_decrypt): Likewise.
12096 (grub_zfs_load_key): Likewise.
12097 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
12098 * util/grub-fstest.c (options): Add -K option.
12099 (argp_parser): Likewise.
12100
12101 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
12102
12103 Support zle compression on ZFS.
12104
12105 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
12106 (decomp_table): Add zle.
12107 * include/grub/zfs/zio.h (zio_compress): Add zle.
12108
12109 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
12110
12111 Support BtrFS embedding.
12112
12113 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
12114 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
12115 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
12116 * util/grub-setup.c (setup): Use fs embedding if available.
12117 Add additional sanity check.
12118
12119 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
12120
12121 * util/grub-install.in: Fix condition for config_opt.
12122
12123 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
12124
12125 Support third redundancy strip on raidz3.
12126
12127 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
12128 Return error on singularity. All users updated.
12129 (read_device): Don't stop on 3rd failure on raidz3.
12130
12131 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
12132
12133 Support case-insensitive ZFS subvolumes.
12134
12135 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
12136 All users updated.
12137 (zap_hash): Likewise.
12138 (name_cmp): New function.
12139 (zap_leaf_array_equal): New parameter case_insensitive.
12140 All users updated.
12141 (zap_leaf_lookup): Likewise.
12142 (fzap_lookup): Likewise.
12143 (zap_lookup): Likewise.
12144 (dnode_get_path): New parameter case_insensitive. Retrieve case
12145 sensitiviness of a volume. All users updated.
12146 (dnode_get_fullpath): New parameter case_insensitive.
12147 All users updated.
12148 (grub_zfs_dir): Set info.case_insensitiveness.
12149
12150 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
12151
12152 Support second redundancy strip on raidz(2,3).
12153
12154 * grub-core/fs/zfs/zfs.c (powx): New array.
12155 (powx_inv): Likewise.
12156 (poly): New const.
12157 (xor_out): New function.
12158 (gf_mul): Likewise.
12159 (recovery): Likewise.
12160 (read_device): Use second redundancy strip.
12161
12162 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
12163
12164 Use a power of generator representation of GF(256) multiplication group
12165 to save space time and complexity.
12166
12167 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
12168 (raid6_table2): Likewise.
12169 (powx): New array.
12170 (powx_inv): Likewise.
12171 (poly): New const.
12172 (grub_raid_block_mul): Replace with ...
12173 (grub_raid_block_mulx): ...this.
12174 (grub_raid6_init_table): Rewritten.
12175 (grub_raid6_recover): Use power of generator representation.
12176
12177 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
12178
12179 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
12180 for the right device.
12181
12182 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
12183
12184 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
12185 expected by grub-mkimage and it's more clear since there is no implicit
12186 padding.
12187
12188 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
12189
12190 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
12191 disk.
12192 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
12193
12194 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
12195
12196 * util/grub-mkrescue.in: Fix handling xorriso option.
12197
12198 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
12199
12200 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
12201 NULL.
12202
12203 2011-11-03 crocket <crockabiscuit@gmail.com>
12204
12205 * util/grub.d/10_linux.in: Add Slackware initrd naming.
12206
12207 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
12208
12209 XZ CRC64 and SHA256 support.
12210
12211 * Makefile.util.def (libgrubmods): Add crc64.c.
12212 * grub-core/Makefile.core.def (crc64): New module.
12213 * grub-core/lib/crc64.c: New file.
12214 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
12215 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
12216 Fix the type.
12217 (MAX_HASH_SIZE): New define.
12218 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
12219 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
12220 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
12221 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
12222 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
12223 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
12224 Handle non-crc32 hashes.
12225 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
12226 (dec_stream_header): Handle non-crc32 hashes.
12227 (dec_stream_footer): Likewise.
12228 (dec_block_header): Likewise.
12229 (dec_main): Likewise.
12230 (xz_dec_init): Likewise.
12231 (xz_dec_reset): Likewise.
12232 (xz_dec_end): Likewise.
12233 * util/import_gcry.py: Add CRC64 line.
12234
12235 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
12236
12237 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
12238 as well.
12239
12240 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
12241
12242 Make reiserfs label retrieval similar to other *_label functions.
12243
12244 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
12245 (REISERFS_MAX_LABEL_LENGTH): Removed.
12246 (REISERFS_LABEL_OFFSET): Likewise.
12247 (grub_reiserfs_label): Rewritten.
12248
12249 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
12250
12251 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
12252 field.
12253
12254 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
12255
12256 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
12257
12258 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
12259
12260 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
12261 drive failure on both raidz and raidz2.
12262
12263 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
12264
12265 Fix RAIDZ(2) for >= 5 devices.
12266
12267 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
12268 asize argument. All users updated.
12269
12270 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
12271
12272 Fix RAIDZ(2).
12273
12274 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
12275 (fill_vdev_info_real): Set ashift.
12276 (read_device): Rewrite RAIDZ part based on reverse engineering.
12277
12278 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
12279
12280 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
12281 don't report potentially unavialiable fields in debug output.
12282 (find_path): Fix double-free and memory leak.
12283
12284 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
12285
12286 Read label on UFS1.
12287
12288 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
12289 (grub_ufs_fs): Always set .label.
12290
12291 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
12292
12293 Use shifts in UFS.
12294
12295 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
12296 (grub_ufs_data): New field log2_blksz.
12297 (grub_ufs_read_file): Use shifts.
12298 (grub_ufs_mount): Check block size and logarithm it.
12299
12300 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
12301
12302 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
12303 long symlinks.
12304
12305 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
12306
12307 Handle symlinks and long names on tar and cpio.
12308
12309 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
12310 (ATTR_FILE): Likewise.
12311 (ATTR_DIR): Likewise.
12312 (ATTR_LNK): Likewise.
12313 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
12314 (grub_cpio_find_file): Fill mode, handle linkname field as well as
12315 L and K entries.
12316 (grub_cpio_mount): Zero-fill data.
12317 (handle_symlink): New function.
12318 (grub_cpio_dir): Handle symlinks.
12319 (grub_cpio_open): Likewise.
12320 (grub_cpio_close) [MODE_USTAR]: Free linkname.
12321
12322 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
12323
12324 Fix iso9660 filename limitations and fix memory leaks.
12325
12326 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
12327 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
12328
12329 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
12330
12331 Fix JFS file name length limitations.
12332
12333 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
12334 (grub_jfs_diropen): Fix maximum filename length.
12335 (grub_jfs_getent): Fix filename length.
12336 (grub_jfs_lookup_symlink): Fix size checks.
12337
12338 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
12339
12340 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
12341 string.
12342
12343 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
12344
12345 Leverage BFS implementation to read AFS.
12346
12347 * Makefile.util.def (libgrubmods): Add afs.c.
12348 * grub-core/Makefile.core.def (afs): New module
12349 * grub-core/fs/afs.c: New file.
12350 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
12351
12352 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
12353
12354 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
12355
12356 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
12357
12358 * grub-core/fs/bfs.c: Run indent.
12359
12360 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
12361
12362 BFS implementation based on the specification.
12363
12364 * grub-core/fs/bfs.c: New file.
12365 * Makefile.util.def (libgrubmods): Add bfs.c.
12366 * grub-core/Makefile.core.def (bfs): New module.
12367
12368 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
12369
12370 * util/grub-fstest.c (cmd_cp): Clarify error message.
12371 (cmd_cmp): Likewise.
12372
12373 2011-10-30 Yves Blusseau <blusseau@zetam.org>
12374
12375 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
12376 and befs_be.
12377
12378 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
12379
12380 Remove afs and befs because of copyright problem.
12381
12382 * grub-core/fs/afs.c: Removed.
12383 * grub-core/fs/afs_be.c: Removed.
12384 * grub-core/fs/befs.c: Removed.
12385 * grub-core/fs/befs_be.c: Removed.
12386 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
12387 * grub-core/Makefile.core.def (afs): Removed.
12388 (afs_be): Likewise.
12389 (befs): Likewise.
12390 (befs_be): Likewise.
12391
12392 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
12393
12394 Prefer rockridge over Joliet.
12395
12396 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
12397 to ...
12398 (set_rockridge): ... here.
12399 (grub_iso9660_mount): Check rockridge on the primary label when
12400 discovering. Ignore Joliet if Rockridge is present.
12401
12402 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
12403
12404 Use shifts in nilfs2.
12405
12406 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
12407 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
12408 (grub_nilfs2_palloc_entries_per_group): Replace with ...
12409 (grub_nilfs2_log_palloc_entries_per_group): ... this.
12410 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
12411 (grub_nilfs2_entries_per_block): Replaced with ...
12412 (grub_nilfs2_log_entries_per_block_log): ... this.
12413 (grub_nilfs2_blocks_per_group): Replaced with ...
12414 (grub_nilfs2_blocks_per_group_log): ... this.
12415 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
12416 (grub_nilfs2_blocks_per_desc_block_log): ... this.
12417 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
12418 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
12419 (grub_nilfs2_palloc_entry_offset): Replaced ...
12420 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
12421 (grub_nilfs2_dat_translate): Use shifts.
12422 (grub_nilfs2_read_inode): Likewise.
12423 (GRUB_MOD_INIT): Ensure that logs are correct.
12424
12425 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
12426
12427 Use shifts in minix filesystem.
12428
12429 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
12430 (GRUB_MINIX_ZONE2SECT): Likewise.
12431 (grub_minix_data): Replace block_size with log_block_size.
12432 (grub_minix_read_file): Use shifts.
12433 (grub_minix_mount): Check block size and take a logarithm.
12434
12435 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
12436
12437 Use shifts in squash4.
12438
12439 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
12440 (squash_mount): Check block size and take logarithm.
12441 (direct_read): Use shifts.
12442
12443 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
12444
12445 Correct befs block counting logic.
12446
12447 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
12448 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
12449 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
12450 (grub_afs_read_inode): Use block_shift.
12451 (RANGE_SHIFT): New definition.
12452 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
12453 unexpected conditions, use shifts and appropriate types.
12454 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
12455
12456 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
12457
12458 * grub-core/disk/raid.c (scan_devices): Check partition.
12459 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
12460
12461 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
12462
12463 Support BFS (befs) UUID.
12464
12465 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
12466 (grub_afs_small_data_element_header): New struct.
12467 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
12468 (grub_afs_read_attribute) [MODE_BFS]: New function.
12469 (grub_afs_iterate_dir): Allocate for complete inode.
12470 (grub_afs_mount): Likewise.
12471 (grub_afs_uuid) [MODE_BFS]: New function.
12472 (grub_afs_fs) [MODE_BFS]: Add .uuid.
12473
12474 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
12475
12476 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
12477 (zfs_unmount): Fix memory leak.
12478
12479 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
12480
12481 Support NTFS reparse points.
12482
12483 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
12484 (symlink_descriptor): New struct.
12485 (grub_ntfs_read_symlink): New function.
12486 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
12487 (grub_ntfs_open): Likewise.
12488
12489 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
12490
12491 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
12492
12493 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
12494
12495 fstest xnu_uuid subcommand.
12496
12497 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
12498 grub-core/commands/xnu_uuid.c.
12499 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
12500 (fstest): Handle xnu_uuid.
12501 (options): Document xnu_uuid.
12502 (argp_parser): Parse xnu_uuid.
12503
12504 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
12505
12506 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
12507 -l argument. Add newline at the end if printing.
12508 (GRUB_MOD_INIT): Document -l.
12509
12510 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
12511
12512 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
12513
12514 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
12515
12516 ZFS multi-device and version 33 support.
12517
12518 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
12519 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
12520 (grub_zfs_data): Add multidev-ice-related fields.
12521 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
12522 (dva_get_offset): Make dva const.
12523 (zfs_fetch_nvlist): New function.
12524 (fill_vdev_info_real): Likewise.
12525 (fill_vdev_info): Likewise.
12526 (check_pool_label): Likewise.
12527 (scan_disk): Likewise.
12528 (scan_devices): Likewise.
12529 (read_device): Likewise.
12530 (read_dva): Likewise.
12531 (zio_read_gang): Use read_dva.
12532 (zio_read_data): Likewise.
12533 (zap_leaf_lookup): Add missing endian conversion.
12534 (zap_verify): Add missing endian conversion. All users updated.
12535 (fzap_lookup): Likewise.
12536 (fzap_iterate): Likewise.
12537 (dnode_get_path): Handle SA bonus.
12538 (nvlist_find_value): Make input const. All users updated.
12539 (unmount_device): New function.
12540 (zfs_unmount): Use unmount_device.
12541 (zfs_mount): Use scan_disk.
12542 (zfs_mtime): New function.
12543 (grub_zfs_open): Handle system attributes.
12544 (fill_fs_info): Likewise.
12545 (grub_zfs_dir): Likewise.
12546 (grub_zfs_fs): Add mtime.
12547 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
12548 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
12549 (SA_MTIME_OFFSET): Likewise.
12550 (SA_SYMLINK_OFFSET): Likewise.
12551 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
12552 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
12553 (fstest): Support zfsinfo.
12554 (argp_parser): Likewise.
12555
12556 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
12557
12558 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
12559 error.
12560
12561 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
12562
12563 ZFS fixes.
12564
12565 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
12566 sharing the same block. Iterate over correct number of indices.
12567 (dnode_get_path): Handle symlinks correctly.
12568
12569 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12570
12571 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
12572
12573 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12574
12575 Read label on HFS+.
12576
12577 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
12578 (grub_hfsplus_btree_search): Fix types.
12579 (grub_hfsplus_label): Implement.
12580
12581 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12582
12583 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
12584
12585 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12586
12587 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
12588
12589 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12590
12591 Fix symlink handling on iso9660.
12592
12593 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
12594 All users updated.
12595 (grub_iso9660_susp_iterate): Accept zero-size iterate.
12596 (grub_iso9660_read_symlink): Moved most of code ...
12597 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
12598
12599 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12600
12601 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
12602 Use union to avoid breaking strict-aliasing rules.
12603
12604 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12605
12606 Support multi-extent iso files.
12607
12608 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
12609 Add node.
12610 (grub_fshelp_node): Revamp. All users updated.
12611 (FLAG_*): New enum.
12612 (read_node): New function.
12613 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
12614 All users updated.
12615 (grub_iso9660_mount): Don't attempt to read sua when there is none.
12616 (get_node_size): New function.
12617 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
12618 entries.
12619 Fix memory leak on . and ..
12620 (grub_iso9660_read): Use read_node.
12621 (grub_iso9660_close): Free node.
12622
12623 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12624
12625 Fix tar 4G limit and handle paths containing dot.
12626
12627 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
12628 (canonicalize): New function.
12629 (grub_cpio_find_file): Use canonicalize. Store offs in
12630 grub_disk_addr_t.
12631 (grub_cpio_dir): Use grub_disk_addr_t.
12632 (grub_cpio_open): Likewise.
12633
12634 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12635
12636 Fix handling of uncompressed blocks on squashfs and break 4G limit.
12637
12638 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
12639 unused flags.
12640 (grub_squash_inode): Add long_file and block_size.
12641 (grub_squash_cache_inode): New struct.
12642 (grub_squash_dirent): Make types into enum.
12643 (SQUASH_TYPE_LONG_REGULAR): New type.
12644 (grub_squash_frag_desc): Add field size.
12645 (SQUASH_BLOCK_FLAGS): New enum.
12646 (grub_squash_data): Use grub_squash_cache_inode.
12647 (grub_fshelp_node): Make ino_chunk 64-bit.
12648 (read_chunk): Minor argument change. All users updated.
12649 (squash_mount): Use correct le_to_cpu.
12650 (grub_squash_open): Handle LONG_REGULAR.
12651 (direct_read): New function.
12652 (grub_squash_read_data): Handle blocks correctly.
12653
12654 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12655
12656 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
12657
12658 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
12659
12660 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
12661
12662 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
12663
12664 Fix 2G limit on ZFS.
12665
12666 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
12667 types.
12668 (uberblock_verify): Likewise.
12669 (dmu_read): Likewise.
12670 (grub_zfs_read): Likewise. Remove invalid cast.
12671
12672 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
12673
12674 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
12675 (grub_jfs_blkno): Fix incorrect shift.
12676 (grub_jfs_read_file): Use more appropriate types.
12677
12678 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
12679
12680 Support triple indirect on minix2 and minix3.
12681
12682 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
12683 Declare triple_indir_zone.
12684 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
12685 indirect.
12686
12687 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
12688
12689 Minix FS fixes.
12690
12691 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
12692 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
12693 Rename ctime to mtime. All users updated.
12694 (grub_minix_get_file_block): Fix types and double indirect computations.
12695
12696 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12697
12698 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
12699 if no label is found.
12700 (grub_fat_iterate_dir): Fix file size type.
12701 (grub_fat_iterate_dir): Likewise.
12702
12703 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12704
12705 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
12706 save some space.
12707 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
12708 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
12709
12710 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12711
12712 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
12713
12714 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12715
12716 * util/import_gcry.py: Accept space between # and include.
12717
12718 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12719
12720 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
12721
12722 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12723
12724 Fine grainely disable warnings on lexer. Remove Wno-error on it.
12725
12726 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
12727 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
12728 yylex_strncpy.
12729 * grub-core/script/yylex.l: Add fine-grained #pragma.
12730
12731 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12732
12733 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
12734 New inline function.
12735 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
12736 Likewise.
12737 (memset) [GRUB_UTIL]: Likewise.
12738 (memcmp) [GRUB_UTIL]: Likewise.
12739
12740 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12741
12742 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
12743 inline function rather than a define.
12744
12745 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12746
12747 * util/grub-setup.c: Add missing include.
12748
12749 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12750
12751 * util/ieee1275/grub-ofpathname.c: Add missing include.
12752
12753 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12754
12755 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
12756 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
12757 Likewise.
12758
12759 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12760
12761 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
12762 grub_memcmp usage.
12763
12764 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12765
12766 * util/grub-install.in: Add datarootdir as per automake manual
12767 suggestion.
12768 * util/grub-mknetdir.in: Likewise.
12769
12770 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
12771
12772 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
12773 suggestion.
12774 * util/grub.d/10_kfreebsd.in: Likewise.
12775 * util/grub.d/10_linux.in: Likewise.
12776 * util/grub.d/10_netbsd.in: Likewise.
12777 * util/grub.d/10_windows.in: Likewise.
12778 * util/grub.d/20_linux_xen.in: Likewise.
12779
12780 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
12781
12782 Remove redundant grub_kernel_image_size.
12783
12784 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
12785 _edata and _start.
12786 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
12787 the small code. It moves it only by few bytes but simplifies the code.
12788 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
12789 _start.
12790 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
12791 (grub_kernel_image_size): Removed.
12792 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
12793 (grub_kernel_image_size): Removed.
12794 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
12795 compiled with Apple toolchain.
12796 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
12797 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
12798 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
12799 (grub_total_module_size): Likewise.
12800 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
12801 Removed.
12802 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
12803 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
12804 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
12805 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
12806 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
12807 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
12808 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
12809 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
12810 Removed.
12811 (grub_total_module_size): Removed.
12812 * util/grub-mkimage.c (image_target_desc): Remove image_size.
12813 (image_targets): Likewise.
12814 Set .compressed_size to no field on sparc.
12815 (generate_image): Remove kernel_image_size handling.
12816
12817 2011-10-19 Szymon Janc <szymon@janc.net.pl>
12818
12819 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
12820 NULL pointer dereference.
12821
12822 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12823
12824 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
12825 done with a dedicated section.
12826
12827 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
12828 Ensure the correct position of boot_path.
12829 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
12830 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
12831 other fields.
12832 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
12833 * include/grub/boot.h: Removed. All references removed.
12834 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
12835 Removed.
12836 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
12837
12838 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12839
12840 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
12841 name.
12842
12843 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12844
12845 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
12846
12847 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12848
12849 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
12850 Don't add the bogus brackets.
12851
12852 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12853
12854 ExFAT support.
12855
12856 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
12857 * grub-core/Makefile.core.def (exfat): New module.
12858 * grub-core/fs/exfat.c: New file.
12859 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
12860 (GRUB_FAT_ATTR_*): Make into an enum.
12861 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
12862 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
12863 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
12864 (GRUB_FAT_MAXFILE): Removed.
12865 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
12866 (grub_current_fat_bpb_t): New type.
12867 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
12868 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
12869 (grub_fat_dir_node_t): New type.
12870 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
12871 (fat_log2) [MODE_EXFAT]: Removed.
12872 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
12873 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
12874 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
12875 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
12876 (grub_fat_label) [MODE_EXFAT]: New function.
12877 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
12878 reserved_first_sector to 0.
12879
12880 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
12881
12882 Move grub_reboot out of the kernel.
12883
12884 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
12885 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
12886 * grub-core/lib/efi/reboot.c: ... here.
12887 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
12888 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
12889 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
12890 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
12891 * grub-core/lib/i386/reboot_trampoline.S: ... here.
12892 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
12893 * grub-core/lib/ieee1275/reboot.c: ... here.
12894 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
12895 * grub-core/lib/mips/arc/reboot.c: ... here.
12896 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
12897 * grub-core/lib/mips/loongson/reboot.c: ...here.
12898 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
12899 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
12900 * include/grub/emu/misc.h (grub_reboot): New function declaration.
12901 * include/grub/i386/reboot.h: New file.
12902 * include/grub/mips/loongson/ec.h: Fix includes.
12903 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
12904 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
12905 * grub-core/lib/i386/reboot.c: New file.
12906
12907 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
12908
12909 Make grub_prefix into module to fix the arbitrary limit and save
12910 some space.
12911
12912 * grub-core/kern/emu/main.c (grub_prefix): Removed.
12913 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
12914 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
12915 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
12916 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
12917 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
12918 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
12919 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
12920 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
12921 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
12922 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
12923 * include/grub/ia64/efi/kernel.h: Removed.
12924 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
12925 (grub_prefix): Removed.
12926 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
12927 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
12928 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
12929 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
12930 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
12931 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
12932 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
12933 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
12934 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
12935 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
12936 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
12937 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
12938 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
12939 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
12940 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
12941 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
12942 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
12943 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
12944 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
12945 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
12946 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
12947 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
12948 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
12949 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
12950 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
12951 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
12952 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
12953 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
12954 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
12955 from module.
12956 * util/grub-mkimage.c (image_target_desc): Removed prefix and
12957 prefix_end.
12958 (image_targets): Likewise.
12959 (generate_image): Put prefix as a module.
12960
12961 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
12962
12963 Replace grub_module_iterate with FOR_MODULES.
12964
12965 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
12966 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
12967 (grub_efi_modules_addr): ...this.
12968 * grub-core/kern/efi/init.c (grub_modbase): New variable.
12969 (grub_efi_init): Set grub_modbase.
12970 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
12971 (grub_modbase): New variable.
12972 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
12973 (grub_modbase): New variable.
12974 (grub_machine_init): Set grub_modbase.
12975 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
12976 (grub_modbase): New variable.
12977 (grub_machine_init): Set grub_modbase.
12978 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
12979 (grub_modbase): New variable.
12980 (grub_machine_init): Set grub_modbase.
12981 * grub-core/kern/main.c (grub_module_iterate): Remove.
12982 (grub_modules_get_end): Use grub_modbase.
12983 (grub_load_modules): Use FOR_MODULES.
12984 (grub_load_config): Likewise.
12985 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
12986 (grub_modbase): New variable.
12987 (grub_machine_init): Set grub_modbase.
12988 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
12989 (grub_modbase): New variable.
12990 (grub_machine_init): Set grub_modbase.
12991 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
12992 Removed.
12993 (grub_modbase): New variable.
12994 (grub_machine_init): Set grub_modbase.
12995 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
12996 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
12997 (grub_module_iterate): Likewise.
12998 (grub_modbase): New variable declaration.
12999 (FOR_MODULES): New macro.
13000
13001 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13002
13003 * configure.ac: Check for __ctzdi2 and __ctzsi2.
13004 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
13005
13006 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13007
13008 Fix few obvious type discrepancies.
13009
13010 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
13011 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
13012 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
13013 variable.
13014 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
13015 and connected types.
13016 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
13017 offset.
13018 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
13019 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
13020 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
13021 and connected types.
13022
13023 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13024
13025 Fix python 3.x incompatibilities.
13026
13027 * gentpl.py: Put brackets around print strings.
13028 * util/import_gcry.py: Open explicitly as utf-8.
13029 Use in instead of has_key.
13030
13031 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13032
13033 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
13034 (GRUB_XFS_INO_AGBITS): Make into inline function.
13035 (GRUB_XFS_INO_INOINAG): Likewise.
13036 (GRUB_XFS_INO_AG): Likewise.
13037 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
13038 (GRUB_XFS_EXTENT_OFFSET): Likewise.
13039 (GRUB_XFS_EXTENT_BLOCK): Likewise.
13040 (GRUB_XFS_EXTENT_SIZE): Likewise.
13041 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
13042 (GRUB_XFS_NEXT_DIRENT): Likewise.
13043 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
13044 (grub_xfs_read_file): Fix offset type.
13045
13046 2011-10-15 Robert Millan <rmh@gnu.org>
13047
13048 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
13049
13050 2011-10-15 Robert Millan <rmh@gnu.org>
13051
13052 Fix build problem on FreeBSD and GNU/kFreeBSD.
13053
13054 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
13055
13056 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
13057
13058 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
13059
13060 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
13061 types.
13062 (grub_hfsplus_btree_recoffset): Likewise.
13063 (grub_hfsplus_btree_recptr): Likewise.
13064 (grub_hfsplus_find_block): Likewise.
13065 (grub_hfsplus_btree_search): Likewise.
13066 (grub_hfsplus_read_block): Likewise.
13067 (grub_hfsplus_read_file): Likewise.
13068 (grub_hfsplus_mount): Likewise.
13069 (grub_hfsplus_btree_iterate_node): Likewise.
13070 (grub_hfsplus_btree_search): Likewise.
13071 (grub_hfsplus_iterate_dir): Likewise.
13072 (grub_hfsplus_read): A small code simplification.
13073
13074 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
13075
13076 * grub-core/kern/emu/hostdisk.c
13077 (convert_system_partition_to_system_disk): Don't assume that children
13078 of mapper nodes are mapper nodes.
13079
13080 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
13081
13082 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
13083 * include/grub/misc.h (grub_isxdigit): New function.
13084 * grub-core/video/colors.c (my_isxdigit): Removed. All users
13085 switched to grub_isxdigit.
13086 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
13087 number starting with a letter.
13088
13089 2011-10-09 Robert Millan <rmh@gnu.org>
13090
13091 LVM support for FreeBSD and GNU/kFreeBSD.
13092
13093 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
13094 GNU/kFreeBSD.
13095 (LVM_DEV_MAPPER_STRING): Move from here ...
13096 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
13097 * util/getroot.c: Include `<grub/util/lvm.h>'.
13098 (grub_util_get_dev_abstraction): Enable
13099 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
13100 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
13101 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
13102 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
13103 support it.
13104 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
13105 GNU/kFreeBSD.
13106 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
13107 when LVM abstraction is required for ${GRUB_DEVICE}.
13108
13109 2011-10-06 Szymon Janc <szymon@janc.net.pl>
13110
13111 Add support for LZO compression in GRUB:
13112 - import of minilzo library,
13113 - LZO decompression for btrfs,
13114 - lzop files decompression.
13115
13116 * grub-core/io/lzopio.c: New file.
13117 * grub-core/lib/adler32.c: Likewise.
13118 * grub-core/lib/minilzo/lzoconf.h: Likewise.
13119 * grub-core/lib/minilzo/lzodefs.h: Likewise.
13120 * grub-core/lib/minilzo/minilzo.c: Likewise.
13121 * grub-core/lib/minilzo/minilzo.h: Likewise.
13122 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
13123 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
13124 grub-core/lib/minilzo/minilzo.c to common.
13125 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
13126 cflags in cppflags.
13127 * grub-core/Makefile.core.def (btrfs): Likewise.
13128 * grub-core/Makefile.core.def (lzopio): New module.
13129 (adler32): Likewise.
13130 * grub-core/fs/btrfs.c: Include minilzo.h.
13131 (GRUB_BTRFS_COMPRESSION_LZO): New define.
13132 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
13133 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
13134 (grub_btrfs_lzo_decompress): New function.
13135 (grub_btrfs_extent_read): Add support for LZO compression type.
13136 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
13137 (GRUB_USHRT_MAX): Likewise.
13138 (GRUB_UINT_MAX): Likewise.
13139 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
13140 (UINT_MAX): Likewise.
13141 (CHAR_BIT): Likewise.
13142 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
13143 grub-core/lib/posix_wrap/limits.h
13144 (UCHAR_MAX): Likewise.
13145 * include/grub/file.h (grub_file_filter_id): New compression filter
13146 GRUB_FILE_FILTER_LZOPIO.
13147 * include/grub/file.h (grub_file_filter_id): Set
13148 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
13149 * include/grub/types.h (grub_get_unaligned16): New function.
13150 (grub_get_unaligned32): Likewise.
13151 (grub_get_unaligned64): Likewise.
13152 * util/import_gcry.py (cryptolist): Add adler32.
13153
13154 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
13155
13156 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
13157 in perspective decreases the complexity of build system and fixes
13158 compilation right now.
13159
13160 2011-10-01 Ales Nesrsta <starous@volny.cz>
13161
13162 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
13163 (fixed problem related to using UHCI with coreboot).
13164
13165 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
13166
13167 * gentpl.py: Use Autogen macros so that the output template file
13168 (Makefile.tpl) size is reduced.
13169
13170 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
13171
13172 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
13173 extra_dist.
13174
13175 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
13176
13177 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
13178 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
13179
13180 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
13181
13182 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
13183 _fullpath.
13184
13185 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
13186
13187 Remove extra declaration of sleep for mingw32.
13188
13189 * util/misc.c (sleep) [__MINGW32__]: Removed.
13190 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
13191
13192 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
13193
13194 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
13195 type and packname.
13196 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
13197 Resurrected.
13198 (NETBSD_BTINFO_BOOTWEDGE): New definition.
13199 (grub_netbsd_btinfo_bootwedge): New struct.
13200 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
13201 New function.
13202 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
13203
13204 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
13205
13206 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
13207 loader.
13208
13209 2011-09-28 Andreas Born <futur.andy@googlemail.com>
13210
13211 Fix incorrect identifiers in bash-completion.
13212
13213 * util/bash-completion.d/grub-completion.bash.in
13214 (_grub_mkpasswd-pbkdf2): Rename to ...
13215 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
13216 (_grub_script-check): Rename to ...
13217 (_grub_script_check): ... this. All users updated.
13218
13219 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
13220
13221 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
13222 Return 0 if disk isn't biosdisk.
13223
13224 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
13225
13226 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
13227 on NetBSD.
13228 * Makefile.util.def (grub-fstest): Likewise.
13229
13230 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
13231
13232 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
13233 Get sector size from disk label.
13234
13235 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
13236
13237 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
13238 */README* as well as README*.
13239 Reported by: Axel Beckert.
13240
13241 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
13242
13243 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
13244 case of less than 256 MiB of RAM.
13245
13246 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
13247
13248 * grub-core/commands/wildcard.c (make_regex): Handle @.
13249
13250 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
13251
13252 * util/grub-install.in: Move cryptodisk logic to appropriate place.
13253
13254 2011-08-21 Szymon Janc <szymon@janc.net.pl>
13255
13256 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
13257 AC_LANG_CONFTEST macros.
13258
13259 2011-08-20 Szymon Janc <szymon@janc.net.pl>
13260
13261 Add grub-fstest option to uncompress data for commands.
13262
13263 * util/grub-fstest.c (uncompress): New var.
13264 (options): New option -u.
13265
13266 2011-08-20 Szymon Janc <szymon@janc.net.pl>
13267
13268 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
13269 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
13270
13271 2011-08-20 Szymon Janc <szymon@janc.net.pl>
13272
13273 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
13274 file type was not recognized correctly (not gzip or corrupted).
13275
13276 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
13277
13278 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
13279 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
13280
13281 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
13282
13283 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
13284 loongson.
13285 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
13286 video_radeon_fuloong2e.
13287 * grub-core/video/radeon_fuloong2e.c: New file.
13288 * include/grub/video.h (grub_video_id_t): Add new ID
13289 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
13290
13291 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
13292
13293 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
13294 define.
13295 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
13296 that PRID matches the detected subplatform and reset the subplatform
13297 if it doesn't.
13298
13299 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
13300
13301 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
13302
13303 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
13304
13305 Fix PCI iterating on functions >= 4.
13306
13307 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
13308 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
13309 Removed.
13310 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
13311 (grub_pci_read): Fix bitmask.
13312 (grub_pci_read_word): Likewise.
13313 (grub_pci_read_byte): Likewise.
13314 (grub_pci_write): Likewise.
13315 (grub_pci_write_word): Likewise.
13316 (grub_pci_write_byte): Likewise.
13317
13318 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
13319
13320 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
13321 can still be specified in TARGET_CFLAGS)
13322
13323 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
13324
13325 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
13326
13327 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
13328 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
13329 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
13330 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
13331 (FULOONG): Rename to ...
13332 (FULOONG2F): ... this. All users updated.
13333 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
13334 (machtype_fuloong2f_str): ... this.
13335 (machtype_fuloong2e_str): New string.
13336 Check for machtype_fuloong2e_str.
13337 * grub-core/loader/mips/linux.c (loongson_machtypes)
13338 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
13339 * grub-core/term/serial.c (loongson_defserial)
13340 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
13341 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
13342 loongson_defserial.
13343 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
13344 Rename to ...
13345 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
13346 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
13347 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
13348 to IMAGE_FULOONG2F_FLASH. All users updated.
13349 (image_targets): Rename images.
13350 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
13351
13352 2011-08-19 Szymon Janc <szymon@janc.net.pl>
13353
13354 Make enable of disk cache statistics code configurable.
13355
13356 * configure.ac: --enable-cache-stats added.
13357 * config.h.in (DISK_CACHE_STATS): New define.
13358 * grub-core/Makefile.core.def (cacheinfo): New command.
13359 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
13360 * grub-core/commands/cacheinfo.c: New file.
13361 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
13362 moved to cacheinfo.c.
13363 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
13364 debug code.
13365 * include/grub/disk.h: Likewise.
13366
13367 2011-08-19 Szymon Janc <szymon@janc.net.pl>
13368
13369 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
13370 * grub-core/Makefile.am: Likewise.
13371
13372 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
13373
13374 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
13375 non-zero pull.
13376
13377 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
13378
13379 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
13380 All users updated.
13381 (grub_jfs_lookup_symlink): Use correct starting inode.
13382
13383 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
13384
13385 * util/grub-setup.c (main): Add missing gcry initialisation.
13386
13387 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
13388
13389 Don't accept text modes on EFI when booting Linux.
13390
13391 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
13392 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
13393
13394 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
13395 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
13396
13397 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
13398 use of "/path/.." as in grub-install for EFI as well as handling
13399 symlinks correctly.
13400 Fixes Debian bug #637768.
13401
13402 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
13403
13404 * util/grub-probe.c: Remove duplicate #include.
13405
13406 2011-08-10 Robert Millan <rmh@gnu.org>
13407
13408 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
13409
13410 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
13411 function.
13412 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
13413 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
13414
13415 2011-08-03 Robert Millan <rmh@gnu.org>
13416
13417 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
13418 la_array as packed.
13419 Reported by: Zachary Bedell
13420
13421 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
13422
13423 * configure.ac: The Loongson port requires grub-mkfont due to its
13424 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
13425 be built.
13426
13427 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
13428
13429 * util/grub-install.in: Don't source grub-mkconfig_lib until after
13430 processing arguments (otherwise help2man fails when GRUB has not yet
13431 been installed).
13432
13433 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
13434
13435 New script grub-mkstandalone.
13436
13437 * Makefile.util.def (grub-mkstandalone): New script.
13438 * docs/man/grub-mkstandalone.h2m: New file.
13439 * util/grub-mkstandalone.in: Likewise.
13440
13441 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
13442
13443 Support ATA disks with 4K sectors.
13444
13445 * include/grub/ata.h (grub_ata): New member log_sector_size.
13446 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
13447 (grub_ata_identify): Read sector size.
13448 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
13449
13450 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
13451
13452 * util/grub-install.in: Don't use uhci outside of x86.
13453
13454 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
13455
13456 * util/grub-mkrescue.in: Add missing quotes.
13457
13458 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
13459
13460 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
13461 dereference.
13462
13463 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
13464
13465 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
13466
13467 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
13468
13469 * include/grub/video.h: add missing EXPORT_FUND on
13470 grub_video_edid_checksum and grub_video_edid_preferred_mode.
13471
13472 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
13473
13474 * include/grub/mips/kernel.h: Fix define conflict.
13475
13476 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
13477
13478 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
13479 all four ways.
13480
13481 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
13482
13483 Preferred resolution detection for VBE.
13484
13485 * grub-core/video/video.c (grub_video_edid_checksum): New function.
13486 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
13487 the Flat Panel extension, in line with the X.org VESA driver.
13488 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
13489 New function.
13490 (grub_vbe_bios_get_ddc_capabilities): Likewise.
13491 (grub_vbe_bios_read_edid): Likewise.
13492 (grub_vbe_get_preferred_mode): Likewise.
13493 (grub_video_vbe_setup): When the mode is "auto", try to get the
13494 preferred mode from VBE, and use the largest mode that is no larger
13495 than the preferred mode (some BIOSes expose a preferred mode that is
13496 not in their mode list!). If this fails, fall back to 640x480 as a
13497 safe conservative choice.
13498 (grub_video_vbe_get_edid): New function.
13499 (grub_video_vbe_adapter): Add get_edid.
13500 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
13501 (struct grub_video_adapter): Add get_edid.
13502 (grub_video_edid_checksum): Add prototype.
13503 (grub_video_edid_preferred_mode): Likewise.
13504 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
13505 structure.
13506
13507 * grub-core/commands/videoinfo.c (print_edid): New function.
13508 (grub_cmd_videoinfo): Print EDID if available.
13509
13510 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
13511 is more appropriate on a wider range of platforms than 640x480.
13512 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
13513 documentation.
13514
13515 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
13516
13517 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
13518
13519 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
13520
13521 * po/POTFILES.in: Regenerate.
13522
13523 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
13524
13525 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
13526 incorrect memory usage.
13527
13528 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
13529
13530 * util/grub-install.in: Source grub-mkconfig_lib.
13531
13532 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
13533
13534 Remove getroot.c from core on emu platform.
13535
13536 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
13537 kern/emu/raid.c.
13538 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
13539 useless.
13540 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
13541 * util/getroot.c (get_win32_path): ... here.
13542 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
13543 * util/getroot.c (fini_libzfs): ... here.
13544 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
13545 * util/getroot.c (grub_get_libzfs_handle): ... here.
13546 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
13547 Moved from here...
13548 * util/getroot.c (grub_find_zpool_from_dir): ... here.
13549 * grub-core/kern/emu/misc.c
13550 (grub_make_system_path_relative_to_its_root): Moved from here...
13551 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
13552 * grub-core/kern/emu/getroot.c: Moved from here ...
13553 * util/getroot.c: ... here. All users updated.
13554 * grub-core/kern/emu/raid.c: Moved from here ...
13555 * util/raid.c: ... here. All users updated.
13556
13557 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
13558
13559 * po/POTFILES.in: Regenerate.
13560
13561 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
13562
13563 Fix compilation on GNU/Linux.
13564
13565 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
13566 Disable geli.
13567 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
13568 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
13569 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
13570
13571 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
13572 2011-07-07 Michael Gorven <michael@gorven.za.net>
13573 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
13574
13575 LUKS and GELI support.
13576
13577 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
13578 grub-core/disk/luks.c, grub-core/disk/geli.c,
13579 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
13580 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
13581 grub-core/lib/arg.c.
13582 (libgrubmods.a): Remove gcrypts cflags and cppflags.
13583 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
13584 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
13585 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
13586 (grub-bin2h): Add libgcry.a.
13587 (grub-mkimage): Likewise.
13588 (grub-mkrelpath): Likewise.
13589 (grub-script-check): Likewise.
13590 (grub-editenv): Likewise.
13591 (grub-mkpasswd-pbkdf2): Likewise.
13592 (grub-pe2elf): Likewise.
13593 (grub-fstest): Likewise.
13594 (grub-mkfont): Likewise.
13595 (grub-mkdevicemap): Likewise.
13596 (grub-probe): Likewise.
13597 (grub-ofpath): Likewise.
13598 (grub-mklayout): Likewise.
13599 (example_unit_test): Likewise.
13600 (grub-menulst2cfg): Likewise.
13601 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
13602 * grub-core/Makefile.core.def (cryptodisk): New module.
13603 (luks): Likewise.
13604 (geli): Likewise.
13605 * grub-core/disk/AFSplitter.c: New file.
13606 * grub-core/disk/cryptodisk.c: Likewise.
13607 * grub-core/disk/geli.c: Likewise.
13608 * grub-core/disk/luks.c: Likewise.
13609 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
13610 grub_util_is_lvm.
13611 (grub_util_get_dm_abstraction): New function.
13612 (grub_util_follow_gpart_up): Likewise.
13613 (grub_util_get_geom_abstraction): Likewise.
13614 (grub_util_get_dev_abstraction): Use new functions.
13615 (grub_util_pull_device): Pull GELI and LUKS.
13616 (grub_util_get_grub_dev): Handle LUKS and GELI.
13617 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
13618 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
13619 (follow_geom_up): Removed.
13620 (grub_util_fd_seek): New function.
13621 (open_device): Use grub_util_fd_seek.
13622 (nread): Rename to ..
13623 (grub_util_fd_read): ... this. All users updated.
13624 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
13625 (grub_crypto_cbc_decrypt): Likewise.
13626 (grub_crypto_hmac_write): Likewise.
13627 (grub_crypto_hmac_buffer): Likewise.
13628 (grub_password_get): Extend to util.
13629 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
13630 New member modname.
13631 (gcry_md_spec) [GRUB_UTIL]: Likewise.
13632 * include/grub/cryptodisk.h: New file.
13633 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
13634 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
13635 LUKS and GELI.
13636 (grub_util_follow_gpart_up): New proto.
13637 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
13638 (grub_util_fd_read): Likewise.
13639 (grub_cryptodisk_cheat_mount): Likewise.
13640 (grub_util_cryptodisk_print_uuid): Likewise.
13641 (grub_util_get_fd_sectors): Likewise.
13642 * util/grub-fstest.c (mount_crypt): New var.
13643 (fstest): Mount crypto if requested.
13644 (options): New option -C.
13645 (argp_parser): Parse -C.
13646 (main): Init and fini gcry.
13647 * util/grub-install.in: Support cryptodisk install.
13648 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
13649 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
13650 cryptodisk.
13651 (prepare_grub_to_access_device): Likewise.
13652 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
13653 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
13654 (probe_cryptodisk_uuid): New function.
13655 (probe_abstraction): Likewise.
13656 (probe): Use new functions.
13657 * util/import_gcry.py: Create Makefile.utilgcry.def.
13658 Add modname member.
13659
13660 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
13661
13662 Lazy device scanning.
13663
13664 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
13665 (grub-setup): Remove util/raid.c.
13666 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
13667 * grub-core/disk/lvm.c (scan_depth): New variable.
13668 (grub_lvm_iterate): Rescan if necessary.
13669 (find_lv): New function based on grub_lvm_open.
13670 (grub_lvm_open): Use find_lv. Rescan on error.
13671 (is_node_readable): New function.
13672 (is_lv_readable): Likewise.
13673 (grub_lvm_scan_device): Skip already found disks.
13674 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
13675 Stop if searched device is found and readable.
13676 * grub-core/disk/raid.c (inscnt): New variable.
13677 (scan_depth): Likewise.
13678 (scan_devices): New function based on grub_raid_register. Abort if
13679 looked for device is found.
13680 (grub_raid_iterate): Rescan if needed.
13681 (find_array): NEw function based on -grub_raid_open.
13682 (grub_raid_open): Use find_array and rescan.
13683 (insert_array): Set became_readable_at.
13684 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
13685 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
13686 New function.
13687 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
13688 (grub_util_pull_device): New function.
13689 (grub_util_get_grub_dev): Call grub_util_pull_device.
13690 * util/raid.c: Moved to ..
13691 * grub-core/kern/emu/raid.c: ... here.
13692 (grub_util_raid_getmembers): New parameter "bootable".
13693 All users updated. Support 1.x.
13694 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
13695 All users updated.
13696 * include/grub/disk.h (grub_disk_pull_t): New enum.
13697 (grub_disk_dev): Change iterate prototype.
13698 All users updated.
13699 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
13700 New proto.
13701 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
13702 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
13703 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
13704 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
13705 All users updated.
13706 * include/grub/util/raid.h: Removed.
13707
13708 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
13709
13710 * po/POTFILES.in: Regenerate.
13711
13712 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
13713
13714 Unify sparc init with other ieee1275.
13715
13716 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
13717 instead of kern/sparc64/ieee1275/init.c.
13718 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
13719 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
13720 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
13721 grub/machine/kernel.h.
13722 (grub_ieee1275_original_stack) [__sparc__]: New variable.
13723 (grub_claim_heap) [__sparc__]: Use sparc version.
13724 (grub_machine_init): Moved args parsing to
13725 (grub_parse_cmdline): ...this.
13726 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
13727 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
13728 New definition.
13729 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
13730
13731 Move BOOTP to separate file.
13732
13733 * grub-core/Makefile.core.def (net): Add net/bootp.c.
13734 * grub-core/net/net.c: Move all BOOTP functions to
13735 * grub-core/net/bootp.c: ... here.
13736
13737 Use frame interface on PXE.
13738
13739 * grub-core/Makefile.core.def (pxecmd): Removed.
13740 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
13741 * grub-core/commands/i386/pc/pxecmd.c: Removed.
13742 * grub-core/i386/pc/pxe.c: Moved from here ...
13743 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
13744 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
13745 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
13746
13747 EFI network support.
13748
13749 * grub-core/Makefile.core.def (efinet): New module.
13750 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
13751 here...
13752 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
13753 All users updated.
13754 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
13755 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
13756 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
13757 * grub-core/net/drivers/efi/efinet.c: New file.
13758 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
13759 (grub_efi_net_config): New extern var.
13760
13761 Various cleanups and bugfixes.
13762
13763 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
13764 error.
13765 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
13766 disk declared as partition.
13767 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
13768 leak on failure.
13769 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
13770 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
13771 (grub_debug_zalloc): Likewise.
13772 (grub_debug_realloc): Likewise.
13773 (grub_debug_memalign): Likewise.
13774 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
13775 Check that target is IPv4.
13776 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
13777 local-mac-address as fallback.
13778 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
13779 memory leak.
13780 * grub-core/net/ip.c (ipchksum): Rename to ...
13781 (grub_net_ip_chksum): ... this. All users updated.
13782 (grub_net_recv_ip_packets): Special handling for DHCP.
13783 * util/grub-mkimage.c (generate_image): Zero-out aout header.
13784
13785 Unify prefix handling
13786
13787 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
13788 (grub_machine_get_bootlocation): ... this.
13789 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
13790 (grub_machine_get_bootlocation): ... this.
13791 (grub_prefix): New variable.
13792 (prefix): Removed.
13793 (root_dev): New variable.
13794 (dir): Likewise.
13795 (main): Use new variables.
13796 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
13797 Revamped into ...
13798 (grub_machine_get_bootlocation): ... this.
13799 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
13800 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
13801 (grub_machine_get_bootlocation): ... this.
13802 (grub_machine_set_prefix): Removed.
13803 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
13804 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
13805 Revamped into ...
13806 (grub_machine_get_bootlocation): ... this.
13807 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
13808 (grub_set_prefix_and_root): ... this. All users updated.
13809 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
13810 Revamped into ...
13811 (grub_machine_get_bootlocation): ... this.
13812 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
13813 (grub_machine_get_bootlocation): New proto.
13814 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
13815
13816 Less intrusive and more reliable seek on network implementation.
13817
13818 * grub-core/kern/file.c (grub_file_net_seek): Removed.
13819 (grub_file_seek): Don't call grub_file_net_seek.
13820 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
13821 (grub_net_fs_read_real): .. this.
13822 (grub_net_seek_real): Use net->offset.
13823 (grub_net_fs_read): Seek if necessary.
13824
13825 Unify IEEE1275 netwotk config with the other platforms.
13826
13827 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
13828 New variable.
13829 (grub_machine_get_bootlocation): Support network.
13830 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
13831 Support type and device parsing.
13832 (grub_ieee1275_get_device_type): New function.
13833 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
13834 into ...
13835 (grub_ieee1275_net_config_real): ... this.
13836 (grub_ofnet_probecards): Removed.
13837 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
13838 * include/grub/ieee1275/ofnet.h: Removed.
13839 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
13840 extern var.
13841 (grub_ieee1275_get_device_type): New function.
13842
13843 Unify network device closing across platforms and make more robust.
13844
13845 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
13846 grub_grubnet_fini.
13847 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
13848 already.
13849 * grub-core/net/net.c (grub_net_network_level_interface_register):
13850 Update num_ifaces.
13851 (grub_net_card_unregister): Close all interfaces.
13852 (receive_packets): Don't poll if no iterfaces are registered.
13853 Open if necessary.
13854 (grub_net_fini_hw): New function.
13855 (grub_net_restore_hw): Likewise.
13856 (fini_hnd): New variable.
13857 (GRUB_MOD_INIT): Register preboot hook.
13858 (GRUB_MOD_FINI): Run and unregister preboot hook.
13859
13860 Poll network cards when idle.
13861
13862 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
13863 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
13864 * grub-core/net/net.c (receive_packets): Save last poll time.
13865 (grub_net_poll_cards_idle_real): New function.
13866 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
13867 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
13868 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
13869
13870 Rename ofnet interfaces.
13871
13872 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
13873 (grub_ofnet_findcards): Use ofnet_%s names.
13874
13875 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
13876
13877 Cleanup socket opening.
13878
13879 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
13880 (grub_net_fs_close): Likewise.
13881 (grub_net_fs_read_real): Use eof member.
13882 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
13883 (+grub_net_udp_close): New inline function.
13884
13885 * include/grub/net/tftp.h: Moved to the top of ...
13886 * grub-core/net/tftp.c: ... here.
13887 * include/grub/net/ip.h: Moved mostly to the top of ...
13888 * grub-core/net/ip.c: ... here.
13889 * include/grub/net/ethernet.h: Moved mostly to the top of ...
13890 * grub-core/net/ethernet.c: ... here.
13891
13892 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
13893
13894 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
13895 FS name.
13896
13897 * include/grub/net/ip.h (ipv4_ini): Removed.
13898 (ipv4_fini): Likewise.
13899
13900 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
13901 (grub_net_send_ip_packets): Likewise.
13902
13903 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13904
13905 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
13906 grub_read_cmos prototype.
13907
13908 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13909
13910 VGA text support in qemu-mips
13911
13912 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
13913 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
13914 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
13915 text.
13916 * grub-core/kern/i386/qemu/init.c: Renamed to ...
13917 * grub-core/kern/vga_init.c: ... this.
13918 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
13919 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
13920 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
13921 Adjust.
13922 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
13923 GRUB_MACHINE_PCI_IO_BASE.
13924
13925 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13926
13927 MIPS qemu flash support.
13928
13929 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
13930 magic.
13931 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
13932 (grub_machine_init): Probe memory if its size isn't known.
13933 * util/grub-mkimage.c (image_targets): Add flash targets.
13934 (generate_image): Handle flash targets.
13935
13936 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13937
13938 MIPS qemu at_keyboard support.
13939
13940 * gentpl.py (videoinkernel): Add qemu-mips.
13941 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
13942 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
13943 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
13944 modules.
13945 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
13946 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
13947 * grub-core/term/serial.c (grub_serial_register)
13948 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
13949
13950 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
13951
13952 CMOS support on sparc.
13953
13954 * gentpl.py (cmos): Add powerpc and sparc.
13955 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
13956 powerpc and sparc.
13957 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
13958 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
13959 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
13960 grub_set_datetime_cmos.
13961 * grub-core/lib/ieee1275/cmos.c: New file.
13962 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
13963 (find_rtc): Set no_ieee1275_rtc on error.
13964 (grub_get_datetime): Call grub_get_datetime_cmos on error.
13965 (grub_set_datetime): Call grub_set_datetime_cmos on error.
13966 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
13967 fail. Move value to argument. All users updated
13968 (grub_cmos_write): Likewise.
13969 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
13970 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
13971 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
13972 grub_get_datetime_cmos and grub_set_datetime_cmos.
13973
13974 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
13975
13976 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
13977 sourcing grub-mkconfig_lib.
13978 * util/update-grub_lib.in: Likewise.
13979 * util/grub.d/00_header.in: Likewise.
13980 * util/grub.d/10_hurd.in: Likewise.
13981 * util/grub.d/10_kfreebsd.in: Likewise.
13982 * util/grub.d/10_linux.in: Likewise.
13983 * util/grub.d/10_netbsd.in: Likewise.
13984 * util/grub.d/10_windows.in: Likewise.
13985 * util/grub.d/20_linux_xen.in: Likewise.
13986 * util/grub.d/30_os-prober.in: Likewise.
13987
13988 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
13989
13990 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
13991 default_bg_color rather than black.
13992 (grub_gfxterm_fullscreen): Likewise.
13993 (grub_gfxterm_background_color_cmd): Save new background color in
13994 default_bg_color.
13995
13996 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13997
13998 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
13999
14000 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14001
14002 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
14003 mismerge.
14004
14005 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14006
14007 Chainloading on coreboot support.
14008
14009 * grub-core/Makefile.core.def (chain): Add coreboot.
14010 * grub-core/loader/i386/coreboot/chainloader.c: New file.
14011
14012 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14013
14014 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
14015 if it happens.
14016
14017 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14018
14019 Implement time command.
14020
14021 * grub-core/Makefile.core.def (time): New module.
14022 * grub-core/commands/time.c: New file.
14023 * grub-core/script/parser.y: Remove "time" keyword.
14024 * grub-core/script/yylex.l: Likewise.
14025
14026 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14027
14028 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
14029
14030 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14031
14032 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
14033 when handling leftovers.
14034
14035 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14036
14037 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
14038 so that help2man doesn't fail.
14039
14040 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14041
14042 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
14043 type in pointers on sparc64.
14044 (get_card_packet): Likewise.
14045
14046 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
14047
14048 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
14049 with `*'.
14050 (grub_cmd_videoinfo): Fetch current video mode.
14051
14052 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14053
14054 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
14055 because of underlying system restrictions.
14056
14057 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14058
14059 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
14060 necessary.
14061
14062 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14063
14064 Coreboot video support.
14065
14066 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
14067 (vbe): Likewise.
14068 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
14069 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
14070 here ...
14071 * grub-core/kern/i386/int.S: ... here.
14072 * grub-core/video/i386/pc/vbe.c: Updated includes.
14073 * grub-core/video/i386/pc/vga.c: Likewise.
14074 * include/grub/i386/coreboot/memory.h
14075 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
14076 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
14077 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
14078 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
14079 Disable interrupts.
14080 * include/grub/i386/pc/vga.h: Removed. All users updated.
14081
14082 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14083
14084 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
14085 definitions for dprintf.
14086 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
14087
14088 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
14089
14090 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
14091 prototype.
14092 (get_card_packet): Likewise.
14093
14094 2011-06-26 Yves Blusseau <blusseau@zetam.org>
14095
14096 Display the path of the file when file is not found
14097
14098 * grub-core/fs/fat.c: Display the filename when file is not found.
14099 * grub-core/fs/fshelp.c: Likewise.
14100 * grub-core/fs/hfs.c: Likewise.
14101 * grub-core/fs/jfs.c: Likewise.
14102 * grub-core/fs/minix.c: Likewise.
14103 * grub-core/fs/ufs.c: Likewise.
14104 * grub-core/fs/btrfs.c: Likewise.
14105 * grub-core/commands/i386/pc/play.c: Likewise.
14106
14107 2011-06-26 Szymon Janc <szymon@janc.net.pl>
14108
14109 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
14110 pointer checks before calling grub_free().
14111 * grub-core/commands/wildcard.c (match_devices): Likewise.
14112 * grub-core/commands/wildcard.c (match_files): Likewise.
14113 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
14114 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
14115 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
14116 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
14117 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
14118 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
14119 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
14120 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
14121 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
14122
14123 2011-06-25 Patrick <p55@mailinator.com>
14124
14125 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
14126
14127 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
14128
14129 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
14130 (grub_pxe_send): Likewise.
14131 (GRUB_MOD_INIT): Fix types.
14132
14133 2011-06-24 Szymon Janc <szymon@janc.net.pl>
14134
14135 * grub-core/io/xzio.c: Fix code style issues
14136
14137 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
14138 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
14139
14140 Network infrastructure.
14141 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
14142
14143 * include/grub/net/arp.h: New file.
14144 * include/grub/net/device.h: Likewise.
14145 * include/grub/net/ethernet.h: Likewise.
14146 * include/grub/net/ip.h: Likewise.
14147 * include/grub/net/netbuff.h: Likewise.
14148 * include/grub/net/tftp.h: Likewise.
14149 * include/grub/net/udp.h: Likewise.
14150 * include/grub/ieee1275/ofnet.h: Likewise.
14151 * include/grub/emu/export.h: Likewise.
14152 * include/grub/net.h: Likewise.
14153 * grub-core/net/arp.c: Likewise.
14154 * grub-core/net/ethernet.c: Likewise.
14155 * grub-core/net/ip.c: Likewise.
14156 * grub-core/net/udp.c: Likewise.
14157 * grub-core/net/tftp.c: Likewise.
14158 * grub-core/net/netbuff.c: Likewise.
14159 * grub-core/net/net.c: Likewise.
14160 * grub-core/net/drivers/emu/emunet.c: Likewise.
14161 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
14162 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
14163 export.h.
14164 * grub-core/Makefile.core.def (net): New module.
14165 (tftp): Likewise.
14166 (ofnet): Likewise.
14167 (emunet): Likewise.
14168 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
14169 network protocols.
14170 * grub-core/kern/device.c (grub_net_open) : New variable.
14171 (grub_device_open): Handle network device.
14172 (grub_device_close): Likewise.
14173 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
14174 (grub_grubnet_fini): Likewise.
14175 (grub_file_seek): Seek in network device.
14176 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
14177 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
14178 network root.
14179 (grub_machine_fini): Call grub_grubnet_fini.
14180 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
14181 network.
14182 (grub_ieee1275_get_aliasdevname): New function.
14183 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
14184 Add unofficial Solaris network info.
14185 (grub_multiboot_make_mbi): Likewise.
14186 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
14187 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
14188 * include/grub/device.h (grub_fs): Removed.
14189 * include/grub/err.h (grub_err_t): Add network-related values.
14190 * include/grub/i386/pc/pxe.h: Removed bootp parts.
14191 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
14192 (grub_ieee1275_get_aliasdevname): New proto.
14193 * include/grub/net.h: Rewritten.
14194
14195 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
14196
14197 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
14198 names.
14199
14200 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
14201
14202 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
14203 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
14204 it truncates the output.
14205 Reported by: Ximin Luo.
14206
14207 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
14208
14209 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
14210
14211 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
14212
14213 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
14214 partmap before abstraction.
14215
14216 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
14217
14218 * util/grub-mkconfig_lib.in: Add missing quotes.
14219
14220 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
14221
14222 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
14223 old method if mountinfo would return /dev/root and /dev/root doesn't
14224 exist.
14225
14226 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
14227
14228 ZFS zlib support
14229
14230 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
14231 (decomp_table): Add zlib entries.
14232 (zio_read): USe 8 bits for compression function rather than 3.
14233 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
14234
14235 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
14236
14237 * grub-core/disk/ahci.c: Add missing license statements.
14238 * grub-core/fs/romfs.c: Likewise.
14239 * grub-core/lib/ia64/setjmp.S: Likewise.
14240 * grub-core/loader/i386/pc/freedos.c: Likewise.
14241 * grub-core/loader/ia64/efi/linux.c: Likewise.
14242 * grub-core/video/colors.c: Likewise.
14243 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
14244
14245 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14246
14247 AHCI support.
14248
14249 * grub-core/Makefile.core.def (ata_pthru): Removed.
14250 (ahci): New module.
14251 (pata): Likewise.
14252 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
14253 on unload.
14254 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
14255 readwrite.
14256 (grub_hdparm_do_check_powermode_cmd): Likewise.
14257 (grub_hdparm_do_smart_cmd): Likewise.
14258 (grub_hdparm_set_val_cmd): Likewise.
14259 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
14260 * grub-core/disk/ahci.c: New file.
14261 * grub-core/disk/ata.c: Factor out the low-level part into ...
14262 * grub-core/disk/pata.c: ... here.
14263 * grub-core/disk/ata_pthru.c: Contents moved to ...
14264 * grub-core/disk/pata.c: ... here.
14265 * grub-core/disk/scsi.c (grub_scsi_names): New array.
14266 (grub_scsi_iterate): Use grub_scsi_names.
14267 (grub_scsi_open): Likewise.
14268 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
14269 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
14270 (grub_ata_regs_t): New struct.
14271 (grub_disk_ata_pass_through_parms): Likewise.
14272 (grub_ata_device): Renamed to ...
14273 (grub_ata): ... this.
14274 (grub_ata_dev): New struct.
14275 Removed all low-level inline functions.
14276 * include/grub/scsi.h: Add PATA and AHCI subsystems.
14277 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
14278 iterate hooks and open. All users updated.
14279 * util/grub-install.in: Handle AHCI disk module.
14280
14281 2011-06-23 Szymon Janc <szymon@janc.net.pl>
14282
14283 Add support for DRI and RSTn markers in JPEG files.
14284
14285 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
14286 (JPEG_MARKER_RST0): Likewise.
14287 (JPEG_MARKER_RST1): Likewise.
14288 (JPEG_MARKER_RST2): Likewise.
14289 (JPEG_MARKER_RST3): Likewise.
14290 (JPEG_MARKER_RST4): Likewise.
14291 (JPEG_MARKER_RST5): Likewise.
14292 (JPEG_MARKER_RST6): Likewise.
14293 (JPEG_MARKER_RST7): Likewise.
14294 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
14295 (grub_jpeg_decode_dri): New function.
14296 (grub_jpeg_decode_sos): Move image data related part into
14297 grub_jpeg_decode_data function.
14298 (grub_jpeg_decode_data): New function.
14299 (grub_jpeg_reset): New function.
14300 (grub_jpeg_decode_jpeg): Handle new markers.
14301
14302 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14303
14304 * util/ieee1275/ofpath.c (check_sas): Close fd.
14305 (main): Free of_path.
14306 Reported by: David Volgyes <dvolgyes>.
14307
14308 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14309
14310 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
14311 Reported by: David Volgyes <dvolgyes>.
14312
14313 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14314
14315 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
14316 file after stat.
14317 Reported by: David Volgyes <dvolgyes>.
14318
14319 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14320
14321 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
14322
14323 Reported by: David Volgyes <dvolgyes>.
14324
14325 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14326
14327 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
14328 Prevent memory leak.
14329
14330 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14331
14332 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
14333 (main): Close file.
14334 Reported by: David Volgyes <dvolgyes>.
14335
14336 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14337
14338 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
14339 to continue if allocation is failed.
14340
14341 Reported by: David Volgyes <dvolgyes>.
14342
14343 2011-06-23 David Volgyes <dvolgyes>
14344
14345 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
14346 dereference.
14347
14348 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14349
14350 Fix spurious warning.
14351
14352 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
14353 (acorn_partition_map_find): Use .bin member.
14354
14355 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14356
14357 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
14358 /dev/root as a valid device.
14359
14360 2011-06-23 Jim Meyering <meyering@redhat.com>
14361
14362 Avoid NULL deref in grub_device_open.
14363
14364 * grub-core/kern/device.c (grub_device_open): Don't dereference
14365 a NULL pointer upon failed grub_env_get.
14366
14367 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
14368
14369 Support non-512B sectors and agglomerate reads.
14370
14371 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
14372 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
14373 (disk_io_guid): Removed.
14374 (make_devices): Locate solely by BlockIO.
14375 (grub_efidisk_open): Fill log_sector_size and total_sectors.
14376 (grub_efidisk_read): Use read_blocks.
14377 (grub_efidisk_write): Use write_blocks.
14378 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
14379 log_sector_size.
14380 (get_safe_sectors): Handle non-512B sectors.
14381 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
14382 sectors.
14383 (grub_biosdisk_write): Handle non-512B sectors.
14384 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
14385 (grub_scsi_read): Remove special non-512B block handling (now handled
14386 one level up).
14387 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
14388 and do sanity checks.
14389 (grub_disk_adjust_range): Handle non-512B sectors.
14390 (transform_sector): New function.
14391 (grub_disk_read_small): Likewise.
14392 (grub_disk_read): Rewritten.
14393 (grub_disk_write): Handle non-512B sectors.
14394 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
14395 log_sector_size.
14396 (open_device): Use log_sector_size.
14397 (grub_util_biosdisk_read): Likewise.
14398 (grub_util_biosdisk_write): Likewise.
14399 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
14400 non-512B sectors.
14401 (pc_partition_map_embed): Likewise.
14402 * include/grub/disk.h (grub_disk): New field log_sector_size.
14403 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
14404 (GRUB_DISK_CACHE_BITS): Increased to 6.
14405 * util/grub-fstest.c (fstest): New command testload.
14406 (argp_parser): Likewise.
14407
14408 2011-06-16 Robert Millan <rmh@gnu.org>
14409
14410 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
14411 `ata' driver on kernel of FreeBSD 9.
14412
14413 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
14414 (get_ataraid_disk_name): New functions.
14415 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
14416 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
14417 get_ataraid_disk_name() and get_ada_disk_name().
14418
14419 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
14420
14421 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
14422 input format.
14423
14424 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
14425
14426 * docs/grub.texi (Obtaining and Building GRUB): Substitute
14427 `ftp.gnu.org' for `alpha.gnu.org'.
14428
14429 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
14430
14431 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
14432 partitions under /dev/disk/by-id/.
14433
14434 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
14435
14436 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
14437 after ten consecutive open failures. Scanning all the way up to
14438 10000 is excessive and can cause serious performance problems in
14439 some configurations.
14440 Fixes Ubuntu bug #787461.
14441
14442 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
14443
14444 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
14445 opening new one.
14446
14447 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
14448 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
14449
14450 Don't stat devices unless we have to.
14451
14452 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
14453 dir == /dev/mapper.
14454 (grub_guess_root_device): Use already known os_dev if possible.
14455 * grub-core/kern/emu/hostdisk.c
14456 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
14457 if device is known to be a dm one.
14458
14459 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
14460
14461 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
14462 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
14463 Reported by: Pawel Tecza.
14464
14465 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
14466
14467 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
14468 (lsefisystab): Likewise.
14469 (lssal): Likewise.
14470 (lsefimmap): Likewise.
14471 (hdparm): Enable on qemu-mips.
14472 (setjmp): Add ia64 nodist.
14473 (serial): Simplify tags.
14474
14475 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
14476
14477 * Makefile.util.def (grub-ofpathname): Install manual page.
14478
14479 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
14480
14481 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
14482
14483 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
14484
14485 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
14486
14487 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14488
14489 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
14490 into dprintf.
14491
14492 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14493
14494 Use full 64-bit division.
14495
14496 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
14497 (grub_divmod64): ... this.
14498 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
14499 version.
14500
14501 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
14502
14503 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
14504 `source'.
14505
14506 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
14507
14508 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
14509 to avoid accidents when debugging with 'sh -x'.
14510 * grub-core/gensyminfo.sh.in: Likewise.
14511 * tests/example_scripted_test.in: Likewise.
14512 * tests/grub_cmd_regexp.in: Likewise.
14513 * tests/grub_script_blanklines.in: Likewise.
14514 * tests/grub_script_dollar.in: Likewise.
14515 * tests/grub_script_expansion.in: Likewise.
14516 * tests/grub_script_final_semicolon.in: Likewise.
14517 * tests/partmap_test.in: Likewise.
14518 * tests/util/grub-shell-tester.in: Likewise.
14519 * tests/util/grub-shell.in: Likewise.
14520
14521 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
14522
14523 Move gfxmenu color handling to video, so that gfxterm can use it
14524 too.
14525
14526 * grub-core/gfxmenu/named_colors.c: Move to ...
14527 * grub-core/video/colors.c: ... here. Rename
14528 grub_gui_get_named_color to grub_video_get_named_color.
14529 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
14530 * grub-core/video/colors.c (my_isxdigit): ... here.
14531 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
14532 Move to ...
14533 * grub-core/video/colors.c (parse_hex_color_component): ... here.
14534 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
14535 to ...
14536 * grub-core/video/colors.c (grub_video_parse_color): ... here.
14537
14538 * include/grub/gui.h (grub_gui_color_t): Move to ...
14539 * include/grub/video.h (grub_video_rgba_color_t): ... here.
14540 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
14541 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
14542 * include/grub/gui.h (grub_gui_map_color): Move to ...
14543 * include/grub/video.h (grub_video_map_rgba_color): ... here.
14544 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
14545 to ...
14546 * include/grub/video.h (grub_video_get_named_color): ... here.
14547 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
14548 * include/grub/video.h (grub_video_parse_color): ... here.
14549
14550 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
14551 video/colors.c.
14552 (gfxmenu): Remove gfxmenu/named_colors.c.
14553 (video) [videomodules]: Add video/colors.c.
14554
14555 Add a background_color command.
14556
14557 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
14558 function.
14559 (GRUB_MOD_INIT): Register background_color command.
14560 (GRUB_MOD_FINI): Unregister background_color command.
14561 (redraw_screen_rect): Allow blend/replace of text layer to be
14562 controlled independently from whether there is a background bitmap.
14563 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
14564 changing bitmap.
14565
14566 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14567
14568 Patch BPB in ntldr and chainloader --bpb.
14569
14570 * grub-core/fs/fat.c: Include grub/fat.h.
14571 (grub_fat_bpb): Moved to ...
14572 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
14573 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
14574 grub/ntfs.h.
14575 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
14576 Moved from here...
14577 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
14578 here.
14579 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
14580 New function.
14581 (grub_chainloader_cmd): Patch BPB if --bpb is given.
14582 (GRUB_MOD_INIT): Show --bpb.
14583 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
14584 * grub-core/normal/main.c (features): New variable.
14585 (GRUB_MOD_INIT): Set feature_* variables.
14586 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
14587 proto.
14588 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
14589
14590 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14591
14592 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
14593 for cleanness.
14594
14595 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14596
14597 FreeDOS direct loading support.
14598
14599 * docs/grub.texi (Supported OS): Add FreeDOS.
14600 * grub-core/Makefile.core.def (freedos): New module.
14601 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
14602 variable.
14603 (grub_relocator16_boot): Handle %ebx.
14604 * grub-core/lib/i386/relocator16.S: Likewise.
14605 * grub-core/loader/i386/pc/freedos.c: New file.
14606
14607 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14608
14609 Long Linux command line support.
14610
14611 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
14612 (maximal_cmdline_size): New variable.
14613 (allocate_pages): Use maximal_cmdline_size.
14614 (grub_cmd_linux): Set and use maximal_cmdline_size.
14615 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
14616 (allocate_pages): Use maximal_cmdline_size.
14617 (grub_cmd_linux): Set and use maximal_cmdline_size.
14618 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
14619 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
14620 and cmdline_size.
14621
14622 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14623 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
14624
14625 Improve devmapper support
14626
14627 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
14628 (grub_util_is_lvm): New function.
14629 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
14630 than lvm if not dmraid.
14631 Handle mapped md nodes.
14632 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
14633 (grub_util_device_is_mapped): ... this. Make always available. All users
14634 updated.
14635 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
14636 (convert_system_partition_to_system_disk): Handle lvm, mpath and
14637 dmraid nodes.
14638 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
14639
14640 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14641
14642 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
14643
14644 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
14645 * grub-core/modinfo.sh.in: New file.
14646 * grub-core/Makefile.core.def (modinfo.sh): New script.
14647 * util/grub-mknetdir.in: Use modinfo.sh.
14648 * util/grub-mkrescue.in: Likewise.
14649
14650 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14651
14652 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
14653 Fix potential usage of Elf32 instead of Elf64 when compiling on
14654 32-bit architecture. Add endianness macros while on it.
14655
14656 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14657
14658 Use mipsel- rather than mips- in directories involving mipsel ports to
14659 allow both endiannesses coexist.
14660
14661 * configure.ac: proparate target_cpu=mipsel rather than resetting to
14662 mips. All conditions adjusted.
14663 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
14664 variable.
14665 * util/grub-install.in: Adjust conditions to take renaming into account.
14666 * util/grub-mkimage.c (image_targets): Likewise. New target
14667 mips-qemu_mips-elf for bigendian mips.
14668
14669 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14670
14671 Avoid unnecessary copying on MIPS.
14672
14673 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
14674 early if src == dest.
14675 * util/grub-mkimage.c (generate_image): Arange for src == dest if
14676 compression is none.
14677
14678 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14679
14680 Reduce memory footprint on SGI by putting modules before the kernel
14681 as opposed to after.
14682
14683 * grub-core/Makefile.core.def (kernel): Increase linking address.
14684 (none_decompress): Likewise.
14685 (xz_decompress): Likewise.
14686 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
14687 address.
14688 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
14689 layout change.
14690 (grub_arch_modules_addr): New function.
14691 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
14692 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
14693 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
14694 here.
14695 * grub-core/kern/mips/startup.S (total_size): Rename to ...
14696 (grub_total_modules_size): ... this. Make global.
14697 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
14698 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
14699 New definition.
14700 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
14701 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
14702 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
14703 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
14704 * util/grub-mkimage.c (image_target_desc): New flag
14705 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
14706 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
14707 (generate_image): Handle images with modules before kernel.
14708
14709 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14710
14711 Prevent potential loss of memory map by overwrite on qemu-mips.
14712
14713 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
14714 Save ram size in $s4.
14715 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
14716 All users changed to grub_arch_memsize.
14717 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
14718 Loongson.
14719 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
14720 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
14721 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
14722 external variable.
14723
14724 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
14725
14726 * .bzrignore: Remove grub-dumpbios.
14727
14728 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
14729
14730 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
14731 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
14732 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
14733 existing options which append).
14734 * docs/grub.texi (Simple configuration): Document new options.
14735 Reported by: Ian Jackson. Fixes Debian bug #617538.
14736
14737 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
14738
14739 * util/grub-fstest.c (cmd_cat): New function.
14740 (fstest): Handle CMD_CAT.
14741 (options): Add cat.
14742 (argp_parser): Handle cat.
14743
14744 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
14745
14746 * Makefile.util.def (grub-bin2h): Don't install.
14747 * docs/man/grub-bin2h.h2m: Remove.
14748
14749 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14750
14751 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
14752 place.
14753
14754 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14755
14756 Reenable qemu-mips port.
14757
14758 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
14759 Fix small arc bug while on it.
14760 * gentpl.py: Handle qemu_mips.
14761 * grub-core/Makefile.am: Likewise.
14762 * grub-core/Makefile.core.def: Likewise.
14763 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
14764 inappropriate includes.
14765 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
14766 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
14767 * grub-core/kern/main.c (grub_modules_get_end)
14768 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
14769 * grub-core/kern/mips/qemu-mips: Moved to ..
14770 * grub-core/kern/mips/qemu_mips: ... this.
14771 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
14772 (grub_machine_init): Call terminfo_init and serial_init.
14773 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
14774 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
14775 New variable.
14776 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
14777 parameter passing.
14778 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
14779 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
14780 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
14781 * include/grub/mips/qemu_mips/cmos.h: New file.
14782 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
14783 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
14784 Removed.
14785 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
14786 Use correct mips-style address.
14787 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
14788 (GRUB_TICKS_PER_SECOND): Removed.
14789 (grub_get_rtc): Likewise.
14790 (grub_cpu_idle): Likewise.
14791 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
14792 New definition.
14793 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
14794 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
14795 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
14796 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
14797 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
14798 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
14799 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
14800 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
14801
14802 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14803
14804 SGI ARCS port.
14805
14806 * Makefile.util.def (libgrubmods.a): Add dvh.c.
14807 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
14808 platforms.
14809 * configure.ac: New target mips-arc.
14810 * gentpl.py: Likewise.
14811 * grub-core/Makefile.am: Likewise.
14812 * grub-core/Makefile.core.def: Likewise.
14813 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
14814 (none_decompress): Likewise.
14815 (lsdev): New module.
14816 (datetime): Use lib/arc/datetime.c on ARC.
14817 (part_dvh): New module.
14818 * grub-core/commands/arc/lsdev.c: New file.
14819 * grub-core/disk/arc/arcdisk.c: Likewise.
14820 * grub-core/kern/mips/arc/init.c: Likewise.
14821 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
14822 aligned addresses.
14823 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
14824 support.
14825 (grub_arch_dl_relocate_symbols): Likewise.
14826 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
14827 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
14828 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
14829 platforms.
14830 * grub-core/lib/arc/datetime.c: New file.
14831 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
14832 pci.h on non-loongson.
14833 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
14834 (grub_linux_boot): Set unused registers to 0.
14835 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
14836 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
14837 * grub-core/mmap/mips/uppermem.c: ...here.
14838 * grub-core/partmap/dvh.c: New file.
14839 * grub-core/term/arc/console.c: Likewise.
14840 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
14841 (grub_terminfo_set_current): Add terminal "arc".
14842 (grub_terminfo_readkey): Support ARC sequences.
14843 * include/grub/arc/arc.h: New file.
14844 * include/grub/arc/console.h: Likewise.
14845 * include/grub/disk.h (grub_disk_dev_id): Add
14846 GRUB_DISK_DEVICE_ARCDISK_ID.
14847 * include/grub/mips/arc/kernel.h: New file.
14848 * include/grub/mips/arc/memory.h: Likewise.
14849 * include/grub/mips/arc/time.h: Likewise.
14850 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
14851 * include/grub/mips/kernel.h (grub_halt): ... here.
14852 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
14853 here...
14854 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
14855 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
14856 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
14857 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
14858 proto.
14859 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
14860 from here ...
14861 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
14862 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
14863 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
14864 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
14865 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
14866 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
14867 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
14868 (grub_phys_addr_t): Moved from here ...
14869 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
14870 (grub_vtop): Moved from here ...
14871 * include/grub/mips/memory.h (grub_vtop): ... here.
14872 (grub_map_memory): Moved from here ...
14873 * include/grub/mips/memory.h (grub_map_memory): ... here.
14874 (grub_unmap_memory): Moved from here ...
14875 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
14876 (grub_machine_mmap_iterate): Moved from here ...
14877 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
14878 (grub_mmap_get_lower): Moved from here ...
14879 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
14880 (grub_mmap_get_upper): Moved from here ...
14881 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
14882 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
14883 here ...
14884 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
14885 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
14886 here ...
14887 * include/grub/mips/time.h (grub_get_rtc): ... here.
14888 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
14889 here ...
14890 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
14891 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
14892 here ...
14893 * include/grub/mips/time.h (grub_cpu_idle): ... here.
14894 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
14895 definition.
14896 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
14897 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
14898 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
14899 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
14900 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
14901 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
14902 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
14903 (GRUB_MACHINE_LINK_ADDR): Likewise.
14904 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
14905 to 6.
14906 * util/grub-install.in: Run dvhtool on ARC.
14907 * util/grub-mkimage.c (image_targets): Add mips-arc.
14908 (generate_image): Handle ECOFF output for mips-arc.
14909
14910 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
14911
14912 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
14913 blocks.
14914
14915 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
14916
14917 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
14918 after enabling port.
14919
14920 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
14921
14922 Skip incorrect USB devices.
14923
14924 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
14925 configcnt == 0.
14926 * include/grub/usb.h (grub_usb_err_t): New enum value
14927 GRUB_USB_ERR_BADDEVICE.
14928
14929 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
14930
14931 Fuloong video init support.
14932
14933 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
14934 well.
14935 (grub_vga_read_arx): New function.
14936 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
14937 definition.
14938 (framebuffer): New members io, mmioptr and mmiobase.
14939 (read_sis_cmd): New function.
14940 (write_sis_cmd): Likewise.
14941 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
14942 rather than 640x400.
14943 * grub-core/video/sis315_init.c: New file.
14944
14945 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14946
14947 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
14948 non-loongson.
14949 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
14950 to grub_dl_register_symbol.
14951
14952 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14953
14954 Fix compilation errors.
14955
14956 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
14957 potentially unused.
14958 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
14959 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
14960 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
14961 to loongson machines.
14962
14963 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
14964
14965 Several FS mtime support.
14966
14967 * grub-core/fs/affs.c (grub_affs_time): New struct.
14968 (grub_affs_file): New field mtime.
14969 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
14970 type. Removed 'size'. New field 'di'. All users updated.
14971 (grub_affs_mount): Simplify checsum checking.
14972 (grub_affs_iterate_dir): New helper grub_affs_create_node.
14973 (grub_affs_dir): Handle mtime.
14974 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
14975 (grub_cpio_dir): Likewise.
14976 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
14977 (grub_hfs_filerec): New field mtime.
14978 (grub_hfs_dir): Handle mtime.
14979 (grub_hfs_mtime): New function.
14980 (grub_hfs_fs): Register grub_hfs_mtime.
14981 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
14982 (grub_iso9660_dir): New field mtime.
14983 (grub_fshelp_node): New field dirent.
14984 (iso9660_to_unixtime): New function.
14985 (iso9660_to_unixtime2): Likewise.
14986 (grub_iso9660_read_symlink): Use node->dirent.
14987 (grub_iso9660_iterate_dir): Likewise.
14988 (grub_iso9660_dir): Set mtime.
14989 (grub_iso9660_mtime): New function.
14990 (grub_iso9660_fs): Register grub_iso9660_mtime.
14991 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
14992 (grub_jfs_inode): New fields atime, ctime and mtime.
14993 (grub_jfs_dir): Set mtime.
14994 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
14995 * grub-core/fs/ntfs.c (list_file): Set mtime.
14996 (grub_ntfs_dir): Likewise.
14997 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
14998 (grub_reiserfs_iterate_dir): Set mtime.
14999 (grub_reiserfs_dir): Likewise.
15000 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
15001 (grub_fshelp_node): Likewise.
15002 (grub_sfs_iterate_dir): Set mtime.
15003 (grub_sfs_dir): Likewise.
15004 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
15005 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
15006 (grub_xfs_inode): New fields atime, mtime, ctime.
15007 (grub_xfs_dir): Set mtime.
15008 * include/grub/datetime.h (grub_datetime2unixtime): New function.
15009 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
15010 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
15011
15012 Support UDF symlinks.
15013
15014 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
15015 (grub_ufs_read_symlink): New function. All users updated.
15016
15017 Check amiga partmap checksum.
15018
15019 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
15020 (grub_amiga_partition): Likewise.
15021 (amiga_partition_map_checksum): New function.
15022 (amiga_partition_map_iterate): Check checksum.
15023
15024 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15025
15026 ROMFS support.
15027
15028 * Makefile.util.def (libgrubmods.a): Add romfs.
15029 * grub-core/Makefile.core.def (romfs): New module.
15030 * grub-core/fs/romfs.c: New file.
15031
15032 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15033
15034 Squashfs v4 support.
15035
15036 * Makefile.util.def (libgrubmods.a): Add squash4.
15037 * grub-core/Makefile.core.def (squash4): New module.
15038 * grub-core/fs/squash4.c: New file.
15039 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
15040 disk_input_start, disk_input.
15041 (get_byte): Handle disk_input.
15042 (grub_zlib_disk_read): New function.
15043 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
15044
15045 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15046 2011-05-15 Feiran Zheng <famcool@gmail.com>
15047
15048 * Makefile.util.def (libgrubmods.a): Add minix3.
15049 * grub-core/Makefile.core.def (minix3): New module.
15050 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
15051 (GRUB_MINIX_BSIZE): Removed.
15052 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
15053 (grub_minix_ino_t): New type.
15054 (grub_minix_le_to_cpu_ino): New macro.
15055 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
15056 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
15057 (grub_minix_data): New field block_size.
15058 (grub_minix_read_file): Handle 64-bit correctly.
15059 * grub-core/fs/minix3.c: New file.
15060
15061 2011-05-15 Tristan Gingold <gingold@free.fr>
15062 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
15063 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15064
15065 IA64 support.
15066
15067 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
15068 * configure.ac: Add ia64-efi target.
15069 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
15070 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
15071 * gentpl.py: Add ia64_efi platform.
15072 Rename x86_efi to efi and Add ia64-efi. All users updated.
15073 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
15074 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
15075 Remove kern/generic/rtc_get_time_ms.c on EFI.
15076 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
15077 kern/ia64/dl_helper.c on ia64-efi.
15078 Add kern/emu/cache.c on emu.
15079 (linux): Use on loader/ia64/efi/linux.c on ia64.
15080 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
15081 whether symbol is a function.
15082 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
15083 (grub_symbol): New field 'isfunc'.
15084 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
15085 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
15086 (grub_dl_load_segments): Place all sections into the same region.
15087 [__ia64__]: Create trampolines and got.
15088 [GRUB_MACHINE_EMU]: Call mprotect.
15089 (grub_dl_resolve_symbols): Resolve symbol type as well.
15090 [__ia64__]: Create function descriptors.
15091 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
15092 (grub_rtc_get_time_ms): ... this. Expressions simplified.
15093 (grub_get_rtc): New function.
15094 * grub-core/kern/emu/cache.c [__ia64__]: New file.
15095 * grub-core/kern/emu/cache.S: Renamed to ...
15096 * grub-core/kern/emu/cache_s.S: ... this.
15097 [__ia64__]: Add a nop.
15098 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
15099 [__ia64__]: New function.
15100 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
15101 * grub-core/kern/ia64/dl.c: New file.
15102 * grub-core/kern/ia64/dl_helper.c: Likewise.
15103 * grub-core/kern/ia64/efi/init.c: New file.
15104 * grub-core/kern/ia64/efi/startup.S: Likewise.
15105 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
15106 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
15107 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
15108 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
15109 * grub-core/loader/ia64/efi/linux.c: New file.
15110 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
15111 (GRUB_MOD_DEP): Likewise.
15112 (grub_dl) [__ia64__]: New fields got and tramp.
15113 (grub_dl): New field 'base'.
15114 (grub_dl_register_symbol): New argument isfunc. All users updated.
15115 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
15116 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
15117 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
15118 (grub_ia64_dl_get_tramp_got_size): New proto.
15119 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
15120 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
15121 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
15122 * include/grub/efi/api.h: Skip call wrappers on ia64.
15123 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
15124 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
15125 * include/grub/elf.h (ELF_ST_INFO): New definition.
15126 * include/grub/ia64/efi/kernel.h: New file.
15127 * include/grub/ia64/efi/memory.h: Likewise.
15128 * include/grub/ia64/efi/time.h: Likewise.
15129 * include/grub/ia64/kernel.h: Likewise.
15130 * include/grub/ia64/setjmp.h: Likewise (from glibc).
15131 * include/grub/ia64/time.h: New file.
15132 * include/grub/ia64/types.h: Likewise.
15133 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
15134 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
15135 New protos.
15136 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
15137 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
15138 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
15139 * util/grub-mkimage.c (image_target_desc): New field pe_target.
15140 All users updated.
15141 (EFI64_HEADER_SIZE): New definition. All users updated.
15142 (image_targets): Add ia64-efi.
15143 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
15144 jumpers_addr. All users updated.
15145 Create function descriptors.
15146 (count_funcs): New function.
15147 (unaligned_uint32): New struct.
15148 (MASK20): New definition.
15149 (MASK19): Likewise.
15150 (MASKF21): Likewise.
15151 (add_value_to_slot_20b): New function.
15152 (add_value_to_slot_21_real): Likewise.
15153 (add_value_to_slot_21): Likewise.
15154 (ia64_kernel_trampoline): New struct.
15155 (nopm): New variable.
15156 (jump): Likewise.
15157 (make_trampoline): New function.
15158 (relocate_addresses): Handle ia64.
15159 (make_reloc_section): Likewise.
15160 (load_image): Likewise.
15161
15162 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15163
15164 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
15165 warning. Move variables before code while on it.
15166
15167 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
15168
15169 Fuloong support.
15170
15171 * configure.ac: Rename yeeloong platform to loongson. All users updated.
15172 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
15173 * grub-core/boot/mips/loongson/fuloong.S: New file.
15174 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
15175 Explicitly init CS5536.
15176 [FULOONG]: Don't use serial until CS5536 is available.
15177 Set GPIO based on dumps.
15178 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
15179 [FULOONG]: Handle GPIO and memory controller differences.
15180 Parse machine type in $a2.
15181 * grub-core/boot/mips/startup_raw.S: Determine and save the
15182 architecture.
15183 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
15184 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
15185 init on architecture type.
15186 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
15187 SIS315E. Don't init at_keyboard on fuloong.
15188 (grub_halt): Support Fuloong.
15189 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
15190 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
15191 (loongson_machtypes): New array.
15192 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
15193 type.
15194 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
15195 config. All users updated. Handle CS5536 serial.
15196 * grub-core/term/serial.c (grub_serial_register): Conditionalise
15197 default port on machine type. Register serial as inactive.
15198 * grub-core/video/sis315pro.c: New file.
15199 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
15200 definition.
15201 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
15202 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
15203 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
15204 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
15205 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
15206 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
15207 to ...
15208 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
15209 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
15210 definition.
15211 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
15212 (grub_arch_machine): New extern var.
15213 * include/grub/mips/loongson/serial.h
15214 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
15215 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
15216 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
15217 (GRUB_MACHINE_SERIAL_PORT0): ... this.
15218 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
15219 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
15220 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
15221 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
15222 * include/grub/term.h (grub_term_register_input_inactive): New inline
15223 function.
15224 (grub_term_register_output_inactive): Likewise.
15225 * include/grub/video.h (grub_video_driver_id): New value
15226 GRUB_VIDEO_DRIVER_SIS315PRO.
15227 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
15228 New field "names". All users updated.
15229 New field value IMAGE_FULOONG_FLASH.
15230 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
15231
15232 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
15233
15234 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
15235 and add some clarification.
15236
15237 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15238
15239 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
15240 platforms if kernel is compressed.
15241
15242 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15243
15244 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
15245 unused modules since currently referrence counter isn't reliable and
15246 there isn't much memory to recover there anyway.
15247
15248 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15249
15250 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
15251 rather than resetting it to allow modules to reference themselves
15252 in init.
15253
15254 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15255
15256 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
15257 counter on dependencies since grub_dl_unref already handles this.
15258
15259 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15260
15261 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
15262 on error if not already done.
15263
15264 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15265
15266 Fix few potential memory misusage.
15267
15268 * grub-core/font/font.c (load_font_index): Don't free char_index to
15269 avoid double free.
15270 (grub_font_load): Zero-fill font at alloc for safety.
15271 Close file on error.
15272 (free_font): Free bmp_idx.
15273
15274 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15275
15276 * docs/grub.texi (Installation): Fix several outdated claims.
15277
15278 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15279
15280 Handle module_license on windows.
15281
15282 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
15283 sections shifted.
15284 (insert_string): Make argument const char * instead of char *.
15285 (write_section_data): Handle long section names.
15286 Handle module_license.
15287
15288 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15289
15290 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
15291 handle class-free menuentries.
15292 (grub_normal_add_menu_entry): Add a check to be sure.
15293
15294 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
15295
15296 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
15297 PgUp and PgDown.
15298
15299 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
15300
15301 * configure.ac: Bump version to 1.99.
15302
15303 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
15304
15305 Give ATA device a bit more time on first try in order to allow disks
15306 to spin up.
15307
15308 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
15309 if dev->present is 1. Reset dev->present on failure.
15310 (grub_ata_device_initialize): Set dev->present to 1.
15311 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
15312 (grub_ata_device): New member 'present'.
15313
15314 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
15315
15316 * util/grub-mkimage.c (generate_image): Update hash.
15317
15318 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
15319
15320 Flush caches on DMA memory.
15321
15322 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
15323 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
15324 (grub_dma_free): Likewise.
15325 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
15326
15327 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
15328
15329 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
15330 to avoid asm treating ld and sd as macros.
15331
15332 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
15333
15334 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
15335 decompressor.
15336
15337 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
15338
15339 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
15340 grub_decompress_core since later would fail if grub_decompress_core
15341 is too far.
15342
15343 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
15344
15345 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
15346 R_MIPS_JALR since it's used by newer compiler.
15347
15348 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
15349
15350 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
15351
15352 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
15353
15354 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
15355 file_path to 0 for surety.
15356 (grub_chainloader_boot): Set exit_data to NULL.
15357 Unset the loader once done.
15358 (grub_cmd_chainloader): Fix confusing error message if file is empty.
15359
15360 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
15361
15362 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
15363 unknown key into a dprintf.
15364
15365 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
15366
15367 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
15368 on first non-existant partition.
15369
15370 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
15371
15372 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
15373 openning fails.
15374 Reported by: Mark Korenberg.
15375
15376 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
15377
15378 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
15379 overflow.
15380
15381 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
15382
15383 * util/grub-mkimage.c (main): Explicitely flush and sync the output
15384 before closing to ensure that it will be readable by grub-setup.
15385
15386 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
15387
15388 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
15389 (devpath_1): Use MAKE_PIWG_PATH.
15390 (devpath_2): Likewise.
15391 (devpath_3): Likewise.
15392 (devpath_4): Likewise.
15393 (devpath_5): Likewise.
15394 (devpath_6): Likewise.
15395
15396 The appleldr.mod was checked that to be binary identical to previous
15397 version.
15398
15399 2011-05-05 Zach <mikezackles>
15400
15401 Support 2010 Macbooks.
15402
15403 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
15404 (devs): Add devpath_6.
15405
15406 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
15407
15408 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
15409 /dev/random. /dev/urandom is good enough for our purposes (salting).
15410
15411 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
15412
15413 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
15414
15415 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
15416
15417 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
15418 hexadecimal.
15419
15420 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
15421
15422 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
15423 and not 0 on failure.
15424
15425 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
15426
15427 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
15428 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
15429 disk; otherwise grub_fs_probe will not fall back to the next
15430 filesystem.
15431 (grub_pxefs_open): Likewise, for consistency.
15432 Reported and tested by: Ezekiel Grave.
15433
15434 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
15435
15436 * tests/partmap_test.in: Don't hardcode path to parted.
15437 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
15438
15439 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
15440
15441 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
15442 of `ls' to find out which devices are available.
15443
15444 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
15445
15446 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
15447 than source address for efi mmap buffer.
15448
15449 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
15450
15451 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
15452 wrong action on non-detecting the magic.
15453
15454 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
15455
15456 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
15457 already supplied by another part of the module (fixes compilation on
15458 FreeBSD).
15459
15460 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
15461
15462 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
15463 match the one used by mdadm.
15464
15465 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
15466
15467 * po/README: Add instructions for creating po/LINGUAS.
15468
15469 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
15470
15471 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
15472 #551428.
15473
15474 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
15475 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
15476 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
15477 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
15478 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
15479 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
15480 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
15481 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
15482 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
15483 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
15484 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
15485 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
15486 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
15487 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
15488 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
15489 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
15490 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
15491 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
15492 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
15493 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
15494 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
15495 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
15496
15497 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
15498
15499 * grub-core/kern/emu/getroot.c
15500 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
15501 test that was incorrectly reintroduced in r3214.
15502 Reported by: Ian Dall. Fixes Savannah bug #33133.
15503
15504 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
15505
15506 Fix stack pointer handling in 16-bit relocator.
15507
15508 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
15509 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
15510 Fixes Ubuntu bug #683904.
15511
15512 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
15513
15514 * configure.ac: Bump version to 1.99~rc2.
15515
15516 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
15517
15518 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
15519 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
15520 * grub-core/lib/x86_64/setjmp.S: Likewise.
15521 * grub-core/lib/mips/setjmp.S: Likewise.
15522 * grub-core/lib/powerpc/setjmp.S: Likewise.
15523 * grub-core/lib/sparc64/setjmp.S: Likewise.
15524
15525 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
15526
15527 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
15528 * grub-core/lib/efi/datetime.c: Likewise.
15529
15530 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
15531
15532 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
15533 New function.
15534 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
15535 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
15536 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
15537
15538 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
15539
15540 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
15541 bitmap.
15542 (grub_gfxterm_term_init): Likewise.
15543
15544 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
15545
15546 Take into account the decorations the computing menu entry width.
15547
15548 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
15549 (grub_gfxmenu_create_box): Register get_border_width.
15550 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
15551 if available.
15552 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
15553 get_border_width.
15554
15555 2011-04-18 Endres Puschner <code@e7p.de>
15556
15557 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
15558 Don't skip first class.
15559
15560 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
15561
15562 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
15563 chunks.
15564 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
15565
15566 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
15567
15568 Complete 64-bit division support.
15569
15570 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
15571 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
15572 * include/grub/misc.h (grub_divmod64): Rename to ...
15573 (grub_divmod64_full): ... this.
15574 (grub_divmod64): New inline function.
15575
15576 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
15577
15578 * util/grub-mkimage.c (generate_image): Add forgotten comma.
15579
15580 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
15581
15582 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
15583 performing the necessary test.
15584
15585 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
15586
15587 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
15588 (kfreebsd.elf): Likewise.
15589 (pc-chainloader.elf): Likewise.
15590 (ntldr.elf): Likewise.
15591
15592 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
15593
15594 Identify RAID by its UUID rather than (guessed) name.
15595
15596 * grub-core/disk/raid.c (ascii2hex): New function.
15597 (grub_raid_open): Accept mduuid/%s specification.
15598 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
15599 (get_mdadm_uuid): ... this.
15600 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
15601
15602 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
15603
15604 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
15605 to negative size.
15606
15607 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
15608
15609 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
15610 btrfs subvolume.
15611 * util/grub.d/20_linux_xen.in: Likewise.
15612
15613 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
15614
15615 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
15616 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
15617
15618 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
15619 Build a list of relevant visible mounts using the mnt_id and
15620 parent_mnt_id fields, and then scan that list at the end.
15621
15622 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
15623
15624 * docs/grub.texi (normal): New section.
15625 (normal_exit): New section.
15626 (Embedded configuration): Add reference to normal.
15627 (GRUB only offers a rescue shell): Likewise.
15628 * docs/grub-dev.texi (Error Handling): Fix typo.
15629
15630 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
15631
15632 * NEWS: Drop obsolete entry about probe-only btrfs support.
15633
15634 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
15635
15636 * util/import_gcry.py: Fix typo.
15637
15638 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
15639
15640 * NEWS: Add btrfs support.
15641
15642 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
15643 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
15644
15645 BtrFS support. Written by me (Vladimir) with important bugfixes and
15646 even more important testing by Colin.
15647
15648 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
15649 * grub-core/Makefile.core.def (btrfs): Add crc.c.
15650 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
15651 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
15652 mem_input_off and mem_input. All users updated to accept in-RAM input.
15653 (gzio_seek): New function.
15654 (test_zlib_header): Likewise.
15655 (grub_gzio_read): Likewise.
15656 (grub_zlib_decompress): Likewise.
15657 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
15658 Accept partial and non-virtual mounts.
15659 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
15660 avoid receiving /dev/dm-X as device.
15661 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
15662 Handle bind and partial mounts.
15663 * grub-core/lib/crc.c: New file.
15664 * include/grub/deflate.h: Likewise.
15665 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
15666 proto.
15667 * include/grub/lib/crc.h: New file.
15668
15669 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
15670
15671 Implement automatic module license checking according to new GNU
15672 guidelines.
15673
15674 * grub-core/kern/dl.c (grub_dl_check_license): New function.
15675 (grub_dl_load_core): Use grub_dl_check_license.
15676 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
15677 (GRUB_MOD_LICENSE): Likewise.
15678 (GRUB_MOD_DUAL_LICENSE): Likewise.
15679 All modules updated.
15680
15681 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
15682
15683 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
15684 reserved_first_sector to 1. btrfs reserves plenty of space for boot
15685 loaders.
15686 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
15687
15688 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
15689
15690 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
15691
15692 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
15693
15694 * util/grub-fstest.c (read_file): Report GRUB error if file opening
15695 failed.
15696
15697 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
15698
15699 * grub-core/kern/file.c (grub_file_open): Don't take into account the
15700 parenthesis in the middle of the filename.
15701
15702 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15703
15704 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
15705 rather than trying to put initrd way too high.
15706 Reported by: Ryan Lortie <desrt@desrt.ca>
15707
15708 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15709
15710 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
15711 improperly removed string.
15712
15713 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15714
15715 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
15716 is_disk.
15717 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
15718 (open_device) Likewise.
15719 (grub_util_biosdisk_close): Likewise.
15720 Reported by: Mark Korenberg.
15721
15722 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
15723
15724 * util/grub-mkconfig_lib.in: Add missing quotes.
15725
15726 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
15727
15728 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
15729 is NULL.
15730
15731 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15732
15733 Dynamically count the number of lines for the lower banner.
15734
15735 * grub-core/normal/menu_entry.c (per_term_screen): New member
15736 num_entries.
15737 (print_down): Use num_entries.
15738 (update_screen): Likewise.
15739 (grub_menu_entry_run): Set num_entries.
15740 * grub-core/normal/menu_text.c (menu_viewer_data): New member
15741 num_entries.
15742 (grub_print_message_indented): Move real part to ...
15743 (grub_print_message_indented_real): ... here. Additional argument
15744 dry_run.
15745 (draw_border): Additional argument num_entries.
15746 (print_message): Additional argument dry_run.
15747 (print_entries): Receive menu viewer data.
15748 (grub_menu_init_page): New argment num_entries.
15749 (menu_text_set_chosen_entry): Use num_entries.
15750 (grub_menu_try_text): Likewise.
15751 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
15752 All users updated.
15753 (grub_ucs4_count_lines): New function.
15754 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
15755 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
15756 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
15757 (grub_term_border_height): Likewise.
15758 (grub_term_num_entries): Likewise.
15759
15760 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
15761
15762 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
15763 Remove now unused string.
15764
15765 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
15766
15767 * docs/grub-dev.texi (Finding your way around): Update for 1.99
15768 build system.
15769 (Getting started): GRUB is developed in Bazaar now, not Subversion.
15770
15771 (Comment): Fix typo.
15772 (Getting started): General copy-editing.
15773 (Typical Development Experience): Likewise.
15774 (Error Handling): Likewise.
15775 (Video API): Likewise.
15776
15777 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
15778
15779 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
15780 throughout.
15781
15782 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15783
15784 * util/grub-mkimage.c (main): Handle special naming of yeeloong
15785 directory.
15786
15787 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
15788
15789 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
15790 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
15791 "development".
15792
15793 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15794
15795 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
15796 grub_strcpy since the lines aren't necessarily 0-terminated.
15797
15798 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15799
15800 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
15801 root on legacy.
15802
15803 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15804
15805 * grub-core/commands/probe.c (options): Argument to set isn't optional.
15806 (GRUB_MOD_INIT): DEVICE isn't optional.
15807
15808 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15809
15810 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
15811 word on new line if it's too long anyway. Fixes a hang.
15812
15813 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15814
15815 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
15816 const.
15817 * util/grub-setup.c (main): Reuse md device name if available.
15818 * util/raid.c (grub_util_raid_getmembers): Receive device name and
15819 not GRUB name as argument.
15820 Based on patch by: Florian Wagner <fwagner>.
15821
15822 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15823
15824 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
15825 Place mbi on low memory for better compatibility.
15826
15827 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15828
15829 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
15830
15831 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15832 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
15833
15834 * autogen.sh: Ensure that collate and ctype locale is C.
15835 * conf/Makefile.common: Likewise.
15836
15837 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15838
15839 * grub-core/normal/menu.c: Add missing include.
15840
15841 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15842
15843 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
15844
15845 2011-04-08 Martin Zuther <mzuther@mzuther.de>
15846
15847 * util/grub-mkconfig.in: Ignore emacsen backup.
15848
15849 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15850
15851 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
15852 on open.
15853 (grub_util_biosdisk_close): Likewise.
15854
15855 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
15856
15857 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
15858 const attribute and use grub_isdigit.
15859
15860 2011-04-06 Andrey <dev_null@ukr.net>
15861
15862 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
15863 gcc warning.
15864
15865 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15866
15867 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
15868 useful grub_dprintf's.
15869
15870 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15871
15872 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
15873
15874 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15875
15876 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
15877
15878 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15879
15880 Output errors if theme loading failed.
15881
15882 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
15883 grub_gfxterm_fullscreen on error paths to ...
15884 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
15885 theme loading error.
15886
15887 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15888
15889 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
15890 space for older compilers.
15891 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
15892
15893 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15894
15895 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
15896 and report them as not RAID members since they are useless for GRUB.
15897 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15898
15899 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15900
15901 Increase LVM implementation robustness in order not to crash on
15902 configurations like pvmove. Previously code assumed that in some places
15903 only lvs or only pvs are used whereas it seems that they are used
15904 interchangeably.
15905
15906 * grub-core/disk/lvm.c (read_node): New function.
15907 (read_lv): Use read_node.
15908 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
15909 Match volumes only at the end when all lvs are found. Take both
15910 pvs (first) and lvs (second) into account.
15911 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
15912 mirror_* into node_*. All users updated.
15913 (grub_lvm_stripe): Merge this ...
15914 (grub_lvm_mirror): ... and this ...
15915 (grub_lvm_node): ... into this. All users updated.
15916
15917 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15918
15919 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
15920 of function to allow further scanning for LVMs.
15921
15922 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15923
15924 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
15925 on failed seek as it breaks open fd reusage.
15926
15927 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15928
15929 * util/grub-install.in: Add a recommendation to use --recheck before
15930 reporting bugs.
15931
15932 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15933
15934 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
15935 are obtained.
15936
15937 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15938
15939 GRUB developper manual based on existing Internals section and
15940 contributions by the various authors with active copyright assignment.
15941
15942 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
15943 * docs/font_char_metrics.png: New file.
15944 * docs/font_char_metrics.txt: Likewise.
15945 * docs/grub-dev.texi: Likewise.
15946 * docs/grub.texi (Internals): Move from here ...
15947 * docs/grub-dev.texi: ... here.
15948
15949 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
15950
15951 Store the loopback device as data on loopback grub_disk structures,
15952 rather than the file it points to. This fixes use of freed memory
15953 if an existing loopback device is replaced.
15954
15955 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
15956 disk->data, not dev->file.
15957 (grub_loopback_read): Adjust file assignment to match.
15958 Fixes Ubuntu bug #742967.
15959
15960 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
15961
15962 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
15963 when replacing an existing device.
15964
15965 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
15966
15967 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
15968 memory corruptions.
15969
15970 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
15971 unsigned.
15972 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
15973 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
15974 (grub_jfs_read_inode): Likewise.
15975 (grub_jfs_opendir): Likewise. Remove now useless casts.
15976 (grub_jfs_getent): Likewise.
15977 Make ino a grub_uint32_t rather than int.
15978 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
15979 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
15980 division and module with bit operations.
15981 (grub_jfs_find_file): Make ino a grub_uint32_t.
15982 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
15983
15984 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
15985
15986 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
15987 warning. (This was in fact always initialised before use, but GCC
15988 wasn't smart enough to prove that.)
15989 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
15990
15991 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
15992
15993 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
15994 stack alignment.
15995 (efi_wrap_1): Likewise.
15996 (efi_wrap_2): Likewise.
15997 (efi_wrap_3): Likewise.
15998 (efi_wrap_4): Likewise.
15999 (efi_wrap_5): Likewise.
16000 (efi_wrap_6): Likewise.
16001 (efi_wrap_10): Likewise.
16002 Based on information by: Red Hat/Peter Jones.
16003
16004 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
16005
16006 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
16007 set-but-not-used variable.
16008
16009 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
16010
16011 * docs/grub.texi (Simple configuration): Be more explicit about
16012 GRUB_DEFAULT, and add an example.
16013 Reported by: Leslie Rhorer.
16014
16015 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
16016
16017 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
16018 shell".
16019
16020 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
16021
16022 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
16023 * util/grub.d/20_linux_xen.in: Likewise.
16024
16025 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16026
16027 * util/grub.d/10_linux.in: Try alternative config filenames where
16028 we parse config file.
16029 * util/grub.d/20_linux_xen.in: Likewise.
16030
16031 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
16032
16033 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
16034 * util/grub.d/20_linux_xen.in: Likewise.
16035
16036 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16037
16038 * grub-core/disk/raid.c (insert_array): Add few potentially
16039 useful grub_util_info.
16040 (grub_raid_register): Likewise.
16041
16042 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16043
16044 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
16045 Preserve partition number in mdadm code path.
16046
16047 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16048
16049 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
16050 few potentially useful grub_util_info.
16051
16052 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16053
16054 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
16055
16056 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
16057
16058 * docs/grub.texi (default): Use @example rather than nested
16059 itemized lists to avoid breaking gendocs.
16060
16061 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
16062
16063 * docs/grub.texi (Future): Update.
16064
16065 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
16066
16067 * docs/grub.texi (Environment): New chapter.
16068 (Changes from GRUB Legacy): Link to "Environment block" section for
16069 details of limitations.
16070 (Simple configuration): Likewise. Link to documentation of gfxmode
16071 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
16072 respectively.
16073 (Shell-like scripting): Note that normal variables are stored in the
16074 environment.
16075 (gettext): Link to documentation of lang and locale_dir.
16076 (list_env): New section.
16077 (load_env): New section.
16078 (save_env): New section.
16079
16080 (Reporting bugs): Fix typo.
16081
16082 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16083
16084 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
16085 the example.
16086
16087 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
16088
16089 * grub-core/term/at_keyboard.c (set_scancodes)
16090 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
16091
16092 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
16093
16094 * docs/grub.texi (Menu-specific commands): Remove some semantics
16095 that were true in GRUB Legacy but not in GRUB 2.
16096 (submenu): New section.
16097 (false): New section.
16098 (read): New section.
16099 (true): New section.
16100
16101 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
16102
16103 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
16104
16105 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
16106
16107 * docs/grub.texi (Simple configuration): Explain some of the
16108 current limitations of grub-mkconfig.
16109 Reported by: Leslie Rhorer.
16110
16111 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16112
16113 Old macs search for boot.efi rather than for bootia32.efi.
16114
16115 * util/grub-install.in: Copy bootia32.efi to boot.efi.
16116 * util/grub-mkrescue.in: Likewise.
16117 Suggested by: Peter Jones.
16118
16119 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16120
16121 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
16122
16123 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16124
16125 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
16126 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
16127 (grub_lvm_mirror): New struct.
16128 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
16129 (grub_lvm_iterate): Iterate only visible volumes.
16130 (grub_lvm_read): Factor out to ..
16131 (read_lv): ... this. Support mirrors.
16132 (grub_lvm_read): New wrapper function.
16133 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
16134 stripped or mirrored.
16135
16136 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16137
16138 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
16139
16140 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
16141
16142 * docs/grub.texi (loopback): New section.
16143
16144 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
16145
16146 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
16147 removed -p option.
16148
16149 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
16150
16151 * docs/grub.texi (BIOS installation): New section, partly based on
16152 previous text in other sections.
16153 (Installing GRUB using grub-install): Replace BIOS discussion with a
16154 cross-reference.
16155 (Images): Likewise.
16156
16157 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16158
16159 * grub-core/kern/emu/hostdisk.c (find_partition_start)
16160 [HAVE_DIOCGDINFO]: Add safety checks.
16161
16162 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16163
16164 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
16165 per default compiled in kernel and prior to 8.0 isn't shipped at all.
16166
16167 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
16168
16169 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
16170 real_sb->size is zero (e.g. RAID-0), get the disk size from
16171 real_sb->data_size instead.
16172 Fixes Ubuntu bug #743136.
16173
16174 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16175
16176 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
16177 printf clauses for printing size and start.
16178
16179 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16180
16181 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
16182 Reported and tested by: Timothy Nikkel.
16183
16184 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16185
16186 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
16187 (dirty_region_add_real): ... this.
16188 (dirty_region_add): Don't discard margin refresh when performing
16189 scheduled repaint.
16190
16191 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
16192
16193 * grub-core/lib/relocator.c (allocate_regstart)
16194 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
16195 terminals are capabple of malloc-free operation.
16196 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
16197 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
16198
16199 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
16200
16201 * util/grub-setup.c: Copy the partition table zone if floppy support
16202 is disabled, even if no partition table is found.
16203
16204 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
16205 during POST if an invalid partition table is contained in the PBR
16206 of the active partition when GRUB is installed to a partition.
16207
16208 2011-03-28 Colin Watson <cjwatson@debian.org>
16209
16210 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
16211 comment.
16212
16213 2011-03-28 Colin Watson <cjwatson@debian.org>
16214
16215 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
16216 to be specific about what kind of RAID device we're scanning for.
16217
16218 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
16219
16220 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
16221 return freed string.
16222
16223 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
16224
16225 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
16226
16227 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
16228
16229 Use libgeom on FreeBSD to detect partitions.
16230
16231 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
16232 (grub-mkrelpath): Likewise.
16233 (grub-script-check): Likewise.
16234 (grub-editenv): Likewise.
16235 (grub-mkpasswd-pbkdf2): Likewise.
16236 (grub-fstest): Likewise.
16237 (grub-mkfont): Likewise.
16238 (grub-mkdevicemap): Likewise.
16239 (grub-probe): Likewise.
16240 (grub-setup): Likewise.
16241 (grub-ofpathname): Likewise.
16242 (grub-mklayout): Likewise.
16243 (example_unit_test): Likewise.
16244 (grub-menulst2cfg): Likewise.
16245 * grub-core/Makefile.core.def (grub-emu): Likewise.
16246 (grub-emu-lite): Likewise.
16247 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
16248 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
16249 define HAVE_DIOCGDINFO.
16250 (follow_geom_up) [FreeBSD]: New function.
16251 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
16252 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
16253 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
16254 unconditionally of HAVE_DIOCGDINFO.
16255
16256 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
16257
16258 Fix FreeBSD compilation problem.
16259
16260 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
16261 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
16262
16263 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
16264
16265 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
16266 Switch back to page zero before loading a kernel, since some kernel
16267 drivers expect that.
16268 Thanks to: Felix Kuehling.
16269
16270 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
16271
16272 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
16273 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
16274 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
16275
16276 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
16277
16278 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
16279 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
16280
16281 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
16282
16283 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
16284 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
16285 malloc is disabled.
16286
16287 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
16288
16289 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
16290 for modules headers when counting the needed allocation size.
16291
16292 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16293
16294 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
16295 if no ASCII character is found to prevent crash.
16296
16297 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
16298
16299 * grub-core/video/bitmap.c (match_extension): Ignore case.
16300
16301 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16302
16303 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
16304
16305 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16306
16307 * grub-core/script/parser.y: Declare "time" as valid argument.
16308
16309 2011-03-23 Peter Jones <pjones@redhat.com>
16310
16311 Fix incorrect assert failure reporting.
16312
16313 * grub-core/tests/example_functional_test.c (example_test): Add
16314 a failure comment.
16315 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
16316 (failure_start): ...this. Check that malloc succeeded.
16317 Don't call xvasprintf. Return failure struct.
16318 (failure_append_vtext): New function.
16319 (failure_append_text): Likewise.
16320 (add_failure): Likewise.
16321 (grub_test_assert_helper): Likewise.
16322 * include/grub/test.h (grub_test_assert_helper): New declaration.
16323 (grub_test_assert): Macro rewritten.
16324
16325 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16326
16327 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
16328
16329 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16330
16331 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
16332
16333 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16334
16335 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
16336 into GRUB-style one.
16337
16338 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16339
16340 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
16341 error and not grub_errno.
16342 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
16343
16344 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16345
16346 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
16347 GRUB_USB_SPEED_NONE in case of failure and not the error code.
16348
16349 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16350
16351 * grub-core/efiemu/i386/pc/cfgtables.c
16352 (grub_machine_efiemu_init_tables): Make declaration a prototype.
16353 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
16354 (grub_xnu_unlock): Likewise.
16355 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
16356
16357 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16358
16359 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
16360 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
16361 * grub-core/commands/hashsum.c (aliases): Likewise.
16362 * grub-core/commands/setpci.c (pci_registers): Likewise.
16363 * grub-core/disk/usbms.c (attach_hook): Likewise.
16364 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
16365 (zio_checksum_table): Likewise.
16366 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
16367 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
16368 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
16369 * grub-core/lib/relocator.c (leftovers): Likewise.
16370 (extra_blocks): Likewise.
16371 * grub-core/loader/i386/bsd.c (relocator): Likewise.
16372 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
16373 (modules_last): Likewise.
16374 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
16375 (devices): Likewise.
16376 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
16377 (modules_last): Likewise.
16378 * grub-core/normal/auth.c (users): Likewise.
16379 * grub-core/normal/context.c (initial_menu): Likewise.
16380 (current_menu): Likewise.
16381 * grub-core/normal/crypto.c (crypto_specs): Likewise.
16382 * grub-core/term/serial.c (grub_serial_ports): Likewise.
16383 (grub_serial_terminfo_input_template): Likewise.
16384 (grub_serial_terminfo_output_template): Likewise.
16385 (grub_serial_terminfo_input): Likewise.
16386 (grub_serial_terminfo_output): Likewise.
16387 (registered): Likewise.
16388 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
16389
16390 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16391
16392 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
16393 grub_video_mode_type_t.
16394 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
16395 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
16396 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
16397
16398 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
16399
16400 * util/grub-install.in: Correct the x86-64 name as x86_64.
16401
16402 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
16403
16404 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
16405 initial chunk read from the kernel always includes GRUB's multiboot
16406 header, which is now outside the first sector.
16407
16408 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
16409
16410 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
16411 cached mmap_size, so that this works correctly when called multiple
16412 times.
16413 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
16414
16415 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
16416
16417 * docs/grub.texi (Simple configuration): Tidy up formatting.
16418
16419 2011-03-07 Szymon Janc <szymon@janc.net.pl>
16420
16421 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
16422 Set-but-not-used variable removed.
16423
16424 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
16425
16426 Workaround yet another IEEE1275 bug.
16427
16428 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
16429 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
16430 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
16431 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
16432 is set.
16433 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
16434 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
16435
16436 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
16437
16438 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
16439 error.
16440
16441 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
16442
16443 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
16444 empty, since in that case we can only generate either nothing or a
16445 syntactically invalid configuration file.
16446 Reported by: Michal Suchanek. Fixes Debian bug #612898.
16447
16448 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
16449
16450 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
16451 (Making a GRUB bootable CD-ROM): Likewise.
16452 (Invoking grub-mkrescue): New section.
16453 Reported by: Yann Dirson. Fixes Debian bug #612585.
16454
16455 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
16456
16457 * util/grub-install.in: Remove unnecessary brackets from tr
16458 arguments.
16459 * util/grub.d/10_hurd.in: Likewise.
16460 * util/grub.d/10_kfreebsd.in: Likewise.
16461 * util/grub.d/10_linux.in: Likewise.
16462 * util/grub.d/20_linux_xen.in: Likewise.
16463 Reported by: Jamie Heilman. Fixes Debian bug #612564.
16464
16465 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
16466
16467 * include/grub/file.h (not_easly_seekable): Rename to ...
16468 (not_easily_seekable): ... this. Update all users.
16469
16470 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
16471
16472 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
16473 grub-mkrescue.
16474
16475 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
16476
16477 * util/grub-mkimage.c (generate_image): Refuse to create the images
16478 bigger than the actual flash (512K) in Loongson machines. 512K is also
16479 the biggest chip supported by them.
16480
16481 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16482
16483 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
16484
16485 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
16486
16487 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
16488 super_offset field.
16489
16490 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16491
16492 * util/grub-install.in: Ignore install device on platforms
16493 where it doesn't make sense. Always use UUIDs except on pc, efi and
16494 sparc64.
16495 Reported by: Daniel Kahn Gillmor.
16496
16497 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16498
16499 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
16500
16501 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16502
16503 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
16504 (iterate_real): Don't rely on partition being non-NULL.
16505
16506 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16507
16508 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
16509 supported platforms. Put a compile time assert for this rather than
16510 generate a warning with 32-bit shift.
16511
16512 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16513
16514 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
16515 logical expression more readable.
16516
16517 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16518
16519 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
16520 even if some elements have a name.
16521 Reported by: Alexander GQ Gerasiov.
16522
16523 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
16524
16525 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
16526 path unreadable if `grub-probe -t abstraction' fails, for example if
16527 memberlist fails on an LVM volume group.
16528 Reported by: Darius Jahandarie.
16529
16530 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
16531
16532 * docs/grub.texi (Simple configuration): Document
16533 GRUB_PRELOAD_MODULES.
16534
16535 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
16536
16537 * .bzrignore: Remove nonexistent grub-pbkdf2.
16538
16539 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
16540
16541 * configure.ac: Bump version to 1.99~rc1.
16542
16543 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
16544
16545 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
16546 for safety.
16547
16548 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
16549
16550 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
16551 module.
16552
16553 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
16554
16555 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
16556
16557 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
16558
16559 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
16560 diskdevid.
16561
16562 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
16563
16564 Fix compilation on cygwin.
16565
16566 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
16567 -R .drectve on cygwin.
16568 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
16569 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
16570 (COND_CYGWIN): New condition.
16571 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
16572 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
16573 not @TARGET_OBJ2ELF@.
16574 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
16575 type to determine whether aux is to be used.
16576
16577 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16578
16579 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
16580 realpath'ed device string.
16581 Handle floppy (somewhat).
16582 Issue error in unknown case rather than garbage.
16583 Reported by: Axel Beckert.
16584
16585 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16586
16587 * util/grub.d/00_header.in (load_video): Handle the case when no video
16588 drivers available.
16589 Thanks to: Axel Beckert.
16590
16591 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16592
16593 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
16594 variable. Fixes problem on big endian platforms.
16595
16596 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16597
16598 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
16599 It doesn't work well there.
16600
16601 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16602
16603 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
16604 warning.
16605 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
16606 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
16607 counter.
16608
16609 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
16610
16611 Use alias->path rather than buggy "canon".
16612
16613 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
16614 (ofdisk_hash_add): New argument curcan. All users updated.
16615
16616 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
16617
16618 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
16619
16620 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
16621
16622 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
16623 loadmask before doing any calculations. Use correct type for offset.
16624 (grub_linux_load64): Likewise.
16625
16626 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
16627
16628 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
16629 with NULL.
16630 (console_grub_equivalences_unshift): Likewise.
16631 Reported by: Daniel Dehennin.
16632
16633 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
16634
16635 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
16636 (set_env_limn_ro): Likewise.
16637 (GRUB_MOD_INIT): Likewise.
16638 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
16639 ARRAY_SIZE while on it.
16640 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
16641 * grub-core/normal/context.c (grub_env_export): Move from here ...
16642 * grub-core/kern/env.c (grub_env_export): ... here.
16643 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
16644 prefix.
16645 * grub-core/kern/main.c (grub_main): Export root and prefix.
16646 * include/grub/env.h (grub_env_export): Export.
16647 Reported by: Seth Goldberg.
16648
16649 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
16650
16651 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
16652 Take into account space used by ELF sections and multiboot palette.
16653 Reported by: Grégoire Sutre.
16654
16655 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
16656
16657 * BUGS: New file.
16658
16659 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16660
16661 Pass more appropriate video id to Linux.
16662
16663 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
16664 grub_video_get_driver_id and variable gfxpayloadforcelfb to
16665 fill have_vga.
16666 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
16667 shift params->lfb_size.
16668 * include/grub/i386/linux.h: Make an enume out of have_vga values.
16669
16670 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16671
16672 * util/grub-menulst2cfg.c: Add missing include of misc.h.
16673
16674 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16675
16676 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
16677 separator and pass bootpath/devid even if only one of them is available.
16678 Reported by: Seth Goldberg.
16679
16680 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16681
16682 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
16683 implementations bug on them.
16684
16685 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
16686 memory.
16687 (filter_memory_map): Likewise.
16688
16689 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16690
16691 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
16692 Reported by: nebuchadnezzar.
16693
16694 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16695
16696 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
16697 Reported by: nebuchadnezzar.
16698
16699 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16700
16701 Submenu default support.
16702
16703 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
16704 auto_boot. All users updated.
16705 Declared static.
16706 Handle chosen and default with submenus.
16707 (grub_menu_execute_with_fallback): Declared static.
16708 Don't notify failure if autobooted. Upper level does it.
16709 (menuentry_eq): New function.
16710 (get_entry_number): Use menuentry_eq.
16711 (show_menu): New parameter "autobooted". All users updated.
16712 (grub_show_menu): Likewise.
16713 * include/grub/normal.h (grub_show_menu): Likewise.
16714 * include/grub/menu.h (grub_menu_execute_entry): Removed.
16715 (grub_menu_execute_with_fallback): Likewise.
16716
16717 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16718
16719 * util/grub-mklayout.c (usage): Update help text.
16720
16721 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16722
16723 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
16724
16725 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16726
16727 * util/grub-menulst2cfg.c (main): Trim the line.
16728
16729 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16730
16731 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
16732 (grub_machine_init): Don't check amount of low memory as reportedly
16733 INT 12h can be broken and if low memory is too low we wouldn't have
16734 gotten into grub_machine_init anyway.
16735
16736 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16737
16738 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
16739 (grub_machine_mmap_iterate): Take low memory into account
16740
16741 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16742
16743 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
16744 badfs.
16745 Reported by: TiCPU.
16746
16747 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
16748
16749 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
16750 members errors.
16751
16752 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
16753
16754 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
16755 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
16756
16757 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
16758
16759 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
16760 openbsd and netbsd types being in part_bsd module.
16761
16762 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16763
16764 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
16765 (_FILE_OFFSET_BITS): Likewise.
16766 Reported by: Seth Goldberg.
16767
16768 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
16769
16770 * configure.ac: Check for libdevmapper header.
16771
16772 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16773
16774 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
16775 avoid aliasing.
16776 (fzap_lookup): Likewise.
16777 (dnode_get): Likewise.
16778 (make_mdn): Likewise.
16779 (zfs_mount): Likewise.
16780 (fzap_iterate): Use temporary pointer to avoid aliasing.
16781 (grub_zfs_read): Likewise.
16782 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
16783 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
16784 pointers to avoid aliasing.
16785 (grub_cmd_xnu_kernel64): Likewise.
16786 (grub_xnu_load_driver): Likewise.
16787
16788 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16789
16790 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
16791 aliasing warning.
16792 (grub_cmd_terminal_output): Likewise.
16793 Reported and tested by: Grégoire Sutre.
16794
16795 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16796
16797 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
16798 warning.
16799 Reported and tested by: Grégoire Sutre.
16800
16801 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16802
16803 * configure.ac: Do CPU substitution even if it's specified explicitly.
16804 Reported and tested by: Alain Greppin.
16805
16806 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16807
16808 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
16809 Reported and tested by: Alain Greppin.
16810
16811 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16812
16813 Satisfy some bison versions need for inttypes.h.
16814
16815 * grub-core/lib/posix_wrap/inttypes.h: New file.
16816 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
16817 (int16_t): Likewise.
16818 (int32_t): Likewise.
16819 (int64_t): Likewise.
16820 Reported and tested by: Alain Greppin.
16821
16822 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
16823
16824 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
16825 Silence spurious warning.
16826 Reported and tested by: Alain Greppin.
16827
16828 2011-01-07 Szymon Janc <szymon@janc.net.pl>
16829
16830 * docs/grub.texi (Support automatic decompression): Update with xz
16831 decompression support.
16832
16833 2011-01-07 Szymon Janc <szymon@janc.net.pl>
16834
16835 Improve loaders' kernel command line handling.
16836
16837 * grub-core/lib/cmdline.c: New file.
16838 * include/grub/lib/cmdline.h: Likewise.
16839 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
16840 grub_create_loader_cmdline to create kernel command line.
16841 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
16842 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
16843 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
16844 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
16845 (linux): Add lib/cmdline.c on common.
16846
16847 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
16848
16849 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
16850 inopos might be unaligned.
16851
16852 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
16853
16854 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
16855 endian transformations.
16856 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
16857 Based on report by: Doug Nazar.
16858
16859 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
16860
16861 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
16862 array->members[i].start_sector.
16863 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
16864
16865 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
16866
16867 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
16868 Reported and tested by: Grégoire Sutre.
16869
16870 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
16871
16872 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
16873 avoid causing test failures by clearing the screen.
16874
16875 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
16876
16877 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
16878 Fix prefix check to handle the case where dir ends with a slash
16879 (most significantly, "/" itself).
16880 Reported by: Michael Vogt.
16881
16882 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
16883
16884 Run terminfo_cls on initing terminfo output to clear the screen and
16885 move the cursor to (0,0).
16886
16887 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
16888 Call grub_terminfo_output_init.
16889 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
16890 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
16891 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
16892
16893 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
16894
16895 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
16896 only when needed.
16897
16898 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
16899
16900 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
16901 CTRL.
16902
16903 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
16904
16905 The E820 type 5 is BADRAM, not EXEC_CODE.
16906
16907 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
16908 (GRUB_E820_BADRAM): New define.
16909 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
16910 into reserved. Propagate BADRAM.
16911 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
16912 (GRUB_E820_BADRAM): New define.
16913
16914 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16915
16916 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
16917 Ignore the memory post-4G.
16918 (grub_relocator_firmware_alloc_region): Additional debug statement.
16919
16920 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16921
16922 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
16923 names.
16924 Reported by: David Pravec.
16925
16926 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16927
16928 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
16929 BIOSes.
16930
16931 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16932
16933 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
16934 Prevent overflow.
16935 (grub_reed_solomon_recover): Likewise.
16936
16937 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16938
16939 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
16940
16941 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
16942
16943 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
16944 variable.
16945
16946 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
16947
16948 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
16949 descriptions of extract_legacy_entries_source and
16950 extract_legacy_entries_configfile.
16951 Reported by: Seung Soo, Ha.
16952
16953 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
16954
16955 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
16956 on devices that do not implement function 0.
16957
16958 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
16959
16960 * grub-core/fs/hfsplus.c: Make parent unsigned.
16961 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
16962 overflows.
16963 (grub_hfsplus_cmp_extkey): Likewise
16964
16965 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
16966
16967 * util/grub-install.in: Correctly use bootloader_id and not
16968 GRUB_DISTRIBUTOR on efibootmgr line.
16969
16970 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
16971
16972 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
16973
16974 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
16975
16976 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
16977 Xen and reorder menu item wording to make it clearer that this entry
16978 will launch Xen. Print separate messages when loading Xen and
16979 Linux.
16980
16981 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
16982
16983 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
16984 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
16985 loop in case of incorrect amiga partmap.
16986
16987 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
16988
16989 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
16990 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
16991 Reported by:EHeM.
16992
16993 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
16994
16995 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
16996 spurious warning.
16997 Reported by: crocket
16998
16999 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17000
17001 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
17002 Preload EFIemu.
17003 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
17004
17005 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17006
17007 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
17008 is loaded
17009 (grub_cmd_xnu_kextdir): Likewise.
17010 (grub_cmd_xnu_splash): Likewise.
17011
17012 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17013
17014 Avoid using Reed-Solomon with 0 redundancy.
17015
17016 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
17017 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
17018 or 0 redundancy.
17019 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
17020 (grub_reed_solomon_recover): Likewise.
17021
17022 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
17023
17024 Don't use disk subsystem in freebsd_boot.
17025
17026 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
17027 (freebsd_biosdev): Likewise.
17028 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
17029 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
17030
17031 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
17032
17033 Handling of files of unknown size is currently limited. They can't be
17034 used e.g. for initrd or modules. Moreover gzip handling of not
17035 easily seekable files is buggy. Disable unknown file size for now. May
17036 be inefficient but works.
17037
17038 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
17039 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
17040
17041 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
17042
17043 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
17044 floppy probe.
17045
17046 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
17047
17048 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
17049
17050 2010-12-25 Shea Levy <shlevy>
17051
17052 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
17053
17054 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
17055
17056 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
17057 Windows Server 2008.
17058 Reported by: Devin Giddings.
17059
17060 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
17061
17062 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
17063 writing an error message because of async power management.
17064 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
17065 (grub_reboot): Likewise.
17066
17067 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
17068
17069 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
17070 keep unit tests from failing when they shouldn't.
17071
17072 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
17073
17074 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
17075 previous patch increased the size of the RS code by 20 bytes (at
17076 least with gcc-4.4), so increase this by 20 bytes to match.
17077 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17078
17079 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
17080
17081 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
17082 scratch area. Make sure to initialise chosen in standalone mode as
17083 well as non-standalone.
17084 Reported by: Robert Hooker and Andy Whitcroft.
17085 Tested by: Andy Whitcroft.
17086
17087 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
17088
17089 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
17090 constructing a new unescaped string and passing it to grub_xputs in
17091 one go, rather than passing characters to grub_printf one at a time.
17092
17093 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
17094
17095 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
17096 initialising utf16.
17097
17098 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
17099
17100 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
17101 comment. Add an extra layer of quotation, requiring the output of
17102 this function to be used in a printf format string.
17103 (gettext_printf): New function.
17104 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
17105 Extract translatable strings from here-documents and use a temporary
17106 variable instead, so that xgettext can find them.
17107 * util/grub.d/10_kfreebsd.in: Likewise.
17108 * util/grub.d/10_linux.in: Likewise.
17109 * util/grub.d/20_linux_xen.in: Likewise.
17110
17111 * po/grub.d.sed: New file.
17112 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
17113 arguments. Set c-format flags on all strings extracted from
17114 util/grub.d/ (xgettext refuses to include these itself for strings
17115 it extracted from a shell file, but these really are c-format).
17116
17117 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
17118
17119 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
17120 Avoid next pointing to nowhere.
17121
17122 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
17123
17124 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
17125 rather than assuming than rootblock is exactly in the middle.
17126 (grub_affs_label): Likewise.
17127
17128 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
17129
17130 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
17131 reserved_first_sector to 0.
17132 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
17133 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
17134 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
17135
17136 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
17137
17138 Fix handling of UTF-16 UDF labels.
17139
17140 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
17141 (read_string): .. here.
17142 (grub_udf_label): Use read_string.
17143
17144 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
17145
17146 * grub-core/normal/menu_entry.c (run): Execute commands from menu
17147 editor under argument scope.
17148 Reported by: Jordan Uggla
17149
17150 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
17151
17152 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
17153
17154 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
17155
17156 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
17157 line, and other keys scroll an entire page (previous handling was
17158 for \r and \n to scroll a page and other keys to scroll two lines).
17159
17160 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
17161
17162 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
17163 Set ptrdest to correct get_physical_target_address rather than
17164 incorrect get_virtual_current_address.
17165
17166 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
17167
17168 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
17169 correct cat to grub_uint8_t * rather than grub_uint32_t *.
17170
17171 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
17172
17173 * .bzrignore: Ignore grub-core/rs_decoder.S.
17174
17175 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
17176
17177 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
17178 .mo/.mo.gz opening sequence to ...
17179 (grub_mofile_open_lang): ... here.
17180 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
17181 * util/grub.d/00_header.in (grub_lang): Include country part of
17182 locale.
17183 Reported by: Mario Limonciello.
17184
17185 2010-12-09 Robert Millan <rmh@gnu.org>
17186
17187 * NEWS: Document addition of ZFS support.
17188
17189 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
17190
17191 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
17192 rather than `/ 2', as the latter requires -Wa,--divide which would
17193 require bumping our minimum binutils version.
17194
17195 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
17196
17197 * util/grub-script-check.c (main): Print script line number on
17198 error.
17199
17200 2010-12-01 Robert Millan <rmh@gnu.org>
17201
17202 * grub-core/fs/zfs/zfs.c: New file.
17203 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
17204 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
17205 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
17206 * grub-core/fs/zfs/zfsinfo.c: Likewise.
17207
17208 * include/grub/zfs/dmu.h: Likewise.
17209 * include/grub/zfs/dmu_objset.h: Likewise.
17210 * include/grub/zfs/dnode.h: Likewise.
17211 * include/grub/zfs/dsl_dataset.h: Likewise.
17212 * include/grub/zfs/dsl_dir.h: Likewise.
17213 * include/grub/zfs/sa_impl.h: Likewise.
17214 * include/grub/zfs/spa.h: Likewise.
17215 * include/grub/zfs/uberblock_impl.h: Likewise.
17216 * include/grub/zfs/vdev_impl.h: Likewise.
17217 * include/grub/zfs/zap_impl.h: Likewise.
17218 * include/grub/zfs/zap_leaf.h: Likewise.
17219 * include/grub/zfs/zfs.h: Likewise.
17220 * include/grub/zfs/zfs_acl.h: Likewise.
17221 * include/grub/zfs/zfs_znode.h: Likewise.
17222 * include/grub/zfs/zil.h: Likewise.
17223 * include/grub/zfs/zio.h: Likewise.
17224 * include/grub/zfs/zio_checksum.h: Likewise.
17225
17226 * Makefile.util.def: Build ZFS into libgrubmods.
17227 * grub-core/Makefile.core.def: Build zfs.mod.
17228
17229 2010-11-30 Szymon Janc <szymon@janc.net.pl>
17230
17231 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
17232 variable.
17233 * grub-core/commands/wildcard.c (match_files): Likewise.
17234
17235 2010-11-30 Robert Millan <rmh@gnu.org>
17236
17237 * grub-core/loader/i386/bsd.c
17238 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
17239 whether kernel is loaded using grub_loader_is_loaded(), rather
17240 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
17241 certain error conditions.
17242
17243 2010-11-30 Robert Millan <rmh@gnu.org>
17244
17245 * grub-core/commands/echo.c: Include `<grub/term.h>'.
17246 (grub_cmd_echo): Call grub_refresh() after printing a message.
17247
17248 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
17249
17250 Avoid using tricks for initialising endian variables.
17251
17252 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
17253 Make const.
17254 (GRUB_MOD_INIT): Don't byte-swap.
17255 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
17256 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
17257 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
17258 (grub_swap_bytes32_compile_time): Likewise.
17259 (grub_cpu_to_le32_compile_time): Likewise.
17260 (grub_cpu_to_le16_compile_time): Likewise.
17261
17262 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
17263
17264 * util/grub-setup.c (setup): Stop recommending --force. People who
17265 understand the dangers of blocklists are able to find this option
17266 anyway and the ones who don't shouldn't use it anyway.
17267
17268 2010-11-26 Robert Millan <rmh@gnu.org>
17269
17270 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
17271 Update all users.
17272
17273 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
17274
17275 Fix LVM-on-RAID probing.
17276
17277 * util/grub-probe.c (probe): Remember which disk was detected as
17278 RAID (perhaps an LVM physical volume). Use that disk's raidname
17279 rather than that of the top-level disk.
17280
17281 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
17282
17283 Fix cmdline argument quotes for setparams command of menuentry
17284 definitions.
17285
17286 * grub-core/commands/menuentry.c (setparams_prefix): Use single
17287 quotes for arguments.
17288 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
17289 grub_strchrsub function instead.
17290
17291 * include/grub/misc.h (grub_strchrsub): New function.
17292
17293 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
17294
17295 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
17296 effort by skipping "." and ".." entries up-front.
17297 Suggested by: Michael Lazarev.
17298
17299 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
17300
17301 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
17302 ldflags to ldadd, to fix link line ordering.
17303 (none_decompress): Likewise.
17304
17305 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
17306
17307 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
17308 platforms.
17309 (grub-emu-lite): Remove kern/emu/cache.S.
17310
17311 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
17312
17313 * util/deviceiter.c (compare_devices): If the by-id link for a
17314 device couldn't be resolved, fall back to sorting by the by-id link
17315 rather than segfaulting.
17316 Reported and tested by: Daniel Mierswa.
17317
17318 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
17319
17320 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
17321 ldflags, to fix link line ordering.
17322
17323 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
17324
17325 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
17326 linkers are picky about this.
17327
17328 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
17329
17330 * grub-core/Makefile.am (command.lst): Adjust sed expression
17331 ordering so that extended and priority commands aren't treated as
17332 ordinary commands.
17333
17334 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
17335
17336 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
17337 Remove byte-swapping function calls, which are not valid in
17338 structure initialisers.
17339 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
17340 non-const.
17341 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
17342 grub_gpt_partition_type_bios_boot.
17343
17344 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
17345
17346 Fix test program build on GNU/kFreeBSD.
17347
17348 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
17349 $(LIBNVPAIR)' library dependencies.
17350
17351 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
17352
17353 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
17354
17355 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
17356
17357 * util/grub-install.in: Remove excessive quoting that broke
17358 installations to RAID devices.
17359
17360 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
17361
17362 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
17363 bootloader version instead of 0.
17364
17365 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
17366
17367 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
17368 warning.
17369
17370 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
17371
17372 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
17373 retrieve the metadat sector if size isn't known.
17374 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
17375
17376 2010-11-18 Robert Millan <rmh@gnu.org>
17377
17378 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
17379 with grub_memcmp().
17380
17381 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
17382
17383 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
17384 arrow.
17385 Reported by: Jordan Uggla.
17386
17387 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
17388
17389 Make better UTF compliant.
17390
17391 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
17392 sequences as incorrect.
17393 (grub_is_valid_utf8): Likewise.
17394 (grub_utf8_to_ucs4): Likewise.
17395 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
17396 (grub_ucs4_to_utf8_alloc): Likewise.
17397 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
17398
17399 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
17400
17401 Make legacy_source behave like source.
17402
17403 * grub-core/commands/legacycfg.c (legacy_file): Don't call
17404 grub_show_menu.
17405 (grub_cmd_legacy_source): Call grub_show_menu if needed.
17406
17407 2010-11-16 Colin Watson <cjwatson@debian.org>
17408
17409 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
17410 (-Wunused implies -Wunused-parameter, but not vice versa).
17411
17412 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
17413
17414 * configure.ac: Make error messages less confusing by testing for
17415 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
17416 accepted, but produces a diagnostic if something else is wrong).
17417
17418 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
17419
17420 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
17421 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
17422 (now unused).
17423 (grub_keyboard_controller_init)
17424 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
17425 read the initial state since controller isn't inited yet.
17426
17427 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
17428
17429 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
17430 allocate_regbeg may need to create new chunk header.
17431
17432 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
17433
17434 Fix quoting in legacy parser.
17435
17436 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
17437 single quotes.
17438 (grub_legacy_parse): Likewise.
17439 Reported by: Jordan Uggla.
17440 Tested by: Jordan Uggla.
17441
17442 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
17443
17444 Don't add -lgcc on i386 and x86_64.
17445
17446 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
17447 * conf/Makefile.common (LDADD_KERNEL): Likewise.
17448 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
17449
17450 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
17451
17452 * configure.ac: Add -Wno-trampolines when supported.
17453
17454 2010-11-14 Modestas Vainius <modax@debian.org>
17455
17456 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
17457 fakeraid.
17458
17459 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
17460
17461 Add generic logical block size support for UDF.
17462
17463 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
17464 (GRUB_UDF_BLKSZ): Removed.
17465 (struct grub_udf_data): New field "lbshift" to hold the logical block
17466 size of the file system in log2 format. All users updated.
17467 (sblocklist): Change type to unsigned.
17468 (grub_udf_mount): Change type of "sblklist" to unsigned.
17469 Move AVDP search before VRS recognition, because the latter requires
17470 knowledge of the logical block size, which is detected during the
17471 former.
17472 Detect and validate logical block size during AVDP search, adding
17473 support for block sizes 512, 1024 and 4096.
17474 Make VRS recognition independent of block size.
17475
17476 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
17477
17478 Properly handle deleted files on UDF.
17479
17480 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
17481 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
17482 set.
17483
17484 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
17485
17486 Support reading files larger than 2 GiB.
17487
17488 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
17489 "offset" to grub_off_t.
17490 (grub_udf_read_file): Likewise for parameter "pos".
17491
17492 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
17493
17494 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
17495 unavailable.
17496 (Simple configuration): Refer to Changes from GRUB Legacy about
17497 save_env availability.
17498
17499 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
17500
17501 * util/grub-install.in: Ignore empty partition table detection
17502 instead of trying to include part_ module.
17503
17504 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
17505
17506 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
17507 LVM on RAID support.
17508
17509 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
17510
17511 Properly define WORDS_BIGENDIAN in wrapped environments.
17512
17513 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
17514 definition.
17515 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
17516
17517 Reported by: Manoel Rebelo Abranches.
17518 Tested by: Manoel Rebelo Abranches.
17519
17520 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
17521
17522 * util/grub-mkconfig.in: Fix quoting.
17523
17524 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
17525
17526 Support big ext2 files.
17527
17528 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
17529 (grub_ext2_read_block): Support triple indirect blocks.
17530 (grub_ext2_read_file): Use 64-bit types and read size_high.
17531 (grub_ext2_open): Read size_high.
17532 Reported by: Ximin Luo.
17533 Tested by: Manoel Rebelo Abranches.
17534
17535 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
17536
17537 * util/grub-install.in: Handle filenames containing spaces.
17538 Reported by: Jordan Uggla.
17539 Tested by: Jordan Uggla.
17540
17541 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
17542
17543 * util/grub-mkconfig.in (grub_script_check): New variable.
17544 Use grub_script_check instead of grub-script-check.
17545 Reported by: Barry Jackson.
17546
17547 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
17548
17549 * docs/grub.texi (menu): Correct the order.
17550 Reported by: D. Hugh Redelmeier.
17551
17552 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
17553
17554 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
17555 jump.
17556
17557 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
17558
17559 * include/grub/elfload.h (grub_elf32_size): New parameter.
17560 All users updated.
17561 Return maximum segments alignment.
17562 (grub_elf64_size): Likewise.
17563 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
17564 Return maximum segments alignment.
17565 (grub_elf64_size): Likewise.
17566 * grub-core/loader/powerpc/ieee1275/linux.c:
17567 (grub_linux_claimmap_iterate): New function. Uses the
17568 "available" property in the "memory" node for memory allocation
17569 for kernel in the PowerPC loader.
17570 (grub_linux_load32): Correctly find linux entry point offset.
17571 (grub_linux_load64): Likewise.
17572
17573 2010-11-07 Robert Millan <rmh@gnu.org>
17574
17575 On mips-yeeloong, build with -march=loongson2f when this flag is
17576 available (GCC >= 4.4).
17577 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
17578 `-march=mips3'.
17579 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
17580 or otherwise add -march=mips3.
17581
17582 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
17583
17584 Suppress shell expansion on echo '*' and echo "*" like cases.
17585 Reported by: Jordan Uggla.
17586
17587 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
17588 string arguments before shell expansion.
17589 * tests/grub_cmd_echo.in: New testcases.
17590
17591 2010-11-07 Robert Millan <rmh@gnu.org>
17592
17593 * conf/mips-qemu-mips.rmk: Remove stale file from previous
17594 transition.
17595
17596 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
17597
17598 * grub-core/kern/emu/hostdisk.c
17599 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
17600
17601 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
17602
17603 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
17604 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
17605 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
17606
17607 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
17608
17609 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
17610
17611 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
17612
17613 * util/grub-install.in: Replace useless recomendation to pass
17614 --modules with a recomendation to report a bug.
17615
17616 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
17617
17618 Properly register serial terminfo.
17619 Reported by: Jordan Uggla
17620
17621 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
17622 const.
17623 (grub_serial_terminfo_output_template): Likewise.
17624 (grub_cmd_serial): Register "serial" with terminfo.
17625 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
17626 grub_serial_terminfo_output.
17627
17628 2010-11-05 Robert Millan <rmh@gnu.org>
17629
17630 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
17631 needed).
17632
17633 2010-11-05 Robert Millan <rmh@gnu.org>
17634
17635 On Yeeloong, pass machine type information to Linux.
17636
17637 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
17638 (LOONGSON_MACHTYPE): New macro, set to
17639 "machtype=lemote-yeeloong-2f-8.9inches".
17640 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
17641 additional argument to Linux.
17642
17643 2010-11-04 Robert Millan <rmh@gnu.org>
17644
17645 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
17646 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
17647 (its SATA disks are detected as slaveless IDE master drives on
17648 kFreeBSD).
17649 Reported by Carsten Aulbert.
17650
17651 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
17652
17653 * util/bin2h.c (main): Fix spelling error in generated output.
17654
17655 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
17656
17657 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
17658
17659 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17660
17661 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
17662 vga= option is supplied.
17663
17664 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17665
17666 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
17667 * util/grub.d/10_kfreebsd.in: Likewise.
17668 * util/grub.d/10_linux.in: Likewise.
17669 * util/grub.d/20_linux_xen.in: Likewise.
17670
17671 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17672
17673 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
17674 argument as an argument to no-argument option.
17675
17676 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17677
17678 * util/grub.d/10_linux.in: Add missing load_video with explicit
17679 GRUB_GFXPAYLOAD_LINUX.
17680
17681 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17682
17683 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
17684
17685 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17686
17687 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
17688 elements with invlid index.
17689 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
17690 * grub-core/disk/raid.c (insert_array): Automatically reallocate
17691 members.
17692 * include/grub/raid.h (grub_raid_member): New struct.
17693 (grub_raid_array): Transform devices and start_sector into usage of
17694 grub_raid_member. All users updated
17695 (allocated_devs): New member.
17696
17697 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17698
17699 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
17700 is modified
17701
17702 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
17703
17704 NetBSD build fix for getline function conflict from gnulib.
17705
17706 * Makefile.util.def (libgrubkern.a): New library for grub kernel
17707 components that depend on gnulib headers.
17708 (libgrubmods.a): Renamed from earlier libgrub.a.
17709 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
17710
17711 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17712
17713 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
17714 install rather than creating a broken install.
17715
17716 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17717
17718 * util/grub-setup.c (argp): Remove misleading example of installing to
17719 a partition.
17720
17721 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17722
17723 * util/grub-setup.c (setup): Clarify the error message.
17724
17725 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17726
17727 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
17728
17729 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17730
17731 * grub-core/kern/emu/misc.c
17732 (grub_make_system_path_relative_to_its_root)
17733 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
17734
17735 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17736
17737 * grub-core/kern/emu/misc.c
17738 (grub_make_system_path_relative_to_its_root): Revert r2882.
17739
17740 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
17741
17742 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
17743 useless field head. All users updated.
17744 (free_subchunk): Correct handling of IN_REGION subchunk.
17745
17746 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
17747
17748 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
17749 (Supported kernels): Likewise.
17750
17751 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
17752
17753 Make mktemp invocations portable.
17754
17755 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
17756 exit if mktemp fails.
17757 * tests/grub_script_blockarg.in: Likewise.
17758 * tests/partmap_test.in: Likewise.
17759 * tests/util/grub-shell-tester.in: Likewise.
17760 * tests/util/grub-shell.in: Likewise.
17761 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
17762 * Makefile.am: Likewise, and chain shell commands with `&&'
17763 instead of ';'.
17764 * util/grub-mkrescue.in: Use the same explicit template as above, and
17765 exit if mktemp fails.
17766
17767 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
17768
17769 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
17770 Linux kernel, reported by Dennis Schridde.
17771
17772 2010-10-17 Szymon Janc <szymon@janc.net.pl>
17773
17774 * grub-core/normal/auth.c (grub_auth_check_authentication):
17775 Set-but-not-used variable removed.
17776
17777 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17778
17779 * docs/grub.texi (GNU/Linux): Document APM unavailability with
17780 32-bit linux protocol.
17781
17782 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17783
17784 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
17785 cursor shape for sanity.
17786
17787 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17788
17789 * docs/grub.texi (Installation): Document buggy BIOS install.
17790
17791 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17792
17793 * docs/grub.texi (Installation): Indent.
17794
17795 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17796
17797 * util/grub-setup.c (setup): New parameter allow_floppy.
17798 (arguments): New member allow_floppy.
17799 (argp_parser): Handle --allow-floppy.
17800 (main): Pass allow_floppy.
17801 * util/grub-install.in: New option --allow-floppy passed though to
17802 grub-setup.
17803
17804 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17805
17806 * util/grub-install.in: Handle partitionless disks.
17807
17808 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
17809
17810 * util/grub-setup.c (setup): Don't clean blocklists before readability
17811 verfification.
17812
17813 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17814
17815 * docs/grub.texi (Installation): Document embedding zone. Remove
17816 obsolete grub-install example.
17817
17818 2010-10-16 Szymon Janc <szymon@janc.net.pl>
17819
17820 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
17821 Set-but-not-used variable ifdef'ed.
17822 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
17823 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
17824 variable removed.
17825 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
17826 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
17827 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
17828 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
17829 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
17830 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
17831 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
17832 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
17833 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
17834 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
17835 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
17836 Likewise.
17837
17838 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17839
17840 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
17841 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
17842 enum value.
17843
17844 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17845
17846 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
17847 synonym to _S5_. Needed for some DSDTs.
17848
17849 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17850
17851 Userspace ACPI parser debugging.
17852
17853 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
17854 headers and add relevant defines. Don't include standard headers.
17855 (main) [GRUB_DSDT_TEST]: New function.
17856 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
17857 Don't declare functions.
17858
17859 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17860
17861 Remove dead grub_efi_mm_fini.
17862
17863 * grub-core/kern/efi/mm.c (allocated_page): Removed.
17864 (ALLOCATED_PAGES_SIZE): Likewise.
17865 (MAX_ALLOCATED_PAGES): Likewise.
17866 (allocated_pages): Likewise.
17867 (grub_efi_allocate_pages): Don't record allocated pages.
17868 (grub_efi_free_pages): Likewise.
17869 (grub_efi_mm_init): Likewise.
17870 (grub_efi_mm_fini): Removed.
17871
17872 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17873
17874 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
17875 (grub_efi_mm_init): Take into account the memory map size increase.
17876
17877 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17878
17879 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
17880 (serial_hw_put): Wait based on real time rather than port reads. Don't
17881 roken ports.
17882 * include/grub/serial.h (grub_serial_port): New field broken.
17883
17884 2010-10-16 Robert Millan <rmh@gnu.org>
17885
17886 * grub-core/kern/emu/misc.c
17887 (grub_make_system_path_relative_to_its_root): Fix premature return
17888 when processing non-root ZFS filesystems.
17889 Reported by Sergio Talens-Oliag.
17890
17891 2010-10-15 Robert Millan <rmh@gnu.org>
17892
17893 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
17894 guarantee compressed ones are processed first.
17895
17896 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17897
17898 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
17899 grub_efiemu_autocore.
17900
17901 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17902
17903 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
17904 rather than 0x1b.
17905 (grub_console_getkey): Use correct jae opcode rather than ja.
17906
17907 2010-10-12 Robert Millan <rmh@gnu.org>
17908
17909 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
17910 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
17911 variable. All references updated.
17912
17913 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
17914
17915 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
17916
17917 Correctly distinguish mdraid flavours.
17918
17919 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
17920 (insert_array): New argument raid.
17921 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
17922 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
17923 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
17924
17925 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
17926
17927 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
17928 handling of special keys.
17929
17930 2010-10-02 Aleš Nesrsta <starous@volny.cz>
17931
17932 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
17933 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
17934
17935 2010-10-02 Aleš Nesrsta <starous@volny.cz>
17936
17937 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
17938 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
17939 users updated.
17940 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
17941 Use right endpoint when querying descriptor.
17942
17943 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
17944
17945 Clear out 0x80 color bit on EFI.
17946 Tested by: decoder
17947 Reported by: decoder and meta tech.
17948
17949 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
17950 (grub_console_setcolorstate): Clear out 0x80 bit.
17951 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
17952 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
17953 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
17954
17955 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
17956
17957 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
17958 Set to "auto".
17959
17960 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17961
17962 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
17963 mo_file after freeing.
17964
17965 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17966
17967 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
17968
17969 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17970
17971 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
17972 flags.
17973
17974 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17975
17976 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
17977 usage.
17978
17979 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
17980
17981 Put terminfo into core on ieee1275 and yeeloong (needed for console).
17982
17983 * gentpl.py: New groups terminfoinkernel and terminfomodule.
17984 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
17985 and terminfo.h when needed.
17986 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
17987 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
17988 (terminfo): Enable only on terminfokernel.
17989 (extcmd): Likewise.
17990 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
17991 * include/grub/lib/arg.h: Likewise.
17992 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
17993 incorrect usage of ->.
17994
17995 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
17996
17997 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
17998 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
17999
18000 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18001
18002 Fix coreboot compilation.
18003
18004 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18005 Take VBE info into account even if only text is supported.
18006 (fill_vbe_info): Take into account the case when only VGA text
18007 is supported.
18008 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
18009 on coreboot, multiboot and qemu.
18010
18011 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18012
18013 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
18014 debug messages.
18015 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
18016
18017 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18018
18019 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
18020 parameters.
18021
18022 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18023
18024 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
18025 if they were BSD-style.
18026
18027 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18028
18029 * grub-core/boot/i386/pc/lnxboot.S: Replace
18030 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
18031 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
18032
18033 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
18034
18035 Write embedding zone using Reed-Solomon.
18036
18037 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
18038 * grub-core/Makefile.am (rs_decoder.S): New target.
18039 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
18040 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
18041 (multiboot): Move to RS part.
18042 (post_reed_solomon): New label.
18043 (grub_boot_drive): Move to non-RS part since it's modified in memory
18044 on boot.
18045 Include rs_decoder.S.
18046 * grub-core/lib/reed_solomon.c: New file.
18047 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
18048 New definition.
18049 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
18050 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
18051 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
18052 * include/grub/partition.h (grub_partition_map): Change prototype of
18053 embed to allow returning additional sectors.
18054 * include/grub/reed_solomon.h: New file.
18055 * util/grub-setup.c (setup): Handle Reed-Solomon.
18056
18057 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
18058
18059 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
18060 i386 and x86-64 definedness tests.
18061
18062 2010-09-27 Yves Blusseau <blusseau@zetam.org>
18063
18064 Fix generation of kernel_syms.lst
18065
18066 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
18067 ASM_PREFIX
18068
18069 2010-09-26 Robert Millan <rmh@gnu.org>
18070
18071 Support degraded ZFS arrays in "grub-probe -t device" resolution.
18072
18073 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
18074 the pool is an array of devices, iterate through it and return the
18075 first device that passes a stat() test (instead of blindly returning
18076 the first one).
18077
18078 2010-09-26 Robert Millan <rmh@gnu.org>
18079
18080 Build fixes for GNU/kFreeBSD.
18081
18082 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
18083 to programs that require ZFS conversion.
18084 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
18085 kernels that don't have FLOPPY_MAJOR.
18086
18087 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
18088
18089 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
18090
18091 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
18092
18093 Fix grub-emu build.
18094
18095 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
18096 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
18097 mdraid09 and mdraid1x.
18098
18099 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
18100
18101 Re-enable grub-extras.
18102
18103 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
18104 avoid confusing Automake. Run autogen only twice, once for the top
18105 level and once for grub-core. Add Makefile.util.def and
18106 Makefile.core.def from extra modules to the appropriate autogen
18107 invocations. If Makefile.common exists in an extra module, include
18108 it in both Makefile.util.am and grub-core/Makefile.core.am;
18109 similarly, include any Makefile.util.common file in Makefile.util.am
18110 and any Makefile.core.common file in grub-core/Makefile.core.am.
18111 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
18112 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
18113 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
18114 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
18115
18116 * gentpl.py (gvar_add): Turn GVARS into a set.
18117 (global_variable_initializers): Sort global variables on output.
18118 (vars_init): New function.
18119 (first_time): Likewise.
18120 (library): Ensure that non-global variable initialisations are
18121 emitted before the first time we emit code for a library block.
18122 Append to variables rather than setting them. Only emit
18123 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
18124 each conditional path.
18125 (program): installdir() emits an Autogen macro, so must be passed to
18126 var_add rather than gvar_add.
18127 (data): Likewise.
18128 (script): Likewise.
18129 (rules): New function, centralising handling for different target
18130 types. Set up Guile association lists for first_time and vars_init,
18131 and send most output to a diversion so that variable initialisations
18132 can be emitted first.
18133 (module_rules): Use new rules function.
18134 (kernel_rules): Likewise.
18135 (image_rules): Likewise.
18136 (library_rules): Likewise.
18137 (program_rules): Likewise.
18138 (script_rules): Likewise.
18139 (data_rules): Likewise.
18140
18141 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
18142
18143 * .bzrignore: Add contrib and grub-core/contrib. Remove
18144 grub-core/Makefile.gcry.am.
18145
18146 2010-09-24 Yves Blusseau <blusseau@zetam.org>
18147
18148 * grub-core/lib/LzFind.c: Add missing include.
18149 * grub-core/lib/LzmaEnc.c: Likewise.
18150 * grub-core/script/lexer.c: Likewise.
18151 * grub-core/script/yylex.l: Likewise.
18152 * util/grub-macho2img.c: Likewise.
18153 * util/grub-menulst2cfg.c: Likewise.
18154 * util/grub-mklayout.c: Likewise.
18155 * util/grub-mkpasswd-pbkdf2.c
18156 * util/grub-mkrelpath.c: Likewise.
18157 * util/resolve.c: Likewise.
18158
18159 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
18160
18161 * Makefile.util.def (example_unit_test): Add
18162 grub-core/gnulib/libgnu.a.
18163
18164 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
18165
18166 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
18167
18168 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
18169
18170 Support xz compression on yeeloong.
18171
18172 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
18173 * configure.ac: Check for LZMA.
18174 * grub-core/Makefile.core.def (xz_decompress): New target.
18175 (none_decompress): Likewise.
18176 * grub-core/boot/decompressor/minilib.c: New file.
18177 * grub-core/boot/decompressor/none.c: Likewise.
18178 * grub-core/boot/decompressor/xz.c: Likewise.
18179 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
18180 * grub-core/kern/mips/cache_flush.S: Likewise.
18181 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
18182 * grub-core/kern/mips/startup.S: Move first stage to ...
18183 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
18184 nomacro.
18185 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
18186 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
18187 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
18188 Allocate statically.
18189 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
18190 Allocate statically or use scratch. Don't check CRC32.
18191 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
18192 Allocate statically. Don't check CRC32.
18193 * include/grub/decompressor.h: New file.
18194 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
18195 Removed.
18196 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
18197 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
18198 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
18199 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
18200 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
18201 * util/grub-mkimage.c (grub_compression_t): New type.
18202 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
18203 (image_target_desc): New field default_compression.
18204 (image_targets): Adjust yeeloong targets.
18205 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
18206 (compress_kernel): New parameter comp.
18207 (generate_image): Likewise. Handle new compression case.
18208 (options): New option --compression
18209 (help): Likewise.
18210 (main): Handle new option.
18211
18212 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
18213
18214 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
18215
18216 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
18217
18218 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
18219 typo in __i386__ conditional.
18220
18221 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
18222
18223 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
18224 include.
18225
18226 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
18227
18228 Implement EFI and ACPI multiboot2 extensions.
18229
18230 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
18231 new tags as supported.
18232 (acpiv2_size): New function.
18233 (grub_multiboot_get_mbi_size): Take new tags into account.
18234 (grub_multiboot_make_mbi): Add new tags.
18235 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
18236
18237 2010-09-21 Aleš Nesrsta <starous@volny.cz>
18238
18239 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
18240 Added missing configuration of USB device.
18241
18242 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
18243
18244 * grub-core/normal/menu_entry.c (run): Make sure we always return
18245 a value.
18246
18247 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
18248
18249 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
18250 NumberOfPages is UINT64 according to the UEFI specification, not
18251 UINTN. Fix printf format.
18252
18253 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
18254
18255 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
18256 `err' to grub_usb_err_t.
18257 Reported and tested by: KESHAV P.R.
18258
18259 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
18260
18261 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
18262 tpart non-const, so that we can assign to it. (Since this is a
18263 typedef, the constness refers to the pointer rather than what it
18264 points to.)
18265
18266 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
18267
18268 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
18269 $(top_srcdir)/grub-core/gnulib as well as
18270 $(top_builddir)/grub-core/gnulib.
18271 Reported by: KESHAV P.R.
18272
18273 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
18274
18275 * util/grub-install.in: Fix the bootloader ID option to be
18276 consistently --bootloader-id, not --bootloader_id.
18277 Reported by: KESHAV P.R.
18278
18279 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
18280
18281 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
18282 check hash checksum." consistently translatable.
18283
18284 2010-09-21 Yves Blusseau <blusseau@zetam.org>
18285
18286 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
18287 $(top_builddir).
18288
18289 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
18290
18291 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
18292 (GRUB_MOD_INIT): Register sha1sum command.
18293 (GRUB_MOD_FINI): Unregister sha1sum command.
18294
18295 2010-09-21 Yves Blusseau <blusseau@zetam.org>
18296
18297 Keep boot and grub directory names in sync with utils scripts
18298
18299 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
18300 * config.h.in: Add previous macros.
18301 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
18302 * util/grub-install.in: Use $bootdir and $grubdir variables.
18303
18304 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
18305
18306 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
18307 convert partition names to disk names if the new `convert' parameter
18308 is set.
18309 (grub_util_biosdisk_get_grub_dev): If opening the disk device
18310 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
18311 disk in its own right. This can happen with Xen disk images.
18312
18313 2010-09-21 Yves Blusseau <blusseau@zetam.org>
18314
18315 * util/grub-editenv.c: Update strings to avoid warnings when generating
18316 grub.pot file.
18317 * util/grub-setup.c: Likewise.
18318
18319 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
18320
18321 * configure.ac: Change version to 1.99~beta0.
18322
18323 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
18324
18325 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
18326 Add BADRAM.
18327 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
18328 Likewise.
18329 * include/multiboot.h: Resynced with specification.
18330 * include/multiboot2.h: Likewise.
18331
18332 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
18333
18334 Fix po directory handling.
18335
18336 * configure.ac: Create po/Makefile.in rather than po/Makefile.
18337 * grub-core/gnulib/Makefile.am: Import gettext module.
18338 * m4/gnulib-cache.m4: Likewise.
18339 * m4/gnulib-comp.m4: Likewise.
18340 * m4/gettext.m4: New file, from gnulib.
18341 * m4/glibc2.m4: Likewise.
18342 * m4/iconv.m4: Likewise.
18343 * m4/intdiv0.m4: Likewise.
18344 * m4/intl.m4: Likewise.
18345 * m4/intldir.m4: Likewise.
18346 * m4/intlmacosx.m4: Likewise.
18347 * m4/intmax.m4: Likewise.
18348 * m4/inttypes-pri.m4: Likewise.
18349 * m4/lcmessage.m4: Likewise.
18350 * m4/lib-ld.m4: Likewise.
18351 * m4/lib-link.m4: Likewise.
18352 * m4/lib-prefix.m4: Likewise.
18353 * m4/lock.m4: Likewise.
18354 * m4/nls.m4: Likewise.
18355 * m4/po.m4: Likewise.
18356 * m4/printf-posix.m4: Likewise.
18357 * m4/progtest.m4: Likewise.
18358 * m4/threadlib.m4: Likewise.
18359 * m4/uintmax_t.m4: Likewise.
18360 * m4/visibility.m4: Likewise.
18361 * po/Makefile.am: Remove.
18362 * po/Makefile.in.in: New file, from gettext.
18363 ($(DOMAIN).pot-update): Support POTFILES-shell.
18364 * po/Makevars: New file.
18365 * po/POTFILES-shell: Rename to ...
18366 * po/POTFILES-shell.in: ... this. Update.
18367 * po/POTFILES: Rename to ...
18368 * po/POTFILES.in: ... this. Update.
18369 * po/Rules-quot: New file, from gettext.
18370 * po/boldquot.sed: Likewise.
18371 * po/en@boldquot.header: Likewise.
18372 * po/en@quot.header: Likewise.
18373 * po/insert-header.sin: Likewise.
18374 * po/quot.sed: Likewise.
18375 * po/remove-potcdate.sin: Likewise.
18376
18377 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18378
18379 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
18380
18381 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18382
18383 * util/grub.d/20_linux_xen.in: Use submenus.
18384
18385 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18386
18387 Support submenus.
18388
18389 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
18390 parameter submenu. All users updated.
18391 * grub-core/normal/main.c (free_menu): Rename to ...
18392 (grub_normal_free_menu): ... this. Made global.
18393 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
18394 if requested.
18395 * grub-core/normal/menu_entry.c (screen): New field submenu.
18396 (make_screen): Set submenu.
18397 (run): Open new context if requested.
18398 * include/grub/menu.h (grub_menu_entry): New field submenu.
18399 * include/grub/normal.h (grub_normal_free_menu): New proto.
18400
18401 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18402
18403 Menu entries extractor.
18404
18405 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
18406 variants.
18407 (GRUB_MOD_INIT): Register new variants.
18408 (GRUB_MOD_FINI): Unregister new variants.
18409 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
18410 into grub_cmd_legacy_source.
18411 (grub_cmd_legacy_source): Implement extractor variants.
18412 (GRUB_MOD_INIT): Register new variants.
18413 (GRUB_MOD_FINI): Unregister new variants.
18414 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
18415 as an extractor.
18416 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
18417 search as an extractor.
18418 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
18419 test as an extractor.
18420 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
18421 as an extractor.
18422 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
18423 (grub_env_new_context): New function.
18424 (grub_env_context_open): Likewise.
18425 (grub_env_extractor_open): Likewise.
18426 (grub_env_extractor_close): Likewise.
18427 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
18428 grub_extractor_level.
18429 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
18430 * include/grub/env.h (grub_env_extractor_open): New proto.
18431 (grub_env_extractor_close): Likewise.
18432 * include/grub/normal.h (grub_extractor_level): New external variable.
18433
18434 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18435
18436 Make cutmem accept a region specification.
18437 Suggested by: Samuel Thibault
18438
18439 * grub-core/mmap/mmap.c (parsemem): New function.
18440 (grub_cmd_cutmem): Handle new arguments.
18441
18442 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18443
18444 New command cutmem.
18445
18446 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
18447 (GRUB_MOD_INIT): Register new command.
18448 (GRUB_MOD_FINI): Unregister new command.
18449
18450 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18451
18452 Support some annoying BSD and Minix subpartitions.
18453
18454 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
18455 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
18456 Properly handle concatenation.
18457 * grub-core/kern/device.c (grub_device_iterate): Likewise.
18458 * grub-core/normal/completion.c (iterate_partition): Likewise.
18459 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
18460 contain partition. All users updated.
18461 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
18462 struct.
18463 (grub_openbsdlabel_partition_map): Likewise.
18464 (bsdlabel_partition_map_iterate): Rename to ..
18465 (iterate_real): ... this. New arguments sector, freebsd and pmap.
18466 (bsdlabel_partition_map_iterate): New function.
18467 (netopenbsdlabel_partition_map_iterate): Likewise.
18468 (netbsdlabel_partition_map_iterate): Likewise.
18469 (openbsdlabel_partition_map_iterate): Likewise.
18470 (GRUB_MOD_INIT): Register new partmaps.
18471 (GRUB_MOD_FINI): Unregister new partmaps.
18472 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
18473 (grub_partition_msdos_iterate): ... this. All users updated.
18474 Don't support embedding other than in a minix partition.
18475 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
18476 proto.
18477 * include/grub/partition.h (grub_partition): New field msdostype.
18478 * util/grub-install.in: Handle openbsd and netbsd types being in
18479 part_bsd module.
18480
18481 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18482
18483 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
18484
18485 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
18486 * grub-core/Makefile.core.def (mdraid): Renamed to ...
18487 (mdraid09): ... this.
18488 (mdraid1x): New module.
18489 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
18490 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
18491
18492 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18493
18494 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
18495 vsprintf.
18496
18497 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
18498
18499 * grub-core/commands/efi/lsefimmap.c: Correct header.
18500 * NEWS: Update.
18501
18502 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
18503
18504 * util/grub-editenv.c (argp_parser): Don't pass translated strings
18505 as printf format strings; the translations might contain '%' which
18506 could cause a crash.
18507 (main): Likewise.
18508 * util/grub-fstest.c (argp_parser): Likewise.
18509 * util/grub-setup.c (argp_parser): Likewise.
18510 (main): Likewise.
18511
18512 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18513
18514 Use argp in grub-fstest.
18515
18516 * util/grub-fstest.c: Don't include getopt.h.
18517 Include argp.h.
18518 (root): New variable.
18519 (args_count): Likewise.
18520 (nparm): Likewise.
18521 (num_disks): Likewise.
18522 (images): Likewise.
18523 (cmd): Likewise.
18524 (debug_str): Likewise.
18525 (args): Likewise.
18526 (options): Transformed to argp.
18527 (usage): Removed.
18528 (main): Split argument parsing into ...
18529 (argp_parser): ... this. Changed to argp format.
18530 (argp): New variable.
18531 (main): Use argp_parse.
18532
18533 2010-09-20 Tristan Gingold <gingold@free.fr>
18534 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
18535 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18536
18537 * grub-core/commands/efi/lsefimmap.c: New file.
18538 * grub-core/Makefile.core.def (lsefimmap): New module.
18539 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
18540
18541 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18542
18543 Pause the execution (10s max) if any errors are displayed so the user
18544 has a chance to see them.
18545
18546 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
18547 (grub_print_error): Increment grub_err_printed_errors.
18548 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
18549 execution if any errors were displayed.
18550 (show_menu): Remove old code for pause.
18551 * grub-core/normal/menu_entry.c (run): Likewise.
18552 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
18553 users updated.
18554 (grub_normal_get_char_counter): Likewise.
18555 * include/grub/err.h (grub_err_printed_errors): New external variable.
18556 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
18557
18558 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18559
18560 Support multiboot VBE info.
18561
18562 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18563 Take VBE info into account.
18564 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
18565 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
18566 Call fill_vbe_info when appropriate.
18567 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
18568 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
18569 as supported.
18570 (grub_multiboot_get_mbi_size): Take new tags into account.
18571 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
18572 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
18573 Call fill_vbe_tag when appropriate.
18574 (grub_multiboot_make_mbi): Properly align tags.
18575 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
18576 function.
18577 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
18578 proto.
18579 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
18580
18581 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18582
18583 Suport manual terminal geometry specification.
18584
18585 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
18586 Save state in grub_ofconsole_terminfo_output.
18587 (grub_ofconsole_term): Use grub_terminfo_getwh.
18588 (grub_ofconsole_getwh): Removed.
18589 * grub-core/term/serial.c (grub_serial_getwh): Removed.
18590 (grub_serial_term): Use grub_terminfo_getwh.
18591 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
18592 (options): New struct.
18593 (OPTION_*): New enum.
18594 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
18595 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
18596 width and height.
18597 (grub_terminfo_getwh): New proto.
18598 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
18599
18600 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18601
18602 Handle legacy "terminal" command.
18603
18604 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
18605 and FLAG_TERMINAL.
18606 (legacy_commands): Add terminal and title.
18607 (grub_legacy_parse): Handle terminal. Simplify title handling.
18608
18609 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18610
18611 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
18612 parameters overflow.
18613
18614 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
18615
18616 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
18617 widthspec.h.
18618
18619 * docs/grub.texi (Shell-like scripting): Document `!'.
18620 (Network): Simplify using new i386-pc-pxe format. Mention
18621 grub-mknetdir.
18622
18623 * NEWS: Update.
18624
18625 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
18626
18627 * Makefile.am (SUBDIRS): Restore "."; it's important to force
18628 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
18629 when needed.
18630
18631 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
18632
18633 * grub-core/commands/efi/lsefisystab.c: Correct header.
18634 * grub-core/commands/efi/lssal.c: Likewise.
18635 * grub-core/commands/testload.c: Likewise.
18636
18637 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
18638
18639 * util/grub-mkrescue.in: Add explicit root argument to --set to
18640 prevent the UUID being interpreted as an argument to --set (matches
18641 previous change to prepare_grub_to_access_device).
18642
18643 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
18644
18645 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
18646 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
18647 the verbosity of later #ifs.
18648 (find_partition_start): Define this function on FreeBSD too.
18649 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
18650 function.
18651 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
18652 on FreeBSD.
18653
18654 2010-09-20 Yves Blusseau <blusseau@zetam.org>
18655
18656 * util/grub-editenv.c: Use argp instead of getopt.
18657
18658 2010-09-20 Yves Blusseau <blusseau@zetam.org>
18659
18660 * util/grub-setup.c: Use argp instead of getopt.
18661
18662 2010-09-20 Yves Blusseau <blusseau@zetam.org>
18663
18664 Use gnulib-tool to create gnulib source files.
18665
18666 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
18667 grub-core/gnulib directories
18668 * .bzignore: Add **/.deps and autogenerated gnulib files
18669 * configure.ac: Assign auxiliary directory to build-aux, add invocation
18670 of gnulib macros, add grub-core/gnulib/Makefile
18671 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
18672 include m4 directory to aclocal.
18673 * Makefile.util.def: Remove direct compilation of gnulib source files
18674 and use the new grub-core/gnulib/libgnu.a.
18675 * build-aux/config.rpath: move config.rpath from top directory to
18676 build-aux
18677 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
18678 in gnulib headers
18679 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
18680 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
18681 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
18682 header.
18683 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
18684 string.
18685
18686 2010-09-20 Yves Blusseau <blusseau@zetam.org>
18687
18688 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
18689 grub-core/genmod.sh and grub-core/gensyminfo.sh
18690
18691 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
18692
18693 Add a test for echo command options.
18694
18695 * tests/grub_cmd_echo.in: New test.
18696 * Makefile.util.def: Rules for new test.
18697
18698 2010-09-20 Szymon Janc <szymon@janc.net.pl>
18699
18700 Remove crc.mod and move crc command to hashsum.mod.
18701 Remove lib/crc.c - users updated to use gcrypt implementation.
18702
18703 * grub-core/commands/crc.c: Removed.
18704 * grub-core/Makefile.core.def (crc): Module removed.
18705 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
18706 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
18707 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
18708 * grub-core/lib/crc.c: Removed.
18709 * include/grub/lib/crc.h: Removed.
18710 * Makefile.util.def (crc): Remove lib/crc.c
18711 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
18712 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
18713 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
18714 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
18715 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
18716 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
18717
18718 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
18719
18720 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
18721
18722 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18723
18724 Split config.h for util and core.
18725
18726 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
18727 (ADDR32): Likewise.
18728 (DATA32): Likewise.
18729 (BSS_START_SYMBOL): Likewise.
18730 (END_SYMBOL): Likewise.
18731 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
18732 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
18733 * config.h.in: New file.
18734 * configure.ac: Use config-util.h as config define file.
18735 Rename MACHINE into GRUB_MACHINE. All users updated.
18736 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
18737 updated.
18738 (NESTED_FUNC_ATTR): Likewise.
18739 Substitue new variables.
18740 (COND_HAVE_ASM_USCORE): New conditional.
18741 * grub-core/Makefile.am (ASM_PREFIX): New variable.
18742 (kernel_syms.lst): Use ASM_PREFIX.
18743 * grub-core/kern/emu/console.c: Include config-util.h.
18744 * grub-core/kern/emu/misc.c: Likewise.
18745 * grub-core/kern/emu/mm.c: Likewise.
18746 * include/grub/emu/misc.h: Likewise.
18747 * include/grub/libgcc.h: Likewise.
18748
18749 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18750
18751 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
18752 constants usage.
18753 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
18754 Fix GRUB_TERM_KEY_* constants usage.
18755 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
18756
18757 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18758
18759 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
18760 print pointer.
18761 * grub-core/bus/usb/uhci.c: Remove empty define.
18762 (grub_uhci_check_transfer): Add missing cast.
18763 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
18764 print pointer.
18765 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
18766 PRIuGRUB_SIZE.
18767 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
18768
18769 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18770
18771 * grub-core/Makefile.core.def (legacycfg): Add
18772 lib/i386/pc/vesa_modes_table.c on emu.
18773
18774 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
18775
18776 Reduce number of temporary files generated by build system.
18777
18778 * grub-core/gencmdlist.sh: Removed.
18779 * grub-core/genfslist.sh: Removed.
18780 * grub-core/genhandlerlist.sh: Removed.
18781 * grub-core/genmodsrc.sh: Removed.
18782 * grub-core/genpartmaplist.sh: Removed.
18783 * grub-core/genparttoollist.sh: Removed.
18784 * grub-core/gentermiinallist.sh: Removed.
18785 * grub-core/genvideolist.sh: Removed.
18786
18787 * grub-core/genmod.sh.in: New file.
18788 * grub-core/gensyminfo.sh.in: New file.
18789
18790 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
18791 * conf/Makefile.extra-dist: Update with new files.
18792 * gentpl.py: Remove rules related to unnecessary temporary files.
18793 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
18794 and und-* files.
18795 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
18796 genmod.sh scripts.
18797 * grub-core/bus/usb/uhci.c: Remove empty #define.
18798 * grub-core/genmoddep.awk: Updated with new syminfo format.
18799 * util/bash-completion.d/Makefile.am: Add config.log to
18800 CLEANFILES.
18801
18802 2010-09-19 Yves Blusseau <blusseau@zetam.org>
18803
18804 * Makefile.util.def: Add forgotten $(LIBINTL) library.
18805
18806 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
18807
18808 * util/grub-mkconfig.in: Check the config script for syntax errors
18809 before saving.
18810
18811 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
18812 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18813
18814 * Makefile.util.def (grub-install): Use util/grub-install.in on all
18815 platforms.
18816 * util/grub-install.in: Add EFI and IEEE1275 support.
18817 * util/i386/efi/grub-install.in: Removed.
18818 * util/ieee1275/grub-install.in: Likewise.
18819
18820 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
18821
18822 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
18823 (grub_cmd_cmosclean): Likewise.
18824 (GRUB_MOD_INIT): Register command cmosclean.
18825 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
18826 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
18827
18828 2010-09-18 Carles Pina i Estany <carles@pina.cat>
18829 2010-09-18 Aleš Nesrsta <starous@volny.cz>
18830 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
18831
18832 Add keyboard layouts support.
18833
18834 * Makefile.util.def (grub-mklayout): New file.
18835 (grub-kbdcomp): New script.
18836 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
18837 Add keyboard_layouts.h.
18838 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
18839 commands/boot.c on yeeloong.
18840 (keylayouts): New module.
18841 * grub-core/bus/usb/ohci.c
18842 * grub-core/bus/usb/uhci.c
18843 * grub-core/bus/usb/usbhub.c (rescan): New variable.
18844 (grub_usb_add_hub): Poll interrupt pipe for device handling.
18845 (attach_root_port): Likewise.
18846 (poll_nonroot_hub): Likewise.
18847 (grub_usb_poll_devices): Likewise.
18848 (detach_device): Close transfer.
18849 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
18850 function.
18851 (grub_usb_bulk_setup_readwrite): Likewise.
18852 (grub_usb_bulk_finish_readwrite): Likewise.
18853 * grub-core/commands/keylayouts.c: New file.
18854 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
18855 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
18856 aliases.
18857 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
18858 support scancode 2.
18859 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
18860 * include/grub/keyboard_layouts.h: New file.
18861 * util/grub-mklayout.c: New file.
18862 * util/grub-kbdcomp.in: Likewise.
18863
18864 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
18865
18866 Unify memory types.
18867
18868 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
18869 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
18870 types.
18871 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
18872 (grub_upper_mem): Likewise.
18873 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
18874 * include/grub/memory.h (grub_memory_type_t): New enum.
18875 All users updated.
18876
18877 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
18878
18879 * grub-core/Makefile.core.def (lsapm): New module.
18880 * grub-core/commands/i386/pc/lsapm.c: New file.
18881 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
18882 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
18883 Likewise.
18884 * include/grub/i386/pc/apm.h: New file.
18885 * include/multiboot.h (multiboot_apm_info): New struct.
18886
18887 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
18888
18889 GRUB-legacy configuration file support.
18890
18891 * Makefile.util.def (grub-menulst2cfg): New util.
18892 * docs/man/grub-menulst2cfg.h2m: New file.
18893 * grub-core/Makefile.core.def (legacycfg): New module.
18894 * grub-core/commands/legacycfg.c: New file.
18895 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
18896 (grub_normal_add_menu_entry): ... this.
18897 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
18898 (grub_normal_set_password): ...this.
18899 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
18900 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
18901 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
18902 * grub-core/lib/legacy_parse.c: New file.
18903 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
18904 * include/grub/i386/pc/vesa_modes_table.h: New file.
18905 * include/grub/legacy_parse.h: Likewise.
18906 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
18907 * util/grub-menulst2cfg.c: New file.
18908
18909 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
18910
18911 * grub-core/kern/emu/hostdisk.c
18912 (convert_system_partition_to_system_disk): Initialise node.
18913
18914 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
18915
18916 * grub-core/kern/emu/hostdisk.c
18917 (convert_system_partition_to_system_disk): Fix devmapper memory pool
18918 leak.
18919 Reported and based on patch by: Modestas Vainius.
18920
18921 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
18922
18923 Fix DM-RAID probing with recent versions of device-mapper udev
18924 rules.
18925
18926 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
18927 canonicalise device paths under /dev/mapper/.
18928 (convert_system_partition_to_system_disk): Compare the
18929 uncanonicalised path to /dev/mapper/ rather than the canonicalised
18930 path, since device nodes under /dev/mapper/ are often symlinks.
18931
18932 2010-09-17 Yves Blusseau <blusseau@zetam.org>
18933
18934 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
18935
18936 2010-09-16 Yves Blusseau <blusseau@zetam.org>
18937
18938 * configure.ac: Avoid some annoying error messages if freetype-config
18939 program is not found.
18940
18941 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
18942
18943 Support RAID on virtio devices, and others.
18944
18945 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
18946 Rename to ...
18947 [__MINGW32__] (grub_find_device): ... this.
18948 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
18949 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
18950 reasonable default if dir is NULL.
18951 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
18952 ...
18953 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
18954 (grub_guess_root_device): Update callers.
18955 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
18956
18957 * util/raid.c (grub_util_getdiskname): Remove.
18958 (grub_util_raid_getmembers): Use grub_find_device rather than
18959 grub_util_getdiskname.
18960
18961 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
18962
18963 * docs/grub.texi (serial): Remove obsolete comment about GRUB
18964 needing to be compiled with serial support.
18965 (ls): Indicate that multiple files are accepted.
18966 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
18967 indicate that multiple files are accepted.
18968
18969 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
18970
18971 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
18972 libgrub_a_init.c, and util/bash-completion.d/grub.
18973
18974 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18975
18976 * util/grub-setup.c (setup): Fix incorrect container semantics.
18977
18978 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18979
18980 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
18981 misusage.
18982 Reported by: J. Nick Terry
18983
18984 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
18985
18986 Move embedding routines to partmap sources files.
18987
18988 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
18989 [GRUB_UTIL]: New variable.
18990 (gpt_partition_map_iterate): Set part.parent.
18991 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
18992 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
18993 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
18994 New function.
18995 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
18996 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
18997 (grub_partition_map) [GRUB_UTIL]: New field embed.
18998 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
18999 (setup): Use ->embed.
19000
19001 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19002
19003 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
19004 function.
19005 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
19006 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
19007
19008 2010-09-15 Yves Blusseau <blusseau@zetam.org>
19009
19010 Add function to get completions from usage.
19011
19012 * util/bash-completion.d/grub-completion.bash.in: Add function to get
19013 completions from usage. Use LC_ALL=C to get options properly.
19014
19015 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19016
19017 * grub-core/gnulib/basename-lgpl.c: Imported.
19018 * grub-core/gnulib/basename.c: Likewise.
19019 * grub-core/gnulib/dirname-lgpl.c: Likewise.
19020 * grub-core/gnulib/dirname.c: Likewise.
19021 * grub-core/gnulib/dirname.h: Likewise.
19022 * grub-core/gnulib/stripslash.c: Likewise.
19023
19024 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
19025
19026 * grub-core/gnulib/error.c: Resynced.
19027 * grub-core/gnulib/getopt.c: Likewise.
19028 * grub-core/gnulib/getopt_int.h: Likewise.
19029 * grub-core/gnulib/regex.h: Likewise.
19030 * grub-core/gnulib/regex_internal.c: Likewise.
19031 * grub-core/gnulib/regex_internal.h: Likewise.
19032
19033 2010-09-15 Szymon Janc <szymon@janc.net.pl>
19034
19035 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
19036 CRC calculations and validity checks.
19037 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
19038 calculations.
19039
19040 2010-09-15 Szymon Janc <szymon@janc.net.pl>
19041
19042 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
19043
19044 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19045
19046 Fix incorrect echo options handling.
19047 Reported by: Yves Blusseau.
19048
19049 * include/grub/command.h (grub_command_flags_t): New flags
19050 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
19051 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
19052 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
19053
19054 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19055
19056 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
19057 users updated.
19058 (GRUB_COMMAND_FLAG_MENU): Likewise.
19059 (GRUB_COMMAND_FLAG_BOTH): Likewise.
19060 (GRUB_COMMAND_FLAG_TITLE): Removed.
19061 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
19062 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
19063 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
19064 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
19065 (grub_command_flags_t): New enum. All users updated.
19066
19067 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
19068
19069 Fix solaris compilation.
19070
19071 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
19072 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
19073 (grub-emu-list): Likewise.
19074
19075 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19076
19077 Remove deprecated root command.
19078
19079 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
19080 updated.
19081
19082 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19083
19084 * util/i386/pc/grub-setup.c: Merge this ...
19085 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
19086 * util/grub-setup.c: ... into this.
19087 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
19088 New struct.
19089
19090 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19091
19092 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
19093 possible.
19094
19095 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19096
19097 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
19098 allocate p.
19099
19100 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19101
19102 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
19103 explicit root argument to set to prevent UUID to be interpreted as
19104 argument to set.
19105
19106 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19107
19108 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
19109
19110 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19111
19112 Don't export grub_gate_a20.
19113
19114 * grub-core/kern/i386/pc/init.c: Remove leftovers.
19115 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
19116 to ...
19117 (grub_gate_a20): ... this. All users updated.
19118 * include/grub/i386/pc/init.h: Removed. All users updated.
19119
19120 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19121
19122 Create euro.pf2 which supports most European languages.
19123
19124 * Makefile.am (grubdata_DATA): Add euro.pf2.
19125 (euro.pf2): New target.
19126 (CLEANFILES): Add euro.pf2.
19127
19128 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
19129
19130 * configure.ac: Disable emu-usb by default to prevent inadvertent
19131 device takeover.
19132
19133 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19134
19135 Disable usbserial on grub-emu since our libusb code isn't good enough
19136 yet.
19137
19138 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
19139 (usbserial_pl2303): Likewise.
19140 (usbserial_ftdi): Likewise.
19141
19142 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19143
19144 * include/grub/disk.h (grub_disk): Remove has_partitions.
19145 All users updated.
19146 * disk/loopback.c (grub_loopback): Remove has_partitions.
19147 All users updated.
19148 (options): Remove partitions. All users updated.
19149 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
19150 * util/i386/pc/grub-setup.c (setup): copy partition table only when
19151 actual partition table is found.
19152
19153 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19154
19155 Remove readability checks (too many false negatives).
19156
19157 * util/grub-install.in: Remove readability checks.
19158 * util/grub-mkconfig.in: Likewise.
19159 * util/grub.d/10_hurd.in: Likewise.
19160 * util/grub.d/10_kfreebsd.in: Likewise.
19161 * util/grub.d/10_linux.in: Likewise.
19162 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
19163 way.
19164
19165 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19166
19167 Enable acpi shutdown on all ACPI platforms.
19168
19169 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
19170 on coreboo, multiboot and EFI.
19171 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
19172 (grub_acpi_halt): Likewise.
19173 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
19174 (grub_cmd_halt): Don't call grub_acpi_halt directly.
19175 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
19176 * grub-core/lib/i386/halt.c (grub_halt)
19177 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
19178
19179 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19180
19181 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
19182 context.
19183
19184 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19185
19186 * grub-core/video/efi_gop.c: Fix over-80-chars line.
19187 * grub-core/video/efi_uga.c: Likewise.
19188
19189 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19190
19191 Filter devaliases and never open same device twice.
19192
19193 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
19194 (last_ihandle): Likewise.
19195 (ofdisk_hash_ent): New member shortest.
19196 (ofdisk_hash_add): Add canonical path too.
19197 (scan): New function.
19198 (grub_ofdisk_iterate): Iterate over hashed entries.
19199 (compute_dev_path): Don't add :0.
19200 (grub_ofdisk_open): Don't really open the disk.
19201 (grub_ofdisk_close): Avoid closing unrelated disk.
19202 (grub_ofdisk_read): Implement reopen logic.
19203 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
19204 New function.
19205 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
19206 New proto.
19207
19208 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19209
19210 Fix sparc64.
19211
19212 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
19213 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
19214 right address. Add sparc64_ieee1275_ldflags.
19215 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
19216 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
19217 to grub_host_to_target_addr
19218 (load_image): Likewise.
19219
19220 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19221
19222 * grub-core/normal/completion.c (complete_file): Handle device
19223 containing slash.
19224 Fix based on patch by Doug Nazar.
19225
19226 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19227
19228 grub-mknetdir script.
19229
19230 * Makefile.util.def (grub-mknetdir): New module.
19231 * tests/util/grub-shell.in: Support boot=net
19232 * util/grub-mknetdir.in: New file.
19233
19234 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19235
19236 videoinfo on non-vbe.
19237
19238 * grub-core/Makefile.core.def (vbeinfo): Removed.
19239 (vbetest): Removed.
19240 (videoinfo): New module.
19241 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
19242 * grub-core/commands/i386/pc/vbetest.c: Removed.
19243 * grub-core/commands/videoinfo.c: New file.
19244 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
19245 specification.
19246 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
19247 as vbetest.
19248 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
19249 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
19250 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
19251 mode_number. New parameter mode. All users updated.
19252 (grub_video_gop_iterate): New function.
19253 (grub_video_efi_gop): New member iterate.
19254 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
19255 (grub_vbe_set_video_mode): Remove setting useless fields.
19256 (vbe2videoinfo): New function.
19257 (grub_video_vbe_iterate): Likewise.
19258 (grub_video_vbe_setup): Use vbe2videoinfo.
19259 (grub_video_vbe_print_adapter_specific_info): New function.
19260 (grub_video_vbe_adapter): New fields iterate and
19261 print_adapter_specific_info.
19262 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
19263 All users updated.
19264 (grub_video_mode_info): New field mode_number.
19265 (grub_video_adapter): New fields iterate and
19266 print_adapter_specific_info.
19267
19268 2010-09-13 Tristan Gingold <gingold@free.fr>
19269 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
19270 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19271
19272 * grub-core/commands/efi/lsefisystab.c: New file.
19273 * grub-core/commands/efi/lssal.c: Likewise.
19274 * grub-core/Makefile.core.def (lsacpi): New module.
19275 (lsefisystab): Likewise.
19276 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
19277 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
19278 (grub_efi_sal_system_table): New struct.
19279 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
19280 (grub_efi_sal_system_table_memory_descriptor): Likewise.
19281 (grub_efi_sal_system_table_platform_features): Likewise.
19282 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
19283 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
19284 (grub_efi_sal_system_table_ap_wakeup): Likewise.
19285 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
19286
19287 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19288
19289 Support explicit user claim that a device is BIOS-visible.
19290
19291 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
19292 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
19293 * grub-core/kern/emu/hostdisk.c
19294 (convert_system_partition_to_system_disk): Support mdX.
19295 (find_system_device): New parameter add. All users updated.
19296 (grub_util_biosdisk_is_present): New function.
19297 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
19298 proto.
19299
19300 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
19301
19302 Search hints support.
19303
19304 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
19305 All users updated.
19306
19307 2010-09-13 Yves Blusseau <blusseau@zetam.org>
19308
19309 Bash completion script for util commands
19310
19311 * Makefile.am: Add util/bash-completion.d directory
19312 * configure.ac: Likewise.
19313 * util/bash-completion.d/Makefile.am: New file.
19314 * util/bash-completion.d/grub-completion.bash.in: Likewise.
19315
19316 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
19317
19318 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
19319 (print_backlog): set backlog_ucs4 and backlog_glyphs.
19320 Reported by: Yves Blusseau.
19321
19322 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
19323
19324 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
19325 partition size and offset.
19326
19327 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
19328
19329 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
19330
19331 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
19332
19333 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
19334
19335 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
19336
19337 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
19338 (grub_xvasprintf): Likewise.
19339
19340 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
19341
19342 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
19343
19344 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
19345
19346 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
19347 args ending with NULL.
19348
19349 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
19350
19351 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
19352 pointer.
19353
19354 2010-09-11 Szymon Janc <szymon@janc.net.pl>
19355
19356 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
19357
19358 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
19359
19360 Shutdown using ACPI.
19361
19362 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
19363 * grub-core/commands/acpihalt.c: New file.
19364 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
19365 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
19366 (grub_acpi_halt): New proto.
19367 (GRUB_ACPI_SLP_EN): New const.
19368 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
19369 (GRUB_ACPI_OPCODE_*): New enum.
19370 (GRUB_ACPI_EXTOPCODE_*): Likewise.
19371
19372 2010-09-11 Tristan Gingold <gingold@free.fr>
19373 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
19374 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
19375
19376 * commands/lsacpi.c: New file.
19377 * grub-core/Makefile.core.def (lsacpi): New module.
19378 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
19379 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
19380 (grub_acpi_madt_entry_header): New struct.
19381 (grub_acpi_madt): Likewise.
19382 (grub_acpi_madt_entry_interrupt_override): Likewise.
19383 (grub_acpi_madt_entry_sapic): Likewise.
19384 (grub_acpi_madt_entry_lsapic): Likewise.
19385 (grub_acpi_madt_entry_platform_int_source): Likewise.
19386 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
19387 (PRIuGRUB_UINT32_T): Likewise.
19388 (PRIxGRUB_UINT64_T): Likewise.
19389
19390 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
19391
19392 Implement loading palette on ieee1275_fb.
19393
19394 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
19395 (have_setcolors): Likewise.
19396 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
19397 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
19398 (grub_video_ieee1275_set_palette): Implement.
19399
19400 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
19401 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
19402
19403 * util/grub-install.in (grub_partition): New variable.
19404 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
19405 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
19406 Fixes a bug reported by Yves Blusseau.
19407
19408 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
19409
19410 Fix emu on mipsel.
19411
19412 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
19413 =grub_cpu_flush_cache on all mips and not only yeeloong.
19414 * configure.ac (COND_mips): New conditional.
19415 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
19416 platforms.
19417 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
19418 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
19419 [GRUB_LINKER_HAVE_INIT]: New function.
19420 (grub_emu_post_init): Likewise.
19421 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
19422 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
19423 * include/grub/cache.h (_mips): Include mips/cache.h.
19424 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
19425 LVM and RAID prototypes.
19426 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
19427 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
19428 function.
19429
19430 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
19431
19432 * util/grub-install.in: Don't try to verify core.img until after
19433 running grub-mkimage to create it.
19434
19435 2010-09-10 Robert Millan <rmh@gnu.org>
19436
19437 * util/grub.d/10_hurd.in: Add misc readability checks.
19438 * util/grub.d/10_kfreebsd.in: Likewise.
19439 * util/grub.d/10_linux.in: Likewise.
19440
19441 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
19442
19443 * util/grub-install.in: ${imgext} won't be defined here until the
19444 install branch is merged. For the meantime, only verify core.img on
19445 i386-pc and sparc64-ieee1275 platforms.
19446
19447 2010-09-10 Robert Millan <rmh@gnu.org>
19448
19449 Solaris support in grub_find_zpool_from_dir(). Thanks
19450 Seth Goldberg for referring to getextmntent() facility.
19451
19452 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
19453 `sys/mkdev.h'.
19454 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
19455 `<sys/mnttab.h>'.
19456 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
19457 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
19458 method for finding zpool name.
19459
19460 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
19461
19462 grub-fstest needs the host and hostfs modules while other utilities
19463 actively require those modules to be absent, so grub-fstest needs
19464 its own initialisation and finalisation code.
19465
19466 * Makefile.am (grub_fstest.pp): New target.
19467 (grub_fstest_init.lst): Likewise.
19468 (grub_fstest_init.c): Likewise.
19469 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
19470
19471 2010-09-10 Robert Millan <rmh@gnu.org>
19472
19473 * configure.ac: Check for `struct statfs.f_fstypename' and
19474 `struct statfs.f_mntfromname'.
19475
19476 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
19477 kFreeBSD-specific code.
19478
19479 2010-09-10 Robert Millan <rmh@gnu.org>
19480
19481 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
19482 on ZFS. Now non-main filesystems are supported as / too.
19483
19484 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
19485
19486 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
19487 and grub-core/disk/host.c to ...
19488 (grub-fstest): ... here. Having the host disk implementation
19489 present confuses grub-probe and other utility programs.
19490
19491 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
19492 when writing to a file, not when writing to stdout.
19493
19494 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
19495
19496 * tests/partmap_test.in: New test for partitions.
19497 * Makefile.util.def: Rules for new test.
19498
19499 2010-09-09 Robert Millan <rmh@gnu.org>
19500
19501 * util/grub-probe.c (probe): Fix a pair of unhandled error
19502 conditions.
19503
19504 2010-09-09 Robert Millan <rmh@gnu.org>
19505
19506 Basic Btrfs support (detection and UUID).
19507
19508 * grub-core/fs/btrfs.c: New file.
19509 * Makefile.util.def (library): Register btrfs.c.
19510 * grub-core/Makefile.core.def: Likewise.
19511
19512 2010-09-08 Robert Millan <rmh@gnu.org>
19513
19514 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
19515 with (optional) parameters to specify device and relative path.
19516 * util/grub-install.in: Use is_path_readable_by_grub() to
19517 verify readability of a few critical files.
19518 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
19519 verify readability of grub.cfg.new.
19520
19521 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
19522
19523 Split minix.mod into minix.mod and minix2.mod.
19524
19525 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
19526 * grub-core/Makefile.core.def (minix2): New module.
19527 * grub-core/fs/minix.c: Use definitions instead of runtime version
19528 checking.
19529 * grub-core/fs/minix2.c: New file.
19530
19531 2010-09-08 Yves Blusseau <blusseau@zetam.org>
19532
19533 Add new --boot-directory option to replace --root-directory
19534
19535 * util/grub-install.in: Add new --boot-directory option
19536 * util/grub-reboot.in: Likewise.
19537 * util/grub-set-default.in: Likewise.
19538
19539 2010-09-08 Yves Blusseau <blusseau@zetam.org>
19540
19541 * util/grub-mkconfig.in: Use new variable.
19542
19543 2010-09-08 Yves Blusseau <blusseau@zetam.org>
19544
19545 * configure.ac: Define some useful variables.
19546
19547 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
19548
19549 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
19550 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
19551 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
19552 Use terminfo and don't use cursor-on/cursor-off unless it's known
19553 to work.
19554 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
19555 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
19556
19557 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
19558
19559 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
19560 starts with "(,", fill the drive containing the loaded image in
19561 between those two characters, but expect that a full partition
19562 specification including partition map names will follow.
19563
19564 2010-09-08 Robert Millan <rmh@gnu.org>
19565
19566 * configure.ac: Remove `--enable-grub-fstest' option.
19567 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
19568
19569 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
19570 `grub-fstest' instead of `grub-probe' for readability verification.
19571 * util/grub-probe.c (probe): Remove readability verification kludge.
19572
19573 2010-09-08 Robert Millan <rmh@gnu.org>
19574
19575 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
19576 initializing `GRUB_FS'.
19577
19578 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
19579
19580 Not command (!) support to GRUB script.
19581
19582 * tests/grub_script_not.in: New test.
19583 * Makefile.util.def: Rules for new test.
19584
19585 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
19586 ! command as a special case.
19587 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
19588
19589 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
19590
19591 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
19592 grub_free.
19593
19594 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
19595
19596 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
19597
19598 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
19599
19600 * docs/grub.texi (Shell-like scripting): Documentation for break,
19601 continue, shift and return commands.
19602
19603 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
19604
19605 Rename CD-ROM to cd on BIOS.
19606
19607 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
19608 "cd".
19609 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
19610
19611 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19612
19613 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
19614 * util/grub-probe.c (main): Likewise.
19615 * util/i386/pc/grub-setup.c (main): Likewise.
19616 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
19617 Reported and debugged by: alexxy
19618
19619 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19620
19621 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
19622 diagnostic info.
19623
19624 2010-09-05 Jo Shields <directhex@apebox.org>
19625
19626 * util/grub.d/30_os-prober.in: Add missing classes.
19627
19628 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19629
19630 * docs/grub.texi (Theme file format): Document new position format.
19631
19632 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19633
19634 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
19635 a table. Use @code instead of @verbatim.
19636
19637 2010-09-05 Colin D Bennett <colin@gibibit.com>
19638
19639 Gfxmenu documentation.
19640
19641 * docs/grub.texi (Theme file format): New chapter.
19642
19643 2010-09-05 Szymon Janc <szymon@janc.net.pl>
19644
19645 * grub-core/Makefile.core.def (xzio): New module.
19646 * grub-core/io/xzio.c: New file.
19647 * grub-core/lib/xzembed/xz.h: New file (from xembed).
19648 * grub-core/lib/xzembed/xz_config.h: Likewise.
19649 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
19650 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
19651 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
19652 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
19653 * grub-core/lib/xzembed/xz_private.h: Likewise.
19654 * grub-core/lib/xzembed/xz_stream.h: Likewise.
19655 * include/grub/file.h (grub_file_filter_id): New compression filter
19656 GRUB_FILE_FILTER_XZIO.
19657
19658 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19659
19660 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
19661 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
19662 size.
19663
19664 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19665
19666 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
19667 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
19668
19669 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19670
19671 Uncompressed checksum support.
19672
19673 * grub-core/commands/hashsum.c (options): Add option --uncompress.
19674 (check_list): New parameter uncompress.
19675 (grub_cmd_hashsum): Handle --uncompress.
19676
19677 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19678
19679 Reintroduce testload.
19680
19681 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
19682 from here ...
19683 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
19684 (GRUB_MOD_INIT): New function.
19685 (GRUB_MOD_FINI): Likewise.
19686 * grub-core/Makefile.core.def (testload): New module.
19687
19688 2010-09-05 Szymon Janc <szymon@janc.net.pl>
19689
19690 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
19691 (uint8_t): New type.
19692 (uint16_t): Likewise.
19693 (uint32_t): Likewise.
19694 (uint64_t): Likewise.
19695
19696 2010-09-05 Szymon Janc <szymon@janc.net.pl>
19697
19698 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
19699
19700 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
19701
19702 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
19703 Made static.
19704 (grub_gzfile_open): Removed. All users updated.
19705 (GRUB_MOD_INIT): New function.
19706 (GRUB_MOD_FINI): Likewise.
19707 * grub-core/kern/file.c (grub_file_filters_all): New variable.
19708 (grub_file_filters_enabled): Likewise.
19709 (grub_file_open): Handle filters.
19710 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
19711 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
19712 * include/grub/file.h (grub_file_filter_id_t): New type.
19713 (grub_file_filter_t): Likewise.
19714 (grub_file_filters_all): New extern variable.
19715 (grub_file_filters_enabled): Likewise.
19716 (grub_file_filter_register): New inline function.
19717 (grub_file_filter_unregister): Likewise.
19718 (grub_file_filter_disable): Likewise.
19719 (grub_file_filter_disable_compression): Likewise.
19720 * include/grub/gzio.h: Removed.
19721
19722 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19723
19724 Filename expansion support for wildcards in GRUB script.
19725
19726 * tests/grub_script_expansion.in: New test.
19727 * Makefile.util.def: Rule for new test.
19728
19729 * grub-core/commands/wildcard.c: New file, implements filename
19730 expansion support for GRUB script.
19731 * grub-core/Makefile.core.def: Rule update for regexp.mod.
19732 * grub-core/script/argv.c: Cosmetic changes.
19733 * grub-core/script/execute.c (grub_script_arglist_to_argv):
19734 Refactored to perform wildcard expansion on arguments.
19735 * include/grub/script_sh.h (grub_script_wildcard_translator): New
19736 struct.
19737
19738 * tests/util/grub-shell.in: Fix quoting for read input.
19739
19740 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19741
19742 Support for updating environment variables with matched substrings
19743 of regexp.
19744
19745 * tests/grub_cmd_regexp.in: New test.
19746 * Makefile.util.def: Rule for new test.
19747
19748 * grub-core/commands/regexp.c: New option -s to update environment
19749 variables with regexp matches.
19750
19751 2010-09-04 Szymon Janc <szymon@janc.net.pl>
19752
19753 * include/grub/file.h (grub_file): New member not_easly_seekable.
19754 (grub_file_seekable): New inline function.
19755 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
19756 easily seekable.
19757 (grub_gzio_open): Set not_easly_seekable.
19758 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
19759 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
19760
19761 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19762
19763 Support for options to appear multiple times on cmdline.
19764
19765 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
19766 * grub-core/commands/extcmd.c: Support for repeatable option.
19767 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
19768 repeatable option support.
19769
19770 Refactor menuentry into a regular command.
19771
19772 * grub-core/commands/menuentry.c: New file, menuentry command
19773 implementation.
19774 * grub-core/Makefile.core.def: Rule update for normal.mod.
19775 * grub-core/normal/main.c: Moved menuentry creation to
19776 grub-core/commands/menuentry.c.
19777 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
19778 (grub_menu_execute_entry_real): Removed.
19779 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
19780 function.
19781 (grub_script_execute_menuentry): Removed.
19782 * grub-core/script/parser.y (menuentry): Removed.
19783 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
19784 * grub-core/script/yylex.l (menuentry): Removed.
19785 * include/grub/menu.h (grub_menu_init): New prototype.
19786 (grub_menu_fini): New prototype.
19787 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
19788 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
19789 (grub_script_execute_sourcecode): New prototype.
19790
19791 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19792
19793 "return" command for GRUB script functions.
19794
19795 * tests/grub_script_return.in: New test.
19796 * Makefile.util.def: Rules for new test.
19797
19798 * grub-core/script/execute.c (grub_script_return): New function.
19799 * grub-core/script/main.c: Register/unregister return commaond.
19800 * include/grub/script_sh.h (grub_script_return): New prototype.
19801
19802 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19803
19804 "setparams" command to update positional parameters.
19805
19806 * tests/grub_script_setparams.in: New test.
19807 * Makefile.util.def: Rules for new test.
19808
19809 * grub-core/script/argv.c (grub_script_argv_make): New function.
19810 * grub-core/script/execute.c (replace_scope): New function.
19811 (grub_script_setparams): New function.
19812 * grub-core/script/lexer.c: Remove unused variables.
19813 * grub-core/script/main.c: Register/unregister setparams command.
19814 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
19815 (grub_script_setparams): New prototype.
19816
19817 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19818
19819 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
19820 grub_free order.
19821
19822 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19823
19824 Support for passing block of commands as an argument to extcmds.
19825
19826 * Makefile.util.def: Rules for new test.
19827 * tests/grub_script_blockarg.in: New test.
19828 * grub-core/tests/test_blockarg.c: New file, block argument
19829 command used in the test.
19830
19831 * include/grub/extcmd.h (grub_extcmd_context): New struct.
19832 (grub_register_extcmd_prio): New function prototype.
19833 (grub_extcmd_dispatcher): New function prototype.
19834 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
19835 type.
19836 * include/grub/script_sh.h (struct grub_script): New members
19837 `children', `next_siblings' and `refcnt' for block arguments and
19838 reference counting.
19839 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
19840 (grub_script_arg): New member `script' for block argument.
19841 (grub_script_argv): New member `script' for block argument.
19842 (grub_parser_param): New member `scripts' for block argument.
19843 (grub_script_mem_free): New extern function prototype.
19844 (grub_script_ref): New function prototype.
19845 (grub_script_unref): New function prototype.
19846
19847 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
19848 extcmd form to support block arguments.
19849 * grub-core/script/argv.c: Block arguments support.
19850 * grub-core/script/execute.c: Likewise.
19851 * grub-core/script/lexer.c: Likewise.
19852 * grub-core/script/main.c: Likewise.
19853 * grub-core/script/script.c: Likewise.
19854 * grub-core/script/parser.y: Likewise. New `block' and `block0'
19855 non-terminals.
19856
19857 * grub-core/commands/acpi.c: Update extcmd implementations with
19858 grub_extcmd_context_t.
19859 * grub-core/commands/cat.c: Likewise.
19860 * grub-core/commands/echo.c: Likewise.
19861 * grub-core/commands/extcmd.c: Likewise.
19862 * grub-core/commands/hashsum.c: Likewise.
19863 * grub-core/commands/hdparm.c: Likewise.
19864 * grub-core/commands/help.c: Likewise.
19865 * grub-core/commands/hexdump.c: Likewise.
19866 * grub-core/commands/i386/cpuid.c: Likewise.
19867 * grub-core/commands/i386/pc/drivemap.c: Likewise.
19868 * grub-core/commands/i386/pc/halt.c: Likewise.
19869 * grub-core/commands/i386/pc/sendkey.c: Likewise.
19870 * grub-core/commands/iorw.c: Likewise.
19871 * grub-core/commands/keystatus.c: Likewise.
19872 * grub-core/commands/loadenv.c: Likewise.
19873 * grub-core/commands/ls.c: Likewise.
19874 * grub-core/commands/lspci.c: Likewise.
19875 * grub-core/commands/memrw.c: Likewise.
19876 * grub-core/commands/probe.c: Likewise.
19877 * grub-core/commands/search_wrap.c: Likewise.
19878 * grub-core/commands/setpci.c: Likewise.
19879 * grub-core/commands/sleep.c: Likewise.
19880 * grub-core/disk/loopback.c: Likewise.
19881 * grub-core/hello/hello.c: Likewise.
19882 * grub-core/loader/i386/bsd.c: Likewise.
19883 * grub-core/loader/xnu.c: Likewise.
19884 * grub-core/term/gfxterm.c: Likewise.
19885 * grub-core/term/serial.c: Likewise.
19886 * grub-core/tests/lib/functional_test.c: Likewise.
19887
19888 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
19889
19890 Multi-line quoted strings support.
19891
19892 * grub-core/script/lexer.c (append_newline): Removed.
19893 (grub_script_lexer_yywrap): Refactored.
19894 (grub_script_lexer_init): Refactored.
19895 * grub-core/script/yylex.l (yywrap): New function.
19896 (grub_lexer_resplit): New function.
19897 (grub_lexer_unput): New function.
19898 * include/grub/script_sh.h (grub_lexer_param): New members, unput
19899 and resplit.
19900 * tests/grub_script_echo1.in: Added few more testcases.
19901
19902 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
19903
19904 * grub-core/kern/misc.c: Don't add abort alias in utils.
19905 Reported by: echoline.
19906
19907 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
19908
19909 Add missing files into "make dist" tarball for other platforms.
19910
19911 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
19912 * conf/Makefile.common (dist_noinst_DATA): New variable.
19913 * conf/Makefile.extra-dist: Added missing make dist files.
19914 * grub-core/Makefile.core.def: Likewise.
19915
19916 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
19917
19918 Compress grub_prefix.
19919
19920 * grub-core/boot/i386/pc/lnxboot.S: Use
19921 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
19922 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
19923 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
19924 GRUB_MACHINE_PREFIX_END. All users updated.
19925 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
19926 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
19927 + 0x40.
19928 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
19929 * util/grub-mkimage.c (image_target_desc): Change data_end to
19930 prefix_end. All users updated.
19931
19932 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
19933
19934 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
19935 value.
19936 (grub_openbsd_boot): Likewise.
19937 (grub_netbsd_boot): Likewise.
19938 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
19939 (grub_xnu_boot): Likewise.
19940
19941 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19942
19943 * configure.ac: Clean LIBS variable after tests.
19944
19945 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
19946
19947 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
19948
19949 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19950
19951 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
19952 echo if libdevmapper will be used.
19953
19954 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
19955
19956 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
19957 constant for the same file.
19958
19959 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19960
19961 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
19962
19963 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
19964
19965 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
19966 grub-core/*.pp.
19967
19968 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
19969
19970 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
19971 required by the boot protocol.
19972
19973 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
19974 ebp and edi members.
19975 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
19976 state.ebp and state.edi.
19977 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
19978 %ebp and %edi according to grub_relocator32_ebp and
19979 grub_relocator32_edi respectively.
19980 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
19981 and state.edi.
19982
19983 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19984
19985 Add i386-pc-pxe image target.
19986
19987 * util/grub-mkimage.c (image_target_desc): New enum value
19988 IMAGE_I386_PC_PXE.
19989 (image_targets): New target i386-pc-pxe.
19990 (generate_image): Handle i386-pc-pxe image.
19991
19992 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
19993
19994 Fix grub_pxe_scan.
19995
19996 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
19997 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
19998 All users updated.
19999 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
20000 (grub_pxe_pxenv): Correct type.
20001
20002 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
20003
20004 * NEWS: Document most of the important changes since 1.98.
20005
20006 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
20007
20008 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
20009 generated manual page) a little.
20010
20011 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
20012
20013 * docs/grub.texi: Add myself as an author.
20014
20015 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
20016
20017 * Makefile.util.def (libgrub.a): Add missing sunpc.
20018 Reported by: Seth Goldberg.
20019
20020 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20021
20022 Interrupt wrapping and code simplifications.
20023
20024 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
20025 x86_noieee1275 which are functionaly equivalent in this case.
20026 (grub-install): Make source on each platform explicit. Enable on
20027 all noemu.
20028 * gentpl.py (x86_efi_pc): Removed group.
20029 (x86_noefi): Likewise.
20030 (i386_noefi): Likewise.
20031 (x86_noieee1275): Likewise.
20032 (i386_noieee1275): Likewise.
20033 (i386_noefi_noieee1275): Likewise.
20034 (i386_pc_qemu_coreboot): Likewise.
20035 (i386_coreboot_multiboot): Likewise.
20036 (i386_pc_coreboot_multiboot_qemu): Likewise.
20037 (x86_noefi_mips): Likewise.
20038 (noieee1275): Likewise.
20039 (ieee1275_mips): Likewise.
20040 (noemu_noieee1275): Likewise.
20041 (cmos): New group.
20042 (usb): Likewise.
20043 (videoinkernel): Likewise.
20044 (videomodules): Likewise.
20045 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
20046 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
20047 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
20048 include/grub/loader.h, include/grub/msdos_partition.h,
20049 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
20050 include/grub/machine/console.h, include/grub/machine/vga.h,
20051 include/grub/machine/vbe.h, include/grub/machine/init.h,
20052 include/grub/machine/kernel.h, include/grub/cpu/time.h,
20053 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
20054 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
20055 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
20056 * grub-core/Makefile.core.def (kernel): Explicit the source for
20057 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
20058 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
20059 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
20060 Use videoinkernel tag.
20061 (usb): Enable on all usb.
20062 (usbserial_common): Likewise.
20063 (usbserial_pl2303): Likewise.
20064 (usbserial_ftdi): Likewise.
20065 (uhci): Enable on all x86.
20066 (ohci): Enable on all pci.
20067 (cmostest): Enable on all CMOS.
20068 (acpi): Include commands/acpi.c on all platforms.
20069 (halt): Add relevant lib/*/halt.c.
20070 (hdparm): Enable on all pci.
20071 (lspci): Likewise.
20072 (usbtest): Enable on all usb.
20073 (ata): Enable on all pci.
20074 (ata_pthru): Likewise.
20075 (usbms): Enable on all usb.
20076 (usb_keyboard): Likewise.
20077 (font): Use tag videomodules.
20078 (bufio): Likewise.
20079 (datetime): Use tag cmos. Enable on all noemu.
20080 (mmap): Use tags common and x86.
20081 (gfxterm): Use tag videomodules.
20082 (bitmap): Likewise.
20083 (bitmap_scale): Likewise.
20084 (video_fb): Likewise.
20085 (video): Likewise.
20086 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
20087 adjust padding accordingly. All users updated.
20088 (grub_ohci_transaction): Fix bad format specification.
20089 (GRUB_MOD_INIT): Add asserts for struct size.
20090 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
20091 (grub_alloc_td): Likewise.
20092 (grub_free_queue): Likewise.
20093 (grub_uhci_transfer): Likewise.
20094 (grub_uhci_transaction): Fix bad format specification.
20095 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
20096 (grub_usb_bulk_readwrite): Likewise.
20097 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
20098 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
20099 Made static.
20100 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
20101 Made static.
20102 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
20103 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
20104 Transformed into C.
20105 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
20106 Moved from here ...
20107 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
20108 ... here. Transformed into C. Made static.
20109 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
20110 Moved from here ...
20111 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
20112 ... here. Transformed into C. Made static.
20113 * grub-core/kern/i386/pc/startup.S
20114 (grub_biosdisk_check_int13_extensions): Moved from here ...
20115 * grub-core/disk/i386/pc/biosdisk.c
20116 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
20117 Made static.
20118 * grub-core/kern/i386/pc/startup.S
20119 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
20120 * grub-core/disk/i386/pc/biosdisk.c
20121 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
20122 Transformed into C. Made static.
20123 * grub-core/kern/i386/pc/startup.S
20124 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
20125 * grub-core/disk/i386/pc/biosdisk.c
20126 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
20127 Transformed into C. Made static.
20128 * grub-core/kern/i386/pc/startup.S
20129 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
20130 * grub-core/disk/i386/pc/biosdisk.c
20131 (grub_biosdisk_get_diskinfo_standard): ... here.
20132 Transformed into C. Made static.
20133 * grub-core/kern/i386/pc/startup.S
20134 (grub_biosdisk_get_num_floppies): Moved from here ...
20135 * grub-core/disk/i386/pc/biosdisk.c
20136 (grub_biosdisk_get_num_floppies): ... here.
20137 Transformed into C. Made static.
20138 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
20139 New function.
20140 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
20141 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
20142 Transformed into C. Made static.
20143 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
20144 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
20145 Transformed into C. Made static.
20146 * grub-core/kern/i386/ieee1275/init.c: Removed.
20147 * grub-core/kern/i386/misc.S: Likewise.
20148 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
20149 Splitted from here ...
20150 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
20151 Transformed into C. Made static. All users updated.
20152 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
20153 Transformed into C. Made static. All users updated.
20154 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
20155 Moved from here...
20156 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
20157 Transformed into C. Made static. All users updated.
20158 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
20159 Moved from here...
20160 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
20161 Transformed into C. Made static. All users updated.
20162 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
20163 Removed (replaced by C version).
20164 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
20165 Moved from here...
20166 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
20167 Transformed into C. Made static.
20168 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
20169 Moved from here...
20170 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
20171 ... here. Transformed into C.
20172 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
20173 Moved from here...
20174 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
20175 ... here. Transformed into C.
20176 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
20177 Moved from here...
20178 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
20179 ... here. Transformed into C. Made static.
20180 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
20181 Moved from here...
20182 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
20183 ... here. Transformed into C.
20184 * grub-core/kern/i386/pc/startup.S
20185 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
20186 * grub-core/video/i386/pc/vbe.c
20187 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
20188 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
20189 Moved from here...
20190 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
20191 ... here. Transformed into C.
20192 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
20193 Moved from here...
20194 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
20195 ... here. Transformed into C.
20196 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
20197 Moved from here...
20198 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
20199 ... here. Transformed into C.
20200 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
20201 Moved from here...
20202 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
20203 ... here. Transformed into C.
20204 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
20205 Moved from here...
20206 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
20207 ... here. Transformed into C. Made static.
20208 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
20209 Moved from here...
20210 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
20211 ... here. Transformed into C. Made static.
20212 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
20213 Moved from here...
20214 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
20215 ... here. Transformed into C. Made static.
20216 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
20217 pxe_rm_entry as third argument.
20218 (grub_bios_interrupt): New function.
20219 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
20220 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
20221 of calling grub_stop.
20222 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
20223 * grub-core/lib/efi/halt.c (grub_halt): ...here.
20224 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
20225 * grub-core/lib/emu/halt.c (grub_halt): ... here.
20226 * grub-core/lib/i386/halt.c: Moved from here ...
20227 * grub-core/lib/i386/halt.c: ... here.
20228 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
20229 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
20230 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
20231 grub_stop_floppy.
20232 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
20233 * include/grub/i386/coreboot/init.h: Removed.
20234 * include/grub/i386/multiboot/init.h: Likewise.
20235 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
20236 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
20237 * include/grub/i386/pc/int.h: New file.
20238 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
20239 (grub_pxe_scan): Removed.
20240 (grub_pxe_call): Update prototype.
20241 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
20242 prototypes.
20243 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
20244 * include/grub/i386/qemu/init.h: Removed.
20245 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
20246 noreturn.
20247 (grub_halt): Likewise.
20248 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
20249 (grub_reboot): Likewise.
20250 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
20251 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
20252 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
20253
20254 2010-08-30 Robert Millan <rmh@gnu.org>
20255
20256 * NEWS: Document addition of ZFS support in `grub-install' and
20257 `grub-mkconfig'.
20258
20259 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
20260
20261 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
20262 dprintf output.
20263
20264 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20265
20266 Remove leftover embedding of font objects.
20267
20268 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
20269 * util/grub-install.in (font): Removed.
20270 * util/grub-mkimage.c (generate_image): Remove font support. All users
20271 updated.
20272
20273 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20274
20275 Remove leftover embedding of font objects.
20276
20277 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
20278 * util/grub-install.in (font): Removed.
20279 * util/grub-mkimage.c (generate_image): Remove font support. All users
20280 updated.
20281
20282 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20283
20284 * docs/grub.texi (Network): Fix reference to pxe_blksize.
20285 Reported by: Ian Turner
20286
20287 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20288
20289 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
20290 timeout to avoid indefinite boot stalling.
20291
20292 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20293
20294 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
20295 (grub_env_write_color_highlight): Likewise.
20296
20297 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20298
20299 * grub-core/normal/term.c (print_more): Return to normal and not
20300 to standard state after printing "---MORE---".
20301
20302 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
20303
20304 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
20305 Mask out the bit 0x80 since it has other meaning that specifiing color.
20306
20307 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20308
20309 New relocator. Allows for more kernel support and more straightforward
20310 loader writing.
20311
20312 * Makefile.am (BOOTTARGET): New variable.
20313 (QEMU32): Likewise.
20314 (linux.init.x86_64): New target.
20315 (linux.init.i386): Likewise.
20316 (multiboot.elf): Likewise.
20317 (kfreebsd.elf): Likewise.
20318 (kfreebsd.aout): Likewise.
20319 (pc-chainloader.elf): Likewise.
20320 (pc-chainloader.bin): Likewise.
20321 (ntldr.elf): Likewise.
20322 (ntldr.bin): Likewise.
20323 (multiboot2.elf): Likewise.
20324 (kfreebsd.init.x86_64): Likewise.
20325 (kfreebsd.init.i386): Likewise.
20326 (knetbsd.init.i386): Likewise.
20327 (kopenbsd.init.i386): Likewise.
20328 (knetbsd.init.x86_64): Likewise.
20329 (kopenbsd.init.x86_64): Likewise.
20330 (linux-initramfs.i386): Likewise.
20331 (linux-initramfs.x86_64): Likewise.
20332 (kfreebsd-mfsroot.i386.img): Likewise.
20333 (knetbsd.image.i386): Likewise.
20334 (kopenbsd.image.i386): Likewise.
20335 (kopenbsd.image.x86_64): Likewise.
20336 (knetbsd.miniroot-image.i386.img): Likewise.
20337 (kfreebsd-mfsroot.x86_64.img): Likewise.
20338 (knetbsd.image.x86_64): Likewise.
20339 (knetbsd.miniroot-image.x86_64.img): Likewise.
20340 (kfreebsd-mfsroot.i386.gz): Likewise.
20341 (bootcheck-kfreebsd-i386): Likewise.
20342 (kfreebsd-mfsroot.x86_64.gz): Likewise.
20343 (bootcheck-kfreebsd-x86_64): Likewise.
20344 (knetbsd.miniroot-image.i386.gz): Likewise.
20345 (bootcheck-knetbsd-i386): Likewise.
20346 (bootcheck-kopenbsd-i386): Likewise.
20347 (bootcheck-kopenbsd-x86_64): Likewise.
20348 (knetbsd.miniroot-image.x86_64.gz): Likewise.
20349 (bootcheck-knetbsd-x86_64): Likewise.
20350 (bootcheck-linux-i386): Likewise.
20351 (bootcheck-linux-x86_64): Likewise.
20352 (bootcheck-linux16-i386): Likewise.
20353 (bootcheck-linux16-x86_64): Likewise.
20354 (bootcheck-multiboot): Likewise.
20355 (bootcheck-multiboot2): Likewise.
20356 (bootcheck-kfreebsd-aout): Likewise.
20357 (bootcheck-pc-chainloader): Likewise.
20358 (bootcheck-ntldr): Likewise.
20359 (CLEANFILES): Add new targets.
20360 (BOOTCHECKS): New variable.
20361 (.PHONY): Add bootchecks.
20362 (SUCCESSFUL_BOOT_STRING): New variable.
20363 (BOOTCHECK_TIMEOUT): Likewise.
20364 (bootcheck): New target
20365 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
20366 * configure.ac: Correct efiemu excuse.
20367 * docs/grub.texi (Supported kernels): New chapter.
20368 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
20369 include/grub/mm_private.h. Simplify inclusion of
20370 include/grub/boot.h, include/grub/loader.h
20371 and include/grub/msdos_partition.h
20372 (KERNEL_HEADER_FILES) [i386_coreboot]:
20373 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
20374 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
20375 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
20376 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
20377 include/grub/machine/loader.h.
20378 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
20379 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
20380 extra_dist.
20381 (pci.mod): Enable on i386-multiboot.
20382 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
20383 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
20384 i386-qemu.
20385 (relocator.mod): Rewritten.
20386 (aout.mod): Enable on all x86.
20387 (bsd.mod): Likewise.
20388 (ntldr.mod): New module.
20389 (linux.mod): Use loader/i386/linux.c on all x86.
20390 (xnu.mod): Enable on all x86.
20391 (vga_text.mod): disable on EFI and QEMU.
20392 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
20393 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
20394 * grub-core/efiemu/loadcore.c: Likewise.
20395 * grub-core/efiemu/main.c: Likewise.
20396 (grub_efiemu_exit_boot_services): Removed.
20397 (grub_efiemu_finish_boot_services): Likewise.
20398 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
20399 function.
20400 * grub-core/efiemu/i386/nocfgtables.c: New file.
20401 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
20402 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
20403 (grub_efi_finish_boot_services): Moved from here ...
20404 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
20405 Fille finish memory map and related data.
20406 (finish_mmap_buf): New variable.
20407 (grub_efi_uintn_t finish_mmap_size): Likewise.
20408 (grub_efi_uintn_t finish_key): Likewise.
20409 (grub_efi_uintn_t finish_desc_size): Likewise.
20410 (grub_efi_uint32_t finish_desc_version): Likewise.
20411 (grub_efi_is_finished): Likewise.
20412 (grub_efi_get_memory_map): Use saved memory map if EFI is already
20413 finished.
20414 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
20415 (grub_elf64_phdr_iterate): Likewise.
20416 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
20417 (grub_os_area_size): Likewise.
20418 (grub_machine_init): Don't reserve os area.
20419 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
20420 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
20421 * grub-core/kern/i386/loader.S: Removed.
20422 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
20423 (grub_os_area_size): Likewise.
20424 (grub_machine_init): Don't reserve os area.
20425 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
20426 Don't call grub_dl_unload_all.
20427 Don't include loader.S.
20428 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
20429 Declare the memory after _end as available.
20430 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
20431 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
20432 (GRUB_MM_ALLOC_MAGIC): Moved from here...
20433 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
20434 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
20435 * include/grub/mm_private.h (grub_mm_header): ... here.
20436 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
20437 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
20438 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
20439 (grub_mm_region): ..here. Removed addr. Added pre_size.
20440 All users updated.
20441 * grub-core/kern/mm.c (base): Renamed to ...
20442 (grub_mm_base): ... this. Made global.
20443 (grub_real_malloc): Alloc from end of region.
20444 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
20445 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
20446 * grub-core/kern/powerpc/cache_flush.S: ... here.
20447 * grub-core/lib/efi/relocator.c: New file.
20448 * grub-core/lib/i386/relocator.c: Rewritten.
20449 * grub-core/lib/i386/relocator16.S: New file.
20450 * grub-core/lib/i386/relocator32.S: Likewise.
20451 * grub-core/lib/i386/relocator64.S: Likewise.
20452 * grub-core/lib/i386/relocator_asm.S: Rewritten.
20453 * grub-core/lib/i386/relocator_common.S: New file.
20454 * grub-core/lib/ieee1275/relocator.c: Likewise.
20455 * grub-core/lib/mips/relocator.c: Rewritten.
20456 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
20457 stylistic adjustments.
20458 * grub-core/lib/powerpc/relocator.c: New file.
20459 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
20460 * grub-core/lib/relocator.c: Rewritten.
20461 * grub-core/lib/x86_64/relocator_asm.S: New file.
20462 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
20463 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
20464 (bsd_tag): New struct.
20465 (tags): New variable.
20466 (tags_last): Likewise.
20467 (netbsd_module): New struct.
20468 (netbsd_mods): New variable.
20469 (netbsd_mods_last): Likewise.
20470 (openbsd_opts): New parameter "serial".
20471 (OPENBSD_SERIAL_ARG): New definition.
20472 (netbsd_opts): New parameter "serial".
20473 (NETBSD_SERIAL_ARG): New definition.
20474 (grub_freebsd_add_meta): Reorganised into ...
20475 (grub_bsd_add_meta): ...this. All users updated.
20476 (grub_freebsd_add_mmap): Reorganised into ...
20477 (generate_e820_mmap): ...this...
20478 (grub_bsd_add_mmap): ...and this. All users updated.
20479 (grub_freebsd_list_modules): Use tags.
20480 (grub_netbsd_add_meta_module): New function.
20481 (grub_netbsd_list_modules): Likewise.
20482 (grub_freebsd_boot): Use relocator and finish EFI.
20483 (grub_openbsd_boot): Likewise.
20484 (grub_netbsd_setup_video): New function.
20485 (grub_netbsd_add_modules): Likewise.
20486 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
20487 and finish EFI.
20488 (grub_bsd_unload): Unload tags.
20489 (grub_bsd_load_aout): Use relocator.
20490 (grub_bsd_elf32_size_hook): New function.
20491 (grub_bsd_elf32_hook): Use relocator.
20492 (grub_bsd_elf64_size_hook): New function.
20493 (grub_bsd_elf64_hook): Use relocator.
20494 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
20495 (grub_bsd_load): Zero-out openbsd_ramdisk.
20496 (grub_bsd_load): Use relocator.
20497 (grub_cmd_openbsd): Support serial.
20498 (grub_cmd_netbsd): Support modules.
20499 (grub_cmd_freebsd_module): Use relocator.
20500 (grub_netbsd_module_load): New function.
20501 (grub_cmd_netbsd_module): Likewise.
20502 (grub_cmd_openbsd_ramdisk): Likewise.
20503 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
20504 kopenbsd_ramdisk.
20505 (GRUB_MOD_FINI): Unregister new commands.
20506 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
20507 (grub_freebsd_load_elfmodule_obj): Use relocator.
20508 (grub_freebsd_load_elfmodule): Likewise.
20509 (grub_freebsd_load_elf_meta): Likewise.
20510 (grub_netbsd_load_elf_meta): New function.
20511 (grub_openbsd_find_ramdisk): Likewise.
20512 * grub-core/loader/i386/bsd_helper.S: Removed.
20513 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
20514 * grub-core/loader/i386/bsd_trampoline.S: Removed.
20515 * grub-core/loader/i386/efi/linux.c: Likewise.
20516 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
20517 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
20518 (DEFAULT_VIDEO_MODE): Likewise.
20519 (real_mode_target): New variable.
20520 (prot_mode_target): Likewise.
20521 (initrd_mem_target): Likewise.
20522 (relocator): Likewise.
20523 (efi_mmap_buf): Likewise.
20524 (efi_mmap_size): Likewise.
20525 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
20526 (free_pages): Use relocator.
20527 (allocate_pages): Account for efi_mmap and use relocator. Return error.
20528 (grub_linux_setup_video): Return error.
20529 (grub_linux_trampoline_start): Removed.
20530 (grub_linux_trampoline_end): Likewise.
20531 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
20532 andd video parameters depending on firmware.
20533 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
20534 [GRUB_MACHINE_EFI]: Pass EFI parameters.
20535 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
20536 (grub_cmd_initrd): Use relocator.
20537 * grub-core/loader/i386/linux_trampoline.S: Removed.
20538 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
20539 (elf_sec_entsize): Likewise.
20540 (elf_sec_shstrndx): Likewise.
20541 (elf_sections): Likewise.
20542 (grub_multiboot_load): Use relocator.
20543 (grub_multiboot_get_mbi_size): Account for sections.
20544 (grub_multiboot_make_mbi): Use relocator and support sections.
20545 (grub_multiboot_add_elfsyms): New function.
20546 (grub_multiboot_free_mbi): Free sections.
20547 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
20548 (grub_linux_real_target): Likewise.
20549 (grub_linux_real_chunk): Likewise.
20550 (grub_linux16_prot_size): Likewise.
20551 (grub_linux16_boot): Use relocator.
20552 (grub_linux_unload): Unload relocator.
20553 (grub_cmd_linux): Use relocator.
20554 (grub_cmd_initrd): Likewise.
20555 * grub-core/loader/i386/pc/ntldr.c: New file.
20556 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
20557 Don't try to guess CPU frequency.
20558 (grub_xnu_set_video): Stretch bitmap.
20559 (grub_xnu_boot): Use relocator.
20560 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
20561 (grub_linux_unload): Free relocator.
20562 (grub_linux_load32): Use relocator.
20563 (grub_linux_load64): Likewise.
20564 (grub_cmd_initrd): Likewise.
20565 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
20566 (grub_multiboot_unload): Unload relocator.
20567 (grub_cmd_multiboot): Use relocator.
20568 (grub_cmd_module): Likewise.
20569 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
20570 Use relocator and support sections.
20571 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
20572 (elf_sec_entsize): Likewise.
20573 (elf_sec_shstrndx): Likewise.
20574 (elf_sections): Likewise.
20575 (grub_multiboot_load): Use relocator.
20576 (grub_multiboot_get_mbi_size): Account for sections.
20577 (grub_multiboot_make_mbi): Use relocator and support sections.
20578 (grub_multiboot_add_elfsyms): New function.
20579 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
20580 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
20581 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
20582 Prototype changed. All users updated.
20583 (grub_xnu_align_heap): Simplified.
20584 (grub_xnu_writetree_toheap): Likewise.
20585 (grub_xnu_unload): Unload relocator.
20586 (grub_cmd_xnu_kernel): Use relocator.
20587 (grub_cmd_xnu_kernel64): Likewise.
20588 (grub_xnu_register_memory): Simplified.
20589 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
20590 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
20591 EFI is finished.
20592 (grub_console_checkkey): Likewise.
20593 (grub_console_getkey): Likewise.
20594 (grub_console_getwh): Likewise.
20595 (grub_console_getxy): Likewise.
20596 (grub_console_gotoxy): Likewise.
20597 (grub_console_cls): Likewise.
20598 (grub_console_setcolorstate): Likewise.
20599 (grub_console_setcursor): Likewise.
20600 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
20601 * grub-core/tests/boot/kbsd.init-i386.S: New file.
20602 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
20603 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
20604 * grub-core/tests/boot/kernel-8086.S: Likewise.
20605 * grub-core/tests/boot/kernel-i386.S: Likewise.
20606 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
20607 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
20608 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
20609 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
20610 * grub-core/tests/boot/knetbsd.cfg: Likewise.
20611 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
20612 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
20613 * grub-core/tests/boot/linux.cfg: Likewise.
20614 * grub-core/tests/boot/linux.init-i386.S: Likewise.
20615 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
20616 * grub-core/tests/boot/linux16.cfg: Likewise.
20617 * grub-core/tests/boot/multiboot.cfg: Likewise.
20618 * grub-core/tests/boot/multiboot2.cfg: Likewise.
20619 * grub-core/tests/boot/ntldr.cfg: Likewise.
20620 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
20621 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
20622 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
20623 New definition.
20624 * include/grub/dl.h (grub_dl_unload_all): Removed.
20625 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
20626 (grub_efi_finish_boot_services): Change prototype.
20627 (grub_efi_is_finished): New variable.
20628 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
20629 Changed prototype.
20630 (grub_efiemu_finish_boot_services): Removed.
20631 (grub_machine_efiemu_init_tables): New prototype.
20632 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
20633 (grub_elf64_phdr_iterate): Likewise.
20634 * include/grub/i386/bsd.h: Include relocator.h.
20635 (freebsd_tag_header): New struct.
20636 (grub_openbsd_bios_mmap): Removed.
20637 (grub_unix_real_boot): Removed.
20638 (grub_freebsd_load_elfmodule32): Changed prototype.
20639 (grub_freebsd_load_elfmodule_obj64): Likewise.
20640 (grub_freebsd_load_elf_meta32): Likewise.
20641 (grub_freebsd_load_elf_meta64): Likewise.
20642 (grub_freebsd_add_meta): Removed.
20643 (grub_netbsd_load_elf_meta32): New prototype.
20644 (grub_netbsd_load_elf_meta64): Likewise.
20645 (grub_bsd_add_meta): Likewise.
20646 (grub_openbsd_ramdisk_descriptor): New struct.
20647 (grub_openbsd_find_ramdisk32): New prototype.
20648 (grub_openbsd_find_ramdisk64): Likewise.
20649 * include/grub/i386/coreboot/loader.h: Removed.
20650 * include/grub/i386/efi/loader.h: Likewise.
20651 * include/grub/i386/ieee1275/loader.h: Likewise.
20652 * include/grub/i386/linux.h (linux_kernel_header): Change void *
20653 to grub_uint32_t.
20654 * include/grub/i386/loader.h: Removed.
20655 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
20656 value.
20657 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
20658 (grub_phys_addr_t): New type.
20659 (grub_vtop): New inline function.
20660 (grub_map_memory): Likewise.
20661 (grub_unmap_memory): Likewise.
20662 * include/grub/i386/multiboot/loader.h: Removed.
20663 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
20664 (NETBSD_BTINFO_CONSOLE): New definition.
20665 (NETBSD_BTINFO_SYMTAB): Likewise.
20666 (NETBSD_BTINFO_MODULES): Likewise.
20667 (NETBSD_BTINFO_FRAMEBUF): Likewise.
20668 (grub_netbsd_bootinfo): New struct.
20669 (grub_netbsd_btinfo_common): Use explicit bitsize.
20670 (grub_netbsd_btinfo_mmap_entry): Removed.
20671 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
20672 (grub_netbsd_btinfo_bootdisk): New struct.
20673 (grub_netbsd_btinfo_symtab): Likewise.
20674 (grub_netbsd_btinfo_serial): Likewise.
20675 (grub_netbsd_btinfo_modules): Likewise.
20676 (grub_netbsd_btinfo_framebuf): Likewise.
20677 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
20678 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
20679 Likewise.
20680 (grub_openbsd_bootargs): Use explicit bitsize.
20681 (grub_openbsd_bootarg_console): New struct.
20682 (GRUB_OPENBSD_COM_MAJOR): New definition.
20683 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
20684 * include/grub/i386/pc/efiemu.h: Removed.
20685 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
20686 * include/grub/i386/qemu/loader.h: Removed.
20687 * include/grub/i386/relocator.h: Rewritten.
20688 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
20689 * include/grub/mips/memory.h: New file.
20690 * include/grub/mips/multiboot.h: Rewritten.
20691 * include/grub/mips/relocator.h: Rewritten.
20692 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
20693 (grub_vtop): New function.
20694 (grub_map_memory): Likewise.
20695 (grub_unmap_memory): Likewise.
20696 * include/grub/misc.h (ALIGN_DOWN): New definition.
20697 * include/grub/mm.h (grub_mm_check_real): New proto.
20698 (GRUB_MM_CHECK): New definition.
20699 * include/grub/mm_private.h: New file.
20700 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
20701 (grub_multiboot_get_mbi_size): Removed.
20702 (grub_multiboot_make_mbi): Change prottype.
20703 (grub_multiboot_set_accepts_video): New proto.
20704 (grub_multiboot_add_elfsyms): Likewise.
20705 (grub_multiboot_payload_eip): New variable.
20706 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
20707 New prototype.
20708 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
20709 New definition.
20710 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
20711 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
20712 * include/grub/powerpc/ieee1275/loader.h: Removed.
20713 * include/grub/powerpc/memory.h: New file.
20714 * include/grub/powerpc/relocator.h: Likewise.
20715 * include/grub/relocator.h: Likewise.
20716 * include/grub/relocator_private.h: Likewise.
20717 * include/grub/sparc64/ieee1275/loader.h: Removed.
20718 * include/grub/x86_64/memory.h: New file.
20719 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
20720 (grub_xnu_heap_malloc): Likewise.
20721 (grub_xnu_heap_real_start): Removed.
20722 (grub_xnu_heap_start): Likewise.
20723 (grub_xnu_relocator): New variable.
20724 (grub_xnu_heap_target_start): Likewise.
20725 * tests/util/grub-shell.in: Support non-pc.
20726 * util/grub-mkimage.c (image_targets): Fix multiboot target.
20727
20728 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20729
20730 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
20731 on malloc error.
20732 (grub_bidi_logical_to_visual): Check that malloc succeded.
20733 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
20734 puts.
20735 (grub_xputs_normal): Likewise.
20736
20737 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20738
20739 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
20740 extra_dist.
20741
20742 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20743
20744 * grub-core/efiemu/runtime/efiemu.sh: Removed.
20745
20746 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20747
20748 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
20749
20750 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
20751
20752 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
20753 dprintf.
20754
20755 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
20756
20757 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
20758
20759 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20760
20761 * grub-core/normal/term.c (print_more): Fix a memory leak.
20762 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
20763 (grub_xputs_normal): Likewise.
20764
20765 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20766
20767 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
20768 the begining of the string
20769
20770 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20771
20772 * grub-core/script/script.c (grub_script_parse): Free parsed on
20773 failure.
20774
20775 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20776
20777 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
20778 on failure.
20779
20780 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20781
20782 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
20783 return.
20784
20785 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20786
20787 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
20788 (scroll_up): Fix a memory leak.
20789
20790 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
20791
20792 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
20793 errors.
20794
20795 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
20796
20797 Handle USB pendrives exposed as floppies.
20798
20799 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
20800 floppy.
20801 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
20802 Check for partitions on all devices.
20803
20804 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
20805
20806 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
20807 (readkey): Likewise.
20808
20809 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
20810
20811 Multiple variable names support to "export" command.
20812
20813 * normal/context.c (grub_cmd_export): "export" command supports
20814 multiple variable names.
20815
20816 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
20817
20818 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
20819 --target=drive output to Mach device name.
20820
20821 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
20822
20823 New Automake based build system for GRUB.
20824
20825 * ABOUT-NLS: New file.
20826 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
20827 in Makefile.util.def file.
20828 * Makefile.util.def: New file. Autogen build definitions file for
20829 GRUB host utils.
20830 * conf/Makefile.common: New file. Common variables for GRUB host
20831 utils and target modules.
20832 * conf/Makefile.extra-dist: New file. Extra files for make dist.
20833 * docs/Makefile.am: New file. Automake file for docs.
20834 * gentpl.py: New file. Python script to generate Autogen
20835 template.
20836 * grub-core/Makefile.am: New file. GRUB target modules' rules
20837 that doesn't fit in Makefile.core.def file.
20838 * grub-core/Makefile.core.def: New file. Autogen build
20839 definitions file for GRUB target modules.
20840 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
20841 specific setjmp.S file.
20842 * po/Makefile.am: New file.
20843
20844 * .bzrignore: New ignores.
20845 * INSTALL: New requirements, without Ruby.
20846 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
20847 * autogen.sh: Updated to invoke autogen as necessary.
20848 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
20849 and defines for Automake conditionals.
20850 * geninit.sh: Refactoring.
20851
20852 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
20853 necessary.
20854 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
20855 New prototype.
20856
20857 * include/grub/test.h: Fix functional test modules' naming.
20858 * grub-core/tests/example_functional_test.c: Fix test module name.
20859
20860 * util/misc.c: Hosted versions' of grub functions for libgrub.a
20861 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
20862 * util/grub-editenv.c: Likewise.
20863 * util/grub-fstest.c: Likewise.
20864 * util/grub-mkdevicemap.c: Likewise.
20865 * util/grub-mkfont.c: Likewise.
20866 * util/grub-mkimage.c: Likewise.
20867 * util/grub-mkpasswd-pbkdf2.c: Likewise.
20868 * util/grub-probe.c: Likewise.
20869 * util/grub-script-check.c: Likewise.
20870 * util/i386/pc/grub-setup.c: Likewise.
20871 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20872
20873 * tests/util/grub-shell.in: Fix override directory path.
20874 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
20875 * util/import_gcry.py: Create Makefile.gcry.def file instead.
20876
20877 * util/lvm.c: Update #includes.
20878 * util/raid.c: Likewise.
20879 * util/resolve.c: Likewise.
20880 * grub-core/bus/emu/pci.c: Likewise.
20881 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
20882 * grub-core/lib/posix_wrap/string.h: Likewise.
20883 * grub-core/kern/emu/main.c: Likewise.
20884
20885 * grub-core/gensymlist.sh: New file. Script for generating kernel
20886 symbols file.
20887 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
20888
20889 * grub-core/gentrigtables.c: Fix unused variable warnings.
20890
20891 * Makefile.in: Removed.
20892 * conf/any-emu.rmk: Removed.
20893 * conf/common.rmk: Removed.
20894 * conf/i386-coreboot.rmk: Removed.
20895 * conf/i386-efi.rmk: Removed.
20896 * conf/i386-ieee1275.rmk: Removed.
20897 * conf/i386-multiboot.rmk: Removed.
20898 * conf/i386-pc.rmk: Removed.
20899 * conf/i386-qemu.rmk: Removed.
20900 * conf/i386.rmk: Removed.
20901 * conf/mips-yeeloong.rmk: Removed.
20902 * conf/mips.rmk: Removed.
20903 * conf/powerpc-ieee1275.rmk: Removed.
20904 * conf/sparc64-ieee1275.rmk: Removed.
20905 * conf/tests.rmk: Removed.
20906 * conf/x86-efi.rmk: Removed.
20907 * conf/x86_64-efi.rmk: Removed.
20908 * gendistlist.sh: Removed.
20909 * geninitheader.sh: Removed.
20910 * genkernsyms.sh.in: Removed.
20911 * genmk.rb: Removed.
20912 * gensymlist.sh.in: Removed.
20913 * mkinstalldirs: Removed.
20914 * boot: Moved ...
20915 * grub-core/boot: ... to here.
20916 * bus: Moved ...
20917 * grub-core/bus: ... to here.
20918 * commands: Moved ...
20919 * grub-core/commands: ... to here.
20920 * disk: Moved ...
20921 * grub-core/disk: ... to here.
20922 * efiemu: Moved ...
20923 * grub-core/efiemu: ... to here.
20924 * font: Moved ...
20925 * grub-core/font: ... to here.
20926 * fs: Moved ...
20927 * grub-core/fs: ... to here.
20928 * gencmdlist.sh: Moved ...
20929 * grub-core/gencmdlist.sh: ... to here.
20930 * genemuinit.sh: Moved ...
20931 * grub-core/genemuinit.sh: ... to here.
20932 * genemuinitheader.sh: Moved ...
20933 * grub-core/genemuinitheader.sh: ... to here.
20934 * genfslist.sh: Moved ...
20935 * grub-core/genfslist.sh: ... to here.
20936 * genhandlerlist.sh: Moved ...
20937 * grub-core/genhandlerlist.sh: ... to here.
20938 * genmoddep.awk: Moved ...
20939 * grub-core/genmoddep.awk: ... to here.
20940 * genmodsrc.sh: Moved ...
20941 * grub-core/genmodsrc.sh: ... to here.
20942 * genpartmaplist.sh: Moved ...
20943 * grub-core/genpartmaplist.sh: ... to here.
20944 * genparttoollist.sh: Moved ...
20945 * grub-core/genparttoollist.sh: ... to here.
20946 * genterminallist.sh: Moved ...
20947 * grub-core/genterminallist.sh: ... to here.
20948 * gentrigtables.c: Moved ...
20949 * grub-core/gentrigtables.c: ... to here.
20950 * genvideolist.sh: Moved ...
20951 * grub-core/genvideolist.sh: ... to here.
20952 * gettext: Moved ...
20953 * grub-core/gettext: ... to here.
20954 * gfxmenu: Moved ...
20955 * grub-core/gfxmenu: ... to here.
20956 * gnulib: Moved ...
20957 * grub-core/gnulib: ... to here.
20958 * hello: Moved ...
20959 * grub-core/hello: ... to here.
20960 * hook: Moved ...
20961 * grub-core/hook: ... to here.
20962 * io: Moved ...
20963 * grub-core/io: ... to here.
20964 * kern: Moved ...
20965 * grub-core/kern: ... to here.
20966 * lib: Moved ...
20967 * grub-core/lib: ... to here.
20968 * loader: Moved ...
20969 * grub-core/loader: ... to here.
20970 * mmap: Moved ...
20971 * grub-core/mmap: ... to here.
20972 * normal: Moved ...
20973 * grub-core/normal: ... to here.
20974 * partmap: Moved ...
20975 * grub-core/partmap: ... to here.
20976 * parttool: Moved ...
20977 * grub-core/parttool: ... to here.
20978 * script: Moved ...
20979 * grub-core/script: ... to here.
20980 * term: Moved ...
20981 * grub-core/term: ... to here
20982 * tests/example_functional_test.c: Moved ...
20983 * grub-core/tests/example_functional_test.c: ... to here.
20984 * tests/lib/functional_test.c: Moved ...
20985 * grub-core/tests/lib/functional_test.c: ... to here.
20986 * tests/lib/test.c: Moved ...
20987 * grub-core/tests/lib/test.c: ... to here.
20988 * video: Moved ...
20989 * grub-core/video: ... to here.
20990
20991 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
20992
20993 Replace --enable-grub-emu-modules with grub-emu-lite.
20994
20995 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
20996 cache.S.
20997
20998 * include/grub/emu/misc.h (grub_emu_init): New prototype.
20999 * kern/emu/full.c: New file. For grub-emu specific initialization.
21000 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
21001 * kern/emu/main.c: Call initialization function grub_emu_init.
21002
21003 * Makefile.in: Include grub-emu-lite in install.
21004 * commands/parttool.c: Use grub_no_autoload to differentiate
21005 between grub-emu and grub-emu-lite.
21006 * include/grub/misc.h: New variable grub_no_autoload.
21007
21008 * conf/any-emu.rmk: New rules for grub-emu-lite.
21009 * configure.ac: Remove --enable-grub-emu-modules.
21010 * genmk.rb: Cleanup unnecessary rules.
21011 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
21012
21013 * normal/main.c: Don't load list files on grub-emu-lite.
21014 * util/misc.c (grub_arch_sync_caches): Removed.
21015
21016 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
21017
21018 * kern/mips/startup.S (grub_prefix): Update comment to refer to
21019 grub-mkimage rather than grub-mkelfimage.
21020 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
21021
21022 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
21023
21024 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
21025 a key after CapsLock or NumLock. It's just a qemu bug.
21026
21027 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
21028
21029 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
21030 needed by libusb wrapper.
21031
21032 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
21033
21034 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
21035
21036 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
21037
21038 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
21039 --nounzip is passed.
21040
21041 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
21042
21043 USB hotunplugging and USB serial support.
21044
21045 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
21046 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
21047 (grub_uhci_transfer): Respect timeout and set *actual.
21048 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
21049 non-standard length.
21050 (grub_usb_device_attach): Autoload modules.
21051 (GRUB_MOD_INIT): Set grub_term_poll_usb.
21052 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
21053 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
21054 users updated.
21055 (grub_usb_add_hub): Fill nports and children.
21056 (attach_root_port): Receive hub instead of controller.
21057 All users updated. Fill hub->devices.
21058 (grub_usb_root_hub): Allocate hub->devices.
21059 (detach_device): New function.
21060 (poll_nonroot_hub): Fill children and detach devices.
21061 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
21062 actual arguments. All users updated.
21063 (grub_usb_bulk_read_extended): New function.
21064 * bus/usb/serial/common.c: New file.
21065 * bus/usb/serial/ftdi.c: Likewise.
21066 * bus/usb/serial/pl2303.c: Likewise.
21067 * commands/terminal.c (handle_command): Support wildcard.
21068 * commands/usbtest.c: Output "Unknown" instead of empty string.
21069 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
21070 (usbserial_common_mod_SOURCES): New variable.
21071 (usbserial_common_mod_CFLAGS): Likewise.
21072 (usbserial_common_mod_LDFLAGS): Likewise.
21073 (pkglib_MODULES): Add usbserial_pl2303.mod.
21074 (usbserial_pl2303_mod_SOURCES): New variable.
21075 (usbserial_pl2303_mod_CFLAGS): Likewise.
21076 (usbserial_pl2303_mod_LDFLAGS): Likewise.
21077 (pkglib_MODULES): Add usbserial_ftdi.mod.
21078 (usbserial_ftdi_mod_SOURCES): New variable.
21079 (usbserial_ftdi_mod_CFLAGS): Likewise.
21080 (usbserial_ftdi_mod_LDFLAGS): Likewise.
21081 (pkglib_MODULES): Add serial.mod.
21082 (serial_mod_SOURCES): New variable.
21083 (serial_mod_CFLAGS): Likewise.
21084 (serial_mod_LDFLAGS): Likewise.
21085 * conf/i386-pc.rmk: Likewise.
21086 * conf/mips-yeeloong.rmk: Likewise.
21087 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
21088 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
21089 * disk/usbms.c (first_available_slot): New variable.
21090 (grub_usbms_attach): Don't reuse free slots due to potential cache
21091 problems.
21092 * include/grub/serial.h: Moved to ..
21093 * include/grub/ns8250.h: ...this.
21094 * include/grub/serial.h: New file.
21095 * include/grub/term.h (grub_term_poll_usb): New variable.
21096 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
21097 readkey. All users updated.
21098 (grub_terminfo_output_state): Pass term to put.
21099 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
21100 (grub_usb_controller_dev): Add timeout and actual arguments to
21101 transfer. All users updated.
21102 (grub_usb_interface): New field detach_data.
21103 (grub_usb_device): New fields children and nports.
21104 (grub_usb_ep_type_t): New type.
21105 (grub_usb_get_ep_type): New function.
21106 (grub_usb_bulk_read_extended): Likewise.
21107 * include/grub/usbdesc.h (grub_usb_desc): New type.
21108 * include/grub/usbserial.h: New file.
21109 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
21110 * kern/term.c (grub_term_poll_usb): New variable.
21111 (grub_getkey): Call grub_term_poll_usb if set.
21112 (grub_checkkey): Likewise.
21113 (grub_getkeystatus): Likewise.
21114 * term/serial.c: Moved controller-specific parts to ...
21115 * term/ns8250.c: ... here.
21116 * term/serial.c: Mostly rewritten.
21117 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
21118 according to spec.
21119
21120 2010-08-20 Robert Millan <rmh@gnu.org>
21121
21122 Make kFreeBSD code more generic to support ext2fs as root, ufs as
21123 a separate module and maybe other interesting combinations.
21124
21125 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
21126 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
21127 (kfreebsd_entry): Add generic filesystem module load routine.
21128 Map GRUB `ext2' to kFreeBSD `ext2fs'.
21129
21130 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
21131
21132 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
21133 "numcenter" (I misunderstood the purpose of this entry).
21134 * docs/grub.texi (sendkey): Likewise.
21135
21136 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
21137
21138 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
21139 status flag options; simply omitting the option is equivalent and
21140 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
21141 (keysym_table): Rename "num5numlock" to "numlock".
21142 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
21143 can uniformly say that only the last of multiple `sendkey'
21144 invocations has any effect.
21145 * docs/grub.texi (sendkey): New section.
21146
21147 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
21148
21149 * commands/i386/pc/sendkey.c (options): Fix three typos.
21150
21151 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
21152
21153 Implement sendkey support.
21154
21155 * commands/i386/pc/sendkey.c: New file.
21156 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
21157 (sendkey_mod_SOURCES): New variable.
21158 (sendkey_mod_CFLAGS): Likewise.
21159 (sendkey_mod_LDFLAGS): Likewise.
21160
21161 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
21162
21163 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
21164 fix warnings from Autoconf.
21165
21166 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
21167
21168 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
21169 to avoid false positives with some assemblers that output things
21170 like "someprefix_func" as part of their output.
21171
21172 2010-08-15 Robert Millan <rmh@gnu.org>
21173
21174 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
21175 errors.
21176 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
21177 grub_get_libzfs_handle() errors.
21178
21179 2010-08-14 Robert Millan <rmh@gnu.org>
21180
21181 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
21182 filesystem is not ZFS.
21183
21184 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
21185
21186 Fix for misspelled color names defaulting to black/black (bug
21187 reported by Doug Nazar)
21188
21189 * include/grub/normal.h (grub_parse_color_name_pair): Add return
21190 status to prototype.
21191 * normal/color.c (grub_parse_color_name_pair): Return failure
21192 status.
21193 (grub_env_write_color_normal): Ignore bad color names.
21194 (grub_env_write_color_highlight): Likewise.
21195 * normal/main.c (GRUB_MOD_INIT): Set default color names.
21196
21197 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
21198
21199 "shift" command support to GRUB script.
21200
21201 * include/grub/script_sh.h (grub_script_shift): New prototype.
21202 * script/execute.c (grub_script_shift): New function.
21203 * script/main.c (grub_script_init): Register shift command.
21204 (grub_script_fini): Unregister shift command.
21205 * util/grub-script-check.c (grub_script_cmd_shift): New function.
21206
21207 * tests/grub_script_shift.in: New testcase.
21208 * conf/tests.rmk: Rules for new testcase.
21209
21210 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
21211
21212 "continue" command support to GRUB script.
21213
21214 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
21215 (grub_script_break): Continue support.
21216 * script/main.c (grub_script_init): Register continue command.
21217 (grub_script_fini): Unregister continue command.
21218
21219 * tests/grub_script_continue.in: New testcase.
21220 * conf/tests.rmk: Rules for new testcase.
21221
21222 2010-08-12 BVK Chaitanya <bvk@dbook>
21223
21224 "break" command support to GRUB script.
21225
21226 * conf/common.rmk: Rule updates to grub-script-check.
21227 * include/grub/misc.h (grub_min): New function.
21228 * include/grub/script_sh.h (grub_script_init): New prototype.
21229 (grub_script_fini): New prototype.
21230 (grub_script_break): New prototype.
21231 * script/main.c (grub_script_init): New function.
21232 (grub_script_fini): New function.
21233 * script/execute.c (grub_script_break): New function.
21234 * normal/main.c: Calls to grub_script_{init,fini}.
21235 * util/grub-script-check.c (grub_script_break): New function.
21236
21237 * tests/grub_script_break.in: New testcase.
21238 * conf/tests.rmk: Rules for new test case.
21239
21240 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
21241
21242 Function parameters support to GRUB script.
21243
21244 * script/yylex.l (VARIABLE): Regular expression update.
21245 * script/function.c (grub_script_function_call): Moved ...
21246 * script/execute.c (grub_script_function_call): ... to here.
21247 (grub_script_execute_arglist_to_argv): Removed.
21248 (grub_script_arglist_to_argv): New function.
21249 * script/argv.c: New file.
21250 (grub_script_argv_free): New function.
21251 (grub_script_argv_next): Likewise.
21252 (grub_script_argv_append): Likewise.
21253 (grub_script_argv_split_append): Likewise.
21254 * include/grub/script_sh.h (grub_script_argv): New struct.
21255 (grub_script_argv_free): New function.
21256 (grub_script_argv_next): Likewise.
21257 (grub_script_argv_append): Likewise.
21258 (grub_script_argv_split_append): Likewise.
21259
21260 * conf/common.rmk (normal.mod): New source script/argv.c.
21261
21262 * tests/grub_script_echo1.in: More tests.
21263 * tests/grub_script_vars1.in: Likewise.
21264 * tests/grub_script_functions.in: New test case.
21265 * conf/tests.rmk: Rules for new testcase.
21266
21267 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
21268
21269 Remove grub_script_cmdblock struct.
21270
21271 * include/grub/script_sh.h: Remove grub_script_cmdblock.
21272 * script/parser.y: Likewise.
21273 * script/execute.c: Rename cmdblock suffix to cmdlist.
21274 * script/script.c: Likewise.
21275 * util/grub-script-check.c: Likewise.
21276
21277 2010-08-11 Yves Blusseau <blusseau@zetam.org>
21278
21279 * .bzrignore: add grub-macho2img
21280
21281 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
21282
21283 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
21284
21285 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
21286
21287 Remove the dump of sm712 initialisation sequence.
21288
21289 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
21290 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
21291 (GRUB_VGA_IO_MISC_WRITE): Likewise.
21292 (GRUB_VGA_CR_*): Added many registers.
21293 (GRUB_VGA_SR_*): Likewise.
21294 (GRUB_VGA_GR_*): Likewise.
21295 (grub_vga_write_arx): New function.
21296 (grub_video_hw_config): New struct.
21297 (grub_vga_set_geometry): New function.
21298 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
21299 GRUB_PCI_CLASS_SUBCLASS_VGA.
21300 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
21301 * video/sm712.c (grub_sm712_write_reg): New function
21302 (grub_sm712_read_reg): Likewise.
21303 (grub_sm712_sr_write): Likewise.
21304 (grub_sm712_gr_write): Likewise.
21305 (grub_sm712_cr_write): Likewise.
21306 (grub_sm712_write_arx): Likewise.
21307 (grub_sm712_cr_shadow_write): Likewise.
21308 (grub_sm712_write_dda_lookup): Likewise.
21309 (grub_video_sm712_setup): Initialise the video rather then
21310 blindly replay the dump.
21311 (main) [TEST]: Add a routine to be able to compile as standalone for
21312 tests.
21313 * video/sm712_init.c (sm712_init): Removed.
21314 (sm712_sr_seq1): New array.
21315 (sm712_sr_seq2): Likewise.
21316
21317 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
21318
21319 * include/grub/vga.h: Add missing grub/pci.h include.
21320
21321 2010-08-10 Yves Blusseau <blusseau@zetam.org>
21322
21323 * util/grub-macho2img.c (main): fix typo
21324
21325 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
21326
21327 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
21328 (grub_vga_gr_read): Likewise.
21329 (grub_vga_cr_write): Likewise.
21330 (grub_vga_cr_read): Likewise.
21331 (grub_vga_sr_write): Likewise.
21332 (grub_vga_sr_read): Likewise.
21333 (grub_vga_palette_read): Likewise.
21334 (grub_vga_palette_write): Likewise.
21335 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
21336 (grub_sm712_sr_read): New function.
21337 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
21338 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
21339
21340 2010-08-09 Robert Millan <rmh@gnu.org>
21341
21342 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
21343 out unused variables on non-ZFS build.
21344
21345 2010-08-08 Robert Millan <rmh@gnu.org>
21346
21347 Fix path generation for sub-filesystems in ZFS.
21348
21349 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
21350 missing slash.
21351
21352 2010-08-08 Robert Millan <rmh@gnu.org>
21353
21354 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
21355
21356 2010-08-08 Robert Millan <rmh@gnu.org>
21357
21358 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
21359 exist, issue a proper error message (rely on `ls' for translated
21360 strings).
21361
21362 2010-08-08 Robert Millan <rmh@gnu.org>
21363
21364 Fix grub-probe invocation.
21365
21366 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
21367
21368 2010-08-04 Robert Millan <rmh@gnu.org>
21369
21370 * configure.ac: Remove checks for getfsstat() and getmntany().
21371 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
21372 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
21373 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
21374 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
21375 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
21376 function.
21377 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
21378 via find_mount_point_from_dir() and getfsstat() / getmntany().
21379
21380 2010-08-04 Robert Millan <rmh@gnu.org>
21381
21382 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
21383 (grub_find_zpool_from_mount_point): Merge into ...
21384 (grub_find_zpool_from_dir): ... this.
21385 * kern/emu/misc.c: Likewise.
21386
21387 * kern/emu/misc.c
21388 (grub_make_system_path_relative_to_its_root): Replace
21389 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
21390 with grub_find_zpool_from_dir().
21391 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
21392
21393 2010-08-04 Robert Millan <rmh@gnu.org>
21394
21395 Support OpenSolaris in ZFS device resolution.
21396
21397 * configure.ac: Check for getmntany().
21398 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
21399 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
21400 support.
21401
21402 2010-08-03 Robert Millan <rmh@gnu.org>
21403
21404 Fix grub-emu build.
21405
21406 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
21407 * include/grub/emu/misc.h: ... here.
21408
21409 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
21410 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
21411
21412 * util/misc.c: Remove `<grub/util/libzfs.h>'.
21413 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
21414 (grub_get_libzfs_handle): Move to ...
21415 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
21416 (grub_get_libzfs_handle): ... here.
21417
21418 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
21419
21420 * script/execute.c (grub_script_execute_cmdline): Check for NULL
21421 as command name case.
21422
21423 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
21424
21425 * disk/raid.c (insert_array): Select unique numbers for named arrays
21426 as well, for use as keys in the disk cache.
21427
21428 2010-08-01 Robert Millan <rmh@gnu.org>
21429
21430 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
21431 kFreeBSD device name, except on ZFS where the filesystem label is
21432 used.
21433 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
21434 `/boot/zfs/zpool.cache'.
21435 Set mountfrom kernel variable using ${kfreebsd_device}.
21436
21437 2010-08-01 Robert Millan <rmh@gnu.org>
21438
21439 Make it even harder to use uninitialized `libzfs_handle' (and
21440 make the interface a bit simpler).
21441
21442 * include/grub/util/misc.h (grub_util_init_libzfs)
21443 (libzfs_handle): Remove.
21444 (grub_get_libzfs_handle): New prototype.
21445
21446 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
21447 attribute.
21448 (grub_util_init_libzfs): Remove.
21449 (grub_get_libzfs_handle): New function.
21450
21451 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
21452 grub_get_libzfs_handle() to obtain a libzfs handle instead of
21453 accessing `libzfs_handle' directly.
21454
21455 2010-08-01 Robert Millan <rmh@gnu.org>
21456
21457 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
21458 (grub_find_zpool_from_mount_point): New function prototypes.
21459
21460 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
21461 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
21462
21463 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
21464 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
21465 `static' attribute.
21466
21467 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
21468 finding zpool from mount point into ...
21469 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
21470
21471 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
21472 requested path is part of a ZFS pool, use
21473 grub_find_zpool_from_mount_point() to detect its filesystem name,
21474 and generate a path with `/fsname@path' syntax.
21475
21476 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
21477
21478 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
21479 (void) rather than () so that this is a proper prototype.
21480
21481 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
21482
21483 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
21484
21485 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
21486
21487 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
21488 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
21489
21490 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
21491
21492 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
21493
21494 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
21495
21496 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
21497
21498 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
21499
21500 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
21501 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
21502 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
21503 disable gfxpayload.
21504 (Shell-like scripting): Add real content.
21505 (Serial terminal): Suggest `terminal_input serial; terminal_output
21506 serial' rather than putting the two commands on separate lines,
21507 since console input will be inoperative after the first command.
21508 (menuentry): Document --class, --users, and --hotkey options.
21509 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
21510 Vladimir Serbinenko).
21511
21512 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
21513 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
21514
21515 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
21516
21517 2010-08-01 Robert Millan <rmh@gnu.org>
21518
21519 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
21520 (grub_find_zpool_from_mount_point): New function prototypes.
21521
21522 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
21523 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
21524
21525 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
21526 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
21527 `static' attribute.
21528
21529 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
21530 finding zpool from mount point into ...
21531 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
21532
21533 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
21534 requested path is part of a ZFS pool, use
21535 grub_find_zpool_from_mount_point() to detect its filesystem name,
21536 and generate a path with `/fsname@path' syntax.
21537
21538 2010-08-01 Robert Millan <rmh@gnu.org>
21539
21540 Prevent accidental use of uninitialized libzfs_handle.
21541
21542 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
21543 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
21544 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
21545
21546 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
21547
21548 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
21549 util/grub.d/10_linux.in). Fixes Debian bug #591093.
21550
21551 2010-08-01 Robert Millan <rmh@gnu.org>
21552
21553 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
21554
21555 2010-07-31 Robert Millan <rmh@gnu.org>
21556
21557 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
21558
21559 2010-07-31 Robert Millan <rmh@gnu.org>
21560
21561 * kern/emu/misc.c: Add missing license header.
21562
21563 2010-07-31 Robert Millan <rmh@gnu.org>
21564
21565 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
21566
21567 * include/grub/util/libnvpair.h: Include `<config.h>'.
21568 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
21569 declaring libnvpair prototypes ourselves.
21570 * include/grub/util/libzfs.h: Include `<config.h>'.
21571 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
21572 declaring libzfs prototypes ourselves.
21573
21574 (libzfs_handle): Moved to ...
21575 * include/grub/util/misc.h (libzfs_handle): ... here.
21576 Include `<grub/util/libzfs.h>'.
21577
21578 2010-07-30 Robert Millan <rmh@gnu.org>
21579
21580 * include/grub/emu/misc.h: Add missing license header.
21581
21582 2010-07-30 Robert Millan <rmh@gnu.org>
21583
21584 Enable `grub-probe -t device' resolution on ZFS.
21585
21586 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
21587 * include/grub/util/libnvpair.h: New file.
21588 * include/grub/util/libzfs.h: New file.
21589
21590 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
21591 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
21592 `<grub/util/libnvpair.h>'.
21593 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
21594
21595 (find_mount_point_from_dir): New static function.
21596 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
21597 function.
21598 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
21599 find_root_device_from_libzfs() before ressorting to find_root_device().
21600
21601 * include/grub/util/misc.h (grub_util_init_libzfs): New function
21602 prototype.
21603 * util/misc.c: Include `<grub/util/libzfs.h>'.
21604 (grub_util_init_libzfs): New function.
21605 [HAVE_LIBZFS] (libzfs_handle): New global variable.
21606 [HAVE_LIBZFS] (fini_libzfs): New static function.
21607 (grub_util_init_libzfs): New function.
21608 * util/grub-probe.c (main): Call grub_util_init_libzfs().
21609
21610 2010-07-30 Robert Millan <rmh@gnu.org>
21611
21612 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
21613 (xmalloc, xrealloc, xstrdup, xasprintf): Add
21614 `warn_unused_result' attribute.
21615 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
21616 (grub_xasprintf, grub_xvasprintf): Likewise.
21617 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
21618
21619 2010-07-29 Robert Millan <rmh@gnu.org>
21620
21621 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
21622 (probe): Handle `PRINT_FS_LABEL'.
21623 (main): Handle `-t fs_label'.
21624
21625 2010-07-29 Robert Millan <rmh@gnu.org>
21626
21627 * configure.ac: Remove grub-mkisofs checks.
21628
21629 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
21630
21631 * util/ieee1275/grub-install.in: Don't use empty grub_device.
21632 Reported by: Lennart Sorensen.
21633
21634 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21635
21636 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
21637 prior to terminal_input/terminal_output separation. It's been over 1.5
21638 years and those versions weren't widely deployed.
21639
21640 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
21641
21642 * disk/raid.c (insert_array): Don't count named arrays when looking
21643 for unused array numbers.
21644 Reported and tested by: Michael Guntsche.
21645
21646 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21647
21648 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
21649 implementation of this so that grub-emu links again, with a note
21650 that this should support hotplugging in the future.
21651
21652 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21653
21654 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
21655
21656 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21657
21658 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
21659 handle on failure.
21660 (grub_loopback_close): Remove empty function.
21661 (grub_loopback_dev): Remove close method.
21662
21663 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21664
21665 Disable EFI cursor when the EFI console becomes inactive.
21666
21667 * term/efi/console.c (grub_efi_console_init): New function.
21668 (grub_efi_console_fini): New function.
21669 (grub_console_term_output): Register init and fini methods.
21670
21671 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21672
21673 * tests/util/grub-shell-tester.in: Remove bashism and declare as
21674 sh script.
21675
21676 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21677
21678 * disk/loopback.c (grub_loopback): Replace filename with file.
21679 (delete_loopback): Handle new semantics.
21680 (grub_cmd_loopback): Likewise.
21681 (grub_loopback_iterate): Likewise.
21682 (grub_loopback_close): Likewise.
21683
21684 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21685
21686 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
21687 with -p "".
21688 Reported by: Tito Keitel.
21689
21690 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21691
21692 * docs/grub.texi (Naming convention): Document new naming convention.
21693
21694 2010-07-20 Vadim Solomin <vadic052@gmail.com>
21695 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21696
21697 Generate device.map in something closer to the old ordering.
21698
21699 * util/deviceiter.c (struct device): New declaration.
21700 (compare_file_names): Rename to ...
21701 (compare_devices): ... this. Sort by kernel name in preference to
21702 the stable by-id name, but keep the latter as a fallback comparison.
21703 Update header comment.
21704 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
21705 of `struct device' rather than of plain file names.
21706
21707 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
21708
21709 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
21710 on i386.
21711
21712 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
21713
21714 * commands/acpi.c (setup_common_tables): Use sizeof instead of
21715 hardcoding size.
21716 (setv1table): Likewise.
21717
21718 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21719
21720 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
21721 removing the homehost if present.
21722 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
21723 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
21724 removing the homehost if present.
21725 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
21726 if possible.
21727 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
21728
21729 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
21730 parameter. Set its pointer target to 0.
21731 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
21732 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
21733 `data_offset' value from the superblock for 1.x metadata.
21734 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
21735 data on the device.
21736 (insert_array): Record the start sector of data on the device.
21737 (grub_raid_register): Pass start_sector parameters to
21738 grub_raid_list->detect and insert_array.
21739 * include/grub/raid.h (struct grub_raid_array): Add start_sector
21740 member.
21741 (struct grub_raid): Add start_sector parameter to `detect'.
21742
21743 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
21744 __attribute__ ((packed)), leaving a comment.
21745 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
21746 (grub_mdraid_detect_09): ... here and ...
21747 (grub_mdraid_detect_1x): ... here.
21748
21749 2010-07-20 Peter Henn <peter.henn@web.de>
21750
21751 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
21752 chunk size and disk size, which are already given as sector counts
21753 as distinct from the 0.90 units. Fetch the correct device number
21754 from the role table instead of using the table index.
21755
21756 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
21757
21758 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
21759 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
21760 (WriteMostly1): New macro.
21761 Set array->name to NULL for metadata format 0.90. Add support for
21762 metadata 1.x. Fix some comments.
21763 * disk/raid.c (): Add support for name based RAID arrays. Fix a
21764 few comments.
21765 * util/getroot.c (grub_util_get_grub_dev): Add support for
21766 /dev/md/name style devices.
21767
21768 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
21769
21770 * .bzrignore: Ignore 20_linux_xen.
21771
21772 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
21773
21774 * util/import_unicode.py: Remove unnecessary imports.
21775
21776 2010-07-17 Aleš Nesrsta <starous@volny.cz>
21777
21778 Hotplugging and USB hub support.
21779
21780 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
21781 (grub_ohci): Likewise.
21782 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
21783 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
21784 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
21785 (GRUB_OHCI_CTRL_EDS): Likewise.
21786 (GRUB_OHCI_BULK_EDS): Likewise.
21787 (GRUB_OHCI_TDS): Likewise.
21788 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
21789 (grub_ohci_ed_phys2virt): New function.
21790 (grub_ohci_virt_to_phys): Likewise.
21791 (grub_ohci_td_phys2virt): Likewise.
21792 (grub_ohci_td_virt2phys): Likewise.
21793 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
21794 attachment.
21795 (grub_ohci_find_ed): New function.
21796 (grub_ohci_alloc_td): Likewise.
21797 (grub_ohci_free_td): Likewise.
21798 (grub_ohci_free_tds): Likewise.
21799 (grub_ohci_transfer): Use previously allocated memory.
21800 (grub_ohci_portstatus): Reset status changed bit.
21801 (grub_ohci_detect_dev): Supply status changed.
21802 (grub_ohci_fini_hw): Free memory.
21803 (grub_ohci_restore_hw): Reallocate memory.
21804 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
21805 Reset status change.
21806 (grub_uhci_detect_dev): Supply status_change.
21807 * bus/usb/usb.c (attach_hooks): New var.
21808 (grub_usb_device_attach): New function.
21809 (grub_usb_register_attach_hook_class): Likewise.
21810 (grub_usb_unregister_attach_hook_class): Likewise.
21811 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
21812 (grub_usb_add_hub): Reset connection changed bit.
21813 (attach_root_port): New function.
21814 (grub_usb_root_hub): Likewise.
21815 (poll_nonroot_hub): Likewise.
21816 (grub_usb_poll_devices): Likewise.
21817 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
21818 * disk/usbms.c (grub_usbms_open): Use device hooks.
21819 (grub_usbms_iterate) :Poll devices.
21820 (grub_usbms_finddevs): Split into ...
21821 (grub_usbms_attach): ... this ...
21822 (grub_usbms_attach): ... and this.
21823 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
21824 in detect_dev.
21825 (grub_usb_interface): New fields attached and detach_hook.
21826 (grub_usb_attach_hook_class): New type.
21827 (grub_usb_attach_desc): New struct.
21828 (grub_usb_register_attach_hook_class): New function.
21829 (grub_usb_unregister_attach_hook_class): Likewise.
21830 (grub_usb_poll_devices): Likewise.
21831 (grub_usb_device_attach): Likewise.
21832 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
21833 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
21834
21835 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
21836
21837 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
21838 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
21839 delta determination style. Works with most NetBSD partitions too.
21840
21841 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
21842
21843 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
21844 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
21845
21846 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
21847
21848 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
21849
21850 2010-07-14 Anton Blanchard <anton@samba.org>
21851
21852 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
21853 ET_DYN files.
21854
21855 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
21856
21857 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
21858
21859 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
21860
21861 * kern/partition.c (grub_partition_check_containment): New function to
21862 check that a partition is physically contained in a parent. Since
21863 offsets are relative (and non-negative), this reduces to checking that
21864 the partition ends before its parent.
21865 (grub_partition_map_probe): Discard out-of-range sub-partitions.
21866 (grub_partition_iterate): Likewise.
21867 * include/grub/partition.h (grub_partition_map): Slightly more detailed
21868 comments.
21869 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
21870 partitions that start before their parent, and add debug printfs.
21871
21872 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
21873
21874 * Makefile.in (.SUFFIX): Spell correctly, as ...
21875 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
21876 bare module name without `.mod', e.g. `test') tried to invoke a
21877 Modula-2 compiler.
21878
21879 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
21880
21881 * README: Point to the Info manual.
21882
21883 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
21884
21885 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
21886 2nd superblock position from partition size.
21887
21888 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
21889
21890 * Makefile.in (MAINTAINER_CLEANFILES): Remove
21891 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
21892 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
21893 outputs.
21894
21895 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
21896
21897 Restructure SCSI .id handling.
21898 Reported and tested by: Aleš Nesrsta.
21899
21900 * disk/ata.c (grub_atapi_close): Removed. All users updated.
21901 (grub_atapi_dev): Changed .name to "ata". New field .id.
21902 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
21903 (grub_usbms_dev): New field .id.
21904 * disk/scsi.c (grub_scsi_iterate): Generate name.
21905 (grub_scsi_open): Parse name.
21906 * include/grub/scsi.h (grub_make_scsi_id): New function.
21907 (grub_scsi_dev): Change iterate and open to number instead of naming
21908 busses. All users updated.
21909 (grub_scsi): Remove name. Add .bus.
21910
21911 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
21912
21913 * commands/help.c (grub_cmd_help): Fix a typo.
21914
21915 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
21916
21917 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
21918 Reported and tested by: Colin Watson.
21919
21920 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
21921
21922 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
21923 in this context.
21924
21925 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
21926
21927 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
21928
21929 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
21930
21931 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
21932 indentation.
21933
21934 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21935
21936 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
21937 and disk/raid6_recover.c.
21938 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
21939 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
21940
21941 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21942
21943 * term/gfxterm.c (repaint_schedulded): Rename to ...
21944 (repaint_scheduled): ... this. Update all callers.
21945 (repaint_was_schedulded): Rename to ...
21946 (repaint_was_scheduled): ... this. Update all callers.
21947
21948 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21949
21950 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
21951 which we expect to be handled by upper layers.
21952
21953 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
21954
21955 * bus/usb/usbhub.c: #include time.h header.
21956
21957 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21958
21959 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
21960 entry_name also for entries without stat blocks (e.g. ".."); fixes
21961 corruption of the first entry in a directory.
21962
21963 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
21964
21965 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
21966 after setting gfxterm as the active terminal. GRUB_BACKGROUND
21967 doesn't work otherwise.
21968
21969 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
21970
21971 * docs/grub.texi (Features): Update list of supported file systems.
21972 (GNU/Linux): Update for GRUB 2.
21973 (Serial terminal): Remove mention of --disable-serial, which was a
21974 GRUB Legacy configure option. Update instructions to use
21975 `terminal_input' and `terminal_output' rather than `terminal'.
21976 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
21977 configuration' and `Installing GRUB using grub-install'.
21978 (Menu entry editor): Update for GRUB 2.
21979 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
21980 Document new -a, -u, and -v options.
21981 (initrd): New section.
21982 (initrd16): New section.
21983 (linux): New section.
21984 (linux16): New section.
21985 (search): The `var' argument to `--set' is optional.
21986 (GRUB only offers a rescue shell): Go into a little more detail on
21987 drive ordering.
21988
21989 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
21990
21991 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
21992
21993 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
21994
21995 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
21996 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
21997
21998 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
21999
22000 * util/i386/pc/grub-setup.c (setup): Rename prefix to
22001 install_prefix, in line with install_dos_part and install_bsd_part.
22002 Add new prefix variable, which is copied to install_prefix after
22003 comparing core.img in memory with the one read from disk in the
22004 no-embedding case, and use that rather than overwriting
22005 install_prefix immediately when installing to a partition.
22006 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
22007 Bicakci.
22008
22009 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
22010
22011 * configure.ac: Avoid == in test command, it's not portable.
22012 * util/grub.d/30_os-prober.in: Likewise.
22013
22014 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
22015
22016 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
22017
22018 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
22019
22020 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
22021 multiple (top-level) partmaps.
22022
22023 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
22024
22025 * util/i386/efi/grub-install.in: Don't use empty grub_device.
22026 Reported by: Tino Keitel.
22027
22028 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
22029
22030 Bidi and diacritics support.
22031
22032 * Makefile.in (widthspec.bin): New target.
22033 (widthspec.h): Likewise.
22034 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
22035 * autogen.sh: Generate unidata.c.
22036 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
22037 * commands/ls.c (grub_ls_list_devices): Likewise.
22038 (grub_ls_list_files): Likewise.
22039 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
22040 (grub_mini_cmd_lsmod): Likewise.
22041 * commands/read.c: Likewise.
22042 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
22043 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
22044 * lib/arg.c (grub_arg_show_help): Likewise.
22045 * lib/crypto.c (grub_password_get): Likewise.
22046 * normal/auth.c (grub_username_get): Likewise.
22047 * normal/misc.c (grub_normal_print_device_info): Likewise.
22048 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
22049 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
22050 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
22051 (normal/charset.c_DEPENDENCIES): New variable.
22052 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
22053 (pkglib_MODULES): Remove charset.mod.
22054 (charset_mod_SOURCES): Removed.
22055 (charset_mod_CFLAGS): Likewise.
22056 (charset_mod_LDFLAGS): Likewise.
22057 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
22058 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
22059 and term/tparm.c.
22060 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
22061 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
22062 (kernel_img_HEADERS): Add terminfo.h.
22063 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
22064 Fill ->font. Reverse ascii bitmaps.
22065 (grub_font_get_xheight): New function.
22066 * font/font.c (grub_font_get_string_width): Moved from here ...
22067 * gfxmenu/font.c (grub_font_get_string_width): ... here.
22068 * font/font.c (grub_font_draw_string): Moved from here ...
22069 * gfxmenu/font.c (grub_font_draw_string): ... here.
22070 * font/font.c (grub_font_dup_glyph): New function.
22071 (grub_font_blit_glyph): Likewise.
22072 (grub_font_blit_glyph_mirror): Likewise.
22073 (blit_comb): Likewise.
22074 (grub_font_construct_dry_run): Likewise.
22075 (grub_font_get_constructed_device_width): Likewise.
22076 (grub_font_construct_glyph): Likewise.
22077 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
22078 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
22079 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
22080 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
22081 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
22082 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
22083 (grub_font_get_xheight): New proto.
22084 (grub_font_get_constructed_device_width): Likewise.
22085 (grub_font_construct_glyph): Likewise.
22086 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
22087 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
22088 * include/grub/font.h (grub_font_draw_string): Moved from here ...
22089 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
22090 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
22091 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
22092 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
22093 (grub_console_getcharwidth): Likewise.
22094 * include/grub/misc.h (grub_xputs): New proto.
22095 (grub_puts): Inlined.
22096 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
22097 (grub_normal_get_line_counter): Removed.
22098 (grub_install_newline_hook): Likewise.
22099 (grub_normal_get_char_counter): New proto.
22100 (grub_normal_reset_more): Likewise.
22101 (grub_xputs_normal): Likewise.
22102 * include/grub/powerpc/ieee1275/console.h: Removed.
22103 * include/grub/sparc64/ieee1275/console.h: Likewise.
22104 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
22105 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
22106 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
22107 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
22108 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
22109 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
22110 (grub_term_input): Pass reference to self. All users updated.
22111 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
22112 Pass reference to self. New fields normal_color, highlight_color and
22113 data. All users updated.
22114 (grub_putchar): Removed.
22115 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
22116 (grub_unicode_estimate_width): New function.
22117 (grub_term_getcharwidth): Add defaults.
22118 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
22119 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
22120 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
22121 (grub_cls): Remove EXPORT_FUNC.
22122 (grub_setcolorstate): Inline.
22123 (grub_newline_hook): Removed.
22124 * include/grub/terminfo.h: Rewritten. All users updated.
22125 * include/grub/unicode.h: New file.
22126 * include/grub/video.h (grub_video_signed_rect): New type.
22127 * kern/emu/console.c (grub_console_highlight_color): Removed.
22128 (grub_console_normal_color): Likewise.
22129 (grub_console_standard_color): Made static.
22130 (grub_ncurses_putchar): Remove mapping.
22131 (grub_ncurses_getcharwidth): Removed.
22132 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
22133 (grub_ncurses_setcolor): Removed.
22134 (grub_ncurses_getcolor): Likewise.
22135 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
22136 (grub_console_putchar): ... this.
22137 (grub_console_putchar): Handle argument difference.
22138 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
22139 console_init_early and console_init_lately.
22140 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
22141 * kern/misc.c (grub_puts): Removed.
22142 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
22143 (grub_vsnprintf_real): Remove str = NULL support.
22144 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
22145 * normal/charset.c (grub_utf8_to_ucs4): ... here.
22146 * kern/term.c (grub_putcode): Renamed to ...
22147 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
22148 (grub_putchar): Removed.
22149 (grub_xputs_dumb): New function.
22150 (grub_xputs): New variable.
22151 * lib/charset.c: Move from here ...
22152 * normal/charset.c: ... to here.
22153 (grub_ucs4_to_utf8): New function.
22154 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
22155 (join_types): New variable.
22156 (unpack_join): New function.
22157 (bidi_types): New variable.
22158 (unpack_bidi): New function.
22159 (get_bidi_type): Likewise.
22160 (get_join_type): Likewise.
22161 (is_mirrored): Likewise.
22162 (grub_unicode_get_comb_type): Likewise.
22163 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
22164 (is_type_after): Likewise.
22165 (grub_unicode_aglomerate_comb): Likewise.
22166 (bidi_line_wrap): Likewise.
22167 (grub_bidi_line_logical_to_visual): Likewise.
22168 (grub_bidi_logical_to_visual): Likewise.
22169 (grub_unicode_mirror_code): Likewise.
22170 (grub_unicode_shape_code): Likewise.
22171 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
22172 Don't use grub_putchar.
22173 * normal/main.c (grub_normal_init_page): Use grub_putcode.
22174 (grub_normal_reader_init): Likewise.
22175 (grub_xputs_saved): New variable.
22176 (GRUB_MOD_INIT): Set grub_xputs.
22177 (GRUB_MOD_FINI): Restore grub_xputs.
22178 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
22179 (menu_init): Avoid printing gfxmenu error.
22180 (show_menu): Use grub_normal_get_char_counter.
22181 * normal/menu_entry.c (update_screen): Fix out-of-array.
22182 (complete): Avoid NULL dereferencing.
22183 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
22184 * normal/menu_text.c (print_spaces): Removed.
22185 (grub_print_ucs4): Likewise.
22186 (grub_print_message_indented): Use grub_print_ucs4.
22187 (print_message): Use grub_putcode.
22188 (print_entry): Hanlde diacritics.
22189 * normal/term.c (term_state): New type.
22190 (grub_more_lines): Removed.
22191 (term_states): New variable.
22192 (grub_normal_line_counter): Renamed to ..
22193 (grub_normal_char_counter): ...this. All users updated.
22194 (grub_normal_get_line_counter): Renamed to ...
22195 (grub_normal_get_char_counter): ... this.
22196 (grub_normal_reset_more): New function.
22197 (process_newline): Removed.
22198 (print_more): New function.
22199 (grub_install_newline_hook): Removed.
22200 (map_code): New function.
22201 (grub_puts_terminal): Use grub_print_ucs4.
22202 (putglyph): New function.
22203 (putcode_real): Likewise.
22204 (grub_putcode): Use putcode_real.
22205 (get_maxwidth): New function.
22206 (get_startwidth): Likewise.
22207 (print_ucs4_terminal): Likewise.
22208 (find_term_state): Likewise.
22209 (put_glyphs_terminal): Likewise.
22210 (print_backlog): Likewise.
22211 (print_ucs4_real): Likewise.
22212 (grub_print_ucs4): Likewise.
22213 (grub_xputs_normal): Likewise.
22214 * term/efi/console.c (grub_console_putchar): Output diacritics.
22215 (grub_console_getcharwidth): Removed.
22216 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
22217 * term/gfxterm.c (clear_char): Free chars.
22218 (scroll_up): Avoid leaking memory.
22219 (grub_gfxterm_putchar): Support diacritics.
22220 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
22221 * term/i386/pc/console.c (grub_console_term_output): Declare as
22222 GRUB_TERM_CODE_TYPE_VGA.
22223 * term/i386/pc/vga.c (grub_vga_term): Declare as
22224 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
22225 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
22226 GRUB_TERM_CODE_TYPE_VGA.
22227 * term/i386/vga_common.c (map_char): Removed.
22228 (grub_console_putchar): Likewise.
22229 (grub_console_getcharwidth): Likewise.
22230 * term/ieee1275/ofconsole.c: Simplify using terminfo.
22231 (colors): Reordered to match terminfo.
22232 (grub_ofconsole_normal_color): Removed.
22233 (grub_ofconsole_writeesc): Likewise.
22234 (grub_ofconsole_highlight_color): Likewise.
22235 (grub_ofconsole_getcharwidth): Likewise.
22236 (grub_ofconsole_setcolorstate): Likewise.
22237 (grub_ofconsole_setcolor): Likewise.
22238 (grub_ofconsole_getcolor): Likewise.
22239 (grub_ofconsole_readkey): Renamed to ...
22240 (readkey): ... this. Remove escape sequence handling. Return -1 on no
22241 key.
22242 (grub_ofconsole_checkkey): Removed.
22243 (grub_ofconsole_getkey): Likewise.
22244 (grub_ofconsole_getxy): Likewise.
22245 (grub_ofconsole_gotoxy): Likewise.
22246 (grub_ofconsole_cls): Likewise.
22247 (grub_ofconsole_refresh): Likewise.
22248 (grub_ofconsole_terminfo_input): New struct.
22249 (grub_ofconsole_terminfo_output): Likewise.
22250 (grub_ofconsole_term_input): Use terminfo.
22251 (grub_ofconsole_term_output): Likewise.
22252 (grub_console_init): Split into ...
22253 (grub_console_init_early): ...this and ...
22254 (grub_console_init_lately): ...this. Use terminfo.
22255 (grub_ofconsole_putchar): Renamed to ...
22256 (put): ... this. Remove mapping.
22257 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
22258 * term/serial.c: Simplify using terminfo.
22259 (xpos): Removed.
22260 (ypos): Likewise.
22261 (keep_track): Likewise.
22262 (registered): Likewise.
22263 (input_buf): Likewise.
22264 (npending): Likewise.
22265 (serial_translate_key_sequence): Likewise.
22266 (fill_input_buf): Likewise.
22267 (grub_serial_checkkey): Likewise.
22268 (grub_serial_getkey): Likewise.
22269 (grub_serial_getxy): Likewise.
22270 (grub_serial_gotoxy): Likewise.
22271 (grub_serial_putchar): Likewise.
22272 (grub_serial_cls): Likewise.
22273 (grub_serial_setcolorstate): Likewise.
22274 (grub_serial_setcursor): Likewise.
22275 (serial_hw_init): Use serial_hw_fetch.
22276 (grub_serial_terminfo_input): New variable.
22277 (grub_serial_terminfo_output): Likewise.
22278 (grub_serial_term_input): Use terminfo.
22279 (grub_serial_term_output): Likewise.
22280 * term/terminfo.c (putstr): Use put.
22281 (grub_terminfo_all_free): New function
22282 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
22283 (grub_terminfo_output_register): New function.
22284 (grub_terminfo_output_unregister): Likewise.
22285 (grub_terminfo_getxy): Likewise.
22286 (grub_terminfo_readkey): Likewise.
22287 (grub_terminfo_checkkey): Likewise.
22288 (grub_terminfo_getkey): Likewise.
22289 (grub_terminfo_input_init): Likewise.
22290 (print_terminfo): Likewise.
22291 (grub_cmd_terminfo): Handle encoding.
22292 (grub_terminfo_gotoxy): Track position.
22293 (grub_terminfo_cls): Likewise.
22294 (grub_terminfo_putchar): Likewise.
22295 (grub_terminfo_setcolorstate): Handle colors
22296 (grub_terminfo_cursor_on): This ...
22297 (grub_terminfo_cursor_off): ... and this merged into ...
22298 (grub_terminfo_setcursor): ... this.
22299 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
22300 * unicode/ArabicShaping.txt: New file (imported from Unicode).
22301 * unicode/BidiMirroring.txt: Likewise.
22302 * unicode/UnicodeData.txt: Likewise.
22303 * unicode/COPYING: Likewise.
22304 * util/grub-editenv.c (grub_putchar): Removed.
22305 (grub_xputs_real): New function.
22306 (grub_xputs): New variable.
22307 * util/grub-fstest.c (grub_putchar): Removed.
22308 (grub_xputs_real): New function.
22309 (grub_xputs): New variable.
22310 * util/grub-mkdevicemap.c (grub_putchar): Removed.
22311 (grub_xputs_real): New function.
22312 (grub_xputs): New variable.
22313 * util/grub-probe.c (grub_putchar): Removed.
22314 (grub_xputs_real): New function.
22315 (grub_xputs): New variable.
22316 * util/grub-script-check.c (grub_putchar): Removed.
22317 (grub_xputs_real): New function.
22318 (grub_xputs): New variable.
22319 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
22320 (grub_xputs_real): New function.
22321 (grub_xputs): New variable.
22322 * util/import_unicode.py: New file.
22323 * util/grub-mkfont.c (ft_errmsgs): New array.
22324 (grub_glyph_info): Make bitmap a pointer.
22325 (file_formats): New type WIDTH_SPEC.
22326 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
22327 (options): Add width-spec.
22328 (help): Likewise.
22329 (add_char): Renamed to ...
22330 (add_glyph): ... this.
22331 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
22332 (glyph_replace): New type.
22333 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
22334 (add_char): New function.
22335 (add_subst): Likewise.
22336 (process_cursive): Likewise.
22337 (add_font): Handle GSUB.
22338 (write_font_width_spec): New function.
22339 (main): Sort glyphs.
22340 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
22341 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
22342 * kern/term.c (grub_cls): Moved from here...
22343 * normal/term.c (grub_cls): ... here.
22344
22345 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
22346
22347 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
22348 suitable for using within the format argument of printf when
22349 converting grub_size_t.
22350 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
22351 "x" to convert grub_size_t arguments.
22352
22353 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
22354
22355 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
22356 too long captions.
22357 (list_get_minimal_size): Take selection box into account.
22358
22359 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
22360
22361 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
22362 NULL font.
22363
22364 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
22365
22366 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
22367 devices when iterating over /dev/disk/by-id; they will be handled
22368 later if appropriate, which they aren't always (e.g. LVM).
22369
22370 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
22371
22372 * include/grub/misc.h (grub_reboot): Declare as noreturn.
22373 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
22374 fails.
22375 (grub_halt): Likewise.
22376 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
22377 reset-all fails.
22378 (grub_halt): Don't return, even if all of shut-down, power-off, and
22379 poweroff fail.
22380
22381 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
22382
22383 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
22384 arguments, not three.
22385
22386 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
22387
22388 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
22389 * util/grub.d/10_linux.in: Use it to check for LVM, so that
22390 LVM-on-RAID is handled correctly.
22391
22392 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
22393
22394 * docs/grub.texi (Changes from GRUB Legacy): New section.
22395 (Future): Fix typo.
22396
22397 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
22398
22399 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
22400 grub.d/README accidentally ends up executable for one reason or
22401 another. Ignore it.
22402
22403 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
22404
22405 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
22406 (gpt_partition_map_iterate): Support non-512B sectors.
22407
22408 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
22409
22410 * kern/efi/init.c (grub_efi_init): Disable watchdog.
22411 Tested by: Seth Goldberg.
22412
22413 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
22414
22415 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
22416 Properly align mbi.
22417 Reported by: Seth Goldberg.
22418
22419 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
22420
22421 * util/grub-mkrescue.in: Avoid module duplication.
22422
22423 2010-07-01 Sean Finney <seanius@seanius.net>
22424
22425 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
22426
22427 2010-07-01 Sean Finney <seanius@seanius.net>
22428
22429 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
22430
22431 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
22432
22433 * disk/lvm.c (grub_lvm_checkvalue): New function.
22434 (grub_lvm_check_flag): Likewise.
22435
22436 2010-07-01 Robert Millan <rmh@gnu.org>
22437
22438 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
22439 Support 'p' as partition separator on kernel of FreeBSD (used
22440 with GPT labels).
22441 (grub_util_biosdisk_get_grub_dev): Likewise.
22442
22443 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
22444
22445 Yeeloong firmware port.
22446
22447 * boot/mips/yeeloong/fwstart.S: New file.
22448 * bus/cs5536.c (gpiodump): New const.
22449 (set_io_space): New function.
22450 (set_iod): Likewise.
22451 (set_p2d): Likewise.
22452 (grub_cs5536_init_geode): Likewise.
22453 * commands/mips/yeeloong/lsspd.c: New file.
22454 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
22455 (serial_mod_SOURCES): New variable.
22456 (serial_mod_CFLAGS): Likewise.
22457 (serial_mod_LDFLAGS): Likewise.
22458 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
22459 term/terminfo.c and term/tparm.c.
22460 (pkglib_IMAGES): Add fwstart.img.
22461 (fwstart_img_SOURCES): New variable.
22462 (fwstart_img_CFLAGS): Likewise.
22463 (fwstart_img_ASFLAGS): Likewise.
22464 (fwstart_img_LDFLAGS): Likewise.
22465 (fwstart_img_FORMAT): Likewise.
22466 (pkglib_MODULES): Add lsspd.mod.
22467 (lsspd_mod_SOURCES): New variable.
22468 (lsspd_mod_CFLAGS): Likewise.
22469 (lsspd_mod_LDFLAGS): Likewise.
22470 (pkglib_MODULES): Add halt.mod.
22471 (halt_mod_SOURCES): New variable.
22472 (halt_mod_CFLAGS): Likewise.
22473 (halt_mod_LDFLAGS): Likewise.
22474 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
22475 (serial_mod_SOURCES): Removed.
22476 (serial_mod_CFLAGS): Likewise.
22477 (serial_mod_LDFLAGS): Likewise.
22478 * disk/ata.c (check_device): New function.
22479 (grub_ata_device_initialize): Use check_device.
22480 (grub_ata_iterate): Recheck devices.
22481 (grub_ata_open): Likewise.
22482 (grub_atapi_iterate): Likewise.
22483 (grub_atapi_open): Likewise.
22484 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
22485 (GRUB_ATA_CH1_PORT1): Likewise.
22486 (GRUB_ATA_CH0_PORT2): Likewise.
22487 (GRUB_ATA_CH1_PORT2): Likewise.
22488 * include/grub/mips/loongson.h: New file.
22489 * include/grub/mips/yeeloong/ec.h: Likewise.
22490 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
22491 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
22492 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
22493 * include/grub/misc.h (grub_halt): Declare as noreturn.
22494 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
22495 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
22496 (UART_ENABLE_FIFO_TRIGGER1): New definition.
22497 (UART_ENABLE_DTRRTS): Likewise.
22498 (UART_ENABLE_MODEM): Removed.
22499 (UART_ENABLE_OUT2): New const.
22500 * include/grub/term.h (grub_term_register_input_active): New function.
22501 (grub_term_register_output_active): Likewise.
22502 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
22503 argument.
22504 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
22505 (init_pci): New function.
22506 (grub_machine_init): Execute platform init when firmware. Init serial.
22507 (grub_halt): Implement.
22508 (grub_exit): Likewise.
22509 (grub_reboot): Likewise.
22510 * term/serial.c (serial_hw_init): Update macros.
22511 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
22512 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
22513 (image_targets): New target mipsel-yeeloong-flash.
22514 (generate_image): Support IMAGE_YEELOONG_FLASH.
22515 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
22516 (grub_video_sm712_setup): Init card.
22517 (grub_video_sm712_set_palette): Removed.
22518 * video/sm712_init.c: New file.
22519
22520 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
22521
22522 * Makefile.in (install-local): Temporarily prepend $(builddir) to
22523 PATH when running help2man and then run it on the unadorned
22524 executable names, rather than passing $(builddir)/* paths to
22525 help2man. This avoids the build directory ending up in generated
22526 manual pages.
22527
22528 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
22529
22530 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
22531 to avoid accidents when debugging with 'sh -x'.
22532 * util/grub-mkrescue.in: Likewise.
22533 * util/grub.d/00_header.in: Likewise.
22534 * util/grub.d/10_hurd.in: Likewise.
22535 * util/grub.d/10_kfreebsd.in: Likewise.
22536 * util/grub.d/10_linux.in: Likewise.
22537 * util/grub.d/10_netbsd.in: Likewise.
22538 * util/grub.d/10_windows.in: Likewise.
22539 * util/grub.d/20_linux_xen.in: Likewise.
22540 * util/grub.d/30_os-prober.in: Likewise.
22541 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22542
22543 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
22544
22545 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
22546 last character in the buffer.
22547 Reported by: Vladimir Serbinenko.
22548
22549 2010-06-29 Robert Millan <rmh@gnu.org>
22550
22551 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
22552 (Command-line and menu entry commands): Document `badram' command.
22553
22554 2010-06-28 Robert Millan <rmh@gnu.org>
22555
22556 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
22557 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
22558 command using ${GRUB_BADRAM} as parameter.
22559
22560 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
22561
22562 * docs/grub.texi (Device map): New section.
22563 (Themes): New section (stub).
22564 * Makefile.in (docs/grub.info): The info documentation now builds
22565 without errors. Make sure it stays that way.
22566
22567 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
22568
22569 Use normal parser for menu entries.
22570 Reported by: Thomas Frauendorfer
22571
22572 * include/grub/parser.h (grub_parser_execute): Don't export.
22573 * normal/menu.c (grub_menu_execute_entry_real): New function.
22574 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
22575
22576 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
22577
22578 * docs/grub.texi (Embedded configuration): New section (replacing
22579 old "Preset Menu" stub).
22580 (Images): New section.
22581 (configfile): Note that any menu entries defined in `file' are shown
22582 immediately.
22583
22584 2010-06-28 Josh Triplett <josh@joshtriplett.org>
22585
22586 * mmap/i386/pc/mmap_helper.S: Set CF on return.
22587
22588 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
22589
22590 * util/grub-install.in: Add --debug-image= option.
22591
22592 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
22593
22594 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
22595 possible on Linux.
22596
22597 * util/deviceiter.c (check_device): Rename to ...
22598 (check_device_readable_unique): ... this. Update all callers.
22599 Maintain and check a list of which devices (by canonicalized name)
22600 have already been seen.
22601 (clear_seen_devices): New function.
22602 (compare_file_names) [__linux__]: New function.
22603 (grub_util_iterate_devices): Clear the list of seen devices on exit
22604 and (just in case) on entry.
22605 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
22606 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
22607 seen-devices list, superseded by general code in check_device.
22608
22609 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
22610
22611 * commands/cat.c (options): New variable.
22612 (grub_cmd_cat): Parse options. If the --dos option is given, print
22613 DOS-style "\r\n" line endings as simple newlines (Debian bug
22614 #586358).
22615 (GRUB_MOD_INIT): Use extcmd.
22616 (GRUB_MOD_FINI): Likewise.
22617 * docs/grub.texi (cat): Document --dos.
22618
22619 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
22620
22621 XEN with Linux grub-mkconfig support.
22622
22623 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
22624 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
22625 GRUB_CMDLINE_XEN_DEFAULT.
22626 * util/grub.d/20_linux_xen.in: New file.
22627
22628 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
22629
22630 Initialise VGA video on qemu ourselves.
22631
22632 * boot/i386/qemu/boot.S: Don't call 0xc000.
22633 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
22634 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
22635 (kernel_img_HEADERS): Add pci.h.
22636 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
22637 * configure.ac: Force unifont on qemu and yeeloong.
22638 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
22639 (grub_vga_palette_write): Use correct register.
22640 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
22641 Call grub_qemu_init_cirrus.
22642 * kern/i386/qemu/init.c: New file.
22643 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
22644
22645 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
22646
22647 2010-06-26 Pavel Roskin <proski@gnu.org>
22648
22649 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
22650 13.
22651
22652 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
22653
22654 * docs/grub.texi (Simple configuration): Explain that
22655 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
22656 set to `true' to disable their respective recovery entries, not
22657 merely set.
22658
22659 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
22660
22661 Make the `source' command slightly faster.
22662
22663 * normal/main.c (grub_normal_execute): Don't re-read list files when
22664 nested.
22665
22666 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
22667
22668 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
22669 field position and mask size to red fields from mode_info, not
22670 green.
22671 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
22672 Remove redundant tag->common.framebuffer_type assignment.
22673 Reported by: Seth Goldberg.
22674
22675 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
22676
22677 Sync up other versions of the Linux loader with Robert Millan's
22678 change of 2010-01-09, "Make loader output a bit more user-friendly".
22679
22680 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
22681 grub_dprintf().
22682 (grub_cmd_linux): Likewise.
22683 (grub_cmd_initrd): Likewise.
22684 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
22685 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
22686
22687 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
22688
22689 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
22690 larger than MEMORY_MAP_SIZE.
22691
22692 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
22693
22694 Fix parallel build.
22695
22696 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
22697 dependency.
22698 * script/parser.y: #include grub_script.tab.h header.
22699
22700 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
22701
22702 Support >3GiB and <16MiB RAM in i386-qemu.
22703
22704 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
22705 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
22706 (grub_lower_mem): Removed.
22707 (grub_upper_mem): Likewise.
22708 (mem_size): Made static.
22709 (above_4g): New variable.
22710 (grub_machine_mmap_init): Detect small mem_size and above_4g.
22711 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
22712 support.
22713
22714 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
22715
22716 Cirrus 5446 and Bochs video cards support.
22717
22718 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
22719 video_bochs.mod
22720 (video_cirrus_mod_SOURCES): New variable.
22721 (video_cirrus_mod_CFLAGS): Likewise.
22722 (video_cirrus_mod_LDFLAGS): Likewise.
22723 (video_bochs_mod_SOURCES): Likewise.
22724 (video_bochs_mod_CFLAGS): Likewise.
22725 (video_bochs_mod_LDFLAGS): Likewise.
22726 * include/grub/vga.h: New file.
22727 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
22728 (grub_video_fb_set_page_t): New type.
22729 (grub_video_fb_setup): New prototype.
22730 (grub_video_fb_swap_buffers): Likewise.
22731 (grub_video_fb_get_info_and_fini): Likewise.
22732 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
22733 (CRTC_DATA_PORT): Likewise.
22734 (CRTC_CURSOR): Likewise.
22735 (CRTC_CURSOR_ADDR_HIGH): Likewise.
22736 (CRTC_CURSOR_ADDR_LOW): Likewise.
22737 (CRTC_CURSOR_DISABLE): Likewise.
22738 (update_cursor): Use grub_vga_cr_write.
22739 (grub_vga_text_setcursor): Likewise.
22740 * video/bochs.c: New file.
22741 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
22742 (palette): Likewise.
22743 (palette_size): Likewise.
22744 (framebuffer): New variable.
22745 (grub_video_fb_init): Use 'framebuffer'.
22746 (grub_video_fb_fini): Likewise.
22747 (grub_video_fb_get_info): Likewise.
22748 (grub_video_fb_get_palette): Likewise.
22749 (grub_video_fb_set_palette): Likewise.
22750 (grub_video_fb_set_viewport): Likewise.
22751 (grub_video_fb_get_viewport): Likewise.
22752 (grub_video_fb_map_color): Likewise.
22753 (grub_video_fb_map_rgb): Likewise.
22754 (grub_video_fb_map_rgba): Likewise.
22755 (grub_video_fb_unmap_color): Likewise.
22756 (grub_video_fb_unmap_color_int): Likewise.
22757 (grub_video_fb_fill_rect): Likewise.
22758 (grub_video_fb_blit_bitmap): Likewise.
22759 (grub_video_fb_blit_render_target): Likewise.
22760 (grub_video_fb_scroll): Likewise.
22761 (grub_video_fb_create_render_target): Likewise.
22762 (grub_video_fb_doublebuf_blit_init): Likewise.
22763 (grub_video_fb_set_active_render_target): Handle doublebuffering.
22764 (doublebuf_pageflipping_update_screen): New function.
22765 (doublebuf_pageflipping_init): Likewise.
22766 (grub_video_fb_setup): Likewise.
22767 (grub_video_fb_swap_buffers): Likewise.
22768 (grub_video_fb_get_info_and_fini): Likewise.
22769 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
22770 All users updated.
22771 (doublebuf_pageflipping_commit): Restructured into ...
22772 (doublebuf_pageflipping_set_page): ... this.
22773 (doublebuf_pageflipping_update_screen): Removed.
22774 (doublebuf_pageflipping_init): Likewise.
22775 (double_buffering_init): Likewise.
22776 (grub_video_vbe_setup): Use grub_video_fb_setup.
22777 (grub_video_vbe_swap_buffers): Removed.
22778 (grub_video_vbe_set_active_render_target): Likewise.
22779 (grub_video_vbe_get_active_render_target): Likewise.
22780 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
22781 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
22782 grub_video_fb_set_active_render_target and
22783 grub_video_fb_get_active_render_target.
22784 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
22785 (SEQUENCER_DATA_PORT): Likewise.
22786 (MAP_MASK_REGISTER): Likewise.
22787 (CRTC_ADDR_PORT): Likewise.
22788 (CRTC_DATA_PORT): Likewise.
22789 (START_ADDR_HIGH_REGISTER): Likewise.
22790 (START_ADDR_LOW_REGISTER): Likewise.
22791 (GRAPHICS_ADDR_PORT): Likewise.
22792 (GRAPHICS_DATA_PORT): Likewise.
22793 (READ_MAP_REGISTER): Likewise.
22794 (INPUT_STATUS1_REGISTER): Likewise.
22795 (INPUT_STATUS1_VERTR_BIT): Likewise.
22796 (get_map_mask): Use grub_vga_sr_read.
22797 (set_map_mask): Use grub_vga_sr_write.
22798 (set_read_map): Use grub_vga_gr_write.
22799 (set_start_address): Use grub_vga_cr_write.
22800 * video/sm712.c (framebuffer): Remove leftover fields.
22801
22802 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
22803
22804 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
22805 setting GRUB_VIDEO_BACKEND. Make it available as a user override
22806 instead. Replace the gfxterm backend check with a check that
22807 ${GRUB_PREFIX}/video.lst is non-empty.
22808 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
22809 again.
22810 (load_video): New generated function. Call it before loading
22811 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
22812 * util/grub.d/10_linux.in (linux_entry): Call load_video.
22813 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
22814 * docs/grub.texi (Simple configuration): Document
22815 GRUB_VIDEO_BACKEND.
22816
22817 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
22818
22819 Use video functions in linux and xnu loaders.
22820
22821 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
22822 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
22823 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
22824 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
22825 loader/i386/pc/linux.c.
22826 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
22827 (find_line_len): Removed.
22828 (find_framebuf): Likewise.
22829 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
22830 * loader/i386/efi/xnu.c: Removed.
22831 * loader/i386/pc/xnu.c: Moved from here...
22832 * loader/i386/xnu.c: ...here.
22833
22834 Enable priorities in video drivers.
22835
22836 * include/grub/video.h (grub_video_adapter_prio_t): New type.
22837 (grub_video_adapter): New field prio.
22838 (grub_video_register): Respect prio when inserting.
22839 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
22840 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
22841 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
22842 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
22843 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
22844 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
22845 * video/sm712.c (grub_video_sm712_adapter): Likewise.
22846
22847 Fix SDL driver ID.
22848
22849 * include/grub/video.h (grub_video_driver_id_t): New value
22850 GRUB_VIDEO_DRIVER_SDL.
22851 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
22852
22853 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
22854
22855 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
22856 argument to printf.
22857 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
22858
22859 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
22860
22861 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
22862 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
22863
22864 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
22865
22866 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
22867 directly, and recommend grub-install instead.
22868 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
22869
22870 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
22871
22872 Fix i386-pc prefix handling with nested partitions (Debian bug
22873 #585068). Note that the case where the core image is booted using
22874 multiboot and relocated from its original location still requires
22875 more work.
22876
22877 * kern/i386/pc/init.c (make_install_device): If the prefix starts
22878 with "(,", fill the boot drive in between those two characters, but
22879 expect that a full partition specification including partition map
22880 names will follow.
22881 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
22882 specified, write a prefix without the drive name but including a
22883 full partition specification.
22884
22885 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
22886
22887 * util/grub-mkconfig.in: Ignore non-option arguments, for
22888 compatibility with older versions (before 2010-06-12) which did the
22889 same. In particular, this makes it easier to ship an update-grub
22890 wrapper which is compatible with that used with GRUB Legacy (Debian
22891 bug #586056).
22892
22893 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
22894
22895 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
22896 for manual page generation.
22897
22898 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
22899
22900 * po/POTFILES: Remove leftover commands/handler.c.
22901
22902 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
22903
22904 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
22905 left this script non-functional.
22906
22907 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
22908
22909 * docs/man/grub-emu.h2m: New file.
22910
22911 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
22912
22913 * docs/grub.texi (Commands): Document reduced command set in rescue
22914 mode.
22915 (cpuid): New section.
22916
22917 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
22918
22919 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
22920 new partition naming style.
22921 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
22922
22923 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
22924
22925 Add "-o grub.iso" like cmdline options support.
22926
22927 * util/grub-install.in: Improve cmdline option parsing.
22928 * util/grub-mkconfig.in: Likewise.
22929 * util/grub-mkrescue.in: Likewise.
22930 * util/grub-reboot.in: Likewise.
22931 * util/grub-set-default.in: Likewise.
22932 * util/i386/efi/grub-install.in: Likewise.
22933 * util/ieee1275/grub-install.in: Likewise.
22934 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22935
22936 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
22937
22938 * .bzrignore: Ignore 41_custom.
22939
22940 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
22941
22942 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
22943
22944 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
22945
22946 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
22947 prototype declarations.
22948
22949 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
22950 generating fs, partmap, and video lists.
22951 * include/grub/fs.h (grub_fs_register): Omit prototype if
22952 GRUB_LST_GENERATOR is defined.
22953 * include/grub/partition.h (grub_partition_map_register): Likewise.
22954 * include/grub/video.h (grub_video_register): Likewise.
22955
22956 2010-06-12 Javier Martín <lordhabbit@gmail.com>
22957
22958 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
22959
22960 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
22961
22962 * util/grub-mkrescue.in: Support --xorriso argument.
22963
22964 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
22965
22966 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
22967 Suggested by: Thomas Schmitt.
22968
22969 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
22970
22971 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
22972 Suggested by: Thomas Schmitt.
22973
22974 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
22975
22976 custom.cfg support.
22977
22978 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
22979 * util/grub.d/41_custom.in: New file.
22980
22981 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
22982
22983 * util/grub-mkrescue.in (make_image): Remove sh module, which has
22984 been merged back into normal.
22985
22986 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
22987
22988 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
22989 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
22990
22991 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
22992
22993 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
22994 when generating manual pages.
22995 * docs/man/grub-bin2h.h2m: New file.
22996 * docs/man/grub-editenv.h2m: New file.
22997 * docs/man/grub-fstest.h2m: New file.
22998 * docs/man/grub-install.h2m: New file.
22999 * docs/man/grub-macho2img.h2m: New file.
23000 * docs/man/grub-mkconfig.h2m: New file.
23001 * docs/man/grub-mkdevicemap.h2m: New file.
23002 * docs/man/grub-mkfont.h2m: New file.
23003 * docs/man/grub-mkimage.h2m: New file.
23004 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
23005 * docs/man/grub-mkrelpath.h2m: New file.
23006 * docs/man/grub-mkrescue.h2m: New file.
23007 * docs/man/grub-ofpathname.h2m: New file.
23008 * docs/man/grub-pe2elf.h2m: New file.
23009 * docs/man/grub-probe.h2m: New file.
23010 * docs/man/grub-reboot.h2m: New file.
23011 * docs/man/grub-script-check.h2m: New file.
23012 * docs/man/grub-set-default.h2m: New file.
23013 * docs/man/grub-setup.h2m: New file.
23014
23015 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
23016
23017 Use FOR_* macros instead of *_iterate whenever possible.
23018
23019 * commands/handler.c: Removed.
23020 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
23021 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
23022 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
23023 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
23024 (grub_probe_SOURCES): Remove kern/parser.c.
23025 (util/grub-script-check.c_DEPENDENCIES): Removed.
23026 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
23027 and grub_script_check_init.c.
23028 (grub_script_check_init.lst): Removed.
23029 (grub_script_check_init.h): Likewise.
23030 (grub_script_check_init.c): Likewise.
23031 (pkglib_MODULES): Remove handler.mod and sh.mod.
23032 (handler_mod_SOURCES): Removed.
23033 (handler_mod_CFLAGS): Likewise.
23034 (handler_mod_LDFLAGS): Likewise.
23035 (normal_mod_SOURCES): Remove normal/handler.c.
23036 Add script/main.c, script/script.c, script/execute.c,
23037 script/function.c, script/lexer.c, grub_script.tab.c
23038 and grub_script.yy.c.
23039 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
23040 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23041 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
23042 (grub_setup_SOURCES): Remove kern/parser.c.
23043 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
23044 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
23045 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
23046 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23047 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23048 (grub_setup_SOURCES): Remove kern/parser.c.
23049 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
23050 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
23051 * include/grub/command.h (grub_command_iterate): Removed.
23052 (FOR_COMMANDS): New macro.
23053 * include/grub/dl.h (grub_dl): New member next.
23054 (grub_dl_iterate): Removed.
23055 (grub_dl_head): New variable declaration.
23056 (FOR_DL_MODULES): New macro.
23057 * include/grub/fs.h: Include list.h.
23058 (grub_fs): Make next first element.
23059 (grub_fs_list): New variable declaration.
23060 (grub_fs_register): Make inline.
23061 (grub_fs_unregister): Likewise.
23062 (grub_fs_iterate): Removed.
23063 (FOR_FILESYSTEMS): New macro.
23064 * include/grub/handler.h: Removed.
23065 * include/grub/list.h (grub_list_hook_t): Removed.
23066 (grub_list_test_t): Likewise.
23067 (grub_list_pop): Likewise.
23068 (grub_list_iterate): Likewise.
23069 (grub_list_insert): Likewise.
23070 (FOR_LIST_ELEMENTS): New macro.
23071 * include/grub/parser.h (grub_parser_class): Removed.
23072 (grub_parser_register): Likewise.
23073 (grub_parser_unregister): Likewise.
23074 (grub_parser_get_current): Likewise.
23075 (grub_parser_set_current): Likewise.
23076 (grub_register_rescue_parser): Likewise.
23077 (grub_rescue_parse_line): New function.
23078 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
23079 * include/grub/script_sh.h (grub_script_function_list): New variable
23080 declaration.
23081 (FOR_SCRIPT_FUNCTIONS): New macro.
23082 (grub_script_function_iterate): Removed.
23083 (grub_normal_parse_line): New prototype.
23084 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
23085 (FOR_DISABLED_TERM_INPUTS): Likewise.
23086 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
23087 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
23088 * include/grub/video.h (grub_video_adapter): Move 'next' to first
23089 element.
23090 (grub_video_register): Inline.
23091 (grub_video_unregister): Likewise.
23092 (grub_video_adapter_list): New variable declaration.
23093 (grub_video_iterate): Removed.
23094 (FOR_VIDEO_ADAPTERS): New macro.
23095 * kern/dl.c (grub_dl_list): Removed. All users updated.
23096 (grub_dl_iterate): Removed.
23097 * kern/fs.c (grub_fs_list): Make global.
23098 (grub_fs_register): Removed.
23099 (grub_fs_unregister): Likewise.
23100 (grub_fs_iterate): Likewise.
23101 * kern/handler.c: Removed.
23102 * kern/list.c (grub_list_pop): Removed.
23103 (grub_list_iterate): Likewise.
23104 (grub_list_insert): Likewise.
23105 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
23106 (grub_prio_list_insert): Don't use grub_list_insert.
23107 * kern/main.c (grub_register_rescue_parser): Don't call
23108 grub_register_rescue_parser.
23109 * kern/parser.c (grub_parser_class): Removed.
23110 (grub_parser_execute): Use grub_rescue_parse_line.
23111 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
23112 (grub_rescue_parser): Removed.
23113 (grub_register_rescue_parser): Likewise.
23114 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
23115 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
23116 (grub_auth_check_authentication): Likewise.
23117 * normal/completion.c (iterate_command): Removed.
23118 (grub_normal_do_completion): Use FOR_COMMANDS.
23119 * normal/handler.c: Removed.
23120 * normal/main.c (read_config_file): Remove parser changing.
23121 (grub_normal_execute): Don't call read_handler_list.
23122 (grub_normal_read_line_real): Statically allocate prompt.
23123 (grub_cmdline_run): Use grub_normal_parse_line.
23124 (GRUB_MOD_FINI): Don't call free_handler_list.
23125 * normal/menu_entry.c (run): Likewise.
23126 * script/function.c (grub_script_function_list): Make global.
23127 (grub_script_function_iterate): Removed.
23128 * script/main.c (grub_normal_parse_line): Make global.
23129 (grub_sh_parser): Removed.
23130 (GRUB_MOD_INIT): Likewise.
23131 (GRUB_MOD_FINI): Likewise.
23132 * tests/lib/functional_test.c (grub_functional_test): Use
23133 FOR_LIST_ELEMENTS.
23134 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
23135 (grub_test_run): Use FOR_LIST_ELEMENTS.
23136 * tests/lib/unit_test.c (main): Likewise.
23137 * util/deviceiter.c (grub_util_iterate_devices): Don't use
23138 grub_list_pop.
23139 * util/grub-fstest.c (grub_term_input_class): Removed.
23140 (grub_term_output_class): Likewise.
23141 * util/grub-probe.c: Likewise.
23142 * util/i386/pc/grub-setup.c: Likewise.
23143 * util/sparc64/ieee1275/grub-setup.c: Likewise.
23144 * util/grub-script-check.c (main): Don't call grub_init_all and
23145 grub_fini_all.
23146 * video/video.c (grub_video_adapter_list): Make global.
23147 (grub_video_register): Removed.
23148 (grub_video_unregister): Likewise.
23149 (grub_video_iterate): Likewise.
23150
23151 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
23152
23153 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
23154 reported by Henrique Ferreiro.
23155
23156 2010-06-09 Robert Millan <rmh@gnu.org>
23157
23158 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
23159 ones, when both are available.
23160
23161 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
23162
23163 Make --version uniform and avoid hard-coded program name.
23164
23165 * util/grub-mkimage.c (main): Use `program_name' instead of
23166 hard-coded string.
23167 * util/i386/pc/grub-setup.c (main): Likewise.
23168 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
23169 * util/grub-install.in: Save the basename of $0 in $self, and use the
23170 latter in informational messages. Use the same format for --version
23171 as the binary programs.
23172 * util/grub-mkconfig.in: Likewise.
23173 * util/grub-mkrescue.in: Likewise.
23174 * util/grub-reboot.in: Likewise.
23175 * util/grub-set-default.in: Likewise.
23176 * util/i386/efi/grub-install.in: Likewise.
23177 * util/ieee1275/grub-install.in: Likewise.
23178 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
23179
23180 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
23181
23182 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
23183 embedding area. Use <= instead of == when checking for non-emptiness.
23184
23185 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
23186
23187 * configure.ac: Add `.' to the directories searched for unifont.
23188
23189 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
23190
23191 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
23192 grub_script.yy.h.
23193
23194 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
23195
23196 * docs/grub.texi (History): Expand to cover GRUB 2.
23197 (Serial terminal): Refer to `terminal_input' and `terminal_output'
23198 commands, not `terminal'.
23199 (serial): Likewise.
23200 (terminal_input): New section.
23201 (terminal_output): New section.
23202 (uppermem): New section (stub).
23203 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
23204
23205 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
23206
23207 * docs/grub.texi (Security): Menu entries are unrestricted by
23208 default, not restricted to superusers as I had previously thought.
23209 Reword to account for this.
23210
23211 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
23212
23213 * kern/emu/misc.c (device_mapper_null_log): New function.
23214 (grub_device_mapper_supported): New function.
23215 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
23216 prototype.
23217 * kern/emu/hostdisk.c (find_partition_start): Check whether
23218 device-mapper is supported before trying to use it.
23219 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
23220
23221 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
23222
23223 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
23224 (File name syntax): Likewise.
23225 (help): --all is no longer supported in GRUB 2. Be more precise
23226 about pattern matching.
23227
23228 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
23229
23230 * normal/completion.c (grub_normal_do_completion): When completing
23231 arguments to "set" and the current word contains an equals sign,
23232 skip to after the equals sign before starting completion.
23233
23234 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
23235
23236 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
23237
23238 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
23239
23240 * docs/grub.texi (Network): New section.
23241 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
23242 `(nd)' as in GRUB Legacy.
23243 (pxe_unload): New section.
23244
23245 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
23246
23247 * docs/grub.texi (Troubleshooting): `echo' is not usually available
23248 in the rescue shell, so recommend using `set' instead. Thanks,
23249 Jordan Uggla.
23250
23251 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
23252
23253 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
23254 (password): New section.
23255 (password_pbkdf2): New section.
23256 (search): New section.
23257 (Security): New section.
23258 (Troubleshooting): New section, currently very incomplete.
23259 (Invoking grub-mkpasswd-pbkdf2): New section.
23260 (Internals): New section, currently very incomplete.
23261
23262 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
23263
23264 * util/grub.d/00_header.in: Add some more quoting (of
23265 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
23266 work again.
23267 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
23268
23269 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
23270
23271 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
23272 to `count', fixing variable shadowing that broke the -c option.
23273
23274 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
23275
23276 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
23277 in case they contain spaces.
23278
23279 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
23280
23281 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
23282 "part_" to partmap module names, in line with grub-install.
23283 Reported by: Jindřich Makovička (Debian bug #584426).
23284
23285 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
23286
23287 * util/grub-mkimage.c: Make target-related error messages slightly
23288 more helpful; -O talks about "format". Explicitly point to the use
23289 of -O if no target is specified.
23290 Reported by: Didier Raboud (Debian bug #584415).
23291
23292 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
23293
23294 * INSTALL: Document several build requirements for optional features
23295 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
23296
23297 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
23298
23299 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
23300 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
23301 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
23302
23303 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
23304
23305 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
23306 Thanks to Jordan Uggla for spotting this.
23307
23308 2010-06-02 Aleš Nesrsta <starous@volny.cz>
23309
23310 Finally make USB usable.
23311
23312 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
23313 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
23314 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
23315 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
23316 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
23317 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
23318 (GRUB_OHCI_FSMPS): Likewise.
23319 (GRUB_OHCI_PERIODIC_START): Likewise.
23320 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
23321 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
23322 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
23323 (GRUB_OHCI_SET_PORT_RESET): Likewise.
23324 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
23325 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
23326 (grub_ohci_transaction): Likewise.
23327 (grub_ohci_transfer): Improve condition detection algorithms.
23328 Handle toggle property. Program the transactions correctly.
23329 Improve error handling. Various important fixups.
23330 (grub_ohci_portstatus): Put register writes in right order.
23331 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
23332 (grub_uhci_transfer): Don't show "failed" message on success.
23333 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
23334 array.
23335 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
23336 determine its size.
23337 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
23338 before initialization is completed. Use IN direction for empty
23339 transfers. Use last_trans and compute toggle.
23340 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
23341 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
23342 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
23343 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
23344 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
23345 (grub_usb_device): Increase toggle to 256.
23346 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
23347 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
23348 GRUB_USBMS_SUBCLASS_SFF8070.
23349 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
23350 (grub_scsi_inquiry): New member page and alloc_length.
23351 (grub_scsi_request_sense): New structure.
23352 (grub_scsi_request_sense_data): Likewise.
23353 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
23354 control.
23355 * disk/scsi.c (grub_scsi_request_sense): New function.
23356 (grub_scsi_test_unit_ready): Likewise.
23357 (grub_scsi_inquiry): Fill new fields.
23358 (grub_scsi_read_capacity): Likewise.
23359 (grub_scsi_read10): Add request sense at the end.
23360 (grub_scsi_read12): Likewise.
23361 (grub_scsi_write10): Likewise.
23362 (grub_scsi_write12): Likewise.
23363 (grub_scsi_open): Add Test Unit Ready.
23364 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
23365 Support additional subclasses. Con't clear halt yet. Activate the
23366 proper config. Calculate LUNs correctly.
23367 (grub_usbms_transfer): Various important fixups.
23368
23369 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
23370
23371 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
23372 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
23373 (grub_ohci_fini_hw): New function.
23374 (grub_ohci_restore_hw): Likewise.
23375 (GRUB_MOD_INIT(ohci)): Register preboot hook.
23376 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
23377 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
23378
23379 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
23380
23381 Dedicated DMA allocations.
23382
23383 * bus/pci.c (grub_memalign_dma32): New function
23384 (grub_dma_free): Likewise.
23385 (grub_dma_get_virt): Likewise.
23386 (grub_dma_get_phys): Likewise.
23387 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
23388 (grub_ohci_pci_iter): Use dma32_alloc.
23389 (grub_ohci_transfer): Likewise.
23390 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
23391 (grub_usb_bulk_readwrite): Likewise.
23392 * include/grub/pci.h: Add declarations.
23393
23394 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
23395
23396 CS5536 support.
23397
23398 * bus/cs5536.c: New file.
23399 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
23400 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
23401 (cs5536_mod_SOURCES): New variable.
23402 (cs5536_mod_CFLAGS): Likewise.
23403 (cs5536_mod_LDFLAGS): Likewise.
23404 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
23405 machine/pci.h.
23406 (kernel_img_SOURCES): Add bus/cs5536.c.
23407 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
23408 usb_keyboard.mod.
23409 (usb_mod_SOURCES): New variable.
23410 (usb_mod_CFLAGS): New variable.
23411 (usb_mod_LDFLAGS): New variable.
23412 (usbtest_mod_SOURCES): New variable.
23413 (usbtest_mod_CFLAGS): New variable.
23414 (usbtest_mod_LDFLAGS): New variable.
23415 (ohci_mod_SOURCES): New variable.
23416 (ohci_mod_CFLAGS): New variable.
23417 (ohci_mod_LDFLAGS): New variable.
23418 (usbms_mod_SOURCES): New variable.
23419 (usbms_mod_CFLAGS): New variable.
23420 (usbms_mod_LDFLAGS): New variable.
23421 (usb_keyboard_mod_SOURCES): New variable.
23422 (usb_keyboard_mod_CFLAGS): New variable.
23423 (usb_keyboard_mod_LDFLAGS): New variable.
23424 * include/grub/smbus.h: New file.
23425 * include/grub/cs5536.h: New file.
23426
23427 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
23428
23429 * util/grub.d/00_header.in: Add safety check to make sure that
23430 ${locale_dir} exists before trying to probe it.
23431
23432 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
23433
23434 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
23435 per the GNU Coding Standards; this is now too obscure to be worth
23436 documenting.
23437 (QNX): Likewise.
23438 (chainloader): Remove cross-reference to `SCO UnixWare'.
23439
23440 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
23441
23442 * docs/grub.texi (Chain-loading): New section.
23443 (DOS/Windows): New section, borrowed from GRUB Legacy with details
23444 adjusted for GRUB 2.
23445 (SCO UnixWare): Likewise.
23446 (QNX): Likewise.
23447 (chainloader): Add reference to `Block list syntax'.
23448 (drivemap): New section.
23449 (parttool): New section.
23450
23451 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
23452
23453 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
23454 the grub shell'.
23455 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
23456 (Installing GRUB using grub-install): Remove reference to the grub
23457 shell; mention `grub-mkimage' and `grub-setup' instead.
23458 (Invoking grub-install): Likewise.
23459 (Interface): Add reference to `Menu entry editor'.
23460 (serial): Remove `--device' option.
23461
23462 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
23463
23464 * docs/grub.texi (Configuration): New section, documenting
23465 configuration file generation using grub-mkconfig. I've left a slot
23466 for documenting the full shell scripting format but have not yet
23467 started on writing that up.
23468 (Invoking grub-mkconfig): New section.
23469
23470 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
23471
23472 * docs/grub.texi (direntry): Remove grub-terminfo reference.
23473 (GNU GRUB manual): Likewise.
23474 (General commands): Update description of `terminfo' for GRUB 2.
23475
23476 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
23477
23478 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
23479 (GRUB_MOD_INIT): Fix capitalisation.
23480 * docs/grub.texi (Command-line and menu entry commands): Document
23481 gettext and gptsync commands.
23482
23483 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
23484
23485 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
23486 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
23487
23488 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
23489
23490 Add btrfs probing support, currently only in the single-device case.
23491
23492 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
23493 function.
23494 (grub_guess_root_device): Call find_root_device_from_mountinfo
23495 before looking in /dev.
23496
23497 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
23498
23499 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
23500 GRUB_DISK_SIZE_UNKNOWN.
23501 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
23502
23503 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
23504
23505 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
23506 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
23507 corrupted or not synced properly.
23508
23509 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
23510
23511 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
23512 Reported by: Seth Goldberg.
23513
23514 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
23515
23516 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
23517 addition of dest.
23518 Reported by: Seth Goldberg.
23519
23520 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
23521
23522 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
23523 Reported by: Seth Goldberg.
23524
23525 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
23526
23527 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
23528 64-bit address as signed on MIPS.
23529
23530 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
23531
23532 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
23533 to the empty string.
23534
23535 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
23536
23537 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
23538
23539 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
23540 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
23541 * kern/misc.c (__enable_execute_stack): Disable on
23542 GRUB_MACHINE_EMU.
23543
23544 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
23545
23546 Make grub-probe work with symbolic links under /dev/mapper as well
23547 as with real block devices. The Linux world seems to be (at best)
23548 in transition here, and GRUB shouldn't get caught in the middle.
23549
23550 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
23551 /dev/mapper.
23552
23553 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
23554
23555 * util/grub-script-check.c (main): Ensure defined behaviour on empty
23556 input files (in which case exit zero).
23557
23558 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
23559
23560 * kern/emu/misc.c (canonicalize_file_name): realpath can still
23561 return NULL for various reasons even if it has a maximum-length
23562 buffer: for example, there might be a symlink loop, or the path
23563 might exceed PATH_MAX. If this happens, return NULL.
23564
23565 2010-05-27 Robert Millan <rmh@gnu.org>
23566
23567 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
23568 partmap module to handle cross-partmap setups.
23569 Reported by Orestes Mas. Gràcies!
23570
23571 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
23572
23573 * util/grub-mkrescue.in: Initialise override_dir rather than
23574 assuming that it's unset or empty in the environment.
23575
23576 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
23577
23578 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
23579 variable index into p_index to suppress a warning with -Wshadow.
23580
23581 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
23582
23583 * INSTALL: Added flex >= 2.5.35 requirement.
23584
23585 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
23586
23587 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
23588
23589 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
23590
23591 cmostest support.
23592
23593 * commands/i386/cmostest.c: New file.
23594 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
23595 (cmostest_mod_SOURCES): New variable.
23596 (cmostest_mod_CFLAGS): Likewise.
23597 (cmostest_mod_LDFLAGS): Likewise.
23598 * conf/i386-pc.rmk: Likewise.
23599 * docs/grub.texi (Vendor power-on keys): New section.
23600 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
23601 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
23602 and GRUB_BUTTON_CMOS_ADDRESS.
23603 * util/grub.d/00_header.in: Handle powering-on by separate button.
23604
23605 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
23606
23607 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
23608 Removed drawing_scrollbar argument. All users updated
23609 Fixes #29792.
23610 Reported by Jo Shields
23611
23612 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
23613
23614 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
23615 buffer since gfxterm handles double repaint.
23616
23617 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
23618
23619 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
23620 * term/gfxterm.c (real_scroll): Likewise.
23621
23622 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
23623
23624 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
23625 before calling BIOS.
23626
23627 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
23628
23629 * include/grub/i18n.h: Always enable grub_gettext.
23630
23631 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
23632
23633 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
23634 partition naming style.
23635
23636 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
23637
23638 * util/grub-mkconfig.in: Fix handling of -o so that it works when
23639 not the first option.
23640
23641 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
23642
23643 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
23644
23645 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
23646
23647 * util/misc.c: Move inclusion of <limits.h> to ...
23648 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
23649
23650 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
23651
23652 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
23653 Fix merge error in NetBSD code.
23654 (find_partition_start) [__NetBSD__]: Likewise.
23655
23656 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
23657
23658 Fix grub-mkrescue usage unit testing.
23659
23660 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
23661
23662 2010-05-18 Christian Franke <franke@computer.org>
23663
23664 * util/grub.d/10_windows.in: Use path names instead of
23665 drive letters to prevent warning from Cygwin 1.7.
23666 Add drivemap command to menuentry if needed.
23667
23668 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
23669
23670 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
23671 gnumach and gnumach.gz.
23672
23673 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
23674
23675 * include/grub/i18n.h (gettext): Inline instead of using #define.
23676 (grub_gettext): Likewise.
23677 (_): Likewise.
23678
23679 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
23680
23681 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
23682 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
23683 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
23684 (main): Add a slash after pkglibdirroot.
23685
23686 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
23687
23688 * util/grub-install.in: Add missing "in" keyword.
23689
23690 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
23691
23692 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
23693 Reported by: Seth Goldberg.
23694
23695 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
23696
23697 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
23698
23699 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
23700
23701 * configure.ac: Check for Linux device-mapper support.
23702
23703 * util/hostdisk.c (device_is_mapped): New function.
23704 (find_partition_start): New function, partly broken out from
23705 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
23706 device-mapper support added.
23707 (linux_find_partition): Use find_partition_start.
23708 (convert_system_partition_to_system_disk): Add `st' argument.
23709 Support Linux /dev/mapper/* devices if device-mapper support is
23710 available; only DM-RAID devices are understood at present.
23711 (find_system_device): Add `st' argument. Pass it to
23712 convert_system_partition_to_system_disk.
23713 (grub_util_biosdisk_get_grub_dev): Pass stat result to
23714 find_system_device and convert_system_partition_to_system_disk. Use
23715 find_partition_start.
23716
23717 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
23718 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
23719 * util/deviceiter.c [__linux__]: Define MINOR.
23720 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
23721 * util/mkdevicemap.c (grub_putchar): New function.
23722 (grub_getkey): New function.
23723 (grub_refresh): New function.
23724 (main): Set debug=all if -v -v is used.
23725
23726 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
23727
23728 Fix build with non-GNU libcs.
23729
23730 * util/misc.c (canonicalize_file_name): Move to ...
23731 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
23732 grub_make_system_path_relative_to_its_root.
23733
23734 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
23735
23736 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
23737 we handle finding grub-mkimage. Default to finding grub-mkimage in
23738 ${bindir} with program_transform_name applied, and provide a
23739 --grub-mkimage option to override this.
23740
23741 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
23742
23743 Remove grub-mkisofs.
23744
23745 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
23746 (grub_mkisofs_SOURCES): Removed.
23747 (grub_mkisofs_CFLAGS): Removed.
23748 * util/mkisofs/defaults.h: Removed.
23749 * util/mkisofs/eltorito.c: Likewise.
23750 * util/mkisofs/exclude.h: Likewise.
23751 * util/mkisofs/hash.c: Likewise.
23752 * util/mkisofs/include/: Likewise.
23753 * util/mkisofs/include/fctldefs.h: Likewise.
23754 * util/mkisofs/include/mconfig.h: Likewise.
23755 * util/mkisofs/include/prototyp.h: Likewise.
23756 * util/mkisofs/include/statdefs.h: Likewise.
23757 * util/mkisofs/iso9660.h: Likewise.
23758 * util/mkisofs/joliet.c: Likewise.
23759 * util/mkisofs/match.c: Likewise.
23760 * util/mkisofs/match.h: Likewise.
23761 * util/mkisofs/mkisofs.c: Likewise.
23762 * util/mkisofs/mkisofs.h: Likewise.
23763 * util/mkisofs/msdos_partition.h: Likewise.
23764 * util/mkisofs/multi.c: Likewise.
23765 * util/mkisofs/name.c: Likewise.
23766 * util/mkisofs/rock.c: Likewise.
23767 * util/mkisofs/tree.c: Likewise.
23768 * util/mkisofs/write.c: Likewise.
23769
23770 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
23771
23772 Unify grub-mkimage accross platforms.
23773
23774 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
23775 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
23776 (grub_mkelfimage_SOURCES): Removed.
23777 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
23778 (util/grub-mkimage.c_DEPENDENCIES): .. this.
23779 (bin_UTILITIES): Add grub-mkimage.
23780 (grub_mkimage_SOURCES): New variable.
23781 (kernel_img_HEADERS): Remove machine/kernel.h.
23782 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
23783 (pkglib_PROGRAMS): Add kernel.img.
23784 (kernel_img_HEADERS): Add machine/kernel.h.
23785 (kernel_img_FORMAT): Removed.
23786 (bin_UTILITIES): Remove grub-mkimage.
23787 (grub_mkimage_SOURCES): Removed.
23788 (grub_mkimage_CFLAGS): Likewise.
23789 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23790 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
23791 (pkglib_PROGRAMS): Add kernel.img.
23792 (bin_UTILITIES): Remove grub-mkimage.
23793 (grub_mkimage_SOURCES): Removed.
23794 (grub_mkimage_CFLAGS): Likewise.
23795 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23796 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
23797 (pkglib_PROGRAMS): Add kernel.img.
23798 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
23799 (pkglib_PROGRAMS): Add kernel.img.
23800 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
23801 (grub_mkimage_SOURCES): Removed.
23802 (grub_mkimage_CFLAGS): Likewise.
23803 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23804 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
23805 (pkglib_PROGRAMS): Add kernel.img.
23806 (bin_UTILITIES): Remove grub-mkimage.
23807 (grub_mkimage_SOURCES): Removed.
23808 (grub_mkimage_CFLAGS): Likewise.
23809 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23810 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
23811 (grub_mkimage_SOURCES): Removed.
23812 (grub_mkimage_CFLAGS): Likewise.
23813 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
23814 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
23815 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
23816 (grub_pe32_optional_header): ... this.
23817 (grub_pe64_optional_header): ... and this. All users updated.
23818 (GRUB_PE32_PE32_MAGIC): Split into ..
23819 (GRUB_PE32_PE32_MAGIC): .. this.
23820 (GRUB_PE32_PE64_MAGIC): .. and this.
23821 (GRUB_PE32_SIGNATURE_SIZE): New definition.
23822 * include/grub/elf.h (PT_GNU_STACK): New definition.
23823 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
23824 * include/grub/i386/efi/kernel.h: Likewise.
23825 * include/grub/i386/kernel.h: Likewise.
23826 * include/grub/i386/pc/kernel.h: Likewise.
23827 * include/grub/i386/qemu/boot.h: Likewise.
23828 * include/grub/mips/kernel.h: Likewise.
23829 * include/grub/mips/qemu-mips/kernel.h: Likewise.
23830 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
23831 * include/grub/powerpc/kernel.h: Likewise.
23832 * include/grub/sparc64/ieee1275/boot.h: Likewise.
23833 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
23834 * include/grub/sparc64/kernel.h: Likewise.
23835 * include/grub/x86_64/efi/kernel.h: Likewise.
23836 * include/grub/x86_64/kernel.h: Likewise.
23837 * include/grub/offsets.h: New file.
23838 * include/grub/kernel.h (grub_module_info): Split into ...
23839 (grub_module_info32): ... this.
23840 (grub_module_info64): ... and this.
23841 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
23842 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
23843 (grub_boot_blocklist): Moved from here ...
23844 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
23845 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
23846 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
23847 * include/grub/types.h (grub_target_to_host16): Removed.
23848 (grub_target_to_host32): Likewise.
23849 (grub_target_to_host64): Likewise.
23850 (grub_host_to_target16): Likewise.
23851 (grub_host_to_target32): Likewise.
23852 (grub_host_to_target64): Likewise.
23853 (grub_host_to_target_addr): Likewise.
23854
23855 Support grub-mkrescue for efi, coreboot and qemu.
23856
23857 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
23858 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
23859 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
23860 * util/grub-mkrawimage.c: Moved from here ...
23861 * util/grub-mkimage.c: ... here. All users updated.
23862 (ALIGN_ADDR): Use image_target.
23863 (TARGET_NO_FIELD): New const.
23864 (image_target_desc): New type.
23865 (image_targets): New array.
23866 (grub_target_to_host64): Use image_target.
23867 (grub_target_to_host32): Likewise.
23868 (grub_target_to_host16): Likewise.
23869 (grub_host_to_target64): Likewise.
23870 (grub_host_to_target32): Likewise.
23871 (grub_host_to_target16): Likewise.
23872 (grub_host_to_target_addr): Likewise.
23873 (generate_image): Handle multiimage.
23874 (main): Require -O parameter. All users updated.
23875 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
23876 util/efi/grub-mkimage.c
23877 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
23878 New option --rom-directory.
23879 Use xorriso.
23880 * util/i386/efi/grub-mkimage.c: Removed.
23881 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
23882 (grub_target_to_host32): Likewise.
23883 (grub_target_to_host64): Likewise.
23884 (grub_host_to_target16): Likewise.
23885 (grub_host_to_target32): Likewise.
23886 (grub_host_to_target64): Likewise.
23887 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
23888 (grub_target_to_host32): Likewise.
23889 (grub_target_to_host64): Likewise.
23890 (grub_host_to_target16): Likewise.
23891 (grub_host_to_target32): Likewise.
23892 (grub_host_to_target64): Likewise.
23893
23894 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
23895
23896 Source tree is reorganized for emu build.
23897
23898 * include/grub/util/console.h: Move from here...
23899 * include/grub/emu/console.h: ...to here.
23900 * include/grub/util/getroot.h: Move from here...
23901 * include/grub/emu/getroot.h: ...to here.
23902 * include/grub/util/hostdisk.h: Move from here...
23903 * include/grub/emu/hostdisk.h: ...to here.
23904 * util/console.c: Move from here...
23905 * kern/emu/console.c: ...to here.
23906 * util/getroot.c: Move from here...
23907 * kern/emu/getroot.c: ...to here.
23908 * util/grub-emu.c: Move from here...
23909 * kern/emu/main.c: ...to here.
23910 * util/hostdisk.c: Move from here...
23911 * kern/emu/hostdisk.c: ...to here.
23912 * util/hostfs.c: Move from here...
23913 * kern/emu/hostfs.c: ...to here.
23914 * util/mm.c: Move from here...
23915 * kern/emu/mm.c: ...to here.
23916 * util/pci.c: Move from here...
23917 * bus/emu/pci.c: ...to here.
23918 * util/sdl.c: Move from here...
23919 * video/emu/sdl.c: ...to here.
23920 * util/time.c: Move from here...
23921 * kern/emu/time.c: ...to here.
23922 * util/usb.c: Move from here...
23923 * bus/usb/emu/usb.c: ...to here.
23924
23925 * include/grub/emu/misc.h: New header for grub-emu functions.
23926 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
23927
23928 * conf/any-emu.rmk: Rule updates for above renames.
23929 * conf/common.rmk: Likewise.
23930 * conf/i386-pc.rmk: Likewise.
23931 * conf/i386-qemu.rmk: Likewise.
23932 * conf/mips.rmk: Likewise.
23933 * conf/sparc64-ieee1275.rmk: Likewise.
23934 * conf/x86-efi.rmk: Likewise.
23935
23936 * disk/lvm.h: #include updates for above renames.
23937 * util/grub-mkrelpath.c: Likewise.
23938 * util/grub-probe.c: Likewise.
23939 * util/i386/pc/grub-setup.c: Likewise.
23940 * util/sparc64/ieee1275/grub-setup.c: Likewise.
23941 * kern/emu/console.c: Likewise.
23942 * kern/emu/getroot.c: Likewise.
23943 * kern/emu/hostdisk.c: Likewise.
23944 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
23945
23946 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
23947 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
23948 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
23949 * util/misc.c: Remove grub-emu functions.
23950
23951 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
23952
23953 Fix gfxmenu crash.
23954 Reported by: Thorsten Grützmacher.
23955
23956 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
23957 timeout hook.
23958 (circprog_set_property): Register and unregister timeout hook.
23959 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
23960 (label_destroy): Free template. and unregister hook.
23961 (label_set_state): New function.
23962 (label_set_property): Handle templates and hooks.
23963 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
23964 timeout hook.
23965 (progress_bar_set_property): Register and unregister timeout hook.
23966 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
23967 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
23968 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
23969 (update_timeout_visit): Removed.
23970 (update_timeouts): New function.
23971 (redraw_timeouts): Likewise.
23972 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
23973 (grub_gfxmenu_clear_timeout): Likewise.
23974 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
23975 (grub_gfxmenu_timeout_notify): Likewise.
23976 (grub_gfxmenu_timeout_notifications): New external variable.
23977 (grub_gfxmenu_timeout_register): New function.
23978 (grub_gfxmenu_timeout_unregister): Likewise.
23979
23980 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
23981
23982 Transform (broken) vga terminal into (working) vga video driver.
23983
23984 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
23985 video/i386/pc/vga.c.
23986 * include/grub/video.h (grub_video_driver_id):
23987 Add GRUB_VIDEO_DRIVER_VGA.
23988 * term/i386/pc/vga.c: Renamed to ...
23989 * video/i386/pc/vga.c: ...this
23990 (DEBUG_VGA): Removed.
23991 (CHAR_WIDTH): Likewise.
23992 (CHAR_HEIGHT): Likewise.
23993 (TEXT_WIDTH): Likewise.
23994 (TEXT_HEIGHT): Likewise.
23995 (DEFAULT_FG_COLOR): Likewise.
23996 (DEFAULT_BG_COLOR): Likewise.
23997 (colored_char): Likewise.
23998 (xpos): Likewise.
23999 (ypos): Likewise.
24000 (cursor_state): Likewise.
24001 (fg_color): Likewise.
24002 (bg_color): Likewise.
24003 (text_buf): Likewise.
24004 (page): Likewise.
24005 (font): Likewise.
24006 (framebuffer): New variable.
24007 (set_read_map): Disabled.
24008 (setup): New variable.
24009 (is_target): Likewise.
24010 (grub_vga_mod_init): Likewise.
24011 (grub_vga_mod_fini): Likewise.
24012 (check_vga_mem): Likewise.
24013 (write_char): Likewise.
24014 (write_cursor): Likewise.
24015 (scroll_up): Likewise.
24016 (grub_vga_putchar): Likewise.
24017 (grub_vga_getcharwidth): Likewise.
24018 (grub_vga_getwh): Likewise.
24019 (grub_vga_getxy): Likewise.
24020 (grub_vga_gotoxy): Likewise.
24021 (grub_vga_cls): Likewise.
24022 (grub_vga_setcolorstate): Likewise.
24023 (grub_vga_setcursor): Likewise.
24024 (grub_video_vga_init): New function.
24025 (grub_video_vga_setup): Likewise.
24026 (grub_video_vga_fini): Likewise.
24027 (update_target): Likewise.
24028 (grub_video_vga_blit_bitmap): Likewise.
24029 (grub_video_vga_blit_render_target): Likewise.
24030 (grub_video_vga_set_active_render_target): Likewise.
24031 (grub_video_vga_get_active_render_target): Likewise.
24032 (grub_video_vga_swap_buffers): Likewise.
24033 (grub_video_vga_set_palette): Likewise.
24034 (grub_video_vga_get_info_and_fini): Likewise.
24035 (grub_vga_term): Removed.
24036 (grub_video_vga_adapter): New variable.
24037 (GRUB_MOD_INIT): Register a video driver instead of terminal.
24038 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
24039
24040 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
24041
24042 * video/readers/jpeg.c: Indented.
24043
24044 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
24045
24046 Various jpeg cleanups.
24047
24048 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
24049 (grub_jpeg_decode_quan_table): Use sizeof.
24050 (grub_jpeg_decode_du): Use ARRAY_SIZE.
24051
24052 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
24053
24054 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
24055 tables. Ignore non-last ac bit.
24056 (grub_jpeg_decode_quan_table): Likewise.
24057
24058 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
24059
24060 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
24061 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
24062 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24063 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
24064 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
24065 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
24066
24067 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
24068
24069 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
24070 error.
24071
24072 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
24073
24074 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
24075
24076 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
24077
24078 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
24079 condition.
24080
24081 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
24082
24083 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
24084 part.
24085
24086 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
24087
24088 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
24089 pointers.
24090
24091 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
24092
24093 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
24094
24095 2010-05-01 Christian Franke <franke@computer.org>
24096
24097 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
24098 Remove broken Cygwin path conversion.
24099 * util/misc.c: [__CYGWIN__] Add include and define.
24100 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
24101 for Cygwin 1.7.
24102 (make_system_path_relative_to_its_root): Simplify loop, replace early
24103 return by break.
24104 [__CYGWIN__] Add conversion to win32 path.
24105 Include "/" case in trailing slash removal.
24106
24107 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24108
24109 * kern/main.c (grub_load_config): Fix copy-pasted comment.
24110 Reported by: Seth Goldberg
24111
24112 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24113
24114 * commands/help.c (grub_cmd_help): Fix a typo.
24115 Reported by: Seth Goldberg
24116
24117 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24118
24119 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
24120 name and add N_.
24121 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
24122 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
24123 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
24124 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
24125 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
24126 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
24127 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
24128 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
24129 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
24130 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
24131 * normal/context.c (GRUB_MOD_INIT): Likewise.
24132 * normal/main.c (GRUB_MOD_INIT): Likewise.
24133 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
24134 * term/serial.c (GRUB_MOD_INIT): Likewise.
24135 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
24136
24137 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24138
24139 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
24140 extra == 0.
24141
24142 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24143
24144 * commands/iorw.c: New file.
24145 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
24146 (iorw_mod_SOURCES): New variable.
24147 (iorw_mod_CFLAGS): Likewise.
24148 (iorw_mod_LDFLAGS): Likewise.
24149
24150 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24151
24152 Hotkey support
24153
24154 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
24155 * normal/main.c (hotkey_aliases): New variable.
24156 (grub_normal_add_menu_entry): Parse "--hotkey".
24157 * normal/menu_text.c (run_menu): Handle hotkeys.
24158
24159 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24160
24161 * kern/i386/coreboot/init.c (grub_machine_init): Call
24162 grub_machine_mmap_init on qemu.
24163
24164 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24165
24166 * boot/i386/qemu/boot.S: Add a missing .code16.
24167
24168 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24169
24170 Use LBIO on coreboot.
24171
24172 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
24173 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
24174 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
24175 New declaration.
24176 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
24177 grub_machine_mmap_init on coreboot.
24178 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
24179 GRUB_LINUXBIOS_MEMBER_LINK.
24180 (grub_machine_mmap_iterate): Fix declaration.
24181 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
24182
24183 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24184
24185 Split coreboot and multiboot ports.
24186
24187 * conf/i386-multiboot.rmk: New file.
24188 * configure.ac: Add multiboot port.
24189 * include/grub/i386/multiboot/boot.h: New file.
24190 * include/grub/i386/multiboot/console.h: Likewise.
24191 * include/grub/i386/multiboot/init.h: Likewise.
24192 * include/grub/i386/multiboot/kernel.h: Likewise.
24193 * include/grub/i386/multiboot/loader.h: Likewise.
24194 * include/grub/i386/multiboot/memory.h: Likewise.
24195 * include/grub/i386/multiboot/serial.h: Likewise.
24196 * include/grub/i386/multiboot/time.h: Likewise.
24197 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
24198 * loader/multiboot.c: Likewise.
24199 * loader/multiboot_mbi2.c: Likewise.
24200 * util/grub-mkrescue.in: Generate multiboot rescue.
24201
24202 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24203
24204 * kern/parser.c (grub_parser_execute): Cope with read-only config.
24205
24206 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
24207
24208 Merge handling of input and output terminals. Fix a hang.
24209
24210 * commands/terminal.c (abstract_terminal): New struct.
24211 (handle_command): New function. Based on grub_cmd_terminal_input.
24212 (grub_cmd_terminal_input): Use handle_command.
24213 (grub_cmd_terminal_output): Use handle_command.
24214
24215 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
24216
24217 Fix comment handling.
24218
24219 * tests/grub_script_comments.in: New testcase.
24220 * conf/tests.rmk: Rules for new testcase.
24221 * script/yylex.l: Updated flex rules.
24222
24223 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
24224
24225 * docs/grub.texi (play): Document that zero pitches produce rests.
24226 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
24227 if argc is 1.
24228
24229 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
24230
24231 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
24232 autogen issues.
24233
24234 2010-04-26 Christian Franke <franke@computer.org>
24235
24236 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
24237 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
24238 (grub_get_prefix): Remove function.
24239 * util/grub-emu.c (main): Replace grub_get_prefix () call by
24240 make_system_path_relative_to_its_root ().
24241 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24242
24243 2010-04-24 Christian Franke <franke@computer.org>
24244
24245 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
24246 (kernel_img_LDFLAGS): Remove -static-libgcc.
24247
24248 2010-04-24 Christian Franke <franke@computer.org>
24249
24250 * configure.ac: Do not CHECK_BSS_START_SYMBOL
24251 and CHECK_END_SYMBOL if grub-emu is built.
24252 Unset TARGET_OBJ2ELF if grub-emu is built
24253 without module support.
24254
24255 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
24256
24257 Nilfs2 support.
24258
24259 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
24260 (grub_fstest_SOURCES): Likewise.
24261 (pkglib_MODULES): Add nilfs2.mod.
24262 (nilfs2_mod_SOURCES): New variable.
24263 (nilfs2_mod_CFLAGS): Likewise.
24264 (nilfs2_mod_LDFLAGS): Likewise.
24265 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
24266 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
24267 * fs/nilfs2.c: New file.
24268
24269 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
24270
24271 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
24272 is not supported.
24273
24274 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
24275
24276 Add grub-mkconfig support for NetBSD.
24277
24278 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
24279 * util/grub-mkconfig.in: export new NetBSD specific variables.
24280 * po/POTFILES-shell: added 10_netbsd.in.
24281 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
24282
24283 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
24284
24285 Fix emu build with grub-emu-pci and grub-emu-modules.
24286
24287 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
24288 functions.
24289 * include/grub/libpciaccess.h: New file.
24290 * conf/any-emu.rmk: Update kernel headers for emu build.
24291
24292 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
24293
24294 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
24295
24296 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
24297
24298 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
24299
24300 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
24301
24302 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
24303 Retrieve chosen/bootpath if bootpath isn't hardcoded.
24304 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
24305 util/ieee1275/ofpath.c.
24306 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
24307 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
24308 * include/grub/sparc64/ieee1275/boot.h
24309 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
24310 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
24311 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
24312 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
24313 const char *.
24314 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
24315 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
24316 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
24317 install.
24318
24319 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
24320
24321 * util/grub-mkconfig.in: Corrected two == equality tests.
24322 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
24323 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
24324 expect a number appended to it.
24325 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
24326 expects a number appended to it.
24327
24328 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
24329
24330 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
24331
24332 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
24333
24334 * util/hostdisk.c (make_device_name): Change to new partition naming.
24335
24336 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
24337
24338 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
24339
24340 2010-04-17 Christian Franke <franke@computer.org>
24341
24342 * Makefile.in: Add missing localedir setting.
24343
24344 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
24345
24346 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
24347 mistake in r2156. Noticed by Anthony Fok.
24348
24349 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
24350 @localedir@.
24351 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
24352
24353 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
24354
24355 Fix a spurious, uninitialized variable warning.
24356
24357 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
24358 Initialize variable, shdr.
24359 (grub_freebsd_load_elfmodule): Likewise.
24360 (grub_freebsd_load_elf_meta): Likewise.
24361
24362 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
24363
24364 Fix for escaped dollar in double quoted strings.
24365
24366 * script/yylex.l: Updated flex rules.
24367 * conf/tests.rmk: Rule for new testcase.
24368 * tests/grub_script_dollar.in: New testcase.
24369
24370 2010-04-13 Carles Pina i Estany <carles@pina.cat>
24371 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
24372
24373 Enclose all translated strings in grub.cfg in single quotes, and
24374 escape them appropriately (Ubuntu bug #552921).
24375
24376 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
24377 * util/grub.d/10_hurd.in: Use it.
24378 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
24379 * util/grub.d/10_linux.in (linux_entry): Likewise.
24380
24381 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
24382
24383 Fix cygwin compilation.
24384
24385 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
24386 * include/grub/misc.h (__register_frame_info)
24387 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
24388 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
24389 * kern/misc.c (__register_frame_info)
24390 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
24391 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
24392
24393 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
24394
24395 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
24396
24397 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
24398
24399 Unify libgcc processing.
24400
24401 * Makefile.in (kernel_img_LDFLAGS): New variable.
24402 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
24403 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
24404 overwriting.
24405 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
24406 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
24407 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
24408 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
24409 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
24410 overwriting. Remove -lgcc and -static-libgcc
24411 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
24412 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
24413 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
24414 (kernel_img_LDFLAGS): Append instead of overwriting.
24415 Remove -lgcc and -static-libgcc
24416 * conf/sparc64-ieee1275.rmk: Likewise.
24417 * include/grub/powerpc/libgcc.h: Move to ...
24418 * include/grub/libgcc.h: .. this.
24419 * include/grub/libgcc.h: Don't export most of the function on x86.
24420 (__bswapsi2): New export.
24421 (__bswapdi2): Likewise.
24422 * include/grub/mips/libgcc.h: Removed.
24423 * include/grub/sparc64/libgcc.h: Likewise.
24424
24425 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
24426
24427 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
24428 disk_info_msg (conflicts with gettexting into languages with cases).
24429
24430 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
24431
24432 Add grub-probe support for NetBSD.
24433
24434 * util/getroot.c (find_root_device): Convert block device to
24435 character device on NetBSD.
24436 * util/probe.c (probe): Require character device on NetBSD.
24437 * util/hostdisk.c: NetBSD specific headers.
24438 (configure_device_driver): new function to tune device driver
24439 parameters (currently only for NetBSD floppy driver).
24440 (grub_util_biosdisk_open): NetBSD specific code (get disk size
24441 via disklabel ioctl).
24442 (open_device): call configure_device_driver on NetBSD.
24443 (convert_system_partition_to_system_disk): NetBSD specific code.
24444 (device_is_wholedisk): Likewise.
24445 (grub_util_biosdisk_get_grub_dev): Likewise.
24446 (make_device_name): Fixed a typo in bsd_part_str.
24447 * configure.ac: check for opendisk() and getrawpartition() on
24448 NetBSD and set LIBUTIL.
24449 * Makefile.in: add LIBUTIL to LIBS.
24450
24451 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
24452
24453 Documentation fix.
24454
24455 * util/grub-script-check.c: Better help message.
24456
24457 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
24458
24459 Fix FreeBSD build.
24460
24461 * configure.ac: Flex version check.
24462 * conf/common.rmk: Add -Wno-error to sh.mod.
24463 * script/yylex.l: Remove all #pragma.
24464
24465 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
24466
24467 * include/grub/util/misc.h (canonicalise_file_name): Add missing
24468 prototype.
24469 Reported by: Seth Goldberg.
24470
24471 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
24472
24473 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
24474 Rename "module" to "module2".
24475 Reported by: Seth Goldberg.
24476
24477 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
24478
24479 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
24480 EXPORT_FUNC.
24481 Reported by: Seth Goldberg.
24482
24483 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
24484
24485 * lib/posix_wrap/locale.h: Add missing file.
24486 Reported by: Seth Goldberg.
24487
24488 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
24489
24490 grub-emu module load support.
24491
24492 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
24493 NO_DYNAMIC_MODULES switched to this.
24494 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
24495 (CFLAGS): Likewise.
24496 * conf/any-emu.rmk: Generate symlist.
24497 (kernel_img_HEADERS): Add util/datetime.h.
24498 (kernel_img_HEADERS) [sdl]: Add sdl.h.
24499 (kernel_img_HEADERS) [libusb]: Add libusb.h.
24500 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
24501 kern/$(target_cpu)/cache.S.
24502 * configure.ac (grub-emu-modules): New option.
24503 * genmk.rb: Handle multiple source lists.
24504 * include/grub/sdl.h: New file.
24505 * include/grub/libusb.h: Likewise.
24506 * util/grub-emu.c (main): Hanle (host) root.
24507 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
24508 GRUB_ERR_UNKNOWN_DEVICE.
24509 * util/misc.c: Move mm functions to ...
24510 * util/mm.c: ... here. All users updated.
24511
24512 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24513
24514 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
24515 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
24516 missing files.
24517 (maintainer-clean): Remove libgcrypt-grub.
24518
24519 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24520
24521 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
24522
24523 2010-04-09 EFI Coder <eficoder@hotmail.com>
24524
24525 * normal/menu_text.c (print_message): Clean up the message and show
24526 the Fn information when on EFI
24527 * term/efi/console.c (grub_console_checkkey): Add F4 support.
24528
24529 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24530
24531 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
24532 All users updated.
24533 * normal/crypto.c (read_crypto_list): Likewise.
24534 * normal/dyncmd.c (read_command_list): Likewise.
24535 * normal/term.c (read_terminal_list): Likewise.
24536 * normal/main.c (read_lists): Use explicit prefix.
24537 (read_lists_hook): Use read_lists.
24538 (grub_normal_execute): Likewise.
24539
24540 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24541
24542 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
24543 Reported by: Thomas Schmitt.
24544 Add -no-emul-boot to grub-mkisofs parameters.
24545
24546 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24547
24548 * font/font.c: Indented.
24549
24550 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
24551
24552 Elif support to GRUB script (by Deepak Vankadaru).
24553
24554 * tests/grub_script_if.in: New testcase.
24555 * conf/tests.rmk: Rule for new testcase.
24556 * script/parser.y: Grammar rules for elif.
24557
24558 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
24559
24560 While and until loops support to GRUB script.
24561
24562 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
24563 (grub_script_create_cmdwhile): New function prototype.
24564 (grub_script_execute_cmdwhile): New function prototype.
24565 * script/execute.c (grub_script_execute_cmdwhile): New function.
24566 * script/parser.y (command): New commands.
24567 (whilecmd): New grammar rule.
24568 (untilcmd): New grammar rule.
24569 * script/script.c (grub_script_create_cmdwhile): New function.
24570 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
24571 function.
24572
24573 * tests/grub_script_while1.in: New testcase.
24574 * conf/tests.rmk: Rule for new testcase.
24575
24576 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24577
24578 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
24579 as *.jpg.
24580
24581 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
24582
24583 GRUB_BACKGROUND support.
24584
24585 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
24586 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
24587
24588 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24589
24590 Load fonts and modules for gfxmenu in grub-mkconfig.
24591 Idea by: Mario Vazquez
24592
24593 * util/grub.d/00_header.in: Load pf2 and image modules.
24594
24595 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24596
24597 grub-mkconfig multiple terminal support.
24598
24599 * util/grub-mkconfig.in: Handle multiple terminals correctly.
24600 * util/grub.d/00_header.in: Likewise.
24601
24602 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
24603
24604 * Makefile.in: Specify files explicitly instead of using $< and $@ since
24605 we use cd $(srcdir).
24606
24607 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
24608
24609 * util/grub.d/10_linux.in: Only use the first word of
24610 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
24611 spaces in GRUB_DISTRIBUTOR.
24612 * util/grub.d/10_kfreebsd.in: Likewise.
24613 * util/grub.d/10_hurd.in: Likewise.
24614
24615 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
24616
24617 Fix unit testing framework for Qemu 0.12.
24618
24619 * tests/util/grub-shell.in: Remove -serial stdio option.
24620
24621 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
24622
24623 POSIX header file wrappers.
24624
24625 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
24626 equivalents.
24627 * lib/posix_wrap/ctype.h: Likewise.
24628 * lib/posix_wrap/errno.h: Likewise.
24629 * lib/posix_wrap/langinfo.h: Likewise.
24630 * lib/posix_wrap/limits.h: Likewise.
24631 * lib/posix_wrap/localcharset.h: Likewise.
24632 * lib/posix_wrap/stdint.h: Likewise.
24633 * lib/posix_wrap/stdio.h: Likewise.
24634 * lib/posix_wrap/stdlib.h: Likewise.
24635 * lib/posix_wrap/string.h: Likewise.
24636 * lib/posix_wrap/sys/types.h: Likewise.
24637 * lib/posix_wrap/unistd.h: Likewise.
24638 * lib/posix_wrap/wchar.h: Likewise.
24639 * lib/posix_wrap/wctype.h: Likewise.
24640 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
24641 (grub_script.yy.h): Likewise.
24642 * script/yylex.l: Remove POSIX emulation #defines.
24643 * Makefile.in (POSIX_CFLAGS): New variable.
24644 (GNULIB_UTIL_CFLAGS): Likewise.
24645
24646 Regexp support.
24647
24648 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
24649 (regexp_mod_SOURCES): New variable.
24650 (regexp_mod_CFLAGS): Likewise.
24651 (regexp_mod_LDFLAGS): Likewise.
24652 * commands/regexp.c: New file.
24653 * gnulib/regcomp.c: New file. Imported from gnulib.
24654 * gnulib/regex.c: Likewise.
24655 * gnulib/regex_internal.c: Likewise.
24656 * gnulib/regex_internal.h: Likewise.
24657 * gnulib/regexec.c: Likewise.
24658 * gnulib/regex.h: Likewise.
24659
24660 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
24661
24662 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
24663 unsupported video mode types.
24664
24665 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
24666
24667 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
24668
24669 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
24670
24671 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
24672 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
24673
24674 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
24675
24676 Remove unused grub_vga_get_font.
24677
24678 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
24679 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
24680
24681 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
24682
24683 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
24684 * include/grub/misc.h: Likewise.
24685
24686 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
24687
24688 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
24689 for which failure is fatal.
24690
24691 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
24692
24693 * util/grub-install.in: Use mkdir -p to create grub directory.
24694 * util/i386/efi/grub-install.in: Likewise.
24695 * util/ieee1275/grub-install.in: Likewise.
24696
24697 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
24698
24699 * Makefile.in (LEX): new variable.
24700
24701 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
24702
24703 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
24704 `=' and added double quotes on operands of this equality test.
24705
24706 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
24707
24708 * Makefile.in (uninstall): Remove a leftover debug echo.
24709 Reported by: Grégoire Sutre
24710
24711 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
24712
24713 MIPS multiboot2 support.
24714
24715 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
24716 (multiboot2_mod_SOURCES): New variable.
24717 (multiboot2_mod_CFLAGS): Likewise.
24718 (multiboot2_mod_LDFLAGS): Likewise.
24719 (multiboot2_mod_ASFLAGS): Likewise.
24720 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
24721 definition.
24722 (MULTIBOOT_ENTRY_REGISTER): Likewise.
24723 (MULTIBOOT_MBI_REGISTER): Likewise.
24724 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
24725 (MULTIBOOT_ELF32_MACHINE): Likewise.
24726 (MULTIBOOT_ELF64_MACHINE): Likewise.
24727 * include/grub/mips/multiboot.h: New file.
24728 * include/grub/video.h (grub_video_driver_id): New type
24729 GRUB_VIDEO_DRIVER_SM712.
24730 (grub_video_get_info_and_fini): Export.
24731 (grub_video_get_palette): Likewise.
24732 (grub_video_get_driver_id): Likewise.
24733 * include/multiboot2.h: Resynced with spec.
24734 * loader/i386/multiboot.c: Moved from here ...
24735 * loader/multiboot.c: ... here. All users updated.
24736 (grub_multiboot_boot): Use platform-specific macros.
24737 * loader/i386/multiboot_elfxx.c: Moved from here ...
24738 * loader/multiboot_elfxx.c: ... here. All users updated.
24739 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
24740 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
24741 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
24742
24743 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
24744
24745 Import gnulib argp module.
24746
24747 * gnulib/argp-ba.c: New file.
24748 * gnulib/argp-eexst.c: Likewise.
24749 * gnulib/argp-fmtstream.c: Likewise.
24750 * gnulib/argp-fmtstream.h: Likewise.
24751 * gnulib/argp-fs-xinl.c: Likewise.
24752 * gnulib/argp-help.c: Likewise.
24753 * gnulib/argp-namefrob.h: Likewise.
24754 * gnulib/argp-parse.c: Likewise.
24755 * gnulib/argp-pin.c: Likewise.
24756 * gnulib/argp-pv.c: Likewise.
24757 * gnulib/argp-pvh.c: Likewise.
24758 * gnulib/argp-version-etc.c: Likewise.
24759 * gnulib/argp-version-etc.h: Likewise.
24760 * gnulib/argp-xinl.c: Likewise.
24761 * gnulib/argp.h: Likewise.
24762
24763 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
24764
24765 * kern/device.c (grub_device_iterate): Clear errors after failed
24766 opening device.
24767
24768 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
24769
24770 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
24771 returned by firmware.
24772
24773 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
24774
24775 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
24776 compilation on coreboot and qemu
24777
24778 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
24779
24780 * include/multiboot2.h: Resync with spec.
24781
24782 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
24783
24784 Multiboot2 tag support
24785
24786 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
24787 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
24788 Remove loader/multiboot_loader.c.
24789 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
24790 (grub_multiboot2_real_boot): Likewise.
24791 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
24792 (grub_get_multiboot_mmap_count): New proto.
24793 (grub_fill_multiboot_mmap): Likewise.
24794 (grub_multiboot_set_video_mode): Likewise.
24795 (grub_multiboot_set_console): Likewise.
24796 (grub_multiboot_load): Likewise.
24797 (grub_multiboot_load_elf): Likewise.
24798 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
24799 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
24800 * include/multiboot.h: Resynced with specification.
24801 * include/multiboot2.h: Resynced with specification.
24802 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
24803 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
24804 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
24805 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
24806 users updated.
24807 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
24808 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
24809 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
24810 Removed.
24811 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
24812 Moved from here...
24813 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
24814 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
24815 Moved from here...
24816 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
24817 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
24818 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
24819 All users updated.
24820 * loader/i386/multiboot_mbi2.c: New file.
24821
24822 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
24823
24824 Resync with gnulib.
24825
24826 * Makefile.in (GNULIB_CFLAGS): New variable.
24827 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
24828 (grub_script_check_CFLAGS): New variable.
24829 * gnulib/alloca.h: Resync with gnulib.
24830 * gnulib/error.c: Likewise.
24831 * gnulib/error.h: Likewise.
24832 * gnulib/fnmatch.c: Likewise.
24833 * gnulib/fnmatch_loop.c: Likewise.
24834 * gnulib/getdelim.c: Likewise.
24835 * gnulib/getline.c: Likewise.
24836 * gnulib/getopt.c: Likewise.
24837 * gnulib/getopt1.c: Likewise.
24838 * gnulib/getopt_int.h: Likewise.
24839 * gnulib/gettext.h: Likewise.
24840 * gnulib/progname.c: Likewise.
24841 * gnulib/progname.h: Likewise.
24842
24843 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
24844
24845 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
24846 which is the case with --disabled-nls.
24847
24848 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
24849 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
24850 * util/misc.c: Likewise.
24851 * util/mkisofs/mkisofs.c: Likewise.
24852 * util/mkisofs/mkisofs.h: Likewise.
24853
24854 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
24855
24856 Simplify Apple CC support.
24857
24858 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
24859 Add 0 byte at the end not to have a symbol with empty target.
24860 * mmap/i386/pc/mmap_helper.S: Likewise.
24861 * genmk.rb: Ignore errors 2030 and 2050.
24862 * kern/i386/pc/startup.S: Use LOCAL when possible.
24863
24864 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
24865
24866 Testcase and the fix for final semicolon on cmdline.
24867
24868 * tests/grub_script_final_semicolon.in: New testcase.
24869 * conf/tests.rmk: Rules for the new testcase.
24870 * script/parser.y: Grammar fix.
24871
24872 2010-03-26 BVK Chaitanya <bvk@localhost>
24873
24874 Blank lines testcase for GRUB script.
24875
24876 * tests/grub_script_blanklines.in: New testcase.
24877 * conf/tests.rmk: Rules for the new testcase.
24878
24879 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
24880
24881 Don't use __FILE__.
24882
24883 * genmk.rb: Add -DGRUB_FILE to all C targets.
24884 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
24885 * include/grub/list.h: Likewise.
24886 * include/grub/misc.h: Likewise.
24887 * include/grub/mm.h: Likewise.
24888 * include/grub/test.h: Likewise.
24889 * kern/mm.c: Likewise.
24890 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
24891
24892 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
24893
24894 Sunpc partitions support.
24895
24896 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
24897 (grub_fstest_SOURCES): Likewise.
24898 (pkglib_MODULES): Add part_sunpc.mod.
24899 (part_sunpc_mod_SOURCES): New variable.
24900 (part_sunpc_mod_CFLAGS): Likewise.
24901 (part_sunpc_mod_LDFLAGS): Likewise.
24902 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
24903 * partmap/sunpc.c: New file.
24904
24905 2010-03-26 BVK Chaitanya <bvk@localhost>
24906
24907 For loop support to GRUB script.
24908
24909 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
24910 (grub_script_create_cmdfor): New function prototype.
24911 (grub_script_execute_cmdfor): New function prototype.
24912 * script/execute.c (grub_script_execute_cmdfor): New function.
24913 * script/parser.y (command): New for command.
24914 (forcmd): New grammar rule.
24915 * script/script.c (grub_script_create_cmdfor): New function.
24916 * util/grub-script-check.c (grub_script_execute_cmdfor): New
24917 function.
24918 * tests/grub_script_for1.in: New testcase.
24919 * conf/tests.rmk: Rules for new testcase.
24920
24921 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
24922
24923 Nested partitions
24924
24925 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
24926 'partition' is NULL, grub_partition_get_start already does that.
24927 * commands/loadenv.c (check_blocklists): Likewise.
24928 (write_blocklists): Likewise.
24929 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
24930 (grub_fstest_SOURCES): Likewise.
24931 (pkglib_MODULES): Add part_bsd.mod.
24932 (part_bsd_mod_SOURCES): New variable.
24933 (part_bsd_mod_CFLAGS): Likewise.
24934 (part_bsd_mod_LDFLAGS): Likewise.
24935 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
24936 (grub_emu_SOURCES): Likewise.
24937 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24938 * include/grub/bsdlabel.h: New file.
24939 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
24940 'get_name'.
24941 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
24942 (grub_partition_map_list): New variable.
24943 (grub_partition_map_register): Inline.
24944 (grub_partition_map_unregister): Likewise.
24945 (FOR_PARTITION_MAPS): New macro.
24946 (grub_partition_map_iterate): Removed.
24947 (grub_partition_get_start): Handle nested partitions.
24948 * include/grub/msdos_partition.h: Remove bsd-related entries.
24949 (grub_pc_partition): Remove.
24950 * kern/disk.c (grub_disk_close): Free partition data.
24951 (grub_disk_adjust_range): Handle nested partitions.
24952 * kern/partition.c (grub_partition_map_probe): New function.
24953 (grub_partition_probe): Parse name to number, handle subpartitions.
24954 (get_partmap): New function.
24955 (grub_partition_iterate): Handle subpartitions.
24956 (grub_partition_get_name): Likewise.
24957 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
24958 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
24959 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
24960 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
24961 Set 'number'.
24962 (acorn_partition_map_probe): Remove.
24963 (acorn_partition_map_get_name): Likewise.
24964 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
24965 Set 'number'.
24966 Set 'index' to 0 since there can be only one partition entry per sector.
24967 (amiga_partition_map_probe): Remove.
24968 (amiga_partition_map_get_name): Likewise.
24969 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
24970 Set 'number'.
24971 Set 'offset' and 'index' to real positions of partitions.
24972 (apple_partition_map_probe): Remove.
24973 (apple_partition_map_get_name): Likewise.
24974 * partmap/bsdlabel.c: New file.
24975 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
24976 Set 'number'.
24977 Allocate 'data' so it can be correctly freed.
24978 Set 'index' to offset inside sector.
24979 (gpt_partition_map_probe): Remove.
24980 (gpt_partition_map_get_name): Likewise.
24981 * partmap/msdos.c (grub_partition_parse): Remove.
24982 (pc_partition_map_iterate): Don't force raw access.
24983 Set 'number'.
24984 Make 'ext_offset' a local variable.
24985 (pc_partition_map_probe): Remove.
24986 (pc_partition_map_get_name): Remove.
24987 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
24988 Set 'number'.
24989 (sun_partition_map_probe): Remove.
24990 (sun_partition_map_get_name): Likewise.
24991 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
24992 (grub_pcpart_type): Likewise.
24993 * util/hostdisk.c (open_device): Handle new numbering scheme.
24994 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
24995 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
24996 * util/grub-probe.c (probe_partmap): Handle nested paritions.
24997 * util/grub-install.in: Insert all subpartition modules.
24998 * util/ieee1275/grub-install.in: Likewise.
24999
25000 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
25001
25002 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
25003 grammar.
25004
25005 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
25006
25007 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
25008
25009 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
25010
25011 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
25012 match where 'make install' puts them.
25013 * util/i386/efi/grub-install.in: Likewise.
25014
25015 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
25016
25017 * .bzrignore: Add gentrigtables, grub-script-check,
25018 grub_script_check_init.c, grub_script_check_init.h, and
25019 trigtables.c.
25020
25021 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
25022
25023 * kern/parser.c: Indented.
25024
25025 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
25026
25027 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
25028
25029 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
25030
25031 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
25032 alpha_mask_size == 0 case.
25033
25034 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
25035
25036 GRUB shell lexer and parser improvements.
25037
25038 * conf/any-emu.rmk: Build rule updates.
25039 * conf/common.rmk: Likewise.
25040 * conf/i386-coreboot.rmk: Likewise.
25041 * conf/i386-efi.rmk: Likewise.
25042 * conf/i386-ieee1275.rmk: Likewise.
25043 * conf/i386-pc.rmk: Likewise.
25044 * conf/powerpc-ieee1275.rmk: Likewise.
25045 * conf/x86_64-efi.rmk: Likewise.
25046
25047 * configure.ac: Configure check for flex.
25048
25049 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
25050 types.
25051 (grub_lexer_param): Struct member updates.
25052 (grub_parser_param): Likewise.
25053 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
25054 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
25055 (grub_script_lexer_init): Prototype update.
25056 (grub_script_lexer_record_start): Likewise.
25057 (grub_script_lexer_record_stop): Likewise.
25058 (grub_script_lexer_yywrap): New function prototype.
25059 (grub_script_lexer_fini): Likewise.
25060 (grub_script_execute_argument_to_string): Removed by...
25061 (grub_script_execute_argument_to_argv): ...better version.
25062
25063 * script/execute.c (ROUND_UPTO): New macro.
25064 (grub_script_execute_cmdline): Out of memory fixes.
25065 (grub_script_execute_menuentry): Likewise.
25066 (grub_script_execute_argument_to_string): Removed. Update all
25067 users by...
25068 (grub_script_execute_argument_to_argv): ...better version.
25069 * script/function.c (grub_script_function_create): Use
25070 grub_script_execute_argument_to_argv instead of
25071 grub_script_execute_argument_to_string.
25072
25073 * script/lexer.c (check_varstate): Removed.
25074 (check_textstate): Removed.
25075 (grub_script_lexer_record_start): Likewise.
25076 (grub_script_lexer_record_stop): Likewise.
25077 (recordchar): Replaced with...
25078 (grub_script_lexer_record): ...new function.
25079 (nextchar): Removed.
25080 (grub_script_lexer_init): Rewritten.
25081 (grub_script_yylex): Rewritten.
25082 (append_newline): New function.
25083 (grub_script_lexer_yywrap): New function.
25084 (grub_script_lexer_fini): New function.
25085 (grub_script_yyerror): Sets error flag.
25086
25087 * script/yylex.l: New file.
25088 (grub_lexer_yyfree): Wrapper for flex yyffre.
25089 (grub_lexer_yyalloc): Likewise.
25090 (grub_lexer_yyrealloc): Likewise.
25091 * script/parser.y: Refactored.
25092
25093 * script/script.c (grub_script_arg_add): Out of memory fixes.
25094 (grub_script_add_arglist): Likewise.
25095 (grub_script_create_cmdline): Likewise.
25096 (grub_script_create_cmdmenu): Likewise.
25097 (grub_script_add_cmd): Likewise.
25098 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
25099 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
25100 unnecessary code.
25101
25102 * tests/grub_script_echo1.in: New testcase.
25103 * tests/grub_script_vars1.in: New testcase.
25104 * tests/grub_script_echo_keywords.in: New testcase.
25105
25106 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
25107
25108 Remove some redundancy in build system.
25109
25110 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
25111 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
25112 (TARGET_LDFLAGS): Add -nostdlib.
25113 (TARGET_IMG_LDFLAGS): Likewise.
25114 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
25115 anything since mmap isn't available.
25116 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
25117 Add util/time.c.
25118 (pkglib_MODULES): Remove reboot.mod.
25119 (reboot_mod_SOURCES): Removed.
25120 (reboot_mod_CFLAGS): Likewise.
25121 (reboot_mod_LDFLAGS): Likewise.
25122 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
25123 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
25124 (DEFSYMFILES): Add kernel_syms.lst.
25125 (kernel_img_HEADERS): Add common headers.
25126 (symlist.c): New target.
25127 (kernel_syms.lst): Likewise.
25128 (pkglib_MODULES): Add memdisk.mod.
25129 (memdisk_mod_SOURCES): New variable.
25130 (memdisk_mod_CFLAGS): Likewise.
25131 (memdisk_mod_LDFLAGS): Likewise.
25132 (pkglib_MODULES): Add reboot.mod.
25133 (reboot_mod_SOURCES): New variable.
25134 (reboot_mod_CFLAGS): Likewise.
25135 (reboot_mod_LDFLAGS): Likewise.
25136 (pkglib_MODULES): Add date.mod.
25137 (date_mod_SOURCES): New variable.
25138 (date_mod_CFLAGS): Likewise.
25139 (date_mod_LDFLAGS): Likewise.
25140 (pkglib_MODULES): Add datehook.mod.
25141 (datehook_mod_SOURCES): New variable.
25142 (datehook_mod_CFLAGS): Likewise.
25143 (datehook_mod_LDFLAGS): Likewise.
25144 (pkglib_MODULES): Add lsmmap.mod.
25145 (lsmmap_mod_SOURCES): New variable.
25146 (lsmmap_mod_CFLAGS): Likewise.
25147 (lsmmap_mod_LDFLAGS): Likewise.
25148 (pkglib_MODULES): Add boot.mod.
25149 (boot_mod_SOURCES): New variable.
25150 (boot_mod_CFLAGS): Likewise.
25151 (boot_mod_LDFLAGS): Likewise.
25152 * conf/i386-coreboot.rmk: Removed redundant parts.
25153 * conf/i386-ieee1275.rmk: Likewise.
25154 * conf/i386-pc.rmk: Likewise.
25155 * conf/mips-yeeloong.rmk: Likewise.
25156 * conf/mips.rmk: Likewise.
25157 * conf/powerpc-ieee1275.rmk: Likewise.
25158 * conf/sparc64-ieee1275.rmk: Likewise.
25159 * conf/x86_64-efi.rmk: Likewise.
25160 * conf/i386-coreboot.rmk: Moved qemu parts ..
25161 * conf/i386-qemu.rmk: ... here
25162 * conf/i386-efi.rmk: Moved common parts to...
25163 * conf/x86-efi.rmk: ... here.
25164 * conf/i386.rmk: Added modules common to all x86 variants.
25165 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
25166 * disk/memdisk.c: Remove grub/machine/kernel.h.
25167 * gensymlist.sh.in: Include symbol.h.
25168 * hook/datehook.c: Correct module name.
25169 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
25170 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
25171 * include/grub/i386/efi/serial.h: New file.
25172 * include/grub/x86_64/efi/serial.h: Likewise.
25173 * util/time.c: Likewise.
25174 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
25175
25176 2010-03-14 Colin King <colin.king@ubuntu.com>
25177 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
25178
25179 Shrink the pre-partition-table part of boot.img by eight bytes.
25180
25181 * boot/i386/pc/boot.S (ERR): New macro.
25182 (chs_mode): Use ERR.
25183 (geometry_error): Likewise.
25184 (hd_probe_error): Remove. This is only used once, so we wrwite
25185 it inline instead.
25186 (read_error): Instead of printing read_error_string, just set up
25187 %si and fall through to ...
25188 (error_message): ... this new function, also used by ERR.
25189
25190 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
25191
25192 Speed up consecutive hostdisk operations on the same device.
25193
25194 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
25195 (grub_util_biosdisk_open): Initialise disk->data.
25196 (struct linux_partition_cache): New structure.
25197 (linux_find_partition): Cache partition start positions; these are
25198 expensive to compute on every read and write.
25199 (open_device): Cache open file descriptor in disk->data, so that we
25200 don't have to reopen it and flush the buffer cache for consecutive
25201 operations on the same device.
25202 (grub_util_biosdisk_close): New function.
25203 (grub_util_biosdisk_dev): Set `close' member.
25204
25205 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
25206 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
25207 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
25208 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
25209 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
25210
25211 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
25212
25213 Compile parts of grub-emu as modules.
25214
25215 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
25216 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
25217 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
25218 (all-local): Add $(GRUB_EMU).
25219 (install-local): Install $(GRUB_EMU).
25220 (uninstall): Uninstall $(GRUB_EMU).
25221 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
25222 * kern/dl.c: Likewise.
25223 * commands/sleep.c: Not include machine/time.h.
25224 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
25225 (COMMON_CFLAGS): Likewise.
25226 (sbin_UTILITIES): Remove grub-emu.
25227 (grub_emu_SOURCES): Removed.
25228 (kernel_img_RELOCATABLE): New variable.
25229 (pkglib_PROGRAMS): Add kernel.img.
25230 (kernel_img_SOURCES): New variable
25231 (kernel_img_CFLAGS): Likewise.
25232 (kernel_img_LDFLAGS): Likewise.
25233 (TARGET_NO_STRIP): Likewise.
25234 (TARGET_NO_DYNAMIC_MODULES): Likewise.
25235 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
25236 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
25237 (grub-emu): New target.
25238 (GRUB_EMU): New variable.
25239 * configure.ac: Whitelist -emu as possible x86_64 architecture.
25240 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
25241 * loader/xnu.c: Likewise.
25242 * include/grub/pci.h: Likewise.
25243 * genemuinit.sh: New file.
25244 * genemuinitheader.sh: Likewise.
25245 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
25246 Support TARGET_NO_DYNAMIC_MODULES.
25247 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
25248 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
25249 * disk/loopback.c: Likewise.
25250 * font/font_cmd.c: Likewise.
25251 * partmap/acorn.c: Likewise.
25252 * partmap/amiga.c: Likewise.
25253 * partmap/apple.c: Likewise.
25254 * partmap/gpt.c: Likewise.
25255 * partmap/msdos.c: Likewise.
25256 * partmap/sun.c: Likewise.
25257 * parttool/msdospart.c: Likewise.
25258 * term/gfxterm.c: Likewise.
25259 * video/bitmap.c: Likewise.
25260 * video/readers/jpeg.c: Likewise.
25261 * video/readers/png.c: Likewise.
25262 * video/readers/tga.c: Likewise.
25263 * video/video.c: Likewise.
25264 * util/grub-emu.c (read_command_list): Removed.
25265 (main): Don't call util_init_nls.
25266 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
25267 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
25268
25269 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
25270
25271 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
25272 date.mod, datehook.mod.
25273 (datetime_mod_SOURCES): New variable.
25274 (datetime_mod_CFLAGS): Likewise.
25275 (datetime_mod_LDFLAGS): Likewise.
25276 (date_mod_SOURCES): Likewise.
25277 (date_mod_CFLAGS): Likewise.
25278 (date_mod_LDFLAGS): Likewise.
25279 (datehook_mod_SOURCES): Likewise.
25280 (datehook_mod_CFLAGS): Likewise.
25281 (datehook_mod_LDFLAGS): Likewise.
25282 * conf/sparc64-ieee1275.rmk: Likewise.
25283 * lib/ieee1275/datetime.c: New file.
25284
25285 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
25286
25287 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
25288 (ieee1275_fb_mod_SOURCES): New variable.
25289 (ieee1275_fb_mod_CFLAGS): Likewise.
25290 (ieee1275_fb_mod_LDFLAGS): Likewise.
25291 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
25292 New proto.
25293 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
25294 (HEAP_MAX_ADDR): Likewise.
25295 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
25296 type.
25297 Correct stop condition.
25298 (grub_ieee1275_devices_iterate): New function.
25299 * video/ieee1275.c: New file.
25300
25301 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
25302
25303 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
25304
25305 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
25306 as scratch.
25307 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
25308 SCRATCH_PAD_DISKBOOT as scratch.
25309 (bootit): Pass Openfirmware pointer in %o4.
25310 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
25311 of 0x200000.
25312 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
25313 with util/grub-mkrawimage.c.
25314 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
25315 * include/grub/aout.h (AOUT_MID_SUN): New definition.
25316 (grub_aout_get_type) [GRUB_UTIL]: Removed.
25317 (grub_aout_load) [GRUB_UTIL]: Likewise.
25318 * include/grub/kernel.h (grub_modules_get_end): New proto.
25319 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
25320 (SCRATCH_PAD_BOOT): New definition.
25321 (SCRATCH_PAD_DISKBOOT): Likewise.
25322 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
25323 * include/grub/sparc64/ieee1275/ieee1275.h
25324 (grub_ieee1275_original_stack): New variable
25325 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
25326 New definition
25327 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
25328 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
25329 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
25330 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
25331 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
25332 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
25333 (grub_platform_image_format_t): New type.
25334 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
25335 * kern/main.c (grub_modules_get_end)
25336 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
25337 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
25338 (codestart): Switch stacks.
25339 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
25340 variable.
25341 (grub_heap_init): Use grub_modules_get_end.
25342 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
25343 stack.
25344 * util/grub-mkrawimage.c (generate_image): Support sparc64.
25345 (main): Likewise.
25346 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
25347
25348 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
25349
25350 * util/grub-mkrescue.in: Base ISO UUID on UTC.
25351
25352 2010-03-08 Matt Kraai <kraai@ftbfs.org>
25353
25354 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
25355 bug #559005).
25356
25357 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
25358
25359 * genmoddep.awk: Output all missing symbols and not only first.
25360
25361 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
25362
25363 * NEWS: Put the date of 1.98 release.
25364
25365 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
25366
25367 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
25368 ft2build.h.
25369
25370 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
25371
25372 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
25373 completition in the middle of string.
25374
25375 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
25376
25377 * util/grub-mkrescue.in: Use mktemp with explicit template.
25378
25379 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
25380
25381 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
25382
25383 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
25384
25385 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
25386 right pointer.
25387
25388 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
25389
25390 Fix FreeBSD compilation.
25391
25392 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
25393 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
25394
25395 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
25396
25397 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
25398
25399 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
25400
25401 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
25402
25403 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
25404
25405 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
25406
25407 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
25408
25409 Support relative image path in theme file.
25410
25411 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
25412 (image_set_property): Handle theme_dir and relative path.
25413
25414 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
25415
25416 * configure.ac: Alias amd64 to x86_64.
25417
25418 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
25419
25420 * NEWS: mention multiboot on EFI.
25421
25422 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
25423
25424 * kern/main.c (grub_load_modules): Handle errors from init functions of
25425 embeded modules.
25426
25427 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
25428
25429 * normal/autofs.c (autoload_fs_module): Handle errors.
25430
25431 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
25432
25433 Disable linux.mod on qemu-mips since it's not functional and leads
25434 to compilation failure.
25435
25436 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
25437 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
25438 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
25439 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
25440 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
25441 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
25442 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
25443 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
25444 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
25445 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
25446 Reported by: BVK Chaitanya
25447
25448 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
25449
25450 * INSTALL: Add gettext as a dependency and add qemu to a new section
25451 "Prerequisites for make-check".
25452
25453 2010-03-04 Christian Franke <franke@computer.org>
25454
25455 * util/grub-pe2elf.c: Add missing include "progname.h".
25456
25457 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
25458
25459 * normal/crypto.c (read_crypto_list): Fix a typo.
25460 Reported by: Seth Goldberg.
25461
25462 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
25463
25464 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
25465 Reported by: Seth Goldberg.
25466
25467 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
25468
25469 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
25470 ascii.bitmaps.
25471
25472 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
25473
25474 * genmk.rb: Remove terminal*.lst in make clean.
25475 Reported by: Seth Goldberg.
25476
25477 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
25478
25479 * util/i386/efi/grub-install.in: Copy gettext files.
25480
25481 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
25482
25483 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
25484
25485 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
25486
25487 Wait for user entry basing on presence of output rather than on errors.
25488
25489 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
25490 (grub_install_newline_hook): Likewise.
25491 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
25492 * normal/menu.c (show_menu): Check line_counter to determine presence
25493 of output.
25494 * normal/term.c (grub_normal_line_counter): New variable.
25495 (grub_normal_get_line_counter): New function.
25496 (grub_install_newline_hook): Likewise.
25497
25498 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
25499
25500 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
25501
25502 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
25503
25504 * configure.ac: Update version to 1.98.
25505
25506 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
25507
25508 * util/grub.d/10_linux.in (linux_entry): Don't default to
25509 gfxpayload=keep if Linux doesn't support video handover.
25510
25511 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
25512
25513 Don't compile video modules on yeeloong since video subsystem is part
25514 of kernel.
25515
25516 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
25517 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
25518 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
25519 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
25520 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
25521 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
25522 * include/grub/bitmap_scale.h: Likewise.
25523 * include/grub/bufio.h: Likewise.
25524 * include/grub/font.h: Likewise.
25525 * include/grub/gfxterm.h: Likewise.
25526 * include/grub/video.h: Likewise.
25527 * include/grub/vbe.h: Don't include video_fb.h.
25528 * video/i386/pc/vbe.c: Include video_fb.h.
25529 * commands/i386/pc/vbetest.c: Include video.h.
25530
25531 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
25532
25533 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
25534 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
25535 default entry if GRUB_SAVEDEFAULT=true. This allows using
25536 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
25537 saving a new default on every boot.
25538
25539 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
25540
25541 * normal/crypto.c (read_crypto_list): Fix a memory leak.
25542 * normal/term.c (read_terminal_list): Likewise.
25543 * normal/main.c (grub_normal_init_page): Likewise.
25544 (grub_normal_read_line_real): Likewise.
25545
25546 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
25547
25548 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
25549 memory leak.
25550 Reported by: Seth Goldberg.
25551
25552 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
25553
25554 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
25555 duplicate declaration of `start'.
25556
25557 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
25558
25559 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
25560 filename.
25561 Reported by: Georgy Buranov
25562
25563 2010-02-20 Carles Pina i Estany <carles@pina.cat>
25564
25565 * util/grub-mkrawimage.c (usage): Change string formatting to
25566 improve gettext.
25567
25568 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
25569
25570 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
25571 backspace keys.
25572
25573 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
25574
25575 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
25576 Reported by: Michael Suchanek.
25577
25578 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
25579
25580 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
25581 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
25582
25583 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
25584
25585 Remove any reference to non-free fonts.
25586
25587 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
25588 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
25589 uses non-free components.
25590 * font/font.c (grub_font_get_name): Remove example name.
25591 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
25592 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
25593 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
25594 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
25595
25596 2010-02-16 Georgy Buranov <gburanov@gmail.com>
25597
25598 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
25599
25600 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
25601
25602 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
25603 Double divisor.
25604 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
25605 features.
25606 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
25607
25608 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
25609
25610 * gensymlist.sh.in: Use TARGET_CC instead of CC.
25611
25612 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
25613
25614 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
25615 * docs/grub.texi (Command-line and menu entry commands): Document play
25616 command.
25617
25618 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
25619
25620 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
25621 parse arguments as inline tempo and notes. Move code for playing notes
25622 to...
25623 (play): ... new function.
25624
25625 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
25626
25627 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
25628 grub_uint16_t instead of short.
25629 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
25630 disk from little endian to cpu endianness.
25631
25632 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
25633
25634 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
25635 GRUB_TICKS_PER_SECOND instead of 120.
25636
25637 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
25638
25639 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
25640 escape sequence after \e.
25641
25642 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
25643
25644 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
25645 non-ASCII characters.
25646
25647 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
25648
25649 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
25650 set root in single quotes to prevent \, from being unescaped.
25651
25652 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
25653
25654 Prevent unknown commands from stopping menuentry execution.
25655
25656 * script/execute.c (grub_script_execute_cmdline): Print error after
25657 unknown command.
25658
25659 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
25660
25661 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
25662 Reported by: Pavel Pisa.
25663
25664 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25665
25666 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
25667
25668 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25669
25670 Merge grub_ieee1275_map_physical into grub_map and rename to
25671 grub_ieee1275_map
25672
25673 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
25674 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
25675 Remove.
25676 * kern/ieee1275/openfw.c (grub_map): Rename to ...
25677 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
25678 necessary.
25679 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
25680
25681 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25682
25683 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
25684 opening and not after.
25685
25686 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25687
25688 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
25689 constants.
25690
25691 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25692
25693 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
25694 (alloc_phys): Use ALIGN_UP instead of align_addr.
25695
25696 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25697
25698 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
25699
25700 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25701
25702 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
25703
25704 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25705
25706 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
25707 verbose dprintf.
25708
25709 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25710
25711 Fix over-4GiB seek on sparc64.
25712
25713 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
25714 Replace pos_i and pos_lo with pos. All users updated.
25715 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
25716 New constant.
25717 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
25718 Likewise.
25719 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
25720 and pos_lo.
25721
25722 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25723
25724 * util/grub-mkrawimage.c (main): Call set_program_name.
25725
25726 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25727
25728 Properly align 64-bit targets.
25729
25730 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
25731 (generate_image): Use ALIGN_ADDR.
25732
25733 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25734
25735 Properly create cross-endian images.
25736
25737 * include/grub/types.h (grub_host_to_target_addr): New macro
25738 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
25739
25740 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
25741
25742 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
25743
25744 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
25745
25746 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
25747
25748 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
25749 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
25750 (grub_linux_boot): Divide by 64K when on VESA.
25751
25752 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
25753
25754 Support GRUB_GFXPAYLOAD_LINUX.
25755
25756 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
25757 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
25758
25759 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
25760
25761 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
25762 to show messages instead of discarding them.
25763 Process errors after executing command and not before. Keep old method
25764 too as precaution.
25765
25766 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
25767
25768 * configure.ac: Check for ft2build.h.
25769
25770 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25771
25772 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
25773
25774 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25775
25776 * genkernsyms.sh.in: Use TARGET_CC.
25777
25778 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
25779
25780 * NEWS: Update.
25781
25782 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25783
25784 * include/grub/multiboot2.h: Remove leftover file.
25785 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
25786 * include/grub/partition.h [GRUB_UTIL]: Likewise.
25787
25788 2010-02-07 Yves Blusseau <blusseau@zetam.org>
25789
25790 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
25791
25792 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25793
25794 Fix warnings in grub-emu when compiling with maximum warning options.
25795
25796 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
25797 (grub_arch_modules_addr): Return 0 and not NULL.
25798 * util/misc.c (ENABLE_RELOCATABLE): New definition.
25799 (xstrdup): Use newstr instead of dup.
25800 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
25801 of disk to dsk to avoid shadowing.
25802 (find_free_slot): Fix prototype.
25803 * util/getroot.c (grub_util_is_dmraid): Make static.
25804 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
25805 Add missing prototype.
25806 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
25807
25808 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25809
25810 * loader/i386/linux.c (grub_linux_setup_video): Handle error
25811 appropriately.
25812
25813 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25814
25815 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
25816 code out.
25817
25818 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25819
25820 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
25821 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
25822 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
25823 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
25824 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
25825 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
25826
25827 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25828
25829 * include/grub/err.h (grub_err_printf): Don't export.
25830
25831 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25832
25833 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
25834
25835 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
25836
25837 * include/grub/i18n.h (grub_gettext_dummy): Removed.
25838 * kern/misc.c (grub_gettext_dummy): Make static.
25839
25840 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25841
25842 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
25843 by non-valid ones.
25844 * kern/term.c (grub_putchar): Likewise.
25845
25846 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25847
25848 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
25849 buggy hook call and memory leak.
25850
25851 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25852
25853 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
25854
25855 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25856
25857 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
25858
25859 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25860
25861 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
25862 modevar.
25863 Return grub_errno on allocation error.
25864
25865 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25866
25867 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
25868
25869 2010-02-06 Yves Blusseau <blusseau@zetam.org>
25870
25871 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
25872 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
25873
25874 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25875
25876 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
25877 non-pxe disk.
25878 (grub_pxefs_open): Likewise.
25879
25880 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
25881
25882 * util/grub.d/10_hurd.in: Add --class information to menuentries.
25883 * util/grub.d/10_kfreebsd.in: Likewise.
25884 * util/grub.d/10_linux.in: Likewise.
25885
25886 2010-02-06 Colin D Bennett <colin@gibibit.com>
25887
25888 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
25889 (gfxmenu_mod_SOURCES): New variable.
25890 (gfxmenu_mod_CFLAGS): Likewise.
25891 (gfxmenu_mod_LDFLAGS): Likewise.
25892 * include/grub/term.h (grub_term_set_current_output): Declare
25893 argument as const.
25894 * docs/gfxmenu-theme-example.txt: New file.
25895 * gfxmenu/gfxmenu.c: Likewise.
25896 * gfxmenu/gui_box.c: Likewise.
25897 * gfxmenu/gui_canvas.c: Likewise.
25898 * gfxmenu/gui_circular_progress.c: Likewise.
25899 * gfxmenu/gui_image.c: Likewise.
25900 * gfxmenu/gui_label.c: Likewise.
25901 * gfxmenu/gui_list.c: Likewise.
25902 * gfxmenu/gui_progress_bar.c: Likewise.
25903 * gfxmenu/gui_string_util.c: Likewise.
25904 * gfxmenu/gui_util.c: Likewise.
25905 * gfxmenu/icon_manager.c: Likewise.
25906 * gfxmenu/model.c: Likewise.
25907 * gfxmenu/named_colors.c: Likewise.
25908 * gfxmenu/theme_loader.c: Likewise.
25909 * gfxmenu/view.c: Likewise.
25910 * gfxmenu/widget-box.c: Likewise.
25911 * include/grub/gfxmenu_model.h: Likewise.
25912 * include/grub/gfxmenu_view.h: Likewise.
25913 * include/grub/gfxwidgets.h: Likewise.
25914 * include/grub/gui.h: Likewise.
25915 * include/grub/gui_string_util.h: Likewise.
25916 * include/grub/icon_manager.h: Likewise.
25917
25918 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25919
25920 Agglomerate scrolling in gfxterm.
25921
25922 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
25923 (grub_virtual_screen_setup): Initialise 'total_screen'.
25924 (write_char): Split to ...
25925 (paint_char): ... this ...
25926 (write_char): ... and this.
25927 (paint_char): Handle delayed scrolling.
25928 (draw_cursor): Likewise.
25929 (scroll_up): Split to ...
25930 (real_scroll): ... this ...
25931 (scroll_up): ... and this.
25932 (real_scroll): Handle multi-line scroll and draw below-the-bottom
25933 characters.
25934 (grub_gfxterm_refresh): Call real_scroll.
25935
25936 2010-02-06 Colin D Bennett <colin@gibibit.com>
25937
25938 * include/grub/misc.h (grub_iscntrl): New inline function.
25939 (grub_isalnum): Likewise.
25940 (grub_strtol): Likewise.
25941
25942 2010-02-06 Colin D Bennett <colin@gibibit.com>
25943
25944 * normal/menu_text.c (get_entry_number): Move from here ...
25945 * normal/menu.c (get_entry_number): ... moved here.
25946 * include/grub/menu.h (grub_menu_get_default_entry_index):
25947 New prototype.
25948 * normal/menu.c (grub_menu_get_default_entry_index): New function.
25949 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
25950 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
25951 (grub_menu_viewer_should_return): Likewise.
25952 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
25953 * normal/menu_text.c (run_menu): Enable menu switching.
25954 * normal/menu_viewer.c (should_return): New variable.
25955 (menu_viewer_changed): Likewise.
25956 (grub_menu_viewer_show_menu): Handle menu viewer changes.
25957 (grub_menu_viewer_should_return): New function.
25958 (menuviewer_write_hook): Likewise.
25959 (grub_menu_viewer_init): Likewise.
25960
25961 2010-02-06 Colin D Bennet <colin@gibibit.com>
25962 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
25963
25964 Support for gfxterm in a window.
25965
25966 * include/grub/gfxterm.h: New file.
25967 * include/grub/video.h (struct grub_video_rect): New declaration.
25968 (grub_video_rect_t): Likewise.
25969 * term/gfxterm.c (struct grub_gfxterm_window): New type.
25970 (refcount): New variable.
25971 (render_target): Likewise.
25972 (window): Likewise.
25973 (repaint_callback): Likewise.
25974 (grub_virtual_screen_setup): Use 'render_target'.
25975 (init_window): New function.
25976 (grub_gfxterm_init_window): Likewise.
25977 (grub_gfxterm_init): Check reference counter.
25978 Use init_window.
25979 (destroy_window): New function.
25980 (grub_gfxterm_destroy_window): Likewise.
25981 (grub_gfxterm_fini): Check reference counter.
25982 Use destroy_window.
25983 (redraw_screen_rect): Restore viewport.
25984 Use 'render_target' and 'window'.
25985 Call 'repaint_callback'.
25986 (write_char): Use 'render_target'.
25987 (draw_cursor): Likewise.
25988 (scroll_up): Restore viewport.
25989 Use 'render_target' and 'window'.
25990 Call 'repaint_callback'.
25991 (grub_gfxterm_cls): Likewise.
25992 (grub_gfxterm_refresh): Use 'window'.
25993 (grub_gfxterm_set_repaint_callback): New function.
25994 (grub_gfxterm_background_image_cmd): Use 'window'.
25995 (grub_gfxterm_get_term): New function.
25996 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
25997
25998 2010-02-06 Colin D Bennett <colin@gibibit.com>
25999
26000 Bitmap scaling support.
26001
26002 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
26003 (bitmap_scale_mod_SOURCES): New variable.
26004 (bitmap_scale_mod_CFLAGS): Likewise.
26005 (bitmap_scale_mod_LDFLAGS): Likewise.
26006 * include/grub/bitmap_scale.h: New file.
26007 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
26008 (background_image_cmd_options): New variable.
26009 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
26010 (cmd): Rename and change type to ...
26011 (background_image_cmd_handle): ... this. All users updated.
26012 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
26013 * video/bitmap_scale.c: New file.
26014
26015 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26016
26017 SDL support.
26018
26019 * Makefile.in (LIBSDL): New variable.
26020 (enable_grub_emu_sdl): Likewise.
26021 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
26022 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
26023 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
26024 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
26025 * util/sdl.c: New file.
26026
26027 2010-02-06 Colin D Bennett <colin@gibibit.com>
26028 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26029
26030 Double buffering support.
26031
26032 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
26033 * include/grub/video.h: Update comment.
26034 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
26035 New type.
26036 (grub_video_fb_doublebuf_blit_init): New prototype.
26037 * term/gfxterm.c (scroll_up): Support double buffering.
26038 (grub_gfxterm_refresh): Likewise.
26039 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
26040 (grub_video_fb_doublebuf_blit_init): Likewise.
26041 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
26042 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
26043 'displayed_page', 'render_page' and 'update_screen'.
26044 (grub_video_vbe_fini): Free offscreen buffer.
26045 (doublebuf_pageflipping_commit): New function.
26046 (doublebuf_pageflipping_update_screen): Likewise.
26047 (doublebuf_pageflipping_init): Likewise.
26048 (double_buffering_init): Likewise.
26049 (grub_video_vbe_setup): Enable doublebuffering.
26050 (grub_video_vbe_swap_buffers): Implement.
26051 (grub_video_vbe_set_active_render_target): Handle double buffering.
26052 (grub_video_vbe_get_active_render_target): Likewise.
26053 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
26054 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
26055 (grub_video_vbe_enable_double_buffering): Likewise.
26056 (grub_video_vbe_swap_buffers): Use update_screen.
26057 (grub_video_set_mode): Use double buffering.
26058
26059 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
26060
26061 * maintainance/gentrigtables.py: Remove.
26062 * lib/trig.c: Likewise.
26063
26064 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
26065
26066 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
26067 `trigtables.c'.
26068 (trigtables.c): New rule.
26069 (gentrigtables): Likewise.
26070 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
26071
26072 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
26073
26074 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
26075 integer constants.
26076
26077 2010-02-06 Colin D Bennet <colin@gibibit.com>
26078
26079 Trigonometry support.
26080
26081 * include/grub/trig.h: New file.
26082 * lib/trig.c: Likewise.
26083 * maintainance/gentrigtables.py: Likewise.
26084 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
26085 (trig_mod_SOURCES): New variable.
26086 (trig_mod_CFLAGS): Likewise.
26087 (trig_mod_LDFLAGS): Likewise.
26088
26089 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26090
26091 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
26092 disk devices.
26093
26094 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
26095
26096 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
26097 error.
26098
26099 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
26100
26101 * util/hostdisk.c (open_device): Don't use partition device when reading
26102 before the partition.
26103 (grub_util_biosdisk_read): Don't read from partition and before the
26104 partition in single operation.
26105 (grub_util_biosdisk_write): Don't write to partition and before the
26106 partition in single operation.
26107
26108 2010-02-03 Torsten Landschoff <torsten@debian.org>
26109
26110 * kern/disk.c (grub_disk_read): Fix offset computation when reading
26111 last sectors.
26112
26113 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
26114
26115 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
26116 CDROM reads.
26117 (grub_biosdisk_write): Refuse to write to CDROM.
26118
26119 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
26120
26121 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
26122
26123 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
26124
26125 * font/font.c (find_glyph): Check that bmp_idx is available before
26126 using it.
26127 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
26128 with (font == NULL).
26129
26130 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
26131
26132 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
26133
26134 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
26135
26136 * include/grub/script_sh.h (sourcecode): Add const qualifier.
26137 * util/grub-script-check.c (getline): Fix empty lines case.
26138
26139 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
26140
26141 * Makefile.in (check): Exit with fail status when one of the tests
26142 fails.
26143 * tests/example_functional_test.c (example_test): Fix reversed assert.
26144 * tests/example_unit_test.c (example_test): Likewise.
26145
26146 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
26147
26148 * util/grub.d/10_linux.in: This script does not use any of the
26149 contents of gettext.sh, only the external command `gettext', so stop
26150 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
26151 the same prefix as GRUB.)
26152 * util/grub.d/10_kfreebsd.in: Likewise.
26153
26154 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
26155
26156 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
26157 of the line.
26158
26159 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
26160
26161 * kern/disk.c (grub_disk_read): Fix offset computation when reading
26162 last sectors.
26163
26164 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
26165
26166 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
26167 having a 4KiB and not 32KiB buffer size.
26168
26169 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
26170
26171 * util/hostfs.c: Include `<errno.h>'.
26172 (grub_hostfs_read): Handle errors from fseeko() and fread().
26173
26174 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
26175
26176 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
26177 loop when using read hooks on files whose size isn't sector-aligned.
26178
26179 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
26180
26181 Remove unused parameter.
26182
26183 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
26184 (grub_iso9660_open): Remove initialization of `data->length'.
26185
26186 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
26187
26188 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
26189 memleak conditions.
26190
26191 2010-01-27 Carles Pina i Estany <carles@pina.cat>
26192
26193 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
26194 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
26195
26196 2010-01-26 Carles Pina i Estany <carles@pina.cat>
26197
26198 * util/bin2h.c (usage): Fix warning (space after backslash).
26199
26200 2010-01-26 Carles Pina i Estany <carles@pina.cat>
26201
26202 * font/font.c: Include `grub/fontformat.h.
26203 Remove font file format constants.
26204 (grub_font_load): Use the new macros.
26205 * include/grub/fontformat.h: New file.
26206 * util/grub-mkfont.c: Include `grub/fontformat.c'.
26207 (write_font_pf2): Use the new macros.
26208
26209 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
26210
26211 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
26212 does.
26213
26214 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
26215
26216 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
26217
26218 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
26219 (_start): Macroify `0x7F'.
26220
26221 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
26222 (make_install_device): Use "(pxe)" as fallback prefix when booting
26223 via PXE.
26224
26225 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
26226
26227 * configure.ac: Reset LIBS after check for libgcc symbols.
26228
26229 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
26230
26231 * util/hostdisk.c (open_device): Add trailing newline to debug
26232 message.
26233
26234 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
26235
26236 * configure.ac: Check for `limits.h'.
26237 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
26238
26239 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
26240
26241 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
26242 capitalize error strings.
26243
26244 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
26245
26246 * util/grub.d/10_hurd.in: Add a recovery mode.
26247
26248 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
26249
26250 * configure.ac: Check for libgcc symbols with -nostdlib.
26251
26252 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
26253
26254 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
26255
26256 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
26257
26258 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
26259 stack since heap may be unavailable at that point.
26260 (grub_ofconsole_gotoxy): Likewise.
26261
26262 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
26263
26264 * configure.ac: Check for _restgpr_14_x.
26265 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
26266 and _savegpr_* prototypes.
26267
26268 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
26269
26270 Use generic grub_reboot() for i386-efi.
26271
26272 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
26273 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
26274 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
26275
26276 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
26277
26278 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
26279 presence of "prefix" variable as it breaks when normal.mod is
26280 embedded.
26281
26282 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
26283
26284 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
26285 stack since heap is unavailable at that point.
26286
26287 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
26288
26289 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
26290 (grub_freebsd_bootinfo): Rewritten.
26291 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
26292
26293 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
26294
26295 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
26296
26297 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
26298
26299 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
26300 domain now.
26301
26302 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
26303
26304 * util/misc.c (make_system_path_relative_to_its_root): Change the work
26305 around for handling "/" to the correct fix. Fix a memory leak. Use
26306 xstrdup instead of strdup.
26307
26308 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26309
26310 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
26311
26312 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26313
26314 Optimise glyph lookup by Basic Multilingual Plane lookup array.
26315
26316 * font/font.c (struct grub_font): New member 'bmp_idx'.
26317 (font_init): Initialise 'bmp_idx'.
26318 (load_font_index): Fill 'bmp_idx'.
26319 (find_glyph): Make inline. Use bmp_idx for BMP characters.
26320
26321 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26322
26323 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
26324 unnecessary calls.
26325
26326 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26327
26328 Move context handling out of the kernel.
26329
26330 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
26331 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
26332 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
26333 * conf/i386-efi.rmk: Likewise.
26334 * conf/i386-ieee1275.rmk: Likewise.
26335 * conf/i386-pc.rmk: Likewise.
26336 * conf/powerpc-ieee1275.rmk: Likewise.
26337 * conf/sparc64-ieee1275.rmk: Likewise.
26338 * conf/x86_64-efi.rmk: Likewise.
26339 * include/grub/env.h: Include grub/menu.h.
26340 (grub_env_var_type): Removed.
26341 (grub_env_var): Replaced field 'type' with 'global'.
26342 (grub_env_find): New prototype.
26343 (grub_env_context_open): Remove EXPORT_FUNC.
26344 (grub_env_context_close): Likewise.
26345 (grub_env_export): Likewise.
26346 (grub_env_set_data_slot): Removed.
26347 (grub_env_get_data_slot): Likewise.
26348 (grub_env_unset_data_slot): Likewise.
26349 (grub_env_unset_menu): New prototype.
26350 (grub_env_set_menu): Likewise.
26351 (grub_env_get_menu): Likewise.
26352 * include/grub/env_private.h: New file.
26353 * include/grub/normal.h (grub_context_init): New prototype.
26354 (grub_context_fini): Likewise.
26355 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
26356 * normal/context.c (grub_cmd_export): ... to here.
26357 * kern/env.c: Include env_private.h.
26358 (HASHSZ): Moved to include/grub/env_private.h.
26359 (grub_env_context): Likewise.
26360 (grub_env_sorted_var): Likewise.
26361 (current_context): Renamed from this ...
26362 (grub_current_context): ...to this. 'static' removed. All users updated.
26363 (grub_env_find): Removed 'static'.
26364 (grub_env_context_open): Moved to normal/context.c.
26365 (grub_env_context_close): Likewise.
26366 (grub_env_export): Likewise.
26367 (mangle_data_slot_name): Removed.
26368 (grub_env_set_data_slot): Likewise.
26369 (grub_env_get_data_slot): Likewise.
26370 (grub_env_unset_data_slot): Likewise.
26371 * kern/main.c (grub_set_root_dev): Don't export root.
26372 It will be done later.
26373 (grub_main): Don't export prefix.
26374 It will be done later.
26375 * normal/context.c: New file.
26376 * normal/main.c (free_menu): Use grub_env_unset_menu.
26377 (grub_normal_add_menu_entry): Use grub_env_get_menu.
26378 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
26379 (GRUB_MOD_INIT(normal)): Call grub_context_init.
26380 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
26381
26382 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26383
26384 setpci support.
26385
26386 * commands/setpci.c: New file.
26387 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
26388 (setpci_mod_SOURCES): New variable.
26389 (setpci_mod_CFLAGS): Likewise.
26390 (setpci_mod_LDFLAGS): Likewise.
26391
26392 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26393
26394 Byte-addressable PCI configuration space.
26395
26396 * bus/pci.c (grub_pci_make_address): Use byte address instead of
26397 dword address.
26398 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
26399 GRUB_PCI_REG_CACHELINE.
26400 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
26401 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
26402 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
26403 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
26404 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
26405 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
26406 grub_pci_make_address.
26407 (lock_rom_area): Likewise.
26408 * commands/lspci.c (grub_lspci_iter): Use macroses
26409 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
26410 of grub_pci_make_address.
26411 * disk/ata.c (grub_ata_pciinit): Likewise.
26412 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
26413 (GRUB_PCI_REG_VENDOR): Likewise.
26414 (GRUB_PCI_REG_DEVICE): Likewise.
26415 (GRUB_PCI_REG_COMMAND): Likewise.
26416 (GRUB_PCI_REG_STATUS): Likewise.
26417 (GRUB_PCI_REG_REVISION): Likewise.
26418 (GRUB_PCI_REG_CLASS): Likewise.
26419 (GRUB_PCI_REG_CACHELINE): Likewise.
26420 (GRUB_PCI_REG_LAT_TIMER): Likewise.
26421 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
26422 (GRUB_PCI_REG_BIST): Likewise.
26423 (GRUB_PCI_REG_ADDRESSES): Likewise.
26424 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
26425 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
26426 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
26427 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
26428 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
26429 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
26430 (GRUB_PCI_REG_CIS_POINTER): Likewise.
26431 (GRUB_PCI_REG_SUBVENDOR): Likewise.
26432 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
26433 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
26434 (GRUB_PCI_REG_CAP_POINTER): Likewise.
26435 (GRUB_PCI_REG_IRQ_LINE): Likewise.
26436 (GRUB_PCI_REG_IRQ_PIN): Likewise.
26437 (GRUB_PCI_REG_MIN_GNT): Likewise.
26438 (GRUB_PCI_REG_MAX_LAT): Likewise.
26439 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
26440 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
26441 * video/efi_uga.c (find_framebuf): Likewise.
26442 * video/sm712.c (grub_video_sm712_setup): Likewise.
26443 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
26444 space.
26445
26446 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
26447
26448 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
26449 can be reliably determined to be supported.
26450
26451 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
26452
26453 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
26454 that VESA is supported.
26455 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
26456 supported.
26457
26458 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26459
26460 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
26461
26462 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
26463
26464 * util/misc.c (make_system_path_relative_to_its_root): Work around
26465 special-casing of "/", as previous incarnation of this routine did.
26466
26467 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26468
26469 Fix any-emu compilation.
26470
26471 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
26472 * grub_bin2h_SOURCES: New variable.
26473
26474 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
26475
26476 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
26477
26478 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
26479
26480 * util/grub.d/00_header.in: Fix handling of locale_dir.
26481
26482 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26483
26484 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
26485 as possible unifont location (Gentoo).
26486 Reported by: Alexander Brüning
26487
26488 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26489
26490 Don't try to generate lists for kernel.img.
26491
26492 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
26493 (pkglib_MODULES): Remove kernel.img.
26494 (kernel_img_EXPORTS): Removed.
26495 (kernel_img_RELOCATABLE): New variable.
26496 * conf/x86_64-efi.rmk: Likewise.
26497 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
26498
26499 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26500
26501 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
26502 grub_xasprintf or grub_snprintf.
26503 (grub_vsprintf): Likewise.
26504 (grub_snprintf): New proto.
26505 (grub_vsnprintf): Likewise.
26506 (grub_xasprintf): Likewise.
26507 (grub_xvasprintf): Likewise.
26508 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
26509 (grub_sprintf): Removed.
26510 (grub_vsnprintf): New function.
26511 (grub_snprintf): Likewise.
26512 (grub_xvasprintf): Likewise.
26513 (grub_xasprintf): Likewise.
26514 (grub_vsprintf): Renamed to ...
26515 (grub_vsnprintf_real): ...this. New argument max_len.
26516
26517 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
26518
26519 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
26520 fix grub-script-check warning.
26521
26522 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26523
26524 * include/grub/font.h (grub_font_load): Fix prototype.
26525
26526 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26527
26528 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
26529
26530 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26531
26532 * include/grub/x86_64/at_keyboard.h: New file.
26533
26534 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26535
26536 * loader/mips/linux.c: Include missing grub/i18n.h.
26537
26538 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
26539
26540 * normal/menu.c (notify_execution_failure): Clarify error message.
26541
26542 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
26543
26544 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
26545 return value (and revert all return statements). Update users.
26546
26547 2010-01-20 Dan Merillat <debian@dan.merillat.org>
26548
26549 * kern/device.c (grub_device_iterate): Allocate new part_ent
26550 structure based on sizeof (*p) rather than sizeof (p->next), to
26551 account for structure padding.
26552
26553 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
26554 disk is NULL, which might happen for LVM physical volumes with no
26555 LVM signature.
26556
26557 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
26558
26559 * loader/mips/linux.c (grub_cmd_initrd)
26560 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
26561
26562 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
26563
26564 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
26565 (grub_video_video_init, grub_video_bitmap_init)
26566 (grub_font_manager_init, grub_term_gfxterm_init)
26567 (grub_at_keyboard_init): New extern declarations.
26568 (grub_machine_init): Initialize gfxterm and at_keyboard.
26569
26570 * kern/main.c (grub_main): Revert grub_printf delay kludge.
26571
26572 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
26573 `gfxterm.mod' into core image.
26574
26575 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
26576 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
26577 (kernel_img_FORMAT): Copy to ...
26578
26579 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
26580 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
26581 (kernel_img_FORMAT): ... here, and ...
26582
26583 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
26584 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
26585 (kernel_img_FORMAT): ... here.
26586
26587 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
26588 and input (at_keyboard) terminals in kernel.
26589 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
26590
26591 (pkglib_MODULES): Remove `pci.mod'.
26592 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
26593 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
26594 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
26595 (at_keyboard_mod_LDFLAGS): Remove variables.
26596
26597 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
26598
26599 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
26600
26601 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
26602
26603 * include/grub/mips/libgcc.h: Only export symbols for functions
26604 that libgcc provides.
26605
26606 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
26607
26608 MIPS support.
26609
26610 * bus/bonito.c: New file.
26611 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
26612 GRUB_PCI_NUM_DEVICES.
26613 * term/i386/pc/serial.c: Move to ...
26614 * term/serial.c: ... here. All users updated.
26615 * util/i386/pc/grub-mkimage.c: Move to ...
26616 * util/grub-mkrawimage.c: ... here. All users updated.
26617 * term/i386/pc/at_keyboard.c: Move to ...
26618 * term/at_keyboard.c: ... here. All users updated.
26619 * conf/mips-qemu-mips.rmk: New file.
26620 * conf/mips-yeeloong.rmk: Likewise.
26621 * conf/mips.rmk: Likewise.
26622 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
26623 mipsel-qemu-mips.
26624 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
26625 to port addresses.
26626 (grub_ata_pciinit): Support CS5536.
26627 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
26628 * font/font_cmd.c (loadfont_command): Open file before passing it to
26629 grub_font_load.
26630 (pseudo_file_read): New function.
26631 (pseudo_file_close): Likewise.
26632 (pseudo_fs): New structure.
26633 (load_font_module): New function.
26634 (GRUB_MOD_INIT(font_manager)): Load embedded font.
26635 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
26636 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
26637 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
26638 * include/grub/i386/at_keyboard.h: Split into ...
26639 * include/grub/at_keyboard.h: ... this ...
26640 * include/grub/i386/at_keyboard.h: ... and this.
26641 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
26642 New prototype.
26643 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
26644 updated.
26645 (grub_elf64_size): Likewise.
26646 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
26647 filename.
26648 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
26649 * include/grub/i386/coreboot/serial.h: Rewritten.
26650 * include/grub/i386/ieee1275/serial.h: Include
26651 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
26652 * include/grub/i386/pc/serial.h: Moved from here ...
26653 * include/grub/serial.h: ... to here. All users updated.
26654 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
26655 (GRUB_PCI_NUM_BUS): Likewise.
26656 (GRUB_PCI_NUM_DEVICES): Likewise.
26657 (grub_pci_device_map_range): Add missing volatile keyword.
26658 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
26659 * include/grub/mips/at_keyboard.h: New file.
26660 * include/grub/mips/cache.h: Likewise.
26661 * include/grub/mips/io.h: Likewise.
26662 * include/grub/mips/kernel.h: Likewise.
26663 * include/grub/mips/libgcc.h: Likewise.
26664 * include/grub/mips/pci.h: Likewise.
26665 * include/grub/mips/qemu-mips/boot.h: Likewise.
26666 * include/grub/mips/qemu-mips/kernel.h: Likewise.
26667 * include/grub/mips/qemu-mips/loader.h: Likewise.
26668 * include/grub/mips/qemu-mips/memory.h: Likewise.
26669 * include/grub/mips/qemu-mips/serial.h: Likewise.
26670 * include/grub/mips/qemu-mips/time.h: Likewise.
26671 * include/grub/mips/relocator.h: Likewise.
26672 * include/grub/mips/time.h: Likewise.
26673 * include/grub/mips/types.h: Likewise.
26674 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
26675 * include/grub/mips/yeeloong/boot.h: Likewise.
26676 * include/grub/mips/yeeloong/kernel.h: Likewise.
26677 * include/grub/mips/yeeloong/loader.h: Likewise.
26678 * include/grub/mips/yeeloong/memory.h: Likewise.
26679 * include/grub/mips/yeeloong/pci.h: Likewise.
26680 * include/grub/mips/yeeloong/serial.h: Likewise.
26681 * include/grub/mips/yeeloong/time.h: Likewise.
26682 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
26683 * kern/elf.c (grub_elf32_size): New parameter. All users
26684 updated.
26685 (grub_elf64_size): Likewise.
26686 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
26687 Load modules before saying "Welcome to GRUB!".
26688 Call grub_refresh after saying "Welcome to GRUB!".
26689 * kern/mips/cache.S: New file.
26690 * kern/mips/cache_flush.S: Likewise.
26691 * kern/mips/dl.c: Likewise.
26692 * kern/mips/init.c: Likewise.
26693 * kern/mips/qemu-mips/init.c: Likewise.
26694 * kern/mips/startup.S: Likewise.
26695 * kern/mips/yeeloong/init.c: Likewise.
26696 * kern/term.c (grub_putcode): Handle NULL terminal.
26697 (grub_getcharwidth): Likewise.
26698 (grub_getkey): Likewise.
26699 (grub_checkkey): Likewise.
26700 (grub_getkeystatus): Likewise.
26701 (grub_getxy): Likewise.
26702 (grub_getwh): Likewise.
26703 (grub_gotoxy): Likewise.
26704 (grub_cls): Likewise.
26705 (grub_setcolorstate): Likewise.
26706 (grub_setcolor): Likewise.
26707 (grub_getcolor): Likewise.
26708 (grub_refresh): Likewise.
26709 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
26710 (write_jump): Add hatch nop.
26711 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
26712 * lib/mips/setjmp.S: New file.
26713 * loader/mips/linux.c: Likewise.
26714 * term/i386/pc/at_keyboard.c: Move from here ...
26715 * term/at_keyboard.c: ... to here.
26716 * term/i386/pc/serial.c: Moved from here ...
26717 * term/serial.c: ... to here. All users updated.
26718 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
26719 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
26720 (serial_translate_key_sequence): Avoid deadlock.
26721 (grub_serial_getkey): Handle backspace.
26722 (grub_serial_putchar): Fix newline handling.
26723 * util/i386/pc/grub-mkimage.c: Move from here ...
26724 * util/grub-mkrawimage.c: ... to here. All users updated.
26725 (generate_image): New parameters 'font_path' and 'format'.
26726 Support embedding font.
26727 Use grub_host_to_target* instead of grub_cpu_to_le*.
26728 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
26729 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
26730 (options): New option "--font".
26731 (usage): Likewise.
26732 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
26733 (main): Handle "--font".
26734 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
26735 (grub_virtual_screen_setup): Set bg_color_display.
26736 (redraw_screen_rect): Use bg_color_display instead of incorrect
26737 bg_color.
26738 (grub_gfxterm_cls): Likewise.
26739 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
26740 Support embedding config file.
26741 (add_segments): Likewise.
26742 (options): New option "--config".
26743 (main): Handle "--config".
26744 * video/sm712.c: New file.
26745
26746 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26747
26748 Fix parallel builds.
26749
26750 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
26751 font.c depend on ascii.h).
26752
26753 2010-01-12 Carles Pina i Estany <carles@pina.cat>
26754
26755 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
26756
26757 2010-01-11 Carles Pina i Estany <carles@pina.cat>
26758
26759 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
26760 By default: disabled.
26761 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
26762 parameter.
26763
26764 2010-01-10 Carles Pina i Estany <carles@pina.cat>
26765
26766 * font/font.c: Update copyright years.
26767 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
26768
26769 2010-01-10 Carles Pina i Estany <carles@pina.cat>
26770
26771 * font/font.c: Include `ascii.h'.
26772 (ASCII_BITMAP_SIZE): New macro.
26773 (ascii_font_glyph): Define.
26774 (ascii_glyph_lookup): New function.
26775 (grub_font_get_string_width): Change comment. If glyph not found, use
26776 ascii_glyph_lookup.
26777 (grub_font_get_glyph_with_fallback): If glyph not available returns
26778 ascii_glyph_lookup.
26779 * util/grub-mkfont.c (file_formats): New enum.
26780 (options): Add `ascii-bitmaps' new option.
26781 (usage): Add `asii-bitmaps' new option.
26782 (write_font_ascii_bitmap): New function.
26783 (write_font): Rename to ...
26784 (write_font_p2): ... this. Remove print_glyphs call.
26785 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
26786 used. Call print_glyphs.
26787 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
26788
26789 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
26790
26791 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
26792 (grub_bin2h_SOURCES): New variable.
26793 * util/bin2h.c: New file.
26794
26795 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
26796
26797 * include/multiboot.h: Resynced with spec.
26798 * include/multiboot2.h: Likewise.
26799 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
26800 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
26801
26802 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26803
26804 * include/grub/term.h (grub_term_register_input,
26805 grub_term_register_output): Check return of terminal init()
26806 routines, and abort if errors are raised.
26807
26808 * commands/terminal.c: Update copyright year.
26809
26810 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26811
26812 * commands/terminal.c (grub_cmd_terminal_input)
26813 (grub_cmd_terminal_output): Check return of terminal init()
26814 routines, and abort if errors are raised.
26815
26816 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
26817
26818 * include/grub/i386/bsd.h: Fix include pathes.
26819
26820 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
26821
26822 Add missing *BSD copyright headers.
26823
26824 * include/grub/aout.h: Add BSD licence.
26825 * include/grub/i386/bsd.h: Parts under different licences moved to ...
26826 * include/grub/i386/freebsd_linker.h: ... here,
26827 * include/grub/i386/freebsd_reboot.h: ... here,
26828 * include/grub/i386/netbsd_bootinfo.h: ... here,
26829 * include/grub/i386/netbsd_reboot.h: ... here,
26830 * include/grub/i386/openbsd_bootarg.h: ... here,
26831 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
26832 licence to each file.
26833
26834 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26835
26836 * acinclude.m4: Remove `nop' assembly instruction; it's not
26837 implemented by all architectures.
26838
26839 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26840
26841 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
26842 ELILO. This is no longer necessary.
26843
26844 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
26845
26846 Added new tool, grub-scrit-check to verify grub.cfg syntax.
26847
26848 * util/grub-script-check.c: grub-script-check tool.
26849 * conf/common.rmk: Make rules for grub-script-check.
26850
26851 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26852
26853 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
26854 spotting it back in 2008. Shame on me for forgetting he did.
26855
26856 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
26857
26858 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
26859
26860 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
26861 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
26862 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
26863 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
26864 (GRUB_VIDEO_TYPE_EFI): Rename to ...
26865 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
26866
26867 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
26868
26869 * include/grub/test.h: Add license header.
26870 * tests/example_functional_test.c: Likewise.
26871 * tests/example_unit_test.c: Likewise.
26872 * tests/lib/functional_test.c: Likewise.
26873 * tests/lib/test.c: Likewise.
26874 * tests/lib/unit_test.c: Likewise.
26875
26876 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
26877
26878 Use flag-based instead of hook-based video mode selection and "auto"
26879 keyword.
26880
26881 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
26882 (grub_video_set_mode): Changed prototype. All users updated.
26883 (grub_video_check_mode_flag): New inline function.
26884 * video/video.c (parse_modespec): New function.
26885 (grub_video_set_mode): Parse flags and keywords.
26886
26887 2010-01-17 Carles Pina i Estany <carles@pina.cat>
26888
26889 * util/misc.c (grub_util_info): Fix the order of the parameters in a
26890 fprintf call.
26891
26892 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
26893
26894 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
26895
26896 2010-01-16 Carles Pina i Estany <carles@pina.cat>
26897
26898 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
26899 string.
26900 * util/grub-emu.c (usage): Likewise.
26901 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
26902 * util/i386/efi/grub-mkimage.c (usage): Likewise.
26903 * util/i386/pc/grub-mkimage.c (usage): Likewise.
26904 * util/i386/pc/grub-setup.c (usage): Likewise.
26905
26906 2010-01-16 Carles Pina i Estany <carles@pina.cat>
26907
26908 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
26909 the message.
26910 (grub_util_info): Likewise.
26911 (grub_util_error): Likewise.
26912 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
26913 and/or new lines in `grub_util_warna', `grub_util_info',
26914 `grub_util_error' calls.
26915 * util/getroot.c: Likewise.
26916 * util/grub-editenv.c: Likewise.
26917 * util/grub-emu.c: Likewise.
26918 * util/grub-fstest.c: Likewise.
26919 * util/grub-mkdevicemap.c: Likewise.
26920 * util/grub-mkfont.c: Likewise.
26921 * util/grub-mkpasswd-pbkdf2.c: Likewise.
26922 * util/grub-mkrelpath.c: Likewise.
26923 * util/grub-pe2elf.c: Likewise.
26924 * util/grub-probe.c: Likewise.
26925 * util/hostdisk.c: Likewise.
26926 * util/i386/efi/grub-mkimage.c: Likewise.
26927 * util/i386/pc/grub-mkimage.c: Likewise.
26928 * util/i386/pc/grub-setup.c: Likewise.
26929 * util/ieee1275/ofpath.c: Likewise.
26930 * util/mkisofs/eltorito.c: Likewise.
26931 * util/mkisofs/rock.c: Likewise.
26932 * util/mkisofs/write.c: Likewise.
26933 * util/raid.c: Likewise.
26934 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
26935 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26936
26937 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
26938
26939 Enable multiboot on non-pc.
26940
26941 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
26942 multiboot.mod and multiboot2.mod to ...
26943 * conf/i386.rmk (pkglib_MODULES): ... here.
26944 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
26945 Moved to ...
26946 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
26947 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
26948 Moved to ...
26949 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
26950 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
26951 Moved to ...
26952 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
26953 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
26954 Moved to ...
26955 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
26956 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
26957 relocator.mod.
26958 (ata_mod_SOURCES): Removed.
26959 (ata_mod_CFLAGS): Likewise.
26960 (ata_mod_LDFLAGS): Likewise.
26961 (relocator_mod_SOURCES): Removed.
26962 (relocator_mod_CFLAGS): Likewise.
26963 (relocator_mod_ASFLAGS): Likewise.
26964 (relocator_mod_LDFLAGS): Likewise.
26965 Include i386.mk.
26966 * include/grub/x86_64/multiboot.h: New file.
26967 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
26968 Terminate EFI.
26969
26970 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
26971
26972 Video multiboot support.
26973
26974 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
26975 New prototype.
26976 * include/multiboot.h: Resynced with multiboot specification.
26977 * include/multiboot2.h: Likewise.
26978 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
26979 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
26980 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
26981 (HAS_VGA_TEXT): Likewise.
26982 (accepts_video): New variable.
26983 (grub_multiboot_set_accepts_video): New function.
26984 (grub_multiboot_get_mbi_size): Account for video structures.
26985 (set_video_mode): New function.
26986 (retrieve_video_parameters): Likewise.
26987 (grub_multiboot_make_mbi): Fill video fields.
26988
26989 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
26990
26991 Video driver ids.
26992
26993 * include/grub/video.h (grub_video_driver_id): New type.
26994 (grub_video_adapter): New member 'id'. All users updated.
26995 (grub_video_get_driver_id): New proto.
26996 * video/video.c (grub_video_get_driver_id): New function.
26997
26998 2010-01-14 Carles Pina i Estany <carles@pina.cat>
26999
27000 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
27001 `var=val'.
27002
27003 2010-01-14 Carles Pina i Estany <carles@pina.cat>
27004
27005 * normal/cmdline.c (print_completion): Gettextizze.
27006
27007 2001-01-14 Carles Pina i Estany <carles@pina.cat>
27008
27009 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
27010
27011 2010-01-14 Carles Pina i Estany <carles@pina.cat>
27012
27013 * gettext/gettext.c (grub_gettext_translate): Push and pop
27014 grub_errno.
27015 (grub_gettext_delete_list): Change comment style.
27016 * kern/err.c (grub_error): Gettextizze.
27017 (grub_fatal): Gettextizze.
27018
27019 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
27020
27021 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
27022 (grub_linux16_real_boot): ... this.
27023 * kern/i386/loader.S: Likewise.
27024 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
27025 (grub_linux16_boot): New function. Switches to text mode and calls
27026 grub_linux16_real_boot().
27027
27028 * loader/i386/bsd.c: Include `<grub/video.h>'.
27029 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
27030 text mode before calling grub_unix_real_boot().
27031
27032 * loader/i386/multiboot.c: Include `<grub/video.h>'.
27033 (grub_multiboot_boot): Switch to text mode before calling
27034 grub_relocator32_boot().
27035
27036 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
27037 (grub_chainloader_boot): Switch to text mode before calling
27038 grub_chainloader_real_boot().
27039
27040 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
27041 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
27042
27043 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
27044 non-empty value.
27045
27046 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
27047 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
27048
27049 * util/grub.d/00_header.in: Define a "savedefault" function for use
27050 in menu entries.
27051 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
27052
27053 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
27054 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
27055
27056 * util/grub-mkconfig_lib.in (save_default_entry): Only set
27057 saved_entry if boot_once is unset.
27058 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
27059 previous saved entry (i.e. grub-reboot).
27060
27061 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
27062
27063 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
27064
27065 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
27066
27067 * util/grub.d/00_header.in: Use `set var=val' rather than plain
27068 `var=val'.
27069 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
27070
27071 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
27072
27073 * util/grub-reboot.in: Fix --version output.
27074 * util/grub-set-default.in: Likewise.
27075
27076 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
27077
27078 * util/grub.d/00_header.in: Silently ignore zero-sized environment
27079 blocks.
27080
27081 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
27082
27083 * util/grub.d/00_header.in: Quote the value assigned to `default',
27084 in case it contains spaces.
27085
27086 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
27087
27088 * util/grub.d/30_os-prober.in: Fix merge error that moved a
27089 `save_default_entry' call from the macosx case to the linux case.
27090
27091 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
27092 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
27093
27094 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
27095 in `chosen' environment variable.
27096 * normal/menu_text.c (get_entry_number): Check if the variable
27097 matches the title of a menu entry.
27098 (run_menu): Pass menu to get_entry_number.
27099
27100 * util/grub-reboot.in: New file.
27101 * util/grub-set-default.in: New file.
27102 * conf/common.rmk (grub-reboot): New utility.
27103 (grub-set-default): New utility.
27104
27105 * util/grub-mkconfig_lib.in (save_default_entry): New function.
27106 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
27107 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
27108 move it to `saved_entry' for the next boot. Load environment on
27109 initialisation.
27110 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
27111 * util/grub.d/10_hurd.in: Likewise.
27112 * util/grub.d/10_linux.in (linux_entry): Likewise.
27113 * util/grub.d/10_windows.in: Likewise.
27114 * util/grub.d/30_os-prober.in: Likewise.
27115
27116 * util/grub-install.in: Create environment block.
27117 * util/i386/efi/grub-install.in: Likewise.
27118 * util/ieee1275/grub-install.in: Likewise.
27119 * util/sparc64/ieee1275/grub-install.in: Likewise.
27120
27121 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
27122
27123 Unit testing framework for GRUB.
27124
27125 * Makefile.in: Test framework build rules for 'make check'.
27126 * conf/tests.rmk: Build rules for individual tests and framework.
27127
27128 * include/grub/test.h: Header file for whitebox tests.
27129 * tests/lib/functional_test.c: Framework support for whitebox
27130 functional tests.
27131 * tests/lib/test.c: Common whitebox testing code for unit and
27132 functional tests.
27133 * tests/lib/unit_test.c: Framework support for whitebox unit
27134 tests.
27135
27136 * tests/util/grub-shell-tester.in: Support utility for grub-script
27137 tests.
27138 * tests/util/grub-shell.in: Utility to execute grub-script
27139 commands in a Qemu instance.
27140
27141 * tests/example_functional_test.c: Example whitebox functional
27142 test.
27143 * tests/example_grub_script_test.in: Example grub-script test.
27144 * tests/example_scripted_test.in: Example scripted test.
27145 * tests/example_unit_test.c: Example whitebox unit test.
27146
27147 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
27148
27149 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
27150 Add loader/i386/multiboot_mbi.c.
27151 (multiboot2_mod_SOURCES): Likewise.
27152 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
27153 (multiboot2_mod_SOURCES): Likewise.
27154 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
27155 (grub_multiboot_make_mbi): Likewise.
27156 (grub_multiboot_free_mbi): Likewise.
27157 (grub_multiboot_init_mbi): Likewise.
27158 (grub_multiboot_add_module): Likewise.
27159 (grub_multiboot_set_bootdev): Likewise.
27160 * loader/i386/multiboot.c (mbi): Removed.
27161 (mbi_dest): Likewise.
27162 (alloc_mbi): New variable.
27163 (grub_multiboot_payload_size): Removed. All users updated.
27164 (grub_multiboot_pure_size): New variable.
27165 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
27166 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
27167 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
27168 (grub_fill_multiboot_mmap): Likewise.
27169 (grub_multiboot_get_bootdev): Likewise.
27170 (grub_multiboot): Use multiboot_mbi functions.
27171 * loader/i386/multiboot_mbi.c: New file.
27172
27173 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
27174
27175 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
27176 it would result in module crash.
27177
27178 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
27179
27180 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
27181 (grub_ofconsole_getwh): Split to ...
27182 (grub_ofconsole_getwh): ... this.
27183 (grub_ofconsole_dimensions): ...and this.
27184 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
27185
27186 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
27187
27188 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
27189
27190 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
27191
27192 * loader/i386/pc/multiboot2.c: Removed stalled file.
27193
27194 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
27195
27196 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
27197 Reported by: Grégoire Sutre
27198
27199 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
27200
27201 * util/misc.c (canonicalize_file_name): New function.
27202 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
27203 instead of realpath().
27204
27205 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
27206
27207 * util/grub-install.in (usage): Clarify meaning of --root-directory,
27208 and make it clearer that it's optional. Based on confusion
27209 witnessed on IRC.
27210
27211 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
27212
27213 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
27214 in premature implicit newline.
27215
27216 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
27217
27218 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
27219 which resulted in garbled command line at the end of screen.
27220
27221 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
27222
27223 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
27224 initialization with similar approach as with other Linux loaders.
27225
27226 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
27227
27228 Fix i386-ieee1275 build.
27229
27230 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
27231 and grub_term_height() for video_{width,height} initialization.
27232
27233 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
27234
27235 Fix grub-emu build.
27236
27237 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
27238
27239 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
27240 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
27241
27242 Support for multiple terminals.
27243
27244 * Makefile.in (pkglib_DATA): terminal.lst.
27245 (terminal.lst): New target.
27246 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
27247 (GRUB_MOD_INIT(handler)): Likewise.
27248 (GRUB_MOD_FINI(handler)): Likewise.
27249 * commands/help.c (grub_cmd_help): Handle multiple terminals.
27250 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
27251 * commands/sleep.c (do_print): Use grub_term_restore_pos.
27252 (grub_cmd_sleep): Use grub_term_save_pos.
27253 * commands/terminal.c: New file.
27254 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
27255 commands/terminal.c and lib/charset.c.
27256 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
27257 (pkglib_MODULES): Add terminal.mod.
27258 (terminal_mod_SOURCES): New variable.
27259 (terminal_mod_CFLAGS): Likewise.
27260 (terminal_mod_LDFLAGS): Likewise.
27261 * genhandlerlist.sh: Don't handle terminals.
27262 * genmk.rb: Generate terminal-*.lst.
27263 * genterminallist.sh: New file.
27264 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
27265 (grub_is_valid_utf8): Likewise.
27266 (grub_utf8_to_ucs4_alloc): Likewise.
27267 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
27268 (grub_menu_register_viewer): Changed argument.
27269 (grub_menu_try_text): New proto.
27270 (grub_gfxmenu_try_hook): New declaration.
27271 * include/grub/normal.h (grub_normal_exit_level): New declaration.
27272 (grub_menu_init_page): Additional argument term.
27273 (grub_normal_init_page): Likewise.
27274 (grub_cmdline_get): Arguments simplified.
27275 (grub_utf8_to_ucs4_alloc): Removed.
27276 (grub_print_ucs4): Additional argument term.
27277 (grub_getstringwidth): Likewise.
27278 (grub_print_message_indented): Likewise.
27279 (grub_menu_text_register_instances): New proto.
27280 (grub_show_menu): Likewise.
27281 (read_terminal_list): Likewise.
27282 (grub_set_more): Likewise.
27283 * include/grub/parser.h: Include handler.h.
27284 * include/grub/reader.h: Rewritten.
27285 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
27286 (GRUB_TERM_WIDTH): Changed to function.
27287 (GRUB_TERM_HEIGHT): Likewise.
27288 (GRUB_TERM_BORDER_WIDTH): Likewise.
27289 (GRUB_TERM_BORDER_HEIGHT): Likewise.
27290 (GRUB_TERM_NUM_ENTRIES): Likewise.
27291 (GRUB_TERM_ENTRY_WIDTH): Likewise.
27292 (GRUB_TERM_CURSOR_X): Likewise.
27293 (grub_term_input_class): Likewise.
27294 (grub_term_output_class): Likewise.
27295 (grub_term_outputs_disabled): New declaration.
27296 (grub_term_inputs_disabled): Likewise.
27297 (grub_term_outputs): Likewise.
27298 (grub_term_inputs): Likewise.
27299 (grub_term_register_input): Rewritten.
27300 (grub_term_register_output): Likewise.
27301 (grub_term_unregister_input): Likewise.
27302 (grub_term_unregister_output): Likewise.
27303 (FOR_ACTIVE_TERM_INPUTS): New macro.
27304 (FOR_DISABLED_TERM_INPUTS): Likewise.
27305 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27306 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27307 * include/grub/terminfo.h: Add oterm argument to all protypes.
27308 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
27309 Use grub_rescue_run.
27310 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
27311 All users updated.
27312 * kern/reader.c: Removed. All users updated.
27313 * kern/rescue_reader.c (grub_rescue_init): Removed.
27314 (grub_rescue_reader): Likewise.
27315 (grub_register_rescue_reader): Likewise.
27316 (grub_rescue_run): New function based on kern/reader.c.
27317 * kern/term.c: Adapted for multiterm.
27318 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
27319 (grub_is_valid_utf8): Likewise.
27320 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
27321 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
27322 right terminal.
27323 * loader/i386/linux.c (grub_linux_boot): Likewise.
27324 * normal/auth.c (grub_username_get): New function.
27325 (grub_auth_check_authentication): Use grub_username_get.
27326 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
27327 * normal/color.c: Adapt for multiterm.
27328 * normal/main.c (read_config_file): Don't use grub_reader_loop.
27329 (grub_normal_init_page): Additional argument term.
27330 (read_lists): Call read_terminal_lists.
27331 (grub_enter_normal_mode): Call grub_cmdline_run.
27332 Handle grub_normal_exit_level.
27333 (grub_cmd_normal): Make reentrant.
27334 (grub_cmd_normal_exit): New function.
27335 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
27336 * normal/menu.c: Adapt for multiterm.
27337 * normal/menu_entry.c: Likewise.
27338 * normal/menu_text.c: Likewise.
27339 * normal/menu_viewer.c: Removed. All users updated.
27340 * normal/term.c: New file.
27341 * util/console.c: Change order of includes to workaround a bug in
27342 ncurses headers.
27343 * term/terminfo.c: New argument oterm on all exported functions.
27344 All users updated.
27345 * util/grub-editenv.c (grub_term_input_class): Removed.
27346 (grub_term_output_class): Likewise.
27347
27348 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
27349
27350 Make loader output a bit more user-friendly.
27351
27352 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
27353 is being loaded. Likewise for the Hurd.
27354
27355 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
27356 that kernel of FreeBSD ${version} is being loaded.
27357
27358 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
27359 grub_dprintf().
27360 (grub_cmd_initrd): Likewise.
27361 * util/grub.d/10_linux.in (linux_entry): Print message indicating
27362 that Linux ${version} is being loaded. Likewise for initrd.
27363
27364 2010-01-09 Carles Pina i Estany <carles@pina.cat>
27365
27366 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
27367
27368 2010-01-08 Carles Pina i Estany <carles@pina.cat>
27369
27370 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
27371 (GRUB_MOD_INIT): Gettextizze.
27372 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
27373 (GRUB_MOD_INIT): Gettextizze.
27374 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
27375 (grub_cmd_linux): Capitalise Linux.
27376 (GRUB_MOD_INIT): Gettextizze.
27377 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
27378 (grub_cmd_linux): Capitalise Linux.
27379 (GRUB_MOD_INIT): Gettextizze.
27380 * loader/i386/linux.c: Include `<grub/i18n.h>'.
27381 (grub_cmd_linux): Capitalise Linux.
27382 (GRUB_MOD_INIT): Gettextizze.
27383 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
27384 (GRUB_MOD_INIT): Gettextizze.
27385 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
27386 (grub_cmd_linux): Capitalise Linux.
27387 (GRUB_MOD_INIT): Gettextizze.
27388 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
27389 (grub_cpu_xnu_init): Gettextizze.
27390 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
27391 (GRUB_MOD_INIT): Gettextizze.
27392 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
27393 (GRUB_MOD_INIT): Gettextizze.
27394 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
27395 (grub_linux_load64): Capitalise Linux.
27396 (GRUB_MOD_INIT): Gettextizze.
27397 * loader/xnu.c: Include `<grub/i18n.h>'.
27398 (GRUB_MOD_INIT): Gettextizze.
27399 * po/POTFILES: Add `loader/efi/appleloader.c',
27400 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
27401 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
27402 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
27403 `loader/i386/xnu.c', `loader/multiboot_loader.c',
27404 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
27405 and `loader/xnu.c'.
27406
27407 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
27408
27409 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
27410
27411 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
27412
27413 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
27414 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
27415 * util/mkisofs/mkisofs.c (main): Readjust --version output.
27416
27417 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
27418
27419 Reset Multiboot 2 support. New loader implements the draft in
27420 /branches/multiboot2 and shares as much code as possible with the
27421 production Multiboot 1 implementation.
27422
27423 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
27424 * loader/multiboot2.c: Likewise.
27425 * loader/i386/multiboot_helper.S: Likewise.
27426 * include/multiboot2.h: Replace with latest version from the draft
27427 in /branches/multiboot2.
27428
27429 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
27430 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
27431 and `loader/multiboot2.c'.
27432 (pkglib_MODULES): Add `multiboot2.mod'.
27433 (multiboot2_mod_SOURCES): New variable.
27434 (multiboot2_mod_LDFLAGS): Likewise.
27435 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
27436
27437 * conf/i386-pc.rmk: Likewise.
27438
27439 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
27440 (multiboot_mod_SOURCES): Remove variable.
27441 (multiboot_mod_LDFLAGS): Likewise.
27442 (multiboot_mod_CFLAGS): Likewise.
27443
27444 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
27445 `<multiboot2.h>' instead of `<multiboot.h>'.
27446 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
27447 (MULTIBOOT_HEADER_MAGIC): New macros.
27448
27449 * loader/multiboot_loader.c (module_version_status): Remove variable.
27450 (find_multi_boot2_header): Remove function.
27451 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
27452 logic. Always check for the Multiboot version we're compiling for.
27453 (grub_cmd_module_loader): Likewise.
27454 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
27455 command instead of `multiboot'.
27456
27457 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
27458
27459 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
27460 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
27461 all users.
27462
27463 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
27464 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
27465
27466 Fix breakage introduced with previous commit.
27467
27468 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
27469 commands.
27470 * normal/handler.c (read_handler_list): Revert part of previous commit
27471 affecting this file.
27472 * normal/main.c (read_lists): Move read_handler_list() call back to ...
27473 (grub_normal_execute): ... here.
27474
27475 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
27476
27477 Merge prefix-redefinition-fix branch.
27478
27479 * normal/autofs.c (read_fs_list): Make function capable of being
27480 run multiple times, gracefuly replacing the previous data
27481 structures.
27482 * normal/dyncmd.c (read_command_list): Likewise.
27483 * normal/handler.c (read_handler_list): Likewise.
27484 * normal/main.c (read_lists): New function. Calls all the
27485 list reading functions.
27486 (grub_normal_execute): Use read_lists() instead of calling all
27487 list reading functions explicitly. Register read_lists() as a
27488 variable hook attached to ${prefix}.
27489
27490 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
27491
27492 Merge crypto branch.
27493
27494 * Makefile.in (pkglib_DATA): Add crypto.lst.
27495 (crypto.lst): New target.
27496 * commands/hashsum.c: New file.
27497 * commands/password.c (check_password): Use grub_crypto_memcmp.
27498 * commands/password_pbkdf2.c: New file.
27499 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
27500 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
27501 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
27502 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
27503 -I$(srcdir)/lib/libgcrypt_wrap.
27504 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
27505 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
27506 password_pbkdf2.mod.
27507 (crypto_mod_SOURCES): New variable.
27508 (crypto_mod_CFLAGS): Likewise.
27509 (crypto_mod_LDFLAGS): Likewise.
27510 (hashsum_mod_SOURCES): New variable.
27511 (hashsum_mod_CFLAGS): Likewise.
27512 (hashsum_mod_LDFLAGS): Likewise.
27513 (pbkdf2_mod_SOURCES): New variable.
27514 (pbkdf2_mod_CFLAGS): Likewise.
27515 (pbkdf2_mod_LDFLAGS): Likewise.
27516 (password_pbkdf2_mod_SOURCES): New variable.
27517 (password_pbkdf2_mod_CFLAGS): Likewise.
27518 (password_pbkdf2_mod_LDFLAGS): Likewise.
27519 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
27520 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
27521 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
27522 Include conf/gcry.rmk.
27523 * include/grub/auth.h: Rewritten.
27524 * include/grub/crypto.h: New file.
27525 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
27526 * include/grub/normal.h (read_crypto_list): New prototype.
27527 * lib/crypto.c: New file.
27528 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
27529 * lib/pbkdf2.c: Likewise.
27530 * normal/auth.c (grub_auth_strcmp): Removed.
27531 (grub_iswordseparator): Likewise.
27532 (grub_auth_strword): Likewise.
27533 (is_authenticated): Use grub_strword.
27534 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
27535 and grub_strword. Pass entered password to authentication callback.
27536 * normal/crypto.c: New file.
27537 * normal/main.c: Call read_crypto_list.
27538 * util/grub-mkpasswd-pbkdf2.c: New file.
27539 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
27540
27541 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
27542
27543 Fix descent and ascent calculation.
27544
27545 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
27546 (options): New option "asce".
27547 (usage): Likewise.
27548 (add_char): Ignore invalid glyphs for descent calculation.
27549 Calculate ascent from actual content.
27550 (print_glyphs): Use 'asce'.
27551 (write_font): Likewise. Allow ascent override.
27552 (main): Handle "asce" option.
27553
27554 2010-01-06 Carles Pina i Estany <carles@pina.cat>
27555
27556 * kern/err.c: Include `<grub/i18n.h>'.
27557 (grub_print_error): Add full stop. Gettextizze.
27558 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
27559 (grub_bsd_load_elf): Capitalise ELF.
27560 (grub_cmd_freebsd_loadenv): Add `s' in error string.
27561 (grub_cmd_freebsd_module): Likewise.
27562 (grub_cmd_freebsd_module_elf): Likewise.
27563 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
27564
27565 2010-01-06 Carles Pina i Estany <carles@pina.cat>
27566
27567 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
27568 * commands/search_file.c (HELP_MESSAGE): New macro.
27569 * commands/search_label.c (HELP_MESSAGE): Likewise.
27570 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
27571 * po/POTFILES: Add `commands/search_file.c',
27572 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
27573 `commands/search.c'.
27574
27575 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
27576
27577 * config.rpath: Update from Gnulib.
27578
27579 2010-01-05 Yves Blusseau <blusseau@zetam.org>
27580
27581 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
27582
27583 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
27584
27585 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
27586
27587 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
27588
27589 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
27590 arguments to fread so that we get a return value in bytes, rather
27591 than something that will normally be rounded down to 0.
27592 Adjust error handling to avoid producing garbage when size_t is not
27593 the same size as long long.
27594
27595 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
27596
27597 * util/mkisofs/write.c (padblock_write): Check return value of
27598 fread.
27599
27600 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
27601
27602 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
27603 floppy images now.
27604
27605 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
27606
27607 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
27608
27609 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
27610 instead of manual alignment.
27611 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
27612 verbose). Avoid attempts to read past end of the device
27613 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
27614 but GRUB_DISK_CACHE_SIZE may exceed that).
27615
27616 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
27617
27618 * commands/crc.c (grub_cmd_crc): Abort on read errors.
27619 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
27620 it to upper layer.
27621
27622 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
27623
27624 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
27625 New constant.
27626 (grub_efi_piwg_device_path): New structure
27627 (grub_efi_piwg_device_path_t): New type.
27628 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
27629 (devpath_1): Transform to a structure. All users updated.
27630 (devpath_2): Likewise.
27631 (devpath_3): Likewise.
27632 (devpath_4): Likewise.
27633 (devpath_5): Likewise.
27634
27635 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
27636
27637 * loader/efi/appleloader.c: Restored. Update all users.
27638
27639 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
27640
27641 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
27642
27643 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
27644 (struct boot_blocklist): Move from here ...
27645 * include/grub/i386/pc/boot.h [ASM_FILE]
27646 (struct grub_boot_blocklist): ... to here. Update all users.
27647 (setup): Only initialize `start' member of `first_block'
27648 structure. Add assert() calls to verify the other members.
27649
27650 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
27651 (generate_image): Fix broken blocklist length initialization.
27652 Add assert() call to verify blocklist `segment' field.
27653
27654 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
27655
27656 * loader/efi/appleloader.c: Remove. Update all users.
27657
27658 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
27659
27660 * boot/i386/pc/boot.S: Update copyright year.
27661 * boot/i386/pc/cdboot.S: Likewise.
27662 * boot/i386/pc/diskboot.S: Likewise.
27663 * boot/i386/pc/lnxboot.S: Likewise.
27664 * boot/i386/pc/pxeboot.S: Likewise.
27665 * bus/pci.c: Likewise.
27666 * commands/cmp.c: Likewise.
27667 * commands/help.c: Likewise.
27668 * commands/hexdump.c: Likewise.
27669 * commands/i386/pc/halt.c: Likewise.
27670 * commands/i386/pc/play.c: Likewise.
27671 * commands/i386/pc/vbeinfo.c: Likewise.
27672 * commands/ls.c: Likewise.
27673 * commands/test.c: Likewise.
27674 * disk/dmraid_nvidia.c: Likewise.
27675 * disk/i386/pc/biosdisk.c: Likewise.
27676 * disk/ieee1275/nand.c: Likewise.
27677 * disk/ieee1275/ofdisk.c: Likewise.
27678 * disk/lvm.c: Likewise.
27679 * disk/raid.c: Likewise.
27680 * disk/raid6_recover.c: Likewise.
27681 * disk/scsi.c: Likewise.
27682 * fs/affs.c: Likewise.
27683 * fs/cpio.c: Likewise.
27684 * fs/ext2.c: Likewise.
27685 * fs/hfs.c: Likewise.
27686 * fs/iso9660.c: Likewise.
27687 * fs/ntfs.c: Likewise.
27688 * fs/sfs.c: Likewise.
27689 * fs/udf.c: Likewise.
27690 * fs/ufs.c: Likewise.
27691 * fs/xfs.c: Likewise.
27692 * gencmdlist.sh: Likewise.
27693 * genmk.rb: Likewise.
27694 * include/grub/disk.h: Likewise.
27695 * include/grub/efi/api.h: Likewise.
27696 * include/grub/efi/efi.h: Likewise.
27697 * include/grub/efi/pe32.h: Likewise.
27698 * include/grub/elf.h: Likewise.
27699 * include/grub/fs.h: Likewise.
27700 * include/grub/i386/at_keyboard.h: Likewise.
27701 * include/grub/i386/pc/memory.h: Likewise.
27702 * include/grub/i386/pc/vbe.h: Likewise.
27703 * include/grub/i386/pci.h: Likewise.
27704 * include/grub/i386/tsc.h: Likewise.
27705 * include/grub/ieee1275/ieee1275.h: Likewise.
27706 * include/grub/ntfs.h: Likewise.
27707 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
27708 * include/grub/sparc64/libgcc.h: Likewise.
27709 * include/grub/symbol.h: Likewise.
27710 * include/grub/types.h: Likewise.
27711 * include/multiboot2.h: Likewise.
27712 * io/gzio.c: Likewise.
27713 * kern/device.c: Likewise.
27714 * kern/disk.c: Likewise.
27715 * kern/efi/efi.c: Likewise.
27716 * kern/efi/mm.c: Likewise.
27717 * kern/elf.c: Likewise.
27718 * kern/file.c: Likewise.
27719 * kern/i386/dl.c: Likewise.
27720 * kern/i386/pc/init.c: Likewise.
27721 * kern/i386/pc/startup.S: Likewise.
27722 * kern/ieee1275/ieee1275.c: Likewise.
27723 * kern/ieee1275/init.c: Likewise.
27724 * kern/main.c: Likewise.
27725 * kern/mm.c: Likewise.
27726 * kern/powerpc/dl.c: Likewise.
27727 * kern/sparc64/dl.c: Likewise.
27728 * kern/x86_64/dl.c: Likewise.
27729 * lib/hexdump.c: Likewise.
27730 * loader/efi/appleloader.c: Likewise.
27731 * loader/i386/ieee1275/linux.c: Likewise.
27732 * loader/i386/pc/chainloader.c: Likewise.
27733 * loader/i386/pc/linux.c: Likewise.
27734 * loader/i386/pc/multiboot2.c: Likewise.
27735 * loader/ieee1275/multiboot2.c: Likewise.
27736 * loader/multiboot2.c: Likewise.
27737 * loader/multiboot_loader.c: Likewise.
27738 * loader/powerpc/ieee1275/linux.c: Likewise.
27739 * normal/completion.c: Likewise.
27740 * normal/menu_entry.c: Likewise.
27741 * partmap/apple.c: Likewise.
27742 * util/grub.d/10_hurd.in: Likewise.
27743 * util/hostfs.c: Likewise.
27744 * video/readers/png.c: Likewise.
27745
27746 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
27747
27748 * include/grub/misc.h (GNUC_PREREQ): New macro.
27749 (ATTRIBUTE_ERROR): New macro.
27750 * include/grub/list.h (grub_bad_type_cast_real): Use
27751 ATTRIBUTE_ERROR.
27752
27753 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27754
27755 * normal/menu_text.c (print_message): Change messages.
27756
27757 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27758
27759 * normal/menu_entry.c (store_completion): Gettextizze.
27760
27761 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27762
27763 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
27764
27765 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27766
27767 * po/POTFILES: Sort correctly.
27768
27769 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27770
27771 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
27772 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
27773 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
27774 full stop.
27775 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
27776 summary. Gettextizze the strings.
27777 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
27778 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
27779 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
27780 full stop.
27781 (GRUB_MOD_INIT): Remove command name from summary.
27782 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
27783 summary.
27784 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
27785 * term/i386/pc/serial.c (options): Add full stops.
27786 (GRUB_MOD_INIT): Remove command name from the summary.
27787
27788 2010-01-03 Carles Pina i Estany <carles@pina.cat>
27789
27790 * commands/acpi.c: Gettextizze help strings and/or options. Include
27791 `grub/i18n.h' if needed.
27792 * commands/blocklist.c: Likewise.
27793 * commands/boot.c: Likewise.
27794 * commands/cat.c: Likewise.
27795 * commands/cmp.c: Likewise.
27796 * commands/configfile.c: Likewise.
27797 * commands/crc.c: Likewise.
27798 * commands/date.c: Likewise.
27799 * commands/echo.c: Likewise.
27800 * commands/efi/fixvideo.c: Likewise.
27801 * commands/efi/loadbios.c: Likewise.
27802 * commands/gptsync.c: Likewise.
27803 * commands/halt.c: Likewise.
27804 * commands/handler.c: Likewise.
27805 * commands/hdparm.c: Likewise.
27806 * commands/hexdump.c: Likewise.
27807 * commands/i386/cpuid.c: Likewise.
27808 * commands/i386/pc/drivemap.c: Likewise.
27809 * commands/i386/pc/halt.c: Likewise.
27810 * commands/i386/pc/pxecmd.c: Likewise.
27811 * commands/i386/pc/vbeinfo.c: Likewise.
27812 * commands/i386/pc/vbetest.c: Likewise.
27813 * commands/ieee1275/suspend.c: Likewise.
27814 * commands/keystatus.c: Likewise.
27815 * commands/loadenv.c: Likewise.
27816 * commands/ls.c: Likewise.
27817 * commands/lsmmap.c: Likewise.
27818 * commands/lspci.c: Likewise.
27819 * commands/memrw.c: Likewise.
27820 * commands/minicmd.c: Likewise.
27821 * commands/parttool.c: Likewise.
27822 * commands/password.c: Likewise.
27823 * commands/probe.c: Likewise.
27824 * commands/read.c: Likewise.
27825 * commands/reboot.c: Likewise.
27826 * commands/search.c: Likewise.
27827 * commands/sleep.c: Likewise.
27828 * commands/test.c: Likewise.
27829 * commands/true.c: Likewise.
27830 * commands/usbtest.c: Likewise.
27831 * commands/videotest.c: Likewise.
27832 * commands/xnu_uuid.c: Likewise.
27833 * disk/loopback.c: Likewise.
27834 * hello/hello.c: Likewise.
27835 * loader/i386/bsd.c: Likewise.
27836 * term/i386/pc/serial.c: Likewise.
27837 * po/POTFILES: Add new files.
27838
27839 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
27840
27841 * term/i386/pc/at_keyboard.c
27842 (keyboard_controller_wait_untill_ready): Rename to ...
27843 (keyboard_controller_wait_until_ready): ... this. Update all users.
27844
27845 2010-01-01 Carles Pina i Estany <carles@pina.cat>
27846
27847 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
27848 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
27849 string using string width.
27850 * normal/menu_text.c (grub_print_message_indented): Use
27851 grub_print_spaces and not print_spaces.
27852 (print_timeout): Likewise.
27853 (print_spaces): Move to...
27854 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
27855
27856 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
27857
27858 Import from Gnulib.
27859
27860 * gnulib/getdelim.c: New file.
27861 * gnulib/getline.c: Likewise.
27862
27863 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
27864
27865 * include/grub/list.h (grub_assert_fail): Removed.
27866 (grub_bad_type_cast_real): New function.
27867 (grub_bad_type_cast): New macro.
27868 (GRUB_AS_LIST): Use grub_bad_type_cast.
27869 (GRUB_AS_LIST_P): Likewise.
27870 (GRUB_AS_NAMED_LIST): Likewise.
27871 (GRUB_AS_NAMED_LIST_P): Likewise.
27872 (GRUB_AS_PRIO_LIST): Likewise.
27873 (GRUB_AS_PRIO_LIST_P): Likewise.
27874 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
27875
27876 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
27877
27878 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
27879 Fix syntax error.
27880
27881 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
27882
27883 * configure.ac: Check for TARGET_CFLAGS initialization before we
27884 initialize it ourselves (sigh).
27885 Move a few modifications to TARGET_CFLAGS to be unconditional
27886 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
27887 eh_frame)
27888
27889 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
27890 * term/i386/pc/at_keyboard.c
27891 (keyboard_controller_wait_untill_ready): Likewise.
27892 (keyboard_controller_led): Rename `led_status' paramter to avoid
27893 name conflict.
27894
27895 2009-12-28 Carles Pina i Estany <carles@pina.cat>
27896
27897 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
27898 quotes.
27899
27900 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
27901
27902 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
27903
27904 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
27905
27906 * normal/menu_text.c (grub_print_message_indented): Prevent
27907 past-the-end-of-array dereference.
27908
27909 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
27910
27911 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
27912 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
27913
27914 2009-12-27 Carles Pina i Estany <carles@pina.cat>
27915
27916 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
27917 * normal/main.c (grub_normal_read_line): Remove a space from the
27918 default prompt.
27919
27920 2009-12-27 Carles Pina i Estany <carles@pina.cat>
27921
27922 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
27923 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27924 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
27925 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
27926 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27927 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27928 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
27929
27930 2009-12-26 Carles Pina i Estany <carles@pina.cat>
27931
27932 * video/readers/jpeg.c (cmd): Declare.
27933 (grub_cmd_jpegtest): Use `grub_command_t' type.
27934 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
27935 Assign to `cmd'.
27936 (GRUB_MOD_FINI): Use `cmd' to unregister.
27937 * video/readers/png.c (cmd): Declare.
27938 (grub_cmd_pngtest): Use `grub_command_t' type.
27939 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
27940 Assign to `cmd'.
27941 (GRUB_MOD_FINI): Use `cmd' to unregister.
27942 * video/readers/tga.c (cmd): Declare.
27943 (grub_cmd_tgatest): Use `grub_command_t' type.
27944 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
27945 Assign to `cmd'.
27946 (GRUB_MOD_FINI): Use `cmd' to unregister.
27947
27948 2009-12-26 Carles Pina i Estany <carles@pina.cat>
27949
27950 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
27951 stops.
27952 * kern/corecmd.c (grub_register_core_commands): Likewise.
27953 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
27954 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
27955 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
27956 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27957 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
27958 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
27959 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
27960 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
27961 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27962 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
27963 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
27964 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
27965 * normal/handler.c (insert_handler): Likewise.
27966 * normal/main.c (GRUB_MOD_INIT): Likewise.
27967 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
27968
27969 2009-12-26 Carles Pina i Estany <carles@pina.cat>
27970
27971 * commands/help.c (grub_cmd_help): Print the command name before the
27972 summary.
27973 (GRUB_MOD_INIT): Remove command name from the summary.
27974 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
27975 string as summary.
27976 * lib/arg.c (find_long): Print the command name before the summary.
27977 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
27978 summary.
27979 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
27980 * commands/cat.c (GRUB_MOD_INIT): Likewise.
27981 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
27982 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
27983 * commands/crc.c (GRUB_MOD_INIT): Likewise.
27984 * commands/date.c (GRUB_MOD_INIT): Likewise.
27985 * commands/echo.c (GRUB_MOD_INIT): Likewise.
27986 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
27987 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
27988 * commands/handler.c (GRUB_MOD_INIT): Likewise.
27989 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
27990 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
27991 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
27992 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
27993 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
27994 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
27995 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
27996 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
27997 * commands/ls.c (GRUB_MOD_INIT): Likewise.
27998 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
27999 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
28000 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
28001 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
28002 * commands/password.c (GRUB_MOD_INIT): Likewise.
28003 * commands/probe.c (GRUB_MOD_INIT): Likewise.
28004 * commands/read.c (GRUB_MOD_INIT): Likewise.
28005 * commands/search.c (GRUB_MOD_INIT): Likewise.
28006 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
28007 * commands/test.c (GRUB_MOD_INIT): Likewise.
28008 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
28009 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28010 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28011 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
28012 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28013 * lib/arg.c (GRUB_MOD_INIT): Likewise.
28014 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
28015 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
28016 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
28017 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28018 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28019 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
28020 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
28021 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
28022
28023 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
28024
28025 Use search command for preliminar UUID search.
28026
28027 * commands/search.c: Split into ...
28028 * commands/search_wrap.c: ...this
28029 * commands/search.c: ...and this.
28030 * commands/search_file.c: New file.
28031 * commands/search_label.c: New file.
28032 * commands/search_uuid.c: New file.
28033 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
28034 Add commands/search_wrap.c, commands/search_file.c,
28035 commands/search_label.c and commands/search_uuid.c.
28036 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
28037 (search_mod_SOURCES): Set to commands/search_wrap.c.
28038 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
28039 search_label.mod.
28040 (search_fs_file_mod_SOURCES): New variable.
28041 (search_fs_file_mod_CFLAGS): Likewise.
28042 (search_fs_file_mod_LDFLAGS): Likewise.
28043 (search_label_mod_SOURCES): Likewise.
28044 (search_label_mod_CFLAGS): Likewise.
28045 (search_label_mod_LDFLAGS): Likewise.
28046 (search_fs_uuid_mod_SOURCES): New variable.
28047 (search_fs_uuid_mod_CFLAGS): Likewise.
28048 (search_fs_uuid_mod_LDFLAGS): Likewise.
28049 (fs_file_mod_SOURCES): Removed.
28050 (fs_file_mod_CFLAGS): Likewise.
28051 (fs_file_mod_LDFLAGS): Likewise.
28052 (fs_uuid_mod_SOURCES): Removed.
28053 (fs_uuid_mod_CFLAGS): Likewise.
28054 (fs_uuid_mod_LDFLAGS): Likewise.
28055 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
28056 Set to util/grub-install.in.
28057 * disk/fs_file.c: Removed.
28058 * disk/fs_uuid.c: Likewise.
28059 * include/grub/search.h: New file.
28060 * util/grub-install.in: Handle sparc64.
28061 Create and use load.cfg.
28062 * util/sparc64/ieee1275/grub-install.in: Removed.
28063
28064 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
28065
28066 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
28067 Ignore return status if CF is cleared.
28068 (grub_biosdisk_get_diskinfo_standard): Likewise.
28069
28070 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
28071
28072 * term/i386/pc/at_keyboard.c
28073 (keyboard_controller_wait_untill_ready): New function.
28074 (grub_keyboard_controller_write, grub_keyboard_controller_read)
28075 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
28076 for keyboard polling, rather than duplicate the same loop. This
28077 saves a few bytes in code size.
28078
28079 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
28080
28081 Support for (pxe[:server[:gateway]]) syntax and
28082 use environment variable for PXE.
28083
28084 * commands/i386/pc/pxecmd.c (options): Removed.
28085 (print_ip): Removed.
28086 (grub_cmd_pxe): Removed
28087 (grub_cmd_pxe_unload): New function.
28088 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
28089 (grub_pxe_your_ip): Made static.
28090 (grub_pxe_default_server_ip): Likewise.
28091 (grub_pxe_default_gateway_ip): Likewise.
28092 (grub_pxe_blksize): Likewise.
28093 (parse_ip): New function.
28094 (grub_pxe_open): Support server and gateway specification.
28095 (grub_pxe_close): Free disk->data.
28096 (grub_pxefs_open): Use disk->data.
28097 (grub_pxefs_read): Likewise.
28098 (grub_env_write_readonly): New function.
28099 (set_mac_env): Likewise.
28100 (set_env_limn_ro): Likewise.
28101 (parse_dhcp_vendor): Likewise.
28102 (grub_pxe_detect): Set the environment variables.
28103 (set_ip_env): New function.
28104 (write_ip_env): Likewise.
28105 (grub_env_write_pxe_default_server): Likewise.
28106 (grub_env_write_pxe_default_gateway): Likewise.
28107 (grub_env_write_pxe_blocksize): Likewise.
28108 (GRUB_MOD_INIT(pxe)): Set environment variables.
28109 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
28110 (grub_pxe_mac_addr_t): ... this. All users updated.
28111 (grub_pxe_your_ip): Removed.
28112 (grub_pxe_server_ip): Likewise.
28113 (grub_pxe_gateway_ip): Likewise.
28114 (grub_pxe_blksize): Likewise.
28115
28116 2009-12-25 Carles Pina i Estany <carles@pina.cat>
28117
28118 * commands/help.c: Include `<grub/i18n.h>'.
28119 (grub_cmd_help): Gettextizze.
28120 (GRUB_MOD_INIT): Likewise.
28121 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
28122 (GRUB_MOD_INIT): Gettextizze.
28123 * commands/search.c: Include `<grub/i18n.h>'.
28124 (options): Gettextizze.
28125 (GRUB_MOD_INIT): Gettextizze.
28126 * lib/arg.c: Include `<grub/i18n.h>'.
28127 (help_options): Gettextizze.
28128 (find_long): Likewise.
28129 (grub_arg_show_help): Likewise.
28130 * normal/dyncmd.c: Include `<grub/i18n.h>'.
28131 (read_command_list): Gettextizze.
28132 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
28133 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
28134
28135 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
28136
28137 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
28138 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
28139 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
28140 (led_status): New variable.
28141 (keyboard_controller_led): New function.
28142 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
28143 update led status for caps lock, num lock and scroll lock.
28144
28145 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
28146
28147 * util/hostdisk.c (open_device): Fix a comment.
28148
28149 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
28150
28151 * util/grub-install.in (host_os): New variable.
28152 * util/i386/efi/grub-install.in (host_os): Likewise.
28153
28154 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
28155
28156 * util/mkisofs/write.c (padblock_write): Abort when given an
28157 excedingly large embed image, instead of silently truncating it.
28158
28159 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
28160
28161 * include/multiboot.h: Indentation fixes.
28162
28163 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
28164
28165 * include/multiboot.h (struct multiboot_aout_symbol_table)
28166 (struct multiboot_elf_section_header_table): New structure
28167 declarations (stolen from GRUB Legacy).
28168 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
28169 table information.
28170
28171 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
28172 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
28173 type aliases.
28174
28175 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
28176
28177 * include/multiboot.h: Make comments src2texi-friendly.
28178
28179 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
28180
28181 For consistency with [multiboot]/docs/boot.S.
28182
28183 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
28184 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
28185 (MULTIBOOT_MAGIC2): Rename from this ...
28186 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
28187
28188 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
28189
28190 * include/multiboot.h: Remove `<grub/types.h>'.
28191 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
28192 types. Update all users.
28193
28194 2009-12-25 Carles Pina i Estany <carles@pina.cat>
28195
28196 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
28197 `couldn't' and `can not' by `cannot'.
28198 * commands/i386/pc/drivemap.c: Likewise.
28199 * disk/ata.c: Likewise.
28200 * disk/ieee1275/nand.c: Likewise.
28201 * fs/affs.c: Likewise.
28202 * fs/fat.c: Likewise.
28203 * fs/hfs.c: Likewise.
28204 * fs/hfsplus.c: Likewise.
28205 * fs/iso9660.c: Likewise.
28206 * fs/jfs.c: Likewise.
28207 * fs/minix.c: Likewise.
28208 * fs/reiserfs.c: Likewise.
28209 * fs/sfs.c: Likewise.
28210 * fs/udf.c: Likewise.
28211 * fs/ufs.c: Likewise.
28212 * fs/xfs.c: Likewise.
28213 * loader/powerpc/ieee1275/linux.c: Likewise.
28214 * loader/sparc64/ieee1275/linux.c: Likewise.
28215 * util/grub-probe.c: Likewise.
28216 * util/misc.c: Likewise.
28217
28218 2009-12-24 Carles Pina i Estany <carles@pina.cat>
28219
28220 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
28221 grub_errno calls.
28222 * commands/acpi.c: Likewise.
28223 * commands/blocklist.c: Likewise.
28224 * commands/efi/loadbios.c: Likewise.
28225 * commands/i386/pc/drivemap.c: Likewise.
28226 * commands/loadenv.c: Likewise.
28227 * commands/memrw.c: Likewise.
28228 * commands/password.c: Likewise.
28229 * commands/videotest.c: Likewise.
28230 * disk/ata.c: Likewise.
28231 * disk/ata_pthru.c: Likewise.
28232 * disk/dmraid_nvidia.c: Likewise.
28233 * disk/ieee1275/nand.c: Likewise.
28234 * disk/ieee1275/ofdisk.c: Likewise.
28235 * disk/loopback.c: Likewise.
28236 * disk/lvm.c: Likewise.
28237 * disk/mdraid_linux.c: Likewise.
28238 * disk/raid.c: Likewise.
28239 * disk/raid6_recover.c: Likewise.
28240 * disk/scsi.c: Likewise.
28241 * efiemu/main.c: Likewise.
28242 * efiemu/mm.c: Likewise.
28243 * efiemu/pnvram.c: Likewise.
28244 * efiemu/symbols.c: Likewise.
28245 * font/font.c: Likewise.
28246 * fs/cpio.c: Likewise.
28247 * fs/hfsplus.c: Likewise.
28248 * fs/iso9660.c: Likewise.
28249 * fs/jfs.c: Likewise.
28250 * fs/minix.c: Likewise.
28251 * fs/ntfs.c: Likewise.
28252 * fs/ntfscomp.c: Likewise.
28253 * fs/reiserfs.c: Likewise.
28254 * fs/ufs.c: Likewise.
28255 * fs/xfs.c: Likewise.
28256 * gettext/gettext.c: Likewise.
28257 * include/grub/auth.h: Likewise.
28258 * kern/elf.c: Likewise.
28259 * kern/file.c: Likewise.
28260 * kern/ieee1275/init.c: Likewise.
28261 * kern/ieee1275/mmap.c: Likewise.
28262 * kern/ieee1275/openfw.c: Likewise.
28263 * kern/powerpc/dl.c: Likewise.
28264 * kern/sparc64/dl.c: Likewise.
28265 * lib/arg.c: Likewise.
28266 * loader/i386/bsd.c: Likewise.
28267 * loader/i386/bsdXX.c: Likewise.
28268 * loader/i386/efi/linux.c: Likewise.
28269 * loader/i386/efi/xnu.c: Likewise.
28270 * loader/i386/ieee1275/linux.c: Likewise.
28271 * loader/i386/linux.c: Likewise.
28272 * loader/i386/multiboot.c: Likewise.
28273 * loader/i386/pc/linux.c: Likewise.
28274 * loader/i386/pc/multiboot2.c: Likewise.
28275 * loader/i386/xnu.c: Likewise.
28276 * loader/ieee1275/multiboot2.c: Likewise.
28277 * loader/macho.c: Likewise.
28278 * loader/machoXX.c: Likewise.
28279 * loader/multiboot2.c: Likewise.
28280 * loader/multiboot_loader.c: Likewise.
28281 * loader/powerpc/ieee1275/linux.c: Likewise.
28282 * loader/sparc64/ieee1275/linux.c: Likewise.
28283 * loader/xnu.c: Likewise.
28284 * loader/xnu_resume.c: Likewise.
28285 * mmap/i386/pc/mmap.c: Likewise.
28286 * normal/menu_viewer.c: Likewise.
28287 * partmap/acorn.c: Likewise.
28288 * partmap/amiga.c: Likewise.
28289 * partmap/apple.c: Likewise.
28290 * script/lexer.c: Likewise.
28291 * term/gfxterm.c: Likewise.
28292 * term/i386/pc/serial.c: Likewise.
28293 * term/i386/pc/vga.c: Likewise.
28294 * term/ieee1275/ofconsole.c: Likewise.
28295 * term/terminfo.c: Likewise.
28296 * video/bitmap.c: Likewise.
28297 * video/efi_gop.c: Likewise.
28298 * video/efi_uga.c: Likewise.
28299 * video/fb/video_fb.c: Likewise.
28300 * video/i386/pc/vbe.c: Likewise.
28301 * video/readers/tga.c: Likewise.
28302 * video/video.c: Likewise.
28303
28304 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
28305
28306 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
28307 * commands/lspci.c: Likewise.
28308 * commands/probe.c: Likewise.
28309 * commands/xnu_uuid.c: Likewise.
28310 * conf/i386-coreboot.rmk: Likewise.
28311 * conf/i386-efi.rmk: Likewise.
28312 * conf/i386-ieee1275.rmk: Likewise.
28313 * conf/i386-pc.rmk: Likewise.
28314 * conf/powerpc-ieee1275.rmk: Likewise.
28315 * conf/sparc64-ieee1275.rmk: Likewise.
28316 * conf/x86_64-efi.rmk: Likewise.
28317 * fs/i386/pc/pxe.c: Likewise.
28318 * gettext/gettext.c: Likewise.
28319 * include/grub/efi/graphics_output.h: Likewise.
28320 * include/grub/i386/pc/memory.h: Likewise.
28321 * kern/env.c: Likewise.
28322 * kern/i386/qemu/startup.S: Likewise.
28323 * lib/i386/pc/biosnum.c: Likewise.
28324 * lib/i386/relocator.c: Likewise.
28325 * lib/i386/relocator_asm.S: Likewise.
28326 * lib/relocator.c: Likewise.
28327 * loader/i386/bsd.c: Likewise.
28328 * loader/i386/multiboot.c: Likewise.
28329 * loader/i386/pc/chainloader.c: Likewise.
28330 * loader/i386/xnu.c: Likewise.
28331 * loader/xnu.c: Likewise.
28332 * normal/main.c: Likewise.
28333 * normal/menu_text.c: Likewise.
28334 * util/getroot.c: Likewise.
28335 * util/grub-mkconfig_lib.in: Likewise.
28336 * util/grub.d/00_header.in: Likewise.
28337 * util/i386/pc/grub-mkimage.c: Likewise.
28338 * util/mkisofs/eltorito.c: Likewise.
28339 * util/mkisofs/exclude.h: Likewise.
28340 * util/mkisofs/hash.c: Likewise.
28341 * util/mkisofs/iso9660.h: Likewise.
28342 * util/mkisofs/joliet.c: Likewise.
28343 * util/mkisofs/mkisofs.c: Likewise.
28344 * util/mkisofs/mkisofs.h: Likewise.
28345 * util/mkisofs/multi.c: Likewise.
28346 * util/mkisofs/name.c: Likewise.
28347 * util/mkisofs/rock.c: Likewise.
28348 * util/mkisofs/tree.c: Likewise.
28349 * util/mkisofs/write.c: Likewise.
28350 * video/efi_gop.c: Likewise.
28351
28352 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
28353
28354 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
28355 size counting.
28356
28357 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
28358
28359 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
28360 * genmk.rb (class SCRIPT): Modify the target file instead of source.
28361
28362 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
28363
28364 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
28365 (GRUB_MOD_INIT(memrw)): Update help line.
28366
28367 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
28368
28369 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
28370 Use grub_extcmd_t. All users updated.
28371 (options): New variable.
28372 (grub_cmd_read): Restructure for readability. Support "-v" option.
28373 (grub_cmd_write): Restructure for readability.
28374
28375 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
28376
28377 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
28378
28379 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
28380
28381 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
28382 with the actual contents of the correspondending make variable.
28383 * util/grub-mkrescue.in (pkglib_DATA): New variable.
28384 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
28385 specifying `*.lst' and `efiemu??.o'
28386
28387 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
28388
28389 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
28390 after function name.
28391 Noticed by Rene Engelhard <rene@debian.org>.
28392
28393 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
28394
28395 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
28396 (options): New variable.
28397 (iospace): Likewise.
28398 (grub_lspci_iter): List IO spaces if "-i" was given.
28399 (grub_cmd_lspci): Parse options.
28400 (GRUB_MOD_INIT(lspci)): Use extcmd.
28401 (GRUB_MOD_FINI(lspci)): Likewise.
28402
28403 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
28404
28405 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
28406 `function' keyword.
28407 Patch by Tony Mancill <tmancill@debian.org>.
28408
28409 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
28410
28411 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
28412 (grub_uhci_portstatus): Likewise.
28413 (grub_uhci_portstatus): Add necessary delay.
28414 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
28415
28416 2009-12-21 Carles Pina i Estany <carles@pina.cat>
28417
28418 * commands/acpi.c (options): Fix capitalizations and/or full stops.
28419 (GRUB_MOD_INIT): Likewise.
28420 * commands/boot.c (GRUB_MOD_INIT): Likewise.
28421 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
28422 * commands/echo.c (options): Fix capitalizations and/or full stops.
28423 * commands/efi/loadbios.c (enable_rom_area): Likewise.
28424 (enable_rom_area): Likewise.
28425 (GRUB_MOD_INIT): Likewise.
28426 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
28427 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
28428 * commands/handler.c (GRUB_MOD_INIT): Likewise.
28429 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
28430 * commands/hexdump.c (options): Likewise.
28431 * commands/i386/cpuid.c (options): Likewise.
28432 (GRUB_MOD_INIT): Likewise.
28433 * commands/i386/pc/drivemap.c (options): Likewise.
28434 (GRUB_MOD_INIT): Likewise.
28435 * commands/i386/pc/halt (options): Likewise.
28436 (GRUB_MOD_INIT): Likewise.
28437 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
28438 * commands/i386/pc/pxecmd.c (options): Likewise.
28439 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
28440 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
28441 * commands/keystatus.c (options): Likewise.
28442 (GRUB_MOD_INIT): Likewise.
28443 * commands/loadenv.c (options): Likewise.
28444 * commands/ls.c (options): Likewise.
28445 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
28446 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
28447 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
28448 * commands/parttool.c (helpmsg): Likewise.
28449 * commands/probe.c (options): Likewise.
28450 * commands/read.c (GRUB_MOD_INIT): Likewise.
28451 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
28452 * commands/search.c (options): Likewise.
28453 * commands/sleep.c (options): Likewise.
28454 * commands/test.c (GRUB_MOD_INIT): Likewise.
28455 * commands/true.c (GRUB_MOD_INIT): Likewise.
28456 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
28457 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
28458 * lib/arg.c (help_options): Likewise.
28459 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
28460 `$(XGETTEXT)'.
28461 * po/POTFILES: Add `commands/loadenv.c'.
28462
28463 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
28464
28465 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
28466 instead of specifying them explicit.
28467
28468 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
28469
28470 * NEWS: Add grub-probe support for GNU/Hurd.
28471
28472 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
28473
28474 * NEWS: gettext was added after 1.97.
28475
28476 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
28477
28478 * util/mkisofs/msdos_partition.h: New file (based on
28479 include/grub/msdos_partition.h).
28480 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
28481 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
28482 (ld_options, main): Recognize --protective-msdos-label.
28483 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
28484 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
28485 (padblock_write): If `use_protective_msdos_label' is set, patch a
28486 protective DOS-style label in the output image.
28487
28488 * util/grub-mkrescue.in: Use --protective-msdos-label.
28489
28490 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
28491
28492 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
28493 boot.
28494
28495 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
28496
28497 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
28498 variables.
28499 (ld_options, main): Recognize `--embedded-boot'.
28500 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
28501 declarations.
28502 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
28503 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
28504 (padblock_write): Likewise. Rewrite to support embedded boot image.
28505
28506 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
28507 for BIOS-based disk boot instead of only ElTorito.
28508
28509 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
28510
28511 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
28512 build (not needed for bootstrap).
28513
28514 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
28515
28516 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
28517 from i386-pc build (not needed for bootstrap).
28518 Rewrite a pair of strings.
28519
28520 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
28521
28522 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
28523
28524 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
28525
28526 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
28527
28528 2009-12-21 Andreas Born <futur.andy@googlemail.com>
28529
28530 * kern/env.c (grub_env_context_open): Mark exported variable for
28531 reexport.
28532
28533 2009-12-21 Andreas Born <futur.andy@googlemail.com>
28534
28535 * kern/env.c (grub_env_export): Create nonexistent variables before
28536 exporting.
28537
28538 2009-12-20 Carles Pina i Estany <carles@pina.cat>
28539
28540 * include/grub/auth.h: Include `<grub/i18n.h>'.
28541 (GRUB_GET_PASSWORD): Gettextizze string.
28542 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
28543 menu_text.c.
28544 (grub_utf8_to_ucs4_alloc): Fix indentation.
28545 (grub_print_ucs4): Likewise.
28546 (grub_getstringwidth): Likewise.
28547 (print_message_indented): New declaration.
28548 * normal/auth.c: Include `<grub/i18n.h>'.
28549 (grub_auth_check_authentication): Gettexttize string.
28550 * normal/cmdline.c: Include `<grub/i18n.h>'.
28551 (grub_cmdline_get): Gettextizze.
28552 * normal/color.c: Include `<grub/i18n.h>'.
28553 (grub_parse_color_name_pair): Gettexttize strings.
28554 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
28555 string (use `print_message_indented').
28556 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
28557 `include/grub/normal.h'.
28558 (print_message_indented): Renamed to ...
28559 (grub_print_message_indented): ... this. Remove `static' qualifer (now
28560 used in normal/main.c).
28561 (print_message): Use `grub_print_message_indented' instead of
28562 `print_message_indented'.
28563 (print_timeout): Likewise.
28564 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
28565 (grub_normal_print_device_info): Gettexttize strings.
28566 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
28567
28568 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
28569
28570 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
28571 of arguments. Return number of tokens and not arguments. All users
28572 updated.
28573
28574 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
28575
28576 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
28577 non-MSDOS paritions.
28578
28579 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
28580
28581 * include/grub/types.h (UNUSED): Removed since it conflicts with
28582 NetBSD headers. All users changed to direct __attribute__ ((unused)).
28583 Reported by Grégoire Sutre.
28584
28585 2009-12-19 Carles Pina i Estany <carles@pina.cat>
28586
28587 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
28588 (grub_print_ucs4_alloc): Likewise.
28589 (grub_getstringwidth): Likewise.
28590 * normal/main.c (grub_normal_init_page): Gettextize version string.
28591 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
28592 (getstringwidth): Renamed to ...
28593 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
28594 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
28595 (grub_print_ucs4): Remove `static' qualifer (now used in
28596 normal/main.c).
28597 * po/POTFILES: Add normal/main.c.
28598
28599 2009-12-19 Carles Pina i Estany <carles@pina.cat>
28600
28601 * normal/menu_text.c (STANDARD_MARGIN): New macro.
28602 (print_message_indented): Add `margin_left' and `margin_right'
28603 parameters.
28604 (print_message): Update `print_message_indented' calls. Adds '\n' to the
28605 strings.
28606 (print_timeout): Use `print_message_indented' to print the message.
28607 Deletes `second_stage' parameter.
28608 (run_menu): Update `print_timeout' calls.
28609
28610 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
28611
28612 Fix console palette on OpenFirmware.
28613
28614 * term/ieee1275/ofconsole.c (MAX): Removed.
28615 (colors): Redone based on VGA palette.
28616 (grub_ofconsole_setcolor): Discard brightness bit since only 8
28617 colors are supported.
28618 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
28619
28620 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
28621
28622 Fix potential EfiEmu double prepare.
28623
28624 * efiemu/main.c (prepared): New variable
28625 (grub_efiemu_unload): Set prepare to '0'.
28626 (grub_efiemu_prepare): Return if already prepared. Set prepared.
28627
28628 set_virtual_address_map support.
28629
28630 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
28631 prototype.
28632 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
28633 prototype.
28634 (grub_efiemu_crc32): Likewise.
28635 (grub_efiemu_crc64): Likewise.
28636 (grub_efiemu_set_virtual_address_map): Likewise.
28637 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
28638 New definition.
28639 (grub_autoefi_set_virtual_address_map): Likewise.
28640 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
28641 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
28642 Restructure flow to accomodate it.
28643 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
28644 (grub_efiemu_crc): Recompute CRC32.
28645 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
28646 (efiemu_ptv_relocated): ... this. Made global. All users updated.
28647 * efiemu/symbols.c (relocated_handle): New variable.
28648 (grub_efiemu_free_syms): Free relocated_handle.
28649 (grub_efiemu_alloc_syms): Allocate relocated_handle.
28650 (grub_efiemu_write_sym_markers): New function.
28651 (grub_efiemu_set_virtual_address_map): Likewise.
28652
28653 Newer XNU parameters.
28654
28655 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
28656 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
28657 (grub_xnu_fill_devicetree): New prototype.
28658 (grub_xnu_heap_real_start): New variable.
28659 * loader/xnu.c (get_name_ptr): New function.
28660 (grub_xnu_load_driver): Fill namelen and name.
28661
28662 64-bit xnu support.
28663
28664 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
28665 and 'loader/macho64.c'.
28666 * conf/i386-pc.rmk: Likewise.
28667 * conf/x86_64-efi.rmk: Likewise.
28668 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
28669 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
28670 * include/grub/macho.h (grub_macho_segment64): New structure.
28671 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
28672 (grub_macho_size32): ... to this.
28673 (grub_macho32_get_entry_point): Renamed from ...
28674 (grub_macho_get_entry_point32): ... to this.
28675 (grub_macho_contains_macho64): New prototype.
28676 (grub_macho_size64): Likewise.
28677 (grub_macho_get_entry_point64): Likewise.
28678 (grub_macho32_load): Renamed from ...
28679 (grub_macho_load32): ... to this.
28680 (grub_macho32_filesize): Renamed from ...
28681 (grub_macho_filesize32): ... to this.
28682 (grub_macho32_readfile): Renamed from ...
28683 (grub_macho_readfile32): ... to this.
28684 (grub_macho_filesize64): New prototype.
28685 (grub_macho_readfile64): Likewise.
28686 (grub_macho_parse32): Likewise.
28687 (grub_macho_parse64): Likewise.
28688 * loader/macho.c: Split into ...
28689 * loader/machoXX.c: ... and this. Replace 32 with XX.
28690 * loader/macho32.c: New file.
28691 * loader/macho64.c: Likewise.
28692 * loader/xnu.c (grub_xnu_is_64bit): New variable.
28693 (grub_cmd_xnu_kernel): Make 32-bit only.
28694 (grub_cmd_xnu_kernel64): New function.
28695 (grub_xnu_load_driver): Support Mach-O 64.
28696 (grub_cmd_xnu_mkext): Likewise.
28697 * util/grub.d/30_os-prober.in (osx_entry): New function.
28698 Generate entries for 64-bit boot too.
28699
28700 Eliminate ad-hoc tree format in XNU and EfiEmu.
28701
28702 * efiemu/main.c (grub_efiemu_prepare): Update comment.
28703 * efiemu/pnvram.c: Rewritten to use environment variables.
28704 All users updated.
28705
28706 Inline utf16_to_utf8.
28707
28708 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
28709 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
28710 All users updated.
28711 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
28712
28713 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
28714 * commands/usbtest.c (grub_usb_get_string): ... move here.
28715 (usb_print_str): Fix error handling.
28716 * include/grub/usb.h (grub_usb_get_string): Remove.
28717
28718 UTF-8 to UTF-16 transformation.
28719
28720 * conf/common.rmk (pkglib_MODULES): Add charset.mod
28721 (charset_mod_SOURCES): New variable.
28722 (charset_mod_CFLAGS): Likewise.
28723 (charset_mod_LDFLAGS): Likewise.
28724 * include/grub/utf.h: New file.
28725 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
28726
28727 Support for device properties.
28728
28729 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
28730 (grub_xnu_devprop_device_header): Likewise.
28731 (grub_xnu_devprop_device_descriptor): Likewise.
28732 (grub_xnu_devprop_add_device): New prototype.
28733 (grub_xnu_devprop_remove_device): Likewise.
28734 (grub_xnu_devprop_remove_property): Likewise.
28735 (grub_xnu_devprop_add_property_utf8): Likewise.
28736 (grub_xnu_devprop_add_property_utf16): Likewise.
28737 (grub_cpu_xnu_init): Likewise.
28738 (grub_cpu_xnu_fini): Likewise.
28739 (grub_cpu_xnu_unload): Likewise.
28740 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
28741 (property_descriptor): Likewise.
28742 (devices): New variable.
28743 (grub_xnu_devprop_remove_property): New function.
28744 (grub_xnu_devprop_add_device): Likewise.
28745 (grub_xnu_devprop_remove_device): Likewise.
28746 (grub_xnu_devprop_add_property): Likewise.
28747 (grub_xnu_devprop_add_property_utf8): Likewise.
28748 (grub_xnu_devprop_add_property_utf16): Likewise.
28749 (hextoval): Likewise.
28750 (grub_cpu_xnu_fill_devprop): Likewise.
28751 (grub_cmd_devprop_load): Likewise.
28752 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
28753 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
28754 (cmd_devprop_load): New variable.
28755 (grub_cpu_xnu_init): New function.
28756 (grub_cpu_xnu_fini): Likewise.
28757 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
28758 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
28759 (grub_cmd_xnu_devtree): Likewise.
28760 (hextoval): New function.
28761 (unescape): Likewise.
28762 (grub_xnu_fill_devicetree): Likewise.
28763
28764 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
28765 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
28766
28767 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
28768
28769 Workaround for broken ATI VBE.
28770
28771 * video/i386/pc/vbe.c (last_set_mode): New variable.
28772 (grub_vbe_set_video_mode): Set 'last_set_mode'.
28773 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
28774 (grub_video_vbe_setup): Don't check for reserved flag.
28775
28776 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
28777
28778 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
28779 the `find' command.
28780
28781 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
28782
28783 UUID support for HFS.
28784
28785 * fs/hfs.c (grub_hfs_uuid): New function.
28786 (grub_hfs_fs): New value .uuid.
28787 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
28788
28789 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
28790
28791 Fix a segfault with parsing unknown long options.
28792
28793 * util/grub-mkrelpath.c (options): Zero terminate it.
28794
28795 2009-12-13 Carles Pina i Estany <carles@pina.cat>
28796
28797 * include/grub/misc.h (grub_puts): New declaration.
28798 (grub_puts_): Likewise.
28799 * kern/misc.c (grub_puts): New definition.
28800 (grub_puts_): Likewise.
28801
28802 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
28803
28804 * util/grub-probe.c (probe): Improve error message.
28805
28806 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
28807
28808 * loader/i386/multiboot_elfxx.c
28809 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
28810 initialization.
28811
28812 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
28813
28814 Relocator framework
28815
28816 * loader/i386/xnu_helper.S: Removed. All users updated.
28817 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
28818 (relocator_mod_SOURCES): New variable.
28819 (relocator_mod_CFLAGS): Likewise.
28820 (relocator_mod_LDFLAGS): Likewise.
28821 (relocator_mod_ASFLAGS): Likewise.
28822 * conf/x86_64.rmk: Likewise.
28823 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
28824 (grub_multiboot_payload_entry_offset): Likewise.
28825 (grub_multiboot_forward_relocator): Likewise.
28826 (grub_multiboot_forward_relocator_end): Likewise.
28827 (grub_multiboot_backward_relocator): Likewise.
28828 (grub_multiboot_backward_relocator_end): Likewise.
28829 (grub_multiboot_payload_eip): New variable.
28830 (grub_multiboot_payload_orig): Likewise.
28831 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
28832 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
28833 * include/grub/i386/memory.h
28834 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
28835 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
28836 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
28837 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
28838 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
28839 * include/grub/i386/relocator.h: New file.
28840 * include/grub/x86_64/relocator.h: Likewise.
28841 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
28842 (XNU_RELOCATOR): New macro.
28843 (grub_xnu_launcher_start): Remove.
28844 (grub_xnu_launcher_end): Likewise.
28845 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
28846 (grub_xnu_heap_real_start): Remove.
28847 (grub_xnu_heap_start): Change to void *. All users updated.
28848 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
28849 * lib/i386/relocator.c: New file.
28850 * lib/i386/relocator_asm.S: Likewise.
28851 * lib/i386/relocator_backward.S: Likewise.
28852 * lib/mips/relocator.c: Likewise.
28853 * lib/mips/relocator_asm.S: Likewise.
28854 * lib/relocator.c: Likewise.
28855 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
28856 (entry): Removed.
28857 (playground): Likewise.
28858 (grub_multiboot_payload_orig): New variable.
28859 (grub_multiboot_payload_dest): Likewise.
28860 (grub_multiboot_payload_size): Likewise.
28861 (grub_multiboot_payload_eip): Likewise.
28862 (grub_multiboot_payload_esp): Likewise.
28863 (grub_multiboot_boot): Use grub_relocator32_boot.
28864 (grub_multiboot_unload): Free relocators.
28865 (grub_multiboot): Setup stack. Use relocators.
28866 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
28867 (grub_multiboot_load_elfXX): Use relocators.
28868 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
28869 (grub_multiboot_payload_size): Likewise.
28870 (grub_multiboot_payload_dest): Likewise.
28871 (grub_multiboot_payload_entry_offset): Likewise.
28872 (grub_multiboot_forward_relocator): Likewise.
28873 (grub_multiboot_backward_relocator): Likewise.
28874 (grub_multiboot_real_boot): Likewise.
28875 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
28876 (grub_xnu_entry_point): Likewise.
28877 (grub_xnu_arg1): Likewise.
28878 (grub_xnu_stack): Likewise.
28879 (grub_xnu_launch): Removed.
28880 (grub_xnu_boot_resume): New function.
28881 (grub_xnu_boot): Use relocators.
28882 * loader/i386/xnu_helper.S: Removed.
28883 * loader/xnu.c (grub_xnu_heap_start): New variable.
28884 (grub_xnu_heap_size): Likewise.
28885 (grub_xnu_heap_malloc): Use relocators.
28886 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
28887
28888 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
28889
28890 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
28891 anything.
28892
28893 2009-12-13 Carles Pina i Estany <carles@pina.cat>
28894
28895 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
28896 GRUB_ERR_NONE before calling grub_env_set.
28897
28898 2009-12-12 Robert Millan <rmh@aybabtu.com>
28899
28900 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
28901 * genmk.rb (video): New variable.
28902 (CLEANFILES, VIDEOFILES): Add #{video}.
28903 (#{video}): New target rule.
28904 * genvideolist.sh: New file.
28905 * Makefile.in (pkglib_DATA): Add video.lst.
28906 (video.lst): New target rule.
28907 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
28908 `video.lst'.
28909 * util/grub.d/30_os-prober.in: Replace `vbe' with
28910 ${GRUB_VIDEO_BACKEND}.
28911
28912 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
28913
28914 * THANKS: Add David Miller.
28915
28916 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
28917
28918 libpciaccess support.
28919
28920 * Makefile.in (LIBPCIACCESS): New variable.
28921 (enable_grub_emu_pci): Likewise.
28922 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
28923 util/pci.c and commands/lspci.c.
28924 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
28925 * configure.ac (grub-emu-pci): New option.
28926 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
28927 (grub_pci_device_unmap_range): Likewise.
28928 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
28929 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
28930 (grub_pci_address_t) [!GRUB_UTIL]: New type.
28931 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
28932 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
28933 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
28934 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
28935 * include/grub/pciutils.h: New file.
28936 * util/pci.c: Likewise.
28937
28938 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
28939
28940 * util/misc.c: Don't include <errno.h> twice.
28941
28942 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
28943
28944 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
28945 name in an error message.
28946 (grub_biosdisk_rw): Likewise.
28947
28948 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
28949
28950 Eliminate NTFS 4Gib barrier.
28951
28952 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
28953 (read_run_data): Likewise.
28954 (grub_ntfs_read_run_list): Likewise.
28955 (grub_ntfs_read_block): Likewise.
28956 (grub_ntfs_iterate_dir): Likewise.
28957 (read_mft): Likewise.
28958 (read_data): Likewise.
28959 Use COM_LOG_LEN.
28960 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
28961 to avoid 64-bit division
28962 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
28963 (grub_ntfs_rlst): Use grub_disk_addr_t.
28964
28965 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
28966
28967 Eliminate grub-fstest 4Gib barrier.
28968
28969 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
28970 (read_file): Fix error reporting.
28971
28972 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
28973
28974 Eliminate hexdump 4Gib barrier.
28975
28976 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
28977 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
28978
28979 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
28980
28981 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
28982 Fixes amarsh bug.
28983
28984 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
28985
28986 Remove miscellaneous files in distclean target.
28987
28988 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
28989
28990 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
28991
28992 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
28993 if they're already set. This resolves the conflict between my
28994 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
28995 fixing the --grub-probe option again.
28996 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
28997 change on 2009-10-06, so that we now once again source
28998 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
28999
29000 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
29001
29002 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
29003 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
29004 `util/devicemap.c'.
29005
29006 2009-12-08 Carles Pina i Estany <carles@pina.cat>
29007
29008 * include/grub/misc.h (grub_printf_): New declaration.
29009 * kern/misc.c (grub_printf_): New definition.
29010 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
29011 instead of `grub_printf' and `_'.
29012 * normal/menu_entry.c (store_completion): Likewise.
29013 (run): Likewise.
29014 (grub_menu_entry_run): Likewise.
29015 * normal/menu_text.c (grub_wait_after_message): Likewise.
29016 (notify_booting): Likewise.
29017 (notify_fallback): Likewise.
29018 (notify_execution_failure): Likewise.
29019
29020 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
29021
29022 * configure.ac: Check for vasprintf.
29023 * util/misc.c (asprintf): Move allocation from here ...
29024 (vasprintf): ... to here. New function.
29025 (xasprintf): New function.
29026 * include/grub/util/misc.h (vasprintf, xasprintf): Add
29027 prototypes.
29028 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
29029 * util/grub-mkfont.c (write_font): Likewise.
29030 * util/grub-probe.c (probe): Likewise.
29031 * util/hostdisk.c (make_device_name): Likewise.
29032
29033 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
29034
29035 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
29036 anything even prefixed with 'cdrom' as a cdrom.
29037
29038 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
29039
29040 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
29041 mount points.
29042
29043 2009-12-05 Carles Pina i Estany <carles@pina.cat>
29044
29045 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
29046 grub_gettext_msg_list.
29047 (grub_gettext_gettranslation_from_position): Return const char *
29048 and not char *.
29049 (grub_gettext_translate): Add the translated strings into a list,
29050 returns from the list if existing there.
29051 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
29052 (grub_gettext_delete_list): Delete the list.
29053 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
29054 lang environment variable is changed.
29055 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
29056
29057 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
29058
29059 Rename kernel.mod to kernel.img.
29060
29061 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
29062 (kernel_mod_EXPORTS): Rename to ...
29063 (kernel_img_EXPORTS): ... this.
29064 (kernel_mod_SOURCES): Rename to ...
29065 (kernel_img_SOURCES): ... this.
29066 (kernel_mod_HEADERS): Rename to ...
29067 (kernel_img_HEADERS): ... this. All users updated.
29068 (kernel_mod_CFLAGS): Rename to ...
29069 (kernel_img_CFLAGS): ... this.
29070 (kernel_mod_ASFLAGS): Rename to ...
29071 (kernel_img_ASFLAGS): ... this.
29072 (kernel_mod_LDFLAGS): Rename to ...
29073 (kernel_img_LDFLAGS): ... this.
29074 * conf/x86_64-efi.rmk: Likewise.
29075 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
29076 (read_kernel_image): ... this. All users updated.
29077 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
29078
29079 2009-12-05 Carles Pina i Estany <carles@pina.cat>
29080
29081 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
29082 (print_spaces): New function.
29083 (grub_print_ucs4): New function.
29084 (getstringwidth): New function.
29085 (print_message_indented): New function.
29086 (print_message): Gettexttize strings using print_message_indented.
29087 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
29088 width.
29089 (get_entry_number): Gettextize and uses dynamic terminal width.
29090 (notify_booting, notify_fallback, notify_execution_failure):
29091 Gettextize.
29092 * normal/menu_entry.c (store_completion): Cleanup the gettextized
29093 string.
29094 (run): Likewise.
29095 (grub_menu_entry_run): Likewise.
29096 * PO/POTFILES: Add normal/menu_entry.c.
29097
29098 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
29099
29100 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
29101
29102 2009-12-05 Carles Pina i Estany <carles@pina.cat>
29103
29104 * util/grub-install.in: Install gettext .mo files.
29105 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
29106
29107 2009-12-05 Carles Pina i Estany <carles@pina.cat>
29108
29109 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
29110 grub_dprintf.
29111
29112 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
29113
29114 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
29115 non-firmware-dependant one in realmode.S takes precedence.
29116
29117 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
29118
29119 * commands/halt.c: Replace misc arch-specific headers with
29120 `<grub/misc.h>'.
29121 * commands/reboot.c: Likewise.
29122 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
29123 `<grub/misc.h>'.
29124 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
29125 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
29126 (kernel_img_SOURCES): ... to here.
29127
29128 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
29129 * include/grub/i386/pc/init.h: Likewise.
29130 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
29131 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
29132
29133 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
29134
29135 * include/grub/i386/halt.h: Remove.
29136 * include/grub/i386/reboot.h: Likewise.
29137
29138 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
29139
29140 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
29141
29142 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
29143 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
29144 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
29145 "progname.h"
29146 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
29147 * util/sparc64/ieee1275/grub-setup.c: Likewise.
29148 (usage): Add missing comma in printf.
29149
29150 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
29151
29152 Use the same reboot approach on i386 coreboot and qemu as we do on
29153 BIOS.
29154
29155 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
29156 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
29157 * kern/i386/reboot.c: Remove.
29158 * include/grub/i386/reboot.h (grub_reboot): Export function.
29159 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
29160 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
29161 0xf000:0xfff0 instead of 0xffff:0x0000.
29162 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
29163 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
29164
29165 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
29166
29167 Fix $srcdir != $objdir build.
29168
29169 * Makefile.in (po/%.po): Rewrite as ...
29170 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
29171
29172 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
29173
29174 Fix GNU/Hurd grub-install crash.
29175 * util/grub-probe.c (probe): Try to access `path' only when it is not
29176 NULL.
29177
29178 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
29179
29180 Correct module naming.
29181
29182 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
29183 (GRUB_MOD_INIT(efi_uga)): ... to this
29184 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
29185 (GRUB_MOD_FINI(efi_uga)): ... to this
29186 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
29187 (GRUB_MOD_INIT(efi_gop)): ... to this
29188 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
29189 (GRUB_MOD_FINI(efi_gop)): ... to this
29190
29191 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
29192
29193 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
29194 translatable.
29195 (usage): Translate `arg' strings using gettext().
29196 Thanks to Jordi Mallach for the suggestion.
29197
29198 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
29199
29200 GOP support. Based on patch from Bean
29201 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
29202
29203 * video/efi_gop.c: New file.
29204 * include/grub/efi/graphics_output.h: Likewise.
29205 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
29206 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
29207 variables.
29208 * conf/x86_64-efi.rmk: Likewise.
29209
29210 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
29211
29212 Rename efi_fb to efi_uga.
29213
29214 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
29215 'efi_uga.mod'.
29216 (efi_fb_mod_SOURCES): Rename this ...
29217 (efi_uga_mod_SOURCES): ... to this.
29218 (efi_fb_mod_CFLAGS): Rename this ...
29219 (efi_uga_mod_CFLAGS): ... to this.
29220 (efi_fb_mod_LDFLAGS): Rename this ...
29221 (efi_uga_mod_LDFLAGS): ... to this.
29222 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
29223 'efi_uga.mod'.
29224 (efi_fb_mod_SOURCES): Rename this ...
29225 (efi_uga_mod_SOURCES): ... to this.
29226 (efi_fb_mod_CFLAGS): Rename this ...
29227 (efi_uga_mod_CFLAGS): ... to this.
29228 (efi_fb_mod_LDFLAGS): Rename this ...
29229 (efi_uga_mod_LDFLAGS): ... to this.
29230 * video/efi_fb.c: Move this ...
29231 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
29232
29233 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
29234
29235 * po/README: New file. Explain our PO file workflow.
29236
29237 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
29238
29239 * po/ChangeLog: Remove. Move relevant entries back to ...
29240 * ChangeLog: ... here.
29241 * po/ca.po: Remove (now handled by TLP).
29242 * po/id.po: Likewise.
29243 * po/zh_CN.po: Likewise.
29244 * Makefile.in (LINGUAS): Initialize in a way that supports
29245 empty set.
29246
29247 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
29248
29249 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
29250 reliing on po/LINGUAS.
29251 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
29252 (po/%.po): ... this.
29253
29254 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
29255
29256 * util/i386/efi/grub-mkimage.c: Include "progname.h".
29257 (main): Use `program_name' instead of nonexistent `progname'.
29258
29259 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
29260
29261 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
29262 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
29263
29264 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
29265
29266 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
29267 commit.
29268 * conf/i386-efi.rmk: Likewise.
29269 * conf/i386-ieee1275.rmk: Likewise.
29270 * conf/powerpc-ieee1275.rmk: Likewise.
29271 * conf/sparc64-ieee1275.rmk: Likewise.
29272 * conf/x86_64-efi.rmk: Likewise.
29273
29274 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
29275
29276 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
29277
29278 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
29279
29280 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
29281
29282 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
29283
29284 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
29285 (grub_mkdevicemap_SOURCES): New variable.
29286 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
29287 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
29288 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
29289 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
29290 (grub_mkdevicemap_SOURCES): Remove.
29291 * conf/i386-efi.rmk: Likewise.
29292 * conf/i386-ieee1275.rmk: Likewise.
29293 * conf/i386-pc.rmk: Likewise.
29294 * conf/powerpc-ieee1275.rmk: Likewise.
29295 * conf/sparc64-ieee1275.rmk: Likewise.
29296 * conf/x86_64-efi.rmk: Likewise.
29297 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
29298 (usage): Fix strings to use `program_name'.
29299 (main): Initialize gettext.
29300 * util/grub-editenv.c: Likewise.
29301 * util/grub-emu.c: Likewise.
29302 * util/grub-fstest.c: Likewise.
29303 * util/grub-mkdevicemap.c: Likewise.
29304 * util/grub-mkfont.c: Likewise.
29305 * util/grub-mkrelpath.c: Likewise.
29306 * util/grub-pe2elf.c: Likewise.
29307 * util/grub-probe.c: Likewise.
29308 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
29309 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
29310 * util/sparc64/ieee1275/grub-setup.c: Likewise.
29311
29312 * util/misc.c: Include `"progname.h"'.
29313 (progname): Remove variable.
29314 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
29315
29316 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
29317
29318 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
29319 printf and print a newline after the menuentry header line.
29320 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29321
29322 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
29323
29324 autoconf >= 2.60 support $(localedir).
29325
29326 * INSTALL: Note that autoconf 2.60 is required.
29327 * configure.ac (AC_PREREQ): Bump to 2.60.
29328 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
29329 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29330
29331 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
29332
29333 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
29334 aclocal is run.
29335
29336 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
29337
29338 * normal/main.c (grub_normal_read_line): Fix off-by-one
29339 buffer overflow.
29340
29341 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
29342
29343 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
29344 "parser.grub" in grub_command_execute() call.
29345
29346 2009-11-24 Carles Pina i Estany <carles@pina.cat>
29347
29348 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
29349 * conf/i386-efi.rmk: Likewise.
29350 * conf/i386-ieee1275.rmk: Likewise.
29351 * conf/i386-pc.rmk: Likewise.
29352 * conf/powerpc-ieee1275.rmk: Likewise.
29353 * conf/sparc64-ieee1275.rmk: Likewise.
29354 * conf/x86_64-efi.rmk: Likewise.
29355 * gettext/gettex.c: Include <grub/i18n.h>.
29356 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
29357 here ...
29358 * include/grub/i18n.h: ... to here
29359 * include/grub/i18n.h: ... to here.
29360 * kern/misc.c: Include <grub/i18n.h>
29361 (grub_gettext_dummy): Move above user.
29362
29363 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
29364
29365 * util/Makefile.in (install-local): Convert a `for' into a normal
29366 shell expansion.
29367
29368 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
29369
29370 * autogen.sh: Add automake call.
29371 * config.guess: Remove.
29372 * config.sub: Likewise.
29373 * install-sh: Likewise.
29374
29375 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
29376
29377 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
29378
29379 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
29380
29381 * util/Makefile.in (install-local): Convert a make `$(foreach)'
29382 function to a normal shell `for'.
29383
29384 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
29385
29386 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
29387
29388 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
29389
29390 * util/grub-mkrelpath.c: New file.
29391 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
29392 (grub_mkrelpath_SOURCES): New variable.
29393 * include/grub/util/misc.h: New function prototype.
29394 * util/misc.c (make_system_path_relative_to_its_root): New function.
29395
29396 * util/grub-mkconfig_lib.in (bindir): New variable.
29397 (grub_mkrelpath): Likewise.
29398 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
29399
29400 * util/probe.c (probe): Make the file path relative to its root.
29401 Change a info message to use the GRUB path. Enable again the
29402 check if we can read the file with GRUB facilities.
29403
29404 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
29405 to its root.
29406
29407 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
29408
29409 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
29410 platform.
29411
29412 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
29413
29414 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
29415 strncmp().
29416
29417 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
29418
29419 * util/getroot.c (grub_util_is_dmraid): New function.
29420 (grub_util_get_dev_abstraction): Treat dmraid and multipath
29421 devices as normal ones, not as LVM.
29422
29423 2009-11-23 Carles Pina i Estany <carles@pina.cat>
29424
29425 * conf/common.rmk: Add grub-gettext_lib target and updates
29426 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
29427 LDFLAGS.
29428 * gettext/gettext.c: New file. (Reads mo files).
29429 * include/grub/file.h (grub_file_pread): New prototype.
29430 * include/grub/i18n.h (_): New prototype.
29431 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
29432 prototypes.
29433 * kern/misc.c (grub_gettext_dummy): New function.
29434 * normal/menu_text.c: Include <grub/i18n.h>.
29435 * normal/menu_text.c (print_timeout): Gettexttize string.
29436 * normal/menu_text.c (print_message): Gettexttize string.
29437 * po/POTFILES: Add `normal/menu_text.c'.
29438 * po/ca.po: Add new translations.
29439 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
29440 gettext module and defines locale_dir and lang in grub.cfg.
29441 * NEWS: Add gettext support.
29442
29443 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
29444
29445 * util/hostdisk.c: Include `<grub/i18n.h>'.
29446 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
29447 (make_device_name): Rewrite using asprintf.
29448 (convert_system_partition_to_system_disk): Replace 0 with NULL.
29449 (find_system_device): If a device is not found, generate one just
29450 by reusing the OS path name.
29451 (read_device_map): Make it permissible for device.map not to exist.
29452
29453 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
29454
29455 * script/sh/execute.c: Move from here ...
29456 * script/execute.c: ... to here. Update all users.
29457 * script/sh/function.c: Move from here ...
29458 * script/function.c: ... to here. Update all users.
29459 * script/sh/lexer.c: Move from here ...
29460 * script/lexer.c: ... to here. Update all users.
29461 * script/sh/main.c: Move from here ...
29462 * script/main.c: ... to here. Update all users.
29463 * script/sh/parser.y: Move from here ...
29464 * script/parser.y: ... to here. Update all users.
29465 * script/sh/script.c: Move from here ...
29466 * script/script.c: ... to here. Update all users.
29467
29468 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
29469
29470 * configure.ac: Detect all `emu' platforms. Define
29471 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
29472 --enable-grub-emu logic. Disable include/grub/machine
29473 symlink on `emu' platforms.
29474
29475 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
29476 * gensymlist.sh.in: Likewise.
29477
29478 * include/grub/i386/coreboot/machine.h: Remove file.
29479 * include/grub/i386/efi/machine.h: Likewise.
29480 * include/grub/i386/ieee1275/machine.h: Likewise.
29481 * include/grub/i386/pc/machine.h: Likewise.
29482 * include/grub/i386/qemu/machine.h: Likewise.
29483 * include/grub/powerpc/ieee1275/machine.h: Likewise.
29484 * include/grub/sparc64/ieee1275/machine.h: Likewise.
29485 * include/grub/x86_64/efi/machine.h: Likewise.
29486
29487 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
29488 * commands/halt.c: Likewise.
29489 * commands/reboot.c: Likewise.
29490 * include/grub/autoefi.h: Likewise.
29491 * include/grub/i386/at_keyboard.h: Likewise.
29492 * include/grub/i386/kernel.h: Likewise.
29493 * include/grub/i386/loader.h: Likewise.
29494 * include/grub/i386/pc/memory.h: Likewise.
29495 * kern/dl.c: Likewise.
29496 * kern/i386/coreboot/init.c: Likewise.
29497 * loader/i386/bsd.c: Likewise.
29498 * loader/i386/linux.c: Likewise.
29499 * loader/multiboot_loader.c: Likewise.
29500 * term/i386/pc/serial.c: Likewise.
29501 * term/usb_keyboard.c: Likewise.
29502
29503 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
29504 `<grub/machine/machine.h>'
29505 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
29506 * util/misc.c: Remove `<grub/machine/machine.h>' and
29507 `<grub/machine/time.h>'.
29508
29509 * Makefile.in (enable_grub_emu): Remove variable.
29510 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
29511
29512 * conf/any-emu.rmk: New file.
29513 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
29514 (grub_emu_init.c): Move from here ...
29515 * conf/any-emu.rmk: ... to here.
29516
29517 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
29518 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
29519 * conf/any-emu.rmk: ... to here.
29520
29521 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
29522
29523 * include/grub/parser.h (grub_parser_register): Document need
29524 of `name' parameter.
29525 * normal/main.c (grub_normal_read_line): Simplify prompt string.
29526 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
29527 "sh" to "grub".
29528
29529 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
29530
29531 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
29532 `$(XGETTEXT)'.
29533 * include/grub/i18n.h (N_): New macro.
29534 * util/mkisofs/mkisofs.h: Likewise.
29535 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
29536 around N_().
29537 (usage): Use gettext() to translate help strings when printing them.
29538
29539 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
29540
29541 Based on patch from Bean
29542 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
29543
29544 * video/efi_fb.c: New file.
29545 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
29546 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
29547 variables.
29548 * conf/x86_64-efi.rmk: Likewise.
29549
29550 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
29551
29552 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
29553 * util/i386/pc/grub-setup.c: Likewise.
29554
29555 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
29556
29557 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
29558 <hurd/fs.h>
29559 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
29560 file_get_storage_info to implement grub_guess_root_device.
29561
29562 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
29563
29564 * Makefile.in (target): Use make's builtin $(shell) function
29565 instead of calling directly $(SHELL) to create the locale directories,
29566 inside the $(foreach) function.
29567
29568 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
29569
29570 * util/grub-mkrescue.in: Print an error and usage if output option
29571 has not been given.
29572
29573 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
29574
29575 Patch from Loïc Minier <loic.minier@ubuntu.com>.
29576 * util/grub.d/30_os-prober.in: Cope with Linux entries where
29577 root and /boot are on different devices.
29578
29579 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
29580
29581 Fix build for srcdir != objdir.
29582
29583 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
29584 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
29585 $(srcdir).
29586 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
29587 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
29588 reference for input.
29589
29590 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
29591
29592 * util/grub-mkrescue.in: Use source directory direcly (without copiing
29593 or hardlinking it). Remove -J option, Joliet is not compatible with
29594 multiple source directories.
29595
29596 2009-11-21 Carles Pina i Estany <carles@pina.cat>
29597 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
29598
29599 * util/grub-mkrescue.in: Recognize `--override-directory' option.
29600 (process_input_dir): New function. Process an arbitrary input
29601 directory.
29602 Misc adjustments to support both "override mode" and system-wide mode.
29603
29604 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
29605
29606 * configure.ac (UNIFONT_BDF): Rename to ...
29607 (FONT_SOURCE): ... this. Update all users.
29608
29609 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
29610
29611 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
29612 to the list of unifont files to look for.
29613
29614 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
29615
29616 Patch from Joe Auricchio <jauricchio@gmail.com>
29617 * commands/minicmd.c (grub_mini_cmd_clear): New function.
29618 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
29619 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
29620
29621 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
29622
29623 * Makefile.in (install-local): Add a missing backslash.
29624
29625 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
29626
29627 * include/grub/x86_64/io.h: New file.
29628
29629 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
29630
29631 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
29632 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
29633 Include `"progname.h"'.
29634 (main): Initialize gettext.
29635 * util/i386/pc/grub-setup.c: Gettexttize.
29636 * util/i386/pc/grub-mkimage.c: Likewise.
29637
29638 * Makefile.in (po/*.po): Redefine as ...
29639 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
29640
29641 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
29642
29643 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
29644
29645 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
29646 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
29647 (program_name): Remove.
29648 (main): Initialize gettext support.
29649 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
29650 Include `<libintl.h>'.
29651 (_): New macro.
29652
29653 * util/mkisofs/eltorito.c: Gettexttize.
29654 * util/mkisofs/joliet.c: Likewise.
29655 * util/mkisofs/mkisofs.c: Likewise.
29656 * util/mkisofs/multi.c: Likewise.
29657 * util/mkisofs/rock.c: Likewise.
29658 * util/mkisofs/tree.c: Likewise.
29659 * util/mkisofs/write.c: Likewise.
29660
29661 * po/POTFILES: Update with new files.
29662
29663 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
29664
29665 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
29666 * util/mkisofs/iso9660.h: Likewise.
29667 * util/mkisofs/joliet.c: Likewise.
29668 * util/mkisofs/mkisofs.c: Likewise.
29669 * util/mkisofs/mkisofs.h: Likewise.
29670 * util/mkisofs/rock.c: Likewise.
29671 * util/mkisofs/tree.c: Likewise.
29672 * util/mkisofs/write.c: Likewise.
29673
29674 * util/mkisofs/eltorito.c (rcsid): Remove.
29675 * util/mkisofs/hash.c: Likewise.
29676 * util/mkisofs/joliet.c: Likewise.
29677 * util/mkisofs/name.c: Likewise.
29678 * util/mkisofs/rock.c: Likewise.
29679 * util/mkisofs/tree.c: Likewise.
29680 * util/mkisofs/write.c: Likewise.
29681
29682 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
29683
29684 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
29685 instead of static allocation.
29686 * util/mkisofs/match.h: Likewise.
29687
29688 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
29689
29690 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
29691 and `util/grub.d/10_linux.in'.
29692 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
29693 translatable Shell files.
29694
29695 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
29696
29697 * Makefile.in ($(srcdir)/aclocal.m4): New target.
29698
29699 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29700
29701 * INSTALL: Document Automake is needed for bootstrap.
29702 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
29703 * util/grub.d/10_kfreebsd.in (bindir): New variable.
29704 Add gettext initialization.
29705 (kfreebsd_entry): Make menuentry output translatable.
29706
29707 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29708
29709 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
29710 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
29711 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
29712 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
29713 (LINGUAS): Auto-generate using `po/LINGUAS'.
29714 * po/LINGUAS: New file.
29715
29716 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29717
29718 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
29719 other things).
29720 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
29721 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
29722 bindtextdomain() calls for gettext initialization.
29723
29724 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29725
29726 * gnulib/progname.c: New file (imported from Gnulib).
29727 * gnulib/progname.h: Likewise.
29728 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
29729 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
29730 (usage): Replace `progname' with `program_name'.
29731 (main): Use set_program_name() for program name initialization.
29732
29733 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29734
29735 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
29736 from here ...
29737 * Makefile.in (CPPFLAGS): ... to here.
29738
29739 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
29740
29741 * aclocal.m4: Move from here ...
29742 * acinclude.m4: ... to here.
29743 * autogen.sh: Add call to `aclocal'.
29744 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
29745
29746 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
29747
29748 * Makefile.in (CLEANFILES): Add `po/*.mo'.
29749 (LINGUAS): New variable.
29750 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
29751 (install-local): Install MO files.
29752 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
29753 * include/grub/i18n.h: New file.
29754 * po/POTFILES: New file.
29755 * po/ca.po: New file.
29756 * util/grub.d/10_linux.in (bindir): New variable.
29757 Add gettext initialization.
29758 (linux_entry): Make menuentry output translatable.
29759 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
29760 (usage): Make --help output translatable.
29761 (main): Initialize gettext.
29762
29763 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29764
29765 * import_gcry.py: New file (written by Vladimir with minor
29766 adjustments).
29767 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
29768 ciphers.
29769 * INSTALL: Document that Python is required for bootstrap.
29770
29771 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
29772
29773 Import ciphers from libgcrypt 1.4.4.
29774
29775 * lib/libgcrypt/cipher/ChangeLog
29776 * lib/libgcrypt/cipher/ac.c
29777 * lib/libgcrypt/cipher/arcfour.c
29778 * lib/libgcrypt/cipher/bithelp.h
29779 * lib/libgcrypt/cipher/blowfish.c
29780 * lib/libgcrypt/cipher/camellia-glue.c
29781 * lib/libgcrypt/cipher/camellia.c
29782 * lib/libgcrypt/cipher/camellia.h
29783 * lib/libgcrypt/cipher/cast5.c
29784 * lib/libgcrypt/cipher/cipher.c
29785 * lib/libgcrypt/cipher/crc.c
29786 * lib/libgcrypt/cipher/des.c
29787 * lib/libgcrypt/cipher/dsa.c
29788 * lib/libgcrypt/cipher/ecc.c
29789 * lib/libgcrypt/cipher/elgamal.c
29790 * lib/libgcrypt/cipher/hash-common.c
29791 * lib/libgcrypt/cipher/hash-common.h
29792 * lib/libgcrypt/cipher/hmac-tests.c
29793 * lib/libgcrypt/cipher/md.c
29794 * lib/libgcrypt/cipher/md4.c
29795 * lib/libgcrypt/cipher/md5.c
29796 * lib/libgcrypt/cipher/primegen.c
29797 * lib/libgcrypt/cipher/pubkey.c
29798 * lib/libgcrypt/cipher/rfc2268.c
29799 * lib/libgcrypt/cipher/rijndael-tables.h
29800 * lib/libgcrypt/cipher/rijndael.c
29801 * lib/libgcrypt/cipher/rmd.h
29802 * lib/libgcrypt/cipher/rmd160.c
29803 * lib/libgcrypt/cipher/rsa.c
29804 * lib/libgcrypt/cipher/seed.c
29805 * lib/libgcrypt/cipher/serpent.c
29806 * lib/libgcrypt/cipher/sha1.c
29807 * lib/libgcrypt/cipher/sha256.c
29808 * lib/libgcrypt/cipher/sha512.c
29809 * lib/libgcrypt/cipher/tiger.c
29810 * lib/libgcrypt/cipher/twofish.c
29811 * lib/libgcrypt/cipher/whirlpool.c
29812
29813 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
29814
29815 Fix build for systems without error().
29816
29817 * gnulib/error.c: New file (imported from Gnulib).
29818 * gnulib/error.h: Likewise.
29819 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
29820 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
29821 (this variable is now used by error()).
29822
29823 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
29824
29825 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
29826 instead of relying that char is signed.
29827
29828 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
29829
29830 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
29831 blocksize different from specified.
29832 (grub_pxefs_read): Likewise.
29833
29834 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
29835
29836 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
29837
29838 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
29839 (grub_ata_readwrite): Likewise. Update 2 format strings.
29840 (grub_atapi_read): Likewise.
29841
29842 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
29843 * conf/i386.rmk (pkglib_MODULES): ... to here ...
29844 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
29845 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
29846 (ata_mod_LDFLAGS): Move from here ...
29847 * conf/i386.rmk: ... to here ...
29848 * conf/x86_64-efi.rmk: ... and here.
29849 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
29850 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
29851
29852 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
29853
29854 Relicense multiboot.h, with RMS' blessing.
29855
29856 * include/multiboot.h: Change to X11 license.
29857
29858 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
29859
29860 Support --version in grub-mkisofs.
29861
29862 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
29863 (OPTION_VERSION): New macro.
29864 (ld_options): Recognize --version.
29865 (usage): Move `program_name' from here ...
29866 (program_name): ... to here. Add `static' qualifier.
29867 (main): Recognize `OPTION_VERSION'.
29868
29869 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
29870
29871 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
29872 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
29873
29874 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
29875
29876 Fix help2man generation for mkisofs.
29877
29878 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
29879 (usage): Send output to stdout (rather than stderr).
29880
29881 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
29882
29883 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
29884 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
29885 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
29886 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
29887 (bin_SCRIPTS): Add `grub-mkfloppy'.
29888 (grub_mkfloppy_SOURCES): New variable.
29889
29890 * util/grub-mkrescue.in: New file.
29891 * util/i386/pc/grub-mkfloppy.in: New file.
29892
29893 * util/i386/coreboot/grub-mkrescue.in: Remove.
29894 * util/i386/pc/grub-mkrescue.in: Remove.
29895
29896 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
29897
29898 * include/grub/multiboot.h (struct grub_multiboot_header): Move
29899 from here ...
29900 * include/multiboot.h (struct multiboot_header): ... to here. Update
29901 all users.
29902 * include/grub/multiboot.h (struct grub_multiboot_info): Move
29903 from here ...
29904 * include/multiboot.h (struct multiboot_info): ... to here. Update
29905 all users.
29906 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
29907 from here ...
29908 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
29909 Update all users.
29910 * include/grub/multiboot.h (struct grub_mod_list): Move
29911 from here ...
29912 * include/multiboot.h (struct multiboot_mod_list): ... to here.
29913 Update all users.
29914
29915 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
29916
29917 * include/multiboot2.h (multiboot_word): Rename from this ...
29918 (multiboot2_word): ... to this. Update all users.
29919 (multiboot_header): Rename from this ...
29920 (multiboot2_header): ... to this. Update all users.
29921 (multiboot_tag_header): Rename from this ...
29922 (multiboot2_tag_header): ... to this. Update all users.
29923 (multiboot_tag_start): Rename from this ...
29924 (multiboot2_tag_start): ... to this. Update all users.
29925 (multiboot_tag_name): Rename from this ...
29926 (multiboot2_tag_name): ... to this. Update all users.
29927 (multiboot_tag_module): Rename from this ...
29928 (multiboot2_tag_module): ... to this. Update all users.
29929 (multiboot_tag_memory): Rename from this ...
29930 (multiboot2_tag_memory): ... to this. Update all users.
29931 (multiboot_tag_unused): Rename from this ...
29932 (multiboot2_tag_unused): ... to this. Update all users.
29933 (multiboot_tag_end): Rename from this ...
29934 (multiboot2_tag_end): ... to this. Update all users.
29935
29936 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
29937
29938 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
29939 this platform we should support Multiboot1 first.
29940
29941 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
29942 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
29943 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
29944
29945 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
29946
29947 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
29948 of write calls (converting them to fwrite() if they aren't already).
29949 (get_torito_desc): Likewise.
29950 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
29951
29952 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
29953
29954 * util/i386/pc/grub-install.in: Move from here ...
29955 * util/grub-install.in: ... to here. Update all users.
29956
29957 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
29958
29959 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
29960
29961 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
29962
29963 Support for El Torito without floppy emulation.
29964
29965 * util/mkisofs/eltorito.c: Include `<errno.h>'.
29966 (init_boot_catalog): Improve error handling.
29967 (get_torito_desc): Don't use floppy emulation unless requested by
29968 user. Patch boot information table when requested via
29969 `-boot-info-table'.
29970 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
29971 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
29972 (use_boot_info_table): New variables.
29973 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
29974 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
29975 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
29976 `--eltorito-emul-floppy'.
29977 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
29978 and `OPTION_ELTORITO_EMUL_FLOPPY'.
29979 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
29980 (use_boot_info_table, get_731): New prototypes.
29981 * util/mkisofs/write.c (get_731): New function.
29982
29983 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
29984
29985 Fix the generation of the man page.
29986
29987 * util/pc/i386/grub-install.in: Source
29988 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
29989
29990 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
29991
29992 Large file support for grub-mkisofs.
29993
29994 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
29995 * util/mkisofs/mkisofs.c (next_extent, last_extent)
29996 (session_start): Upgrade type to `uint64_t'. Update all users.
29997 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
29998 (struct directory_entry): Upgrade type of `starting_block' and
29999 `size' to `uint64_t'. Update all users.
30000 (struct deferred): Remove unused structure.
30001 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
30002 Update all users.
30003 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
30004 file is larger than `UINT32_MAX'.
30005 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
30006 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
30007 return value.
30008 (struct deferred_write): Upgrade type of `extent' and `size' to
30009 `uint64_t'. Update all users.
30010 (last_extent_written): Upgrade type to `uint64_t'. Update all
30011 users.
30012 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
30013 Update all users. Upgrade type of `remain' to `int64_t' and
30014 `use' to `size_t'. Use error() to handle fread() errors.
30015 (write_files): Rely on write_one_file() rather than calling
30016 xfwrite() directly.
30017
30018 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
30019
30020 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
30021
30022 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30023
30024 * util/mkisofs/fnmatch.c: Remove.
30025 * util/mkisofs/getopt1.c: Likewise.
30026 * util/mkisofs/getopt.c: Likewise.
30027 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
30028 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
30029 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
30030 `gnulib/getopt1.c' and `gnulib/getopt.c'.
30031 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
30032
30033 * configure.ac: Detect `mingw32msvc' host_os.
30034 Check for lstat(), getuid() and getgid().
30035
30036 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
30037 instances of `u_char' with `uint8_t'.
30038
30039 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
30040 [!HAVE_GETUID] (getuid): New function (stub).
30041 [!HAVE_GETGID] (getgid): Likewise.
30042 [!HAVE_LSTAT] (lstat): Likewise.
30043 [!S_IROTH] (S_IROTH): New macro (dummy).
30044 [!S_IRGRP] (S_IRGRP): Likewise.
30045
30046 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30047
30048 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
30049 conditional expression).
30050
30051 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30052
30053 Import from Gnulib.
30054
30055 * gnulib/fnmatch.c: New file.
30056 * gnulib/fnmatch.h: Likewise.
30057 * gnulib/fnmatch_loop.c: Likewise.
30058 * gnulib/getopt.c: Likewise.
30059 * gnulib/getopt.h: Likewise.
30060 * gnulib/getopt1.c: Likewise.
30061 * gnulib/getopt_int.h: Likewise.
30062 * gnulib/gettext.h: Likewise.
30063
30064 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30065
30066 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
30067 * normal/handler.c (read_handler_list): Likewise.
30068
30069 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30070
30071 Misc cleanup.
30072
30073 * kern/command.c (grub_register_command_prio): Use
30074 grub_zalloc() instead of explicitly zeroing data.
30075 * kern/list.c: Include `<grub/mm.h>'.
30076 (grub_named_list_find): Replace `0' with `NULL'.
30077 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
30078 (fs_module_list): Change type to `grub_named_list_t'. Update all
30079 users.
30080 * normal/dyncmd.c (read_command_list): Add space between function
30081 call and parenthesis.
30082 * normal/handler.c (read_handler_list): Likewise.
30083
30084 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30085
30086 * normal/auth.c (punishment_delay): Moved from here ...
30087 (grub_auth_strcmp): ... to here (inside function).
30088
30089 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30090
30091 * include/grub/list.h (struct grub_named_list): Remove `const'
30092 qualifier from `name'.
30093 (struct grub_prio_list): Likewise.
30094
30095 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30096
30097 * normal/auth.c: Include `<grub/time.h>'.
30098 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
30099
30100 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30101
30102 * normal/auth.c (punishment_delay): New variable.
30103 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
30104 (grub_auth_check_authentication): Punish failed login attempts with
30105 an incremental (2^N) delay.
30106
30107 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30108
30109 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
30110 path with $(srcdir).
30111
30112 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
30113
30114 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
30115
30116 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
30117
30118 * util/i386/coreboot/grub-mkrescue.in: New file.
30119 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
30120 variables.
30121
30122 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
30123 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
30124 * configure.ac: Add header and function checks to satisfy grub-mkisofs
30125 requirements.
30126 * util/mkisofs/defaults.h: New file.
30127 * util/mkisofs/eltorito.c: Likewise.
30128 * util/mkisofs/exclude.h: Likewise.
30129 * util/mkisofs/fnmatch.c: Likewise.
30130 * util/mkisofs/getopt.c: Likewise.
30131 * util/mkisofs/getopt1.c: Likewise.
30132 * util/mkisofs/hash.c: Likewise.
30133 * util/mkisofs/include/fctldefs.h: Likewise.
30134 * util/mkisofs/include/mconfig.h: Likewise.
30135 * util/mkisofs/include/prototyp.h: Likewise.
30136 * util/mkisofs/include/statdefs.h: Likewise.
30137 * util/mkisofs/iso9660.h: Likewise.
30138 * util/mkisofs/joliet.c: Likewise.
30139 * util/mkisofs/match.c: Likewise.
30140 * util/mkisofs/match.h: Likewise.
30141 * util/mkisofs/mkisofs.c: Likewise.
30142 * util/mkisofs/mkisofs.h: Likewise.
30143 * util/mkisofs/multi.c: Likewise.
30144 * util/mkisofs/name.c: Likewise.
30145 * util/mkisofs/rock.c: Likewise.
30146 * util/mkisofs/tree.c: Likewise.
30147 * util/mkisofs/write.c: Likewise.
30148
30149 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
30150
30151 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
30152 being insecure.
30153
30154 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
30155
30156 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
30157 `grub-mkimage' (and use $0 when possible).
30158
30159 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
30160
30161 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
30162 error message for excessively large memory map.
30163
30164 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
30165
30166 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
30167 executable bit.
30168
30169 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
30170
30171 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
30172 message for coreboot users.
30173
30174 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
30175
30176 Fix build with GNU gold.
30177
30178 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
30179 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
30180 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
30181 link addresses.
30182 * aclocal.m4: Likewise.
30183
30184 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
30185
30186 * configure.ac (AC_PREREQ): Bump to 2.59d.
30187 * INSTALL: Make it more clear when Autoconf and Ruby are
30188 needed and when to run `./autogen.sh'.
30189
30190 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
30191
30192 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
30193 OSes.
30194
30195 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
30196
30197 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
30198
30199 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
30200
30201 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
30202 giving it to GNU Mach.
30203
30204 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
30205
30206 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
30207 GNU partition number to get internal GRUB partition number.
30208
30209 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
30210
30211 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
30212 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
30213
30214 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
30215
30216 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
30217 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
30218 case.
30219
30220 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
30221
30222 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
30223
30224 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
30225
30226 Fix build problem.
30227
30228 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
30229 `-isystem=$(srcdir)/include'.
30230
30231 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
30232
30233 * util/i386/pc/grub-install.in: Remove hint that device.map should be
30234 checked (grub-install doesn't currently rely on it).
30235
30236 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
30237
30238 Revert SVN r2660.
30239
30240 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
30241 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
30242 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
30243 * conf/i386-ieee1275.rmk: Likewise.
30244 * conf/i386-pc.rmk: Likewise.
30245 * conf/powerpc-ieee1275.rmk: Likewise.
30246 * conf/sparc64-ieee1275.rmk: Likewise.
30247 * conf/x86_64-efi.rmk: Likewise.
30248
30249 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
30250
30251 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
30252
30253 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
30254
30255 * include/grub/misc.h: Stop checking for APPLE_CC.
30256
30257 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
30258
30259 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
30260 doesn't cause an infinite call loop.
30261
30262 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
30263
30264 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
30265 strings.
30266
30267 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30268
30269 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
30270 variable.
30271 * Makefile.in: Likewise.
30272
30273 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30274
30275 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
30276
30277 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30278
30279 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
30280
30281 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30282
30283 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
30284
30285 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30286
30287 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
30288 from here ...
30289 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
30290
30291 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30292
30293 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
30294 in $(MAKEINFO) invocation. This makes it clear in output that
30295 errors are being ignored.
30296
30297 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30298
30299 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
30300 from here ...
30301 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
30302 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
30303 * conf/i386-ieee1275.rmk: Likewise.
30304 * conf/i386-pc.rmk: Likewise.
30305 * conf/powerpc-ieee1275.rmk: Likewise.
30306 * conf/sparc64-ieee1275.rmk: Likewise.
30307 * conf/x86_64-efi.rmk: Likewise.
30308
30309 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
30310
30311 * util/grub-editenv.c (main): If only a command is given, use
30312 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
30313 (usage): FILENAME is now optional and has a default.
30314
30315 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
30316
30317 Improve grub-mkconfig performance when there are several menu
30318 entries on a single filesystem.
30319
30320 * util/grub.d/10_linux.in (linux_entry): Cache the output of
30321 prepare_grub_to_access_device.
30322 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
30323 * util/grub.d/30_os-prober.in: Likewise.
30324
30325 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30326
30327 * util/grub.d/10_freebsd.in: Remove.
30328 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
30329 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
30330
30331 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
30332
30333 * docs/grub.cfg: Fix example usage of *BSD loaders.
30334
30335 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
30336
30337 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
30338 grub_util_error() call.
30339
30340 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
30341
30342 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
30343 `reserved_first_sector' member.
30344 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
30345 `reserved_first_sector' to 1.
30346 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
30347 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
30348 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
30349 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
30350 filesystems which begin at first sector.
30351 (options): New option --skip-fs-probe.
30352 (main): Handle --skip-fs-probe and pass it to setup().
30353
30354 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
30355
30356 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
30357 (memset): Fix function prototype.
30358
30359 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
30360 2009-10-25 Vasily Averin <vvs@parallels.com>
30361
30362 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
30363 `dirent.direntlen == 0'.
30364
30365 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
30366
30367 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
30368 `cpio'.
30369 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
30370
30371 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
30372
30373 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
30374 `__trampoline_setup' and `__ucmpdi2'.
30375 * include/grub/powerpc/libgcc.h: Only export symbols for functions
30376 that libgcc provides.
30377
30378 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
30379
30380 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
30381 * include/grub/sparc64/libgcc.h (memset): Likewise.
30382 * include/grub/misc.h (memset, memcmp): New function prototypes.
30383
30384 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
30385
30386 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
30387 `cpio'.
30388 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
30389
30390 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
30391
30392 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
30393 * docs/grub.cfg: Compensate for recent change in multiboot
30394 loader (since 2009-08-14 it won't pass filename to payload).
30395 * util/grub.d/10_hurd.in: Likewise.
30396
30397 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
30398
30399 * config.guess: Update to latest version from config git
30400 repository.
30401 * config.sub: Likewise.
30402
30403 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
30404
30405 Fix build on sparc64.
30406
30407 * configure.ac: Perform checks for libgcc symbols before
30408 adding `-nostdlib' to LDFLAGS.
30409
30410 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
30411
30412 Let user specify OpenBSD root device.
30413
30414 * loader/i386/bsd.c (openbsd_root): New variable.
30415 (openbsd_opts): New option 'root'.
30416 (OPENBSD_ROOT_ARG): New macro.
30417 (grub_openbsd_boot): Use 'openbsd_root'.
30418 (grub_cmd_openbsd): Fill 'openbsd_root'.
30419
30420 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
30421
30422 * NEWS: Misc adjustments.
30423
30424 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
30425
30426 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
30427
30428 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
30429
30430 * configure.ac: Bump version to 1.97.
30431
30432 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
30433
30434 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
30435 -mno-3dnow on x86 architectures. Some toolchains enable these
30436 features by default, but they rely on registers that aren't enabled
30437 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
30438
30439 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
30440
30441 Make entry text a bit more readable.
30442
30443 * util/grub.d/10_linux.in: Add `with' before `Linux'.
30444
30445 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
30446
30447 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
30448
30449 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
30450
30451 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
30452 operations.
30453
30454 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
30455
30456 * configure.ac: Add missing dollar.
30457
30458 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
30459
30460 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
30461
30462 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
30463 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
30464 exports.
30465 * include/grub/sparc64/libgcc.h: Likewise. Use
30466 preprocessor conditionals.
30467
30468 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
30469
30470 * conf/common.rmk (grub-dumpbios): Remove rule.
30471 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
30472 * util/grub-dumpbios.in: Remove file.
30473
30474 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
30475
30476 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
30477 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
30478
30479 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
30480 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
30481 users.
30482
30483 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
30484 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
30485 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
30486 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
30487 users.
30488
30489 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
30490
30491 * term/tparm.c: Switch to GPLv3.
30492
30493 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
30494
30495 * include/grub/i386/cpuid.h: Add header protection.
30496
30497 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
30498
30499 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
30500
30501 * include/grub/i386/cpuid.h: New file.
30502 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
30503 (has_longmode): Rename to ...
30504 (grub_cpuid_has_longmode): ... this. Update all users. Remove
30505 `static' attribute.
30506 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
30507 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
30508 on a CPU that doesn't implement AMD64 instruction set.
30509
30510 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
30511
30512 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
30513 that version.texi is rebuilt on version number changes.
30514
30515 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
30516
30517 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
30518 Fixes bug #27602.
30519
30520 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
30521
30522 * util/i386/pc/grub-install.in: Source
30523 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
30524 that the --grub-probe option will work.
30525 * util/sparc64/ieee1275/grub-install.in: Likewise.
30526
30527 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
30528
30529 * configure.ac: Bump version to 1.97~beta4.
30530
30531 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
30532
30533 Resync grub-mkdevicemap in x86_64-efi.
30534
30535 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
30536 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
30537 `util/devicemap.c'.
30538
30539 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
30540
30541 * util/grub-editenv.c (create_envblk_file): Write new block with a
30542 .new suffix and then rename it into place, to ensure atomic
30543 creation.
30544
30545 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
30546
30547 Do not automatically install headers.
30548
30549 * Makefile.in (include_DATA): Remove. Update all users.
30550
30551 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
30552
30553 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
30554 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
30555
30556 * util/osdetect.lua: Remove.
30557 * script/lua/lauxlib.c: Likewise.
30558 * script/lua/ldebug.c: Likewise.
30559 * script/lua/grub_main.c: Likewise.
30560 * script/lua/lauxlib.h: Likewise.
30561 * script/lua/ldebug.h: Likewise.
30562 * script/lua/ltablib.c: Likewise.
30563 * script/lua/liolib.c: Likewise.
30564 * script/lua/lstrlib.c: Likewise.
30565 * script/lua/lualib.h: Likewise.
30566 * script/lua/ldo.c: Likewise.
30567 * script/lua/ldump.c: Likewise.
30568 * script/lua/ldo.h: Likewise.
30569 * script/lua/loslib.c: Likewise.
30570 * script/lua/lundump.c: Likewise.
30571 * script/lua/grub_lib.c: Likewise.
30572 * script/lua/ldblib.c: Likewise.
30573 * script/lua/lundump.h: Likewise.
30574 * script/lua/lmem.c: Likewise.
30575 * script/lua/grub_lib.h: Likewise.
30576 * script/lua/lmathlib.c: Likewise.
30577 * script/lua/lstate.c: Likewise.
30578 * script/lua/ltm.c: Likewise.
30579 * script/lua/lvm.c: Likewise.
30580 * script/lua/lmem.h: Likewise.
30581 * script/lua/lstate.h: Likewise.
30582 * script/lua/ltm.h: Likewise.
30583 * script/lua/ltable.c: Likewise.
30584 * script/lua/lvm.h: Likewise.
30585 * script/lua/llex.c: Likewise.
30586 * script/lua/lgc.c: Likewise.
30587 * script/lua/grub_lua.h: Likewise.
30588 * script/lua/loadlib.c: Likewise.
30589 * script/lua/lfunc.c: Likewise.
30590 * script/lua/lopcodes.c: Likewise.
30591 * script/lua/lparser.c: Likewise.
30592 * script/lua/ltable.h: Likewise.
30593 * script/lua/llex.h: Likewise.
30594 * script/lua/lgc.h: Likewise.
30595 * script/lua/lfunc.h: Likewise.
30596 * script/lua/lbaselib.c: Likewise.
30597 * script/lua/lopcodes.h: Likewise.
30598 * script/lua/lparser.h: Likewise.
30599 * script/lua/lzio.c: Likewise.
30600 * script/lua/linit.c: Likewise.
30601 * script/lua/lobject.c: Likewise.
30602 * script/lua/llimits.h: Likewise.
30603 * script/lua/lstring.c: Likewise.
30604 * script/lua/lzio.h: Likewise.
30605 * script/lua/lapi.c: Likewise.
30606 * script/lua/lcode.c: Likewise.
30607 * script/lua/lua.h: Likewise.
30608 * script/lua/lobject.h: Likewise.
30609 * script/lua/lstring.h: Likewise.
30610 * script/lua/lapi.h: Likewise.
30611 * script/lua/lcode.h: Likewise.
30612 * script/lua/luaconf.h: Likewise.
30613
30614 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
30615
30616 * docs/grub.texi (Command-line and menu entry commands): Document
30617 date and echo commands.
30618
30619 2009-09-24 Pavel Roskin <proski@gnu.org>
30620
30621 * include/grub/kernel.h (struct grub_module_header): Remove
30622 `grub_module_header_types'. Make `type' unsigned. Make `size'
30623 32-bit on all platforms.
30624 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
30625 8-bit field. Use grub_host_to_target32() for `size'.
30626 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
30627 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
30628 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
30629
30630 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
30631
30632 Fix "lost keypress" bug in at_keyboard.
30633
30634 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
30635 Checks for readyness of input buffer (without flushing it).
30636 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
30637 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
30638
30639 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
30640
30641 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
30642 size check within GRUB_MACHINE_PCBIOS section.
30643
30644 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
30645
30646 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
30647 return value.
30648 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
30649 KEYBOARD_ISREADY check.
30650 (grub_at_keyboard_checkkey): Rename to ...
30651 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
30652 Remove gratuitous cast.
30653
30654 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
30655
30656 * configure.ac: Call AC_PROG_MKDIR_P.
30657 * Makefile.in (docs/stamp-vti): Create docs directory. Create
30658 version.texi in $(builddir) rather than $(srcdir).
30659 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
30660 to makeinfo's @include search path.
30661
30662 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
30663
30664 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
30665
30666 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
30667
30668 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
30669 for `*.dpkg-new'.
30670
30671 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
30672
30673 Build info documentation. Some code borrowed from Automake.
30674
30675 * configure.ac: Check for makeinfo.
30676 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
30677 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
30678 docs/version.texi.
30679 (MOSTLYCLEANFILES): Add vti.tmp.
30680 (docs/version.texi, docs/stamp-vti): Update automatically.
30681 (docs/grub.info): Build info documentation. Use --force and ignore
30682 errors for now.
30683 (all-local): Add $(INFOS).
30684 (install-local): Install info files.
30685 (uninstall): Uninstall info files.
30686 * docs/version.texi: Remove from revision control. This file is
30687 automatically generated on build now.
30688 * gendistlist.sh: Add `*.info'.
30689
30690 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
30691
30692 * kern/term.c: Fix indentation.
30693
30694 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
30695
30696 * util/hostdisk.c: Fix a comment.
30697
30698 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
30699
30700 Fix regression introduced in r2539.
30701
30702 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
30703 to 0xA1.
30704
30705 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
30706
30707 * util/grub.d/30_os-prober.in: Don't throw away stderr from
30708 os-prober. Under normal operation, it does not print anything to
30709 stderr; if it does, we need to debug it, and throwing away stderr
30710 makes that excessively difficult.
30711
30712 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
30713
30714 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
30715
30716 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
30717
30718 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
30719 AC_LANG_PROGRAM from autoconf.
30720 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
30721 prototypes (fixes warning).
30722
30723 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
30724 `--disable-werror' was used.
30725
30726 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
30727
30728 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
30729 uninitialized `lastaddr'.
30730
30731 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
30732
30733 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
30734
30735 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
30736
30737 * commands/test.c (get_fileinfo): Return immediately if
30738 grub_fs_probe fails.
30739
30740 2009-09-14 José Martínez <xosemp@gmail.com>
30741
30742 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
30743
30744 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
30745
30746 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
30747 output.
30748
30749 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
30750
30751 * configure.ac: Remove --enable-grub-pe2elf. Only build
30752 grub-pe2elf when needed by the build system itself.
30753 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
30754
30755 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
30756
30757 * configure.ac: Bump version to 1.97~beta3.
30758 * docs/version.texi: Likewise.
30759
30760 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
30761
30762 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
30763 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
30764 from here ...
30765 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
30766 (grub_linux_setup_video): ... to here (with some adjustments).
30767
30768 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
30769
30770 Fix memory corruption issue (spotted by Colin Watson).
30771
30772 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
30773 causing returned size to be stored in an incorrect memory location.
30774 Fix use of uninitialized value when storing the returned size.
30775
30776 2009-09-12 Yves Blusseau <blusseau@zetam.org>
30777
30778 Change clean rules to properly remove files
30779
30780 * genmk.rb: add new clean rules
30781 * Makefile.in (clean): add the new targets
30782 (mostlyclean): likewise
30783
30784 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
30785
30786 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
30787 to grub_uint64_t.
30788 * fs/ntfs.c (init_file): Understand 64-bit sizes for
30789 non-resident files.
30790
30791 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
30792
30793 * configure.ac: Don't look for help2man when cross-compiling. Fixes
30794 part of bug #27349.
30795
30796 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
30797
30798 * util/grub-mkconfig.in: Make the created config mode 400 and
30799 print a warning if it fails.
30800
30801 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
30802
30803 * util/grub.d/40_custom.in: Ask user to type custom entries below
30804 comment, rather than below 'exec tail' line.
30805
30806 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
30807
30808 * util/grub.d/40_custom.in: Make sure that the explanatory text is
30809 visible in grub.cfg.
30810
30811 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
30812
30813 * util/grub.d/40_custom.in: Make it a little clearer how to use this
30814 file.
30815
30816 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
30817
30818 * docs/grub.cfg: Add an example menu entry for memtest86+.
30819
30820 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
30821
30822 * config.guess: Update to latest version from config git.
30823 * config.sub: Likewise.
30824
30825 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
30826
30827 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
30828 unknown-command case. Fixes bug #27320.
30829
30830 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
30831
30832 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
30833 `help' if the command exists.
30834
30835 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
30836
30837 * INSTALL: Require GCC 4.1.3 or later.
30838
30839 2009-09-06 Yves Blusseau <blusseau@zetam.org>
30840
30841 * Makefile.in (RMKFILES): add i386-qemu.rmk
30842 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
30843 $(srcdir)/stamp-h.in
30844
30845 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
30846
30847 * util/grub-probe.c (probe): Comment out buggy codepath, which
30848 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
30849 should be re-enabled after 1.97.
30850
30851 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
30852
30853 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
30854 find searches for.
30855
30856 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
30857
30858 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
30859 unnecessary calls to grub_error.
30860
30861 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
30862
30863 * NEWS: Mention `keystatus' and Unicode fonts.
30864
30865 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
30866
30867 * configure.ac: Bump version to 1.97~beta2.
30868 * docs/version.texi: Likewise.
30869
30870 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
30871
30872 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
30873 containing unwind information in some cases where it previously did
30874 not. Use -fno-dwarf2-cfi-asm if available to restore the old
30875 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
30876 discussion.
30877
30878 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
30879
30880 Embedding loadenv module into grub-emu
30881
30882 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
30883 commands/loadenv.c
30884 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
30885 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
30886 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
30887 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
30888 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
30889 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
30890
30891 2009-09-03 Magnus Granberg <zorry@ume.nu>
30892
30893 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
30894 include -fPIE in the default specs.
30895 * configure.ac: Check if pie_possible is yes and add -fno-PIE
30896 to TARGET_CFLAGS.
30897
30898 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
30899
30900 * INSTALL: Note that GNU Bison 2.3 or later is required.
30901
30902 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
30903
30904 * kern/i386/pc/startup.S: Fix typo.
30905
30906 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
30907
30908 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
30909 according to GCS.
30910
30911 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
30912
30913 * docs/grub.texi (Naming convention): Describe one-based partition
30914 numbering.
30915 (Device syntax): Likewise.
30916 (File name syntax): Likewise.
30917 (Block list syntax): Likewise.
30918 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
30919 menu.lst.
30920 (File name syntax): Likewise.
30921 (Command-line and menu entry commands): Document acpi, blocklist,
30922 crc, export, insmod, keystatus, ls, set, and unset commands.
30923
30924 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
30925
30926 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
30927 to avoid implying that only one of --shift, --ctrl, or --alt may be
30928 used.
30929
30930 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
30931
30932 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
30933 rather than comparing against S_IFREG, which will almost never work.
30934
30935 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
30936
30937 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
30938 (write_blocklists): Likewise.
30939
30940 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
30941
30942 * script/lua/grub_lua.h (fputs): Supply a format string as the first
30943 argument to grub_printf.
30944
30945 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
30946
30947 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
30948 non GNU test.
30949
30950 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
30951
30952 * kern/file.c (grub_file_read): Spelling fix
30953
30954 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
30955
30956 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
30957 loading of headers in some cases.
30958
30959 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
30960
30961 * configure.ac: Bump version to 1.97~beta1.
30962 * docs/version.texi: Likewise.
30963
30964 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
30965
30966 * include/grub/i386/xnu.h: Add license header.
30967 include grub/err.h explicitly.
30968
30969 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
30970
30971 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
30972 to `ufs' in the vfs.root.mountfrom kernel parameter.
30973
30974 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
30975
30976 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
30977
30978 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
30979 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
30980
30981 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
30982 `ARRAY_SIZE' macro.
30983
30984 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
30985
30986 * kern/file.c (grub_file_read): Check offset.
30987 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
30988 * fs/jfs.c (grub_jfs_read_file): Likewise.
30989 * fs/ntfs.c (grub_ntfs_read): Likewise.
30990 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
30991 * fs/minix.c (grub_minix_read_file): Correct offset check.
30992 * fs/ufs.c (grub_ufs_read_file): Likewise.
30993
30994 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
30995
30996 * term/i386/pc/console.c (bios_data_area): Cast
30997 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
30998
30999 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
31000
31001 1-bit optimised blitters.
31002
31003 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
31004 prototype.
31005 (grub_video_fbblit_replace_24bit_1bit): Likewise.
31006 (grub_video_fbblit_replace_16bit_1bit): Likewise.
31007 (grub_video_fbblit_replace_8bit_1bit): Likewise.
31008 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
31009 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
31010 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
31011 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
31012 function.
31013 (grub_video_fbblit_replace_24bit_1bit): Likewise.
31014 (grub_video_fbblit_replace_16bit_1bit): Likewise.
31015 (grub_video_fbblit_replace_8bit_1bit): Likewise.
31016 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
31017 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
31018 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
31019 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
31020 when possible.
31021 * video/video.c (grub_video_get_blit_format): Return
31022 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
31023
31024 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
31025
31026 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
31027 the first argument to grub_printf.
31028
31029 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
31030 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
31031
31032 Add `getkeystatus' terminal method. Add a new `keystatus' command
31033 to query it.
31034
31035 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
31036 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
31037 modifier key bitmasks.
31038 (struct grub_term_input): Add `getkeystatus' member.
31039 (grub_getkeystatus): Add prototype.
31040 * kern/term.c (grub_getkeystatus): New function.
31041
31042 * include/grub/i386/pc/memory.h
31043 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
31044 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
31045 Data Area layout.
31046 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
31047 (grub_console_term_input): Set `getkeystatus' member.
31048 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
31049 constants.
31050 (grub_usb_keyboard_getreport): Likewise.
31051 (grub_usb_keyboard_checkkey): Likewise.
31052 (grub_usb_keyboard_getkeystatus): New function.
31053 (grub_usb_keyboard_term): Set `getkeystatus' member.
31054
31055 * commands/keystatus.c: New file.
31056 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
31057 (keystatus_mod_SOURCES): New variable.
31058 (keystatus_mod_CFLAGS): Likewise.
31059 (keystatus_mod_LDFLAGS): Likewise.
31060 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
31061 commands/keystatus.c.
31062 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31063 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31064 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31065 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31066 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31067 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31068
31069 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
31070
31071 Split befs.mod and afs.mod into *_be.mod and *.mod
31072
31073 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
31074 (grub_fstest_SOURCES): Likewise.
31075 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
31076 (afs_be_mod_SOURCES): New variable.
31077 (afs_be_mod_CFLAGS): Likewise.
31078 (afs_be_mod_LDFLAGS): Likewise.
31079 (befs_be_mod_SOURCES): Likewise.
31080 (befs_be_mod_CFLAGS): Likewise.
31081 (befs_be_mod_LDFLAGS): Likewise.
31082 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
31083 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31084 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31085 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
31086 (grub_emu_SOURCES): Likewise.
31087 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31088 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31089 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31090 * fs/afs_be.c: New file.
31091 * fs/befs_be.c: New file.
31092 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
31093 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
31094 (U16): Replaced with ...
31095 (grub_afs_to_cpu16): ...this. All users updated.
31096 (U32): Replaced with ...
31097 (grub_afs_to_cpu32): ...this. All users updated.
31098 (U64): Replaced with ...
31099 (grub_afs_to_cpu64): ...this. All users updated.
31100 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
31101 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
31102 (grub_afs_validate_sblock): Check only one endianness.
31103 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
31104 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
31105 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
31106 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
31107 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
31108 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
31109 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
31110 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
31111
31112 2009-08-26 Bean <bean123ch@gmail.com>
31113
31114 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
31115 64-bit number.
31116 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
31117 (grub_xfs_inode_block): Change return type to grub_uint64_t.
31118 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
31119
31120 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
31121
31122 NetBSD memory map support.
31123
31124 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
31125 (grub_netbsd_btinfo_mmap_header): New structure.
31126 (grub_netbsd_btinfo_mmap_entry): Likewise.
31127 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
31128
31129 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
31130
31131 Enable bsd.mod on coreboot.
31132
31133 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
31134 (bsd_mod_SOURCES): New variable.
31135 (bsd_mod_CFLAGS): Likewise.
31136 (bsd_mod_LDFLAGS): Likewise.
31137 (bsd_mod_ASFLAGS): Likewise.
31138 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
31139 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
31140
31141 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
31142
31143 Cleanup NetBSD root support.
31144
31145 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
31146 grub_bsd_get_device.
31147 Fix typo.
31148
31149 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
31150
31151 * util/grub.d/00_header.in: Move check for the video backend of
31152 gfxterm from here ...
31153 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
31154 a suitable video backend.
31155
31156 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
31157
31158 Fix breakage in grub-setup.
31159
31160 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
31161 "msdos_partition_map".
31162
31163 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
31164
31165 Fix breakage in normal/auth.c.
31166
31167 * normal/auth.c (grub_iswordseparator): New function.
31168
31169 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
31170
31171 Authentication support.
31172
31173 * commands/password.c: New file.
31174 * conf/common.rmk (pkglib_MODULES): Add password.mod.
31175 (password_mod_SOURCES): New variable.
31176 (password_mod_CFLAGS): Likewise.
31177 (password_mod_LDFLAGS): Likewise.
31178 (normal_mod_SOURCES): Add normal/auth.c.
31179 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
31180 normal/auth.c.
31181 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31182 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31183 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31184 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31185 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31186 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31187 * include/grub/auth.h: New file.
31188 * include/grub/err.h (grub_err_t): New enum value
31189 GRUB_ERR_ACCESS_DENIED.
31190 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
31191 'users'.
31192 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
31193 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
31194 users updated.
31195 * normal/auth.c: New file.
31196 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
31197 (grub_cmdline_run): Don't allow to go to command line without
31198 authentication.
31199 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
31200 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
31201 menuentry without superuser rights.
31202 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
31203 user isn't a superuser.
31204
31205 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
31206
31207 Save space by inlining misc.c functions.
31208
31209 * kern/misc.c (grub_iswordseparator): Made static.
31210 * kern/misc.c (grub_strcat): Moved from here ...
31211 * include/grub/misc.h (grub_strcat): ... here. Inlined.
31212 * kern/misc.c (grub_strncat): Moved from here ...
31213 * include/grub/misc.h (grub_strncat): ... here. Inlined.
31214 * kern/misc.c (grub_strcasecmp): Moved from here ...
31215 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
31216 * kern/misc.c (grub_strncasecmp): Moved from here ...
31217 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
31218 * kern/misc.c (grub_isalpha): Moved from here ...
31219 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
31220 * kern/misc.c (grub_isdigit): Moved from here ...
31221 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
31222 * kern/misc.c (grub_isgraph): Moved from here ...
31223 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
31224 * kern/misc.c (grub_tolower): Moved from here ...
31225 * include/grub/misc.h (grub_tolower): ... here. Inlined.
31226
31227 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
31228
31229 * script/sh/function.c (grub_script_function_find): Cut error message
31230 not to flood terminal.
31231 * script/sh/lexer.c (grub_script_yylex): Remove command line length
31232 limit.
31233 * script/sh/script.c (grub_script_arg_add): Duplicate string.
31234
31235 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
31236
31237 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
31238 `report' grub_uint8_t *.
31239 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
31240 Use a 50-millisecond timeout rather than just repeating
31241 grub_usb_keyboard_getreport 50 times.
31242 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
31243
31244 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
31245
31246 Rename *_partition_map to part_*
31247
31248 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
31249 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
31250 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
31251 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
31252 All users updated.
31253 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
31254 All users updated.
31255 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
31256 * util/grub-probe.c (probe_partmap): Don't transform partition name
31257 to get module name.
31258
31259 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
31260
31261 Fix OpenBSD and NetBSD support.
31262
31263 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
31264 memory address conflict.
31265 (OPENBSD_MMAP_ACPI): New definition.
31266 (OPENBSD_MMAP_NVS): Likewise.
31267 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
31268 and OPENBSD_MMAP_NVS.
31269 Add memory map terminator
31270 Explicit cast when calling grub_unix_real_boot.
31271 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
31272
31273 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
31274
31275 Let user specify NetBSD root device.
31276
31277 * loader/i386/bsd.c (netbsd_root): New variable.
31278 (netbsd_opts): New option 'root'.
31279 (NETBSD_ROOT_ARG): New macro.
31280 (grub_netbsd_boot): Use 'netbsd_root'.
31281 (grub_bsd_unload): Free 'netbsd_root'.
31282 (grub_cmd_netbsd): Fill 'netbsd_root'.
31283
31284 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
31285
31286 Support for 64-bit NetBSD.
31287
31288 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
31289 point when booting non-FreeBSD.
31290
31291 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
31292
31293 Support --no-smp and --no-acpi for NetBSD.
31294
31295 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
31296 (NETBSD_AB_NOACPI): Likewise.
31297 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
31298 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
31299
31300 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
31301
31302 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
31303 errors.
31304 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
31305 errors. Call grub_error when needed.
31306
31307 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
31308
31309 * commands/search.c (search_fs): Try searching without autoload first.
31310 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
31311 filesystem module explicitly for faster booting.
31312
31313 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
31314
31315 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
31316
31317 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
31318
31319 * util/grub.d/30_os-prober.in: Disable os-prober if
31320 `GRUB_DISABLE_OS_PROBER' was set to true.
31321
31322 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
31323
31324 * partmap/pc.c: Rename to ...
31325 * partmap/msdos.c: ... this. Update all users.
31326 (grub_pc_partition_map): Rename to ...
31327 (grub_msdos_partition_map): ... this. Update all users.
31328
31329 * parttool/pcpart.c: Rename to ...
31330 * parttool/msdospart.c: ... this. Update all users.
31331
31332 * include/grub/pc_partition.h: Rename to ...
31333 * include/grub/msdos_partition.h: ... this. Update all users.
31334 (grub_pc_partition_bsd_entry): Rename to ...
31335 (grub_msdos_partition_bsd_entry): ... this. Update all users.
31336 (grub_pc_partition_disk_label): Rename to ...
31337 (grub_msdos_partition_disk_label): ... this. Update all users.
31338 (grub_pc_partition_entry): Rename to ...
31339 (grub_msdos_partition_entry): ... this. Update all users.
31340 (grub_pc_partition_mbr): Rename to ...
31341 (grub_msdos_partition_mbr): ... this. Update all users.
31342 (grub_pc_partition): Rename to ...
31343 (grub_msdos_partition): ... this. Update all users.
31344 (grub_pc_partition_is_empty): Rename to ...
31345 (grub_msdos_partition_is_empty): ... this. Update all users.
31346 (grub_pc_partition_is_extended): Rename to ...
31347 (grub_msdos_partition_is_extended): ... this. Update all users.
31348 (grub_pc_partition_is_bsd): Rename to ...
31349 (grub_msdos_partition_is_bsd): ... this. Update all users.
31350
31351 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
31352 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
31353 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
31354 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
31355 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
31356 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
31357 (gpt_mod_LDFLAGS): Rename to ...
31358 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
31359 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
31360 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
31361 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
31362 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
31363 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
31364 (part_gpt_mod_LDFLAGS): ... this.
31365 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
31366 `pcpart.mod' to `msdospart.mod'.
31367 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
31368 to ...
31369 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
31370 (msdospart_mod_LDFLAGS): ... this.
31371
31372 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
31373
31374 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
31375 (openbsd_opts): Likewise.
31376 (netbsd_opts): Likewise.
31377 (freebsd_flags): Added 0 terminator.
31378 (openbsd_flags): Likewise.
31379 (netbsd_flags): Likewise.
31380 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
31381 (grub_cmd_freebsd): Transformed into extended command.
31382 (grub_cmd_openbsd): Likewise.
31383 (grub_cmd_netbsd): Likewise.
31384 (cmd_freebsd): Changed type to grub_extcmd_t.
31385 (cmd_openbsd): Likewise.
31386 (cmd_netbsd): Likewise.
31387 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
31388 grub_cmd_openbsd as extended commands.
31389 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
31390 cmd_netbsd and cmd_openbsd
31391
31392 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
31393
31394 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
31395
31396 2009-08-21 Pavel Roskin <proski@gnu.org>
31397
31398 * Makefile.in (install-local): When checking if a file is in the
31399 build directory, use "test -e" to detect symlinks.
31400
31401 * Makefile.in (install-local): Remove all files in
31402 $(DESTDIR)$(pkglibdir) before installing new files there.
31403
31404 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
31405
31406 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
31407 grub-mkelfimage.
31408
31409 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
31410
31411 * util/grub-mkconfig.in: Don't use gfxterm by default if not
31412 explicitly specified by the user.
31413
31414 2009-08-18 Pavel Roskin <proski@gnu.org>
31415
31416 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
31417 grub_uint8_t pointer for data.
31418 * include/grub/fbutil.h (struct grub_video_fbblit_info):
31419 Likewise.
31420 * video/fb/fbutil.c: Remove unnecessary casts.
31421
31422 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
31423
31424 VBE cleanup.
31425
31426 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
31427 (grub_vbe_set_video_mode): Save active mode info
31428 only after setting the mode.
31429 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
31430 second argument.
31431
31432 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
31433
31434 Rename variables for clarity.
31435
31436 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
31437 (active_vbe_mode_info): ... this. All users updated.
31438 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
31439 All users updated.
31440 (initial_mode): Rename to ...
31441 (initial_vbe_mode): ... this. All users updated.
31442 (mode_in_use): Rename to ..
31443 (vbe_mode_in_use): ... this. All users updated.
31444 (mode_list): Rename to ..
31445 (vbe_mode_list): ... this. All users updated.
31446 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
31447 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
31448 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
31449 'mode_list_size' to 'vbe_mode_list_size'.
31450 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
31451 'best_mode_info' to 'best_vbe_mode_info' and
31452 'best_mode' to 'best_vbe_mode'
31453
31454 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
31455
31456 Remove duplicate grub_video_fb_get_video_ptr.
31457
31458 * include/grub/fbutil.h (get_data_ptr): Rename to ...
31459 (grub_video_fb_get_video_ptr): ... this.
31460 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
31461 * video/fb/fbutil.c: Add comment about addressing.
31462 (get_data_ptr): Rename to ...
31463 (grub_video_fb_get_video_ptr): ... this. All users updated.
31464 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
31465
31466 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
31467
31468 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
31469 grub_dprintf() that was just added.
31470
31471 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
31472
31473 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
31474 (DEFAULT_VIDEO_MODE): Remove macros.
31475 (grub_linux_boot): Remove assumption that Linux has FB support,
31476 and use "text" as default video mode.
31477
31478 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
31479
31480 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
31481 grub_dprintf.
31482 * fs/fat.c (grub_fat_read_data): Likewise.
31483
31484 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
31485
31486 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
31487 payload.
31488 (grub_module): Likewise.
31489
31490 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
31491
31492 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
31493 mbi->cmdline but free playground.
31494
31495 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
31496
31497 Handle group offset on UFS1.
31498
31499 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
31500 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
31501
31502 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
31503
31504 Split ufs.mod into ufs1.mod and ufs2.mod.
31505
31506 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
31507 (grub_fstest_SOURCES): Likewise.
31508 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
31509 (ufs_mod_SOURCES): Remove.
31510 (ufs_mod_CFLAGS): Likewise.
31511 (ufs_mod_LDFLAGS): Likewise.
31512 (ufs1_mod_SOURCES): New variable.
31513 (ufs1_mod_CFLAGS): Likewise.
31514 (ufs1_mod_LDFLAGS): Likewise.
31515 (ufs2_mod_SOURCES): New variable.
31516 (ufs2_mod_CFLAGS): Likewise.
31517 (ufs2_mod_LDFLAGS): Likewise.
31518 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
31519 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
31520 Likewise.
31521 (grub_emu_SOURCES): Likewise.
31522 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31523 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31524 (grub_setup_SOURCES): Likewise.
31525 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31526 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
31527 (grub_setup_SOURCES): Likewise.
31528 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
31529 Likewise.
31530 * fs/ufs2.c: New file.
31531 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
31532
31533 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
31534
31535 Framebuffer split.
31536
31537 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
31538 subsystem at the end.
31539 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
31540 (video_fb_mod_SOURCES): New variable.
31541 (video_fb_mod_CFLAGS): Likewise.
31542 (video_fb_mod_LDFLAGS): Likewise.
31543 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
31544 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
31545 * video/i386/pc/vbeblit.c: Moved from here ...
31546 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
31547 * video/i386/pc/vbefill.c: Moved from here ...
31548 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
31549 * video/i386/pc/vbeutil.c: Moved from here ...
31550 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
31551 * include/grub/i386/pc/vbeblit.h: Moved from here ...
31552 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
31553 * include/grub/i386/pc/vbefill.h: Moved from here ...
31554 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
31555 * include/grub/i386/pc/vbeutil.h: Moved from here ...
31556 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
31557 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
31558 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
31559 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
31560 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
31561 (grub_video_adapter): Added 'get_info_and_fini'.
31562 (grub_video_get_info_and_fini): New prototype.
31563 (grub_video_set_mode): make modestring const char *.
31564 * loader/i386/linux.c (grub_linux_setup_video): Use
31565 grub_video_get_info_and_fini.
31566 (grub_linux_boot): Move modesetting just before booting.
31567 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
31568 grub_video_get_info_and_fini.
31569 * video/i386/pc/vbe.c: Moved framebuffer part ...
31570 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
31571 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
31572 grub_video_fbstd_colors and grub_video_fb_set_palette.
31573 (grub_video_vbe_init): Clear 'framebuffer' variable and use
31574 grub_video_fb_init.
31575 (grub_video_vbe_fini): Use grub_video_fb_fini.
31576 (grub_video_vbe_setup): Use framebuffer.render_target instead of
31577 render_target and use grub_video_fb_set_active_render_target and
31578 grub_video_fb_set_palette.
31579 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
31580 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
31581 (grub_video_vbe_adapter): Use framebuffer.
31582 * video/video.c (grub_video_get_info_and_fini): New function.
31583 (grub_video_set_mode): Make modestring const char *.
31584 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
31585 values are already initialised.
31586
31587 2009-08-14 Pavel Roskin <proski@gnu.org>
31588
31589 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
31590 ABS and APPLE_CC.
31591 * boot/i386/pc/diskboot.S: Likewise.
31592 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
31593 sectors allow compilation on MacOSX.
31594 * conf/i386-pc.rmk: Enable unconditional compilation of
31595 lnxboot.img.
31596
31597 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
31598
31599 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
31600 * util/grub.d/00_header.in: Enter interruptible sleep if
31601 GRUB_HIDDEN_TIMEOUT is set.
31602
31603 2009-08-13 Yves Blusseau <blusseau@zetam.org>
31604
31605 * include/grub/symbol.h: Add the LOCAL macro.
31606 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
31607 starting with "L_".
31608
31609 2009-08-13 Pavel Roskin <proski@gnu.org>
31610
31611 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
31612 any modern compilers we support.
31613
31614 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
31615 Use local labels starting with "L_" so that Apple assembler
31616 knows they are local.
31617
31618 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
31619
31620 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
31621 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
31622 (bsd_kernel_types): ... this enum.
31623
31624 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
31625 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
31626 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
31627
31628 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
31629 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
31630 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
31631 messages.
31632
31633 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
31634
31635 * util/grub-dumpdevtree: Moved from here ...
31636 * util/i386/efi/grub-dumpdevtree: ... to here.
31637 (hexify): New function. Converts a string to its hex version.
31638 Generate hex versions of "efi" and "device-properties" by calling
31639 hexify() on the ASCII strings rather than by hardcoding numbers.
31640
31641 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
31642
31643 * fs/jfs.c: Update copyright year.
31644
31645 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
31646
31647 * util/grub.d/00_header.in: Fix a comment.
31648 * util/grub.d/10_linux.in: Likewise.
31649 * util/grub.d/10_windows.in: Likewise.
31650 * util/grub.d/10_hurd.in: Likewise.
31651
31652 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
31653
31654 * util/grub-mkconfig.in: Allow the user to specify the used font
31655 with GRUB_FONT.
31656
31657 2009-08-08 Pavel Roskin <proski@gnu.org>
31658
31659 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
31660 available, xfs.mod needs it now.
31661
31662 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
31663 the "g" modifier in sed when the intention is to strip something
31664 once. This fixes comparison of kernels with multiple dashes.
31665
31666 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
31667 on it. Add missing space before closing bracket. Fix
31668 misleading formatting.
31669
31670 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
31671
31672 * docs/grub.texi: Major overhaul. Remove all sections that are
31673 specific to GRUB Legacy, or mostly composed of Legacy-specific
31674 information.
31675
31676 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
31677
31678 * docs/version.texi: New file. Provides version information for
31679 grub.texi.
31680
31681 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
31682
31683 * docs/grub.texi: Update CVS information to SVN.
31684 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
31685
31686 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
31687
31688 * util/grub-mkconfig.in: Remove a wrong `fi'.
31689
31690 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
31691
31692 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
31693 (grub_jfs_uuid): New function.
31694 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
31695
31696 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
31697
31698 * util/grub-mkconfig_lib.in (font_path): Move the functionality
31699 of it to ...
31700 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
31701 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
31702
31703 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
31704
31705 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
31706 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
31707 Update all users.
31708
31709 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
31710 not just "vmlinu[zx]".
31711 Moved from here ...
31712 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
31713 all users.
31714
31715 * util/grub.d/10_linux.in (find_latest): Moved from here ...
31716 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
31717 all users.
31718
31719 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
31720
31721 * util/grub.d/10_freebsd.in: Use an absolute device path for
31722 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
31723
31724 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
31725
31726 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
31727 handling of multiple abstraction modules.
31728
31729 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
31730
31731 Fix a bug resulting in black screen when loading Linux using a
31732 packed video mode.
31733
31734 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
31735 function.
31736
31737 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
31738 (grub_vbe_bios_getset_dac_palette_width): New function.
31739 (grub_vbe_bios_get_dac_palette_width)
31740 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
31741 grub_vbe_bios_getset_dac_palette_width()).
31742
31743 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
31744 check for return status.
31745 (grub_vbe_get_video_mode_info): When getting information for a packed
31746 mode (<= 8 bpp), obtain DAC palette width using
31747 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
31748 {red,green,blue}_mark_size.
31749
31750 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
31751
31752 * commands/search.c (options): Fix help output to match actual code.
31753
31754 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
31755
31756 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
31757 of homegrown code.
31758
31759 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
31760
31761 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
31762 on XFS or ReiserFS.
31763
31764 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
31765
31766 Support Apple partition map with sector size different from 512 bytes.
31767
31768 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
31769 (apple_partition_map_iterate): Respect 'aheader.blocksize'
31770 and 'apart.partmap_size'.
31771
31772 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
31773 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
31774
31775 Fix cpuid command.
31776
31777 * commands/i386/cpuid.c (options): New variable.
31778 (grub_cmd_cpuid): Return real error.
31779 (GRUB_MOD_INIT(cpuid)): Declare options.
31780
31781 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
31782
31783 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
31784 valid.
31785
31786 2009-07-31 Bean <bean123ch@gmail.com>
31787
31788 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
31789 log2_inode.
31790 (grub_fshelp_node): Move inode field to the end.
31791 (grub_xfs_data): Remove inode field.
31792 (grub_xfs_inode_block): Calculate inode size using sblock.
31793 (grub_xfs_inode_offset): Likewise.
31794 (grub_xfs_read_inode): Calculate inode size using sblock.
31795 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
31796 (grub_xfs_iterate_dir): Calculate inode size using sblock.
31797 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
31798 to match inode size.
31799 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
31800 not accessible when data is null.
31801 (grub_xfs_open): Likewise.
31802
31803 2009-07-31 Bean <bean123ch@gmail.com>
31804
31805 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
31806 Don't change pv->disk if it's already set.
31807
31808 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
31809 (grub_raid_register): ... here.
31810 (grub_raid_rescan): Removed.
31811
31812 * include/grub/raid.h (grub_raid_rescan): Removed.
31813
31814 * util/grub-fstest.c: Remove include file <grub/raid.h>.
31815 (fstest): Replace grub_raid_rescan with module fini function followed
31816 by init function.
31817
31818 * util/grub-probe.c: Add include file <grub/raid.h>.
31819 (probe_raid_level): New function.
31820 (probe): Detect abstraction by walking the disk device, support two
31821 level of abstraction (LVM on RAID) when detecting partition map.
31822
31823 2009-07-31 Pavel Roskin <proski@gnu.org>
31824
31825 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
31826 to grub_zalloc(), it was erroneous.
31827 Reported by Bean <bean123ch@gmail.com>
31828
31829 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
31830
31831 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
31832 embedding zone, not only the first one.
31833
31834 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
31835
31836 * term/gfxterm.c (clear_char): New function.
31837 (grub_virtual_screen_setup): Use clear_char.
31838 (scroll_up): Likewise.
31839 (grub_virtual_screen_cls): Likewise.
31840
31841 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
31842
31843 * util/deviceiter.c (get_acceleraid_disk_name): New static
31844 function.
31845 (grub_util_iterate_devices): Handle Accelraid devices.
31846 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
31847
31848 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
31849
31850 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
31851 separator for the suggested gfxpayload string (';' collides with the
31852 parser and needs escaping).
31853
31854 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
31855
31856 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
31857 Clear direction flag before jumping to OS.
31858 (grub_multiboot2_real_boot): Likewise.
31859
31860 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
31861
31862 * util/i386/pc/grub-install: Fix parsing of --disk-module
31863 option.
31864
31865 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
31866
31867 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
31868 when embedding.
31869
31870 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
31871
31872 * util/grub-mkconfig.in (package_version): New variable.
31873 Use it do display the version.
31874
31875 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
31876
31877 * kern/file.c (grub_file_open): Revert to previous check with
31878 grub_errno.
31879
31880 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
31881
31882 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
31883 from help line. It's out of sync with code.
31884
31885 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
31886
31887 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
31888 entries on failed boot.
31889
31890 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
31891
31892 * kern/file.c (grub_file_open): Fix an error check.
31893
31894 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
31895
31896 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
31897 partition map couldn't be identified.
31898
31899 2009-07-23 Pavel Roskin <proski@gnu.org>
31900
31901 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
31902 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
31903 case of little endian words becomes just an optimization.
31904 Respect const modifier.
31905 (md5_final): Use code that doesn't depend on endianness.
31906
31907 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
31908 to avoid loss of upper bits if align is unsigned and shorter
31909 than addr.
31910
31911 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
31912
31913 UUID support for UFS
31914
31915 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
31916 (grub_ufs_uuid): New function.
31917 (grub_ufs_fs): add .uuid
31918
31919 2009-07-21 Pavel Roskin <proski@gnu.org>
31920
31921 * kern/dl.c (grub_dl_check_header): Make static.
31922
31923 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
31924
31925 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
31926 add drivemap for Vista. It breaks Windows 7.
31927
31928 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
31929
31930 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
31931 128 bytes
31932
31933 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
31934
31935 Add BFS support
31936
31937 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
31938 (grub_fstest_SOURCES): Likewise.
31939 (pkglib_MODULES): Add befs.mod.
31940 (befs_mod_SOURCES): New variable.
31941 (befs_mod_CFLAGS): Likewise.
31942 (befs_mod_LDFLAGS): Likewise.
31943 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
31944 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31945 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31946 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31947 (grub_setup_SOURCES): Likewise.
31948 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31949 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31950 (grub_setup_SOURCES): Likewise.
31951 * fs/befs.c: New file.
31952 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
31953 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
31954 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
31955 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
31956 (B_KEY_INDEX_ALIGN): New declaration.
31957 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
31958 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
31959 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
31960 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
31961 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
31962 (grub_afs_mount) [MODE_BFS]: Likewise.
31963 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
31964 (grub_afs_fs): Use GRUB_AFS_FSNAME
31965 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
31966 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
31967 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
31968 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
31969
31970 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
31971
31972 * util/getroot.c (find_root_device): Add support for MacOSX.
31973 * util/hostdisk.c: Likewise.
31974
31975 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
31976
31977 * font/font.c (find_glyph): Check whether a font is present to avoid
31978 segmentation fault.
31979
31980 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
31981
31982 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
31983
31984 2009-07-20 Pavel Roskin <proski@gnu.org>
31985
31986 * configure.ac: Trim excessively wordy excuses.
31987
31988 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
31989
31990 Add symlink, mtime and label support to AtheFS.
31991
31992 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
31993 (grub_afs_iterate_dir): Handle symlinks.
31994 (grub_afs_open): Use grub_afs_read_symlink.
31995 (grub_afs_dir): Likewise.
31996 Pass mtime.
31997 (grub_afs_label): New function.
31998 (grub_afs_fs): Add grub_afs_label.
31999 (grub_afs_read_symlink): New function.
32000
32001 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
32002
32003 Fix AtheFS support.
32004
32005 * fs/afs.c: Fix comments style.
32006 (grub_afs_blockrun): Declare as packed.
32007 (grub_afs_datastream): Likewise.
32008 (grub_afs_bnode): Likewise.
32009 (grub_afs_btree): Likewise.
32010 (grub_afs_sblock): Likewise.
32011 Declare `name' as char.
32012 (grub_afs_inode): Declare as packed.
32013 Change void *vnode to grub_uint32_t unused.
32014 (grub_afs_iterate_dir): Check that key_size is positive.
32015 (grub_afs_mount): Don't read superblock twice.
32016 (grub_afs_dir): Don't free node in case of error,
32017 grub_fshelp_find_file already handles this.
32018 (grub_afs_open): Likewise.
32019
32020 2009-07-19 Pavel Roskin <proski@gnu.org>
32021
32022 * Makefile.in: Remove LIBLZO and enable_lzo.
32023 * conf/i386-pc.rmk: Remove lzo support.
32024 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
32025 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
32026 support.
32027 * kern/i386/pc/lzo1x.S: Remove.
32028 * kern/i386/pc/startup.S: Remove lzo support.
32029 * util/i386/pc/grub-mkimage.c: Likewise.
32030
32031 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
32032
32033 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
32034 * fs/xfs.c (grub_xfs_dir): Likewise.
32035 * fs/afs.c (grub_afs_dir): Likewise.
32036 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
32037 (grub_iso9660_open): Likewise.
32038 * fs/jfs.c (grub_jfs_open): Likewise.
32039 * fs/ext2.c (grub_ext2_dir): Likewise.
32040 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
32041 * script/sh/lexer.c (grub_script_yylex): Likewise.
32042
32043 2009-07-16 Pavel Roskin <proski@gnu.org>
32044
32045 * configure.ac: Never add "-c" to CFLAGS.
32046
32047 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
32048
32049 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
32050 grub_cv_cc_efiemu should be used.
32051
32052 * configure.ac: Typo fixes.
32053
32054 * kern/mm.c (grub_zalloc): New function.
32055 (grub_debug_zalloc): Likewise.
32056 * include/grub/mm.h: Declare grub_zalloc() and
32057 grub_debug_zalloc().
32058 * util/misc.c (grub_zalloc): New function.
32059 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
32060 instead of grub_malloc(), remove unneeded initializations.
32061 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
32062 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
32063 * commands/parttool.c (grub_cmd_parttool): Likewise.
32064 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
32065 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
32066 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
32067 * disk/usbms.c (grub_usbms_finddevs): Likewise.
32068 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
32069 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
32070 (grub_cmd_efiemu_pnvram): Likewise.
32071 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
32072 * fs/iso9660.c (grub_iso9660_mount): Likewise.
32073 (grub_iso9660_iterate_dir): Likewise.
32074 * fs/jfs.c (grub_jfs_opendir): Likewise.
32075 * fs/ntfs.c (list_file): Likewise.
32076 (grub_ntfs_mount): Likewise.
32077 * kern/disk.c (grub_disk_open): Likewise.
32078 * kern/dl.c (grub_dl_load_core): Likewise.
32079 * kern/elf.c (grub_elf_file): Likewise.
32080 * kern/env.c (grub_env_context_open): Likewise.
32081 (grub_env_set): Likewise.
32082 (grub_env_set_data_slot): Likewise.
32083 * kern/file.c (grub_file_open): Likewise.
32084 * kern/fs.c (grub_fs_blocklist_open): Likewise.
32085 * loader/i386/multiboot.c (grub_module): Likewise.
32086 * loader/xnu.c (grub_xnu_create_key): Likewise.
32087 (grub_xnu_create_value): Likewise.
32088 * normal/main.c (grub_normal_add_menu_entry): Likewise.
32089 (read_config_file): Likewise.
32090 * normal/menu_entry.c (make_screen): Likewise.
32091 * partmap/sun.c (sun_partition_map_iterate): Likewise.
32092 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
32093 * script/sh/script.c (grub_script_parse): Likewise.
32094 * video/bitmap.c (grub_video_bitmap_create): Likewise.
32095 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
32096 * video/readers/png.c (grub_png_output_byte): Likewise.
32097 (grub_video_reader_png): Likewise.
32098
32099 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
32100
32101 Enable all targets that can be built by default
32102
32103 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
32104 grub-mkfont and grub-fstest if they can be built
32105
32106 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
32107
32108 Fix hang and segmentation fault in grub-emu-usb
32109
32110 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
32111 * util/usb.c (grub_libusb_devices): likewise
32112 (grub_libusb_init): rename to ...
32113 (GRUB_MOD_INIT (libusb)):...this
32114 (grub_libusb_fini): rename to ..
32115 (GRUB_MOD_FINI (libusb)):...this
32116 * disk/usbms.c (grub_usbms_transfer): fix retry logic
32117 * include/grub/disk.h (grub_raid_init): removed, it's useless
32118 (grub_raid_fini): likewise
32119 (grub_lvm_init): likewise
32120 (grub_lvm_fini): likewise
32121 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
32122 by grub_init_all
32123
32124 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
32125
32126 Fix libusb
32127
32128 * Makefile.in (LIBUSB): new macro
32129 * genmk.rb (Utility/print_tail): new method
32130 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
32131 (top level): call util.print_tail at the end.
32132
32133 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
32134
32135 Make FreeBSD accept zpool.cache
32136
32137 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
32138 type is /boot/zfs/zpool.cache
32139
32140 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
32141
32142 Fix 64-bit efiemu
32143
32144 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
32145 correct wrong typedef
32146 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
32147
32148 2009-07-15 Pavel Roskin <proski@gnu.org>
32149
32150 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
32151 * kern/disk.c (struct grub_disk_cache): Likewise.
32152
32153 * commands/probe.c (options): Typo fix.
32154
32155 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
32156 Increase to 0x5a to accommodate FAT32. Adjust other offsets
32157 accordingly.
32158 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
32159
32160 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
32161 the end of "Error" to make the message more readable.
32162
32163 * boot/i386/pc/boot.S (kernel_segment): Remove.
32164 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
32165 for destination.
32166
32167 * boot/i386/pc/boot.S (boot_version): Remove.
32168 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
32169 Remove.
32170
32171 * include/grub/i386/pc/boot.h: Sort all offsets.
32172 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
32173 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
32174 * boot/i386/pc/boot.S: Assert location of every offset listed in
32175 include/grub/i386/pc/boot.h.
32176
32177 2009-07-13 Pavel Roskin <proski@gnu.org>
32178
32179 * include/grub/i386/coreboot/machine.h: Rename
32180 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
32181 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
32182 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
32183
32184 * kern/dl.c: Force native word size to suppress warnings when
32185 compiling grub-emu.
32186
32187 * kern/device.c (grub_device_iterate): Change struct part_ent to
32188 hold the name, not a pointer to it. Use one grub_malloc() per
32189 partition, not two. Free partition_name if grub_malloc() fails.
32190 Set ents to NULL only before grub_partition_iterate() is called.
32191
32192 2009-07-11 Bean <bean123ch@gmail.com>
32193
32194 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
32195 childname.
32196
32197 2009-07-10 Bean <bean123ch@gmail.com>
32198 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
32199
32200 * kern/ieee1275/openfw.c (grub_children_iterate)
32201 (grub_devalias_iterate): Fix size evaluation for property or path
32202 strings, which was broken since r2132.
32203
32204 2009-07-07 Pavel Roskin <proski@gnu.org>
32205
32206 * commands/search.c (search_file): Merge into ...
32207 (search_fs): ... this. Accept search type as argument.
32208 (grub_cmd_search): Pass search type to search_fs().
32209
32210 * include/grub/util/console.h: New file.
32211 * util/console.c: Use it instead of grub/machine/console.h.
32212 * util/grub-emu.c: Likewise.
32213
32214 * lib/arg.c (find_long_option): Remove.
32215 (find_long): Add `len' argument, make `s' const char *.
32216 (grub_arg_parse): Parse long options in place, not in a
32217 temporary buffer.
32218
32219 2009-07-06 Pavel Roskin <proski@gnu.org>
32220
32221 * commands/search.c (search_fs): Fix potential NULL pointer
32222 dereference.
32223
32224 * commands/search.c (search_fs): Replace QUID macro with quid_fn
32225 function pointer.
32226
32227 2009-07-06 Daniel Mierswa <impulze@impulze.org>
32228
32229 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
32230 comparison.
32231
32232 2009-07-05 Pavel Roskin <proski@gnu.org>
32233
32234 * include/grub/i386/linux.h (struct linux_kernel_params):
32235 Restore padding3, it's still needed.
32236
32237 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
32238 FreeBSD.
32239 * util/osdetect.lua: Likewise.
32240
32241 2009-07-05 Bean <bean123ch@gmail.com>
32242
32243 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
32244
32245 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
32246 (grub_lua_getenv): Likewise.
32247 (grub_lua_setenv): Likewise.
32248 (save_errno): New function.
32249 (push_result): Likewise.
32250 (grub_lua_enum_device): Likewise.
32251 (grub_lua_enum_file): Likewise.
32252 (grub_lua_file_open): Likewise.
32253 (grub_lua_file_close): Likewise.
32254 (grub_lua_file_seek): Likewise.
32255 (grub_lua_file_read): Likewise.
32256 (grub_lua_file_getline): Likewise.
32257 (grub_lua_file_getsize): Likewise.
32258 (grub_lua_file_getpos): Likewise.
32259 (grub_lua_file_eof): Likewise.
32260 (grub_lua_file_exist): Likewise.
32261 (grub_lua_add_menu): Likewise.
32262
32263 * script/lua/grub_lua.h (isupper): New inline function.
32264 (islower): Likewise.
32265 (ispunct): Likewise.
32266 (isxdigit): Likewise.
32267 (strcspn): Change to normal function.
32268 (strpbkr): New function declaration.
32269 (memchr): Likewise.
32270
32271 * script/lua/grub_main.c (scan_str): New function.
32272 (strcspn): Likewise.
32273 (strpbrk): Likewise.
32274 (memchr): Likewise.
32275
32276 * script/lua/linit.c (lualibs): Enable the string library.
32277
32278 * util/osdetect.lua: New file.
32279
32280 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
32281
32282 * include/grub/i386/linux.h (struct linux_kernel_params): Add
32283 `capabilities' member.
32284
32285 2009-07-02 Pavel Roskin <proski@gnu.org>
32286
32287 * genparttoollist.sh: Add missing newline at the end.
32288
32289 2009-07-01 Pavel Roskin <proski@gnu.org>
32290
32291 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
32292
32293 * util/hostdisk.c (open_device): Remove `const' from
32294 `sysctl_size', as sysctlbyname() can change it (in this case it
32295 doesn't actually happen).
32296
32297 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
32298 using signed long int constants.
32299
32300 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
32301 constant to avoid a warning on FreeBSD.
32302
32303 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
32304 where it's needed.
32305
32306 * Makefile.in: Install include/grub/machine symlink.
32307
32308 * Makefile.in: When installing symlinks, use "cp -fR", which
32309 works on FreeBSD and MacOSX.
32310 From Yves Blusseau <cl7m42e02@sneakemail.com>
32311
32312 * kern/dl.c (grub_dl_resolve_symbol): Make static.
32313 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
32314
32315 * util/misc.c: Move grub_reboot() and grub_halt() ...
32316 * util/grub-emu.c: ... here. Make main_env static.
32317 * include/grub/util/misc.h: Remove main_env.
32318
32319 * kern/mm.c: Use correct format to print size_t.
32320
32321 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
32322 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
32323 * kern/powerpc/dl.c: Likewise.
32324 * kern/sparc64/dl.c: Likewise.
32325 * kern/x86_64/dl.c: Likewise.
32326
32327 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
32328
32329 Fix grub-emu build on sparc64-ieee1275.
32330
32331 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
32332 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
32333
32334 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
32335
32336 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
32337 (grub_reboot, grub_halt): New functions.
32338
32339 * util/i386/pc/misc.c: Delete. Update all users.
32340 * util/sparc64/ieee1275/misc.c: Likewise.
32341 * util/powerpc/ieee1275/misc.c: Likewise.
32342
32343 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
32344
32345 * conf/i386.rmk (setjmp_mod_SOURCES)
32346 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
32347 * conf/common.rmk (setjmp_mod_SOURCES)
32348 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
32349 to use $(target_cpu).
32350 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
32351 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
32352 * conf/powerpc-ieee1275.rmk: Likewise.
32353 * conf/sparc64-ieee1275.rmk: Likewise.
32354
32355 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
32356 $(target_cpu) for kern/$(target_cpu)/dl.c.
32357 * conf/i386-efi.rmk: Likewise.
32358 * conf/i386-ieee1275.rmk: Likewise.
32359 * conf/x86_64-efi.rmk: Likewise.
32360 * conf/i386-coreboot.rmk: Likewise.
32361 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
32362 $(target_cpu) for kern/$(target_cpu)/dl.c and for
32363 kern/$(target_cpu)/cache.S.
32364 * conf/sparc64-ieee1275.rmk: Likewise.
32365
32366 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
32367
32368 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
32369 type to `grub_uint8_t', and adjust `padding9' accordingly.
32370
32371 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
32372
32373 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
32374
32375 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
32376 assembly in final jump, using register constraints.
32377
32378 (grub_linux_boot): For text mode, initialize `have_vga' using
32379 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
32380
32381 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
32382 right before the final jump.
32383
32384 Set `video_mode' to 0x3.
32385
32386 Document initialization of `video_page', `video_mode' and
32387 `video_ega_bx'.
32388
32389 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
32390
32391 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
32392 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
32393 and set GRUB_LINUX_FLAG_QUIET appropriately.
32394
32395 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
32396
32397 Fix build on Debian / sparc.
32398
32399 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
32400
32401 2009-06-28 Pavel Roskin <proski@gnu.org>
32402
32403 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
32404 fix a warning.
32405
32406 * util/grub.d/10_linux.in: Match SUSE style initrd names.
32407
32408 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
32409
32410 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
32411 `err'.
32412
32413 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
32414
32415 Revert r2338.
32416
32417 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
32418 file can't be opened. grub_file_open() is already supposed to set
32419 grub_errno / grub_errmsg appropriately.
32420 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
32421
32422 2009-06-27 Pavel Roskin <proski@gnu.org>
32423 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
32424
32425 * include/grub/dl.h: Include grub/elf.h.
32426 (struct grub_dl): Add symtab field.
32427 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
32428 GRUB_MODULES_MACHINE_READONLY.
32429 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
32430 of the header for read-only modules.
32431 (grub_dl_unload): Free mod->symtab for read-only modules.
32432 * kern/i386/dl.c: Use mod->symtab.
32433 * kern/powerpc/dl.c: Likewise.
32434 * kern/sparc64/dl.c: Likewise.
32435 * kern/x86_64/dl.c: Likewise.
32436
32437 * conf/i386-qemu.rmk: New file.
32438 * kern/i386/qemu/startup.S: Likewise.
32439 * kern/i386/qemu/mmap.c: Likewise.
32440 * boot/i386/qemu/boot.S: Likewise.
32441 * include/grub/i386/qemu/time.h: Likewise.
32442 * include/grub/i386/qemu/serial.h: Likewise.
32443 * include/grub/i386/qemu/kernel.h: Likewise.
32444 * include/grub/i386/qemu/console.h: Likewise.
32445 * include/grub/i386/qemu/boot.h: Likewise.
32446 * include/grub/i386/qemu/init.h: Likewise.
32447 * include/grub/i386/qemu/machine.h: Likewise.
32448 * include/grub/i386/qemu/loader.h: Likewise.
32449 * include/grub/i386/qemu/memory.h: Likewise.
32450
32451 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
32452 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
32453 [qemu] (pkglib_IMAGES): Add `boot.img'.
32454 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
32455 [qemu] (boot_img_FORMAT): New variables.
32456 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
32457 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
32458 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
32459 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
32460 [qemu] (kernel_img_FORMAT): New variables.
32461
32462 * configure.ac: Recognise `i386-qemu'.
32463
32464 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
32465 (for no compression).
32466 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
32467 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
32468 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
32469 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
32470 ifdefs).
32471
32472 2009-06-27 Pavel Roskin <proski@gnu.org>
32473
32474 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
32475 read.
32476 * efiemu/prepare32.c: Likewise.
32477 * efiemu/prepare64.c: Likewise.
32478
32479 2009-06-26 Pavel Roskin <proski@gnu.org>
32480
32481 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
32482 * include/grub/elf.h: Define symbols without "32" or "64" based
32483 on GRUB_TARGET_WORDSIZE.
32484 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
32485 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
32486 ELF definitions.
32487 * efiemu/loadcore64.c: Likewise.
32488 * loader/i386/bsd32.c: Likewise.
32489 * loader/i386/bsd64.c: Likewise.
32490 * kern/dl.c: Remove own ELF definitions.
32491 * util/i386/efi/grub-mkimage.c: Likewise.
32492
32493 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
32494
32495 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
32496 segment 0x0 unconditionally, because the reference generated by
32497 GAS is an absolute address.
32498
32499 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
32500
32501 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
32502 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
32503
32504 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
32505
32506 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
32507 indexes. Check for -f explicitly.
32508 (search_file): Improve error message.
32509 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
32510
32511 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
32512
32513 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
32514 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
32515
32516 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
32517
32518 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
32519 * conf/i386-ieee1275.rmk: Likewise.
32520 * conf/i386-coreboot.rmk: Likewise.
32521
32522 * kern/i386/pc/startup.S (grub_stop): Remove function.
32523 * kern/i386/ieee1275/startup.S: Likewise.
32524 * kern/i386/coreboot/startup.S: Likewise.
32525 * kern/i386/misc.S (grub_stop): New function.
32526
32527 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
32528
32529 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
32530 * kern/i386/realmode.S (real_to_prot): ... to here.
32531
32532 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
32533
32534 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
32535 with `kernel.img'.
32536 (kernel_elf_SOURCES): Rename to ...
32537 (kernel_img_SOURCES): ... this.
32538 (kernel_elf_HEADERS): Rename to ...
32539 (kernel_img_HEADERS): ... this. Update all users.
32540 (kernel_elf_ASFLAGS): Rename to ...
32541 (kernel_img_ASFLAGS): ... this.
32542 (kernel_elf_CFLAGS): Rename to ...
32543 (kernel_img_CFLAGS): ... this.
32544 (kernel_elf_LDFLAGS): Rename to ...
32545 (kernel_img_LDFLAGS): ... this.
32546 * conf/i386-coreboot.rmk: Likewise.
32547 * conf/powerpc-ieee1275.rmk: Likewise.
32548
32549 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
32550 with "kernel.img".
32551
32552 2009-06-21 Pavel Roskin <proski@gnu.org>
32553
32554 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
32555 to match nested functions.
32556 * loader/sparc64/ieee1275/linux.c: Likewise.
32557
32558 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
32559
32560 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
32561
32562 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
32563 all i386 platforms.
32564
32565 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
32566
32567 Fix asm file handling on ELF, and remove workarounds.
32568
32569 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
32570 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
32571 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
32572 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
32573
32574 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
32575
32576 Load BSD ELF modules
32577
32578 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
32579 and loader/i386/bsd64.c
32580 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
32581 (FREEBSD_MODTYPE_ELF_MODULE): New definition
32582 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
32583 (grub_freebsd_load_elfmodule32): New declaration
32584 (grub_freebsd_load_elfmoduleobj64): Likewise
32585 (grub_freebsd_load_elf_meta32): Likewise
32586 (grub_freebsd_load_elf_meta64): Likewise
32587 (grub_freebsd_add_meta): Likewise
32588 (grub_freebsd_add_meta_module): Likewise
32589 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
32590 (grub_freebsd_add_meta_module): Likewise and move module-specific
32591 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
32592 (grub_cmd_freebsd): Add elf-kernel specific parts
32593 based on grub_freebsd_add_meta_module
32594 (grub_cmd_freebsd_module): Add type parsing moved from
32595 grub_freebsd_add_meta_module
32596 (grub_cmd_freebsd_module_elf): New function
32597 (cmd_freebsd_module_elf): New variable
32598 (GRUB_MOD_INIT): Register freebsd_module_elf
32599 * loader/i386/bsd32.c: New file
32600 * loader/i386/bsd64.c: Likewise
32601 * loader/i386/bsdXX.c: Likewise
32602 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
32603 (grub_elf64_load): Likewise
32604 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
32605 All users updated
32606 (grub_elf64_load_hook_t): Likewise
32607
32608 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
32609
32610 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
32611 variable.
32612 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
32613 don't write a menu entry for recovery mode.
32614
32615 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
32616
32617 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
32618 after it's no longer needed.
32619
32620 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
32621
32622 * include/grub/i386/loader.h (grub_linux_prot_size)
32623 (grub_linux_tmp_addr, grub_linux_real_addr)
32624 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
32625 GRUB_MACHINE_PCBIOS.
32626 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
32627 common grub_util_info() call to ...
32628 (generate_image): ... here.
32629 Fix use of uninitialized memory, comparison of signed with
32630 unsigned integers and memory leak.
32631 Remove bogus module address message.
32632
32633 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
32634
32635 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
32636 grub_raid_register
32637 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
32638
32639 2009-06-19 Pavel Roskin <proski@gnu.org>
32640
32641 * configure.ac: Remove stray AC_MSG_CHECKING.
32642
32643 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
32644
32645 * disk/scsi.c (grub_scsi_open): use continue instead of big if
32646
32647 2009-06-18 Pavel Roskin <proski@gnu.org>
32648
32649 * conf/common.rmk: Add fs_file.mod.
32650 * disk/fs_file.c: New file.
32651 * include/grub/disk.h (enum grub_disk_dev_id): Add
32652 GRUB_DISK_DEVICE_FILE_ID.
32653
32654 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
32655
32656 Fix build with Apple's toolchain. Part 2
32657
32658 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
32659 a fake start
32660
32661 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
32662
32663 Fix build with Apple's toolchain. Part 1
32664
32665 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
32666 for long calls
32667 * configure.ac: remove a leftover AC_MSG_RESULT
32668 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
32669 Apple's toolchain
32670
32671 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
32672
32673 Fix warnings
32674
32675 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
32676 (decomp_block): initialize ch
32677 use grub_memcpy instead of memcpy
32678
32679 2009-06-17 Pavel Roskin <proski@gnu.org>
32680
32681 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
32682 version, use declarations needed to use vga_text as the startup
32683 console.
32684
32685 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
32686 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
32687 the kernel.
32688 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
32689 and grub_at_keyboard_fini(), it's done on module load and
32690 unload.
32691
32692 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
32693
32694 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
32695 file can't be found.
32696 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
32697
32698 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
32699
32700 Fix newline handling
32701
32702 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
32703 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
32704 (grub_script_yylex): don't segfault on unterminated script
32705 newline terminates command and variable
32706
32707 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
32708
32709 avoid double grub_adjust_range call. Bug reported by David Simner
32710
32711 * kern/disk.c (grub_disk_write): change to raw disk access before
32712 calling disk_read
32713
32714 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
32715
32716 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
32717 spaces, for the benefit of help2man.
32718 * util/i386/efi/grub-mkimage.c (usage): Likewise.
32719
32720 2009-06-16 Pavel Roskin <proski@gnu.org>
32721
32722 * kern/i386/halt.c: Include grub/machine/init.h.
32723 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
32724
32725 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
32726
32727 * util/grub.d/30_os-prober.in: Use ${root} in the generated
32728 drivemap menuentry.
32729
32730 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
32731
32732 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
32733 `echo' command.
32734
32735 2009-06-16 Pavel Roskin <proski@gnu.org>
32736
32737 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
32738 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
32739 save %dx, we only need %dl and we never change it.
32740 * boot/i386/pc/cdboot.S: Don't set the root drive.
32741 * boot/i386/pc/pxeboot.S: Likewise.
32742 * include/grub/i386/pc/boot.h: Remove
32743 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
32744 GRUB_BOOT_MACHINE_DRIVE_CHECK.
32745 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
32746 * kern/i386/pc/init.c (make_install_device): Remove references
32747 to grub_root_drive.
32748 * kern/i386/pc/startup.S: Likewise.
32749 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
32750
32751 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
32752
32753 xnu_uuid command
32754
32755 * commands/xnu_uuid.c: new file
32756 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
32757 (xnu_uuid_mod_SOURCES): new variable
32758 (xnu_uuid_mod_CFLAGS): likewise
32759 (xnu_uuid_mod_LDFLAGS): likewise
32760 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
32761 * conf/i386-ieee1275.rmk: likewise
32762 * conf/i386-pc.rmk: likewise
32763 * conf/powerpc-ieee1275.rmk: likewise
32764 * conf/sparc64-ieee1275.rmk: likewise
32765 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
32766
32767 2009-06-16 Pavel Roskin <proski@gnu.org>
32768
32769 * configure.ac: Avoid '==' in test command, it's not portable.
32770
32771 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
32772
32773 Probe command
32774
32775 * commands/probe.c: new file
32776 * conf/common.rmk (pkglib_MODULES): add probe.mod
32777 (probe_mod_SOURCES): new variable
32778 (probe_mod_CFLAGS): likewise
32779 (probe_mod_LDFLAGS): likewise
32780 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
32781 * conf/i386-ieee1275.rmk: likewise
32782 * conf/i386-pc.rmk: likewise
32783 * conf/powerpc-ieee1275.rmk: likewise
32784 * conf/sparc64-ieee1275.rmk: likewise
32785
32786 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
32787
32788 Fix handling of string like \"hello\" and "a
32789 b"
32790
32791 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
32792 (grub_script_yylex): fix parsing of quoting, escaping and newline
32793
32794 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
32795
32796 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
32797 handling
32798
32799 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
32800
32801 * util/grub-mkconfig.in: Fix parsing of --output option.
32802
32803 2009-06-12 Pavel Roskin <proski@gnu.org>
32804
32805 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
32806 genmk.rb don't need to be generated or installed.
32807
32808 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
32809
32810 * commands/i386/pc/drivemap_int13h.S: add more comments
32811
32812 2009-06-11 Pavel Roskin <proski@gnu.org>
32813
32814 * Makefile.in (uninstall): Uninstall manuals.
32815
32816 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
32817 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
32818 and update-grub_lib in two places.
32819 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
32820
32821 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
32822 a compiler warning.
32823
32824 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
32825 `entry_lo' to fix variable shadowing.
32826
32827 2009-06-11 Christian Franke <franke@computer.org>
32828
32829 * kern/misc.c (__enable_execute_stack): Add missing return type
32830 to prevent gcc warning.
32831
32832 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
32833
32834 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
32835
32836 2009-06-11 Pavel Roskin <proski@gnu.org>
32837
32838 * Makefile.in: Don't rely on any scripts being executable.
32839 Always use $(SHELL) to run shell scripts.
32840
32841 * configure.ac: Always define ___main if using -nostdlib. This
32842 fixes tests on Cygwin.
32843
32844 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
32845
32846 UDF fix
32847
32848 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
32849 is in bytes and not in blocks
32850
32851 2009-06-11 Pavel Roskin <proski@gnu.org>
32852
32853 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
32854 warning.
32855
32856 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
32857
32858 * util/grub.d/30_os-prober.in: Fix a comment. Source
32859 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
32860 to set the root device. Place drivemap command in the generated
32861 chain entry.
32862
32863 2009-06-11 Pavel Roskin <proski@gnu.org>
32864
32865 * configure.ac: Remove host_m32. Issues with 64-bit utilities
32866 have long been resolved.
32867
32868 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
32869
32870 * util/grub.d/10_linux.in: Capitalise "Linux".
32871
32872 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
32873
32874 2009-06-11 Pavel Roskin <proski@gnu.org>
32875
32876 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
32877 fix a gcc warning and ensure that the function won't ever exit.
32878
32879 * kern/i386/ieee1275/init.c: Add missing prototype for
32880 grub_stop_floppy().
32881
32882 * loader/ieee1275/multiboot2.c [__i386__]: Include
32883 grub/cpu/multiboot.h.
32884
32885 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
32886 casts to short - they are not portable and cause warnings. Fix
32887 use of uninitialized values in input_buf. Use ARRAY_SIZE.
32888
32889 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
32890
32891 Drivemap fixes
32892
32893 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
32894 new function
32895 (grub_get_root_biosnumber_saved): new variable
32896 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
32897 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
32898 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
32899 %dx after the call if necessary
32900 * conf/common.rmk (pkglib_MODULES): remove boot.mod
32901 (boot_mod_SOURCES): remove
32902 (boot_mod_CFLAGS): remove
32903 (boot_mod_LDFLAGS): remove
32904 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
32905 (boot_mod_SOURCES): new variable
32906 (boot_mod_CFLAGS): likewise
32907 (boot_mod_LDFLAGS): likewise
32908 * conf/i386-efi.rmk: likewise
32909 * conf/i386-ieee1275.rmk: likewise
32910 * conf/i386-pc.rmk: likewise
32911 * conf/powerpc-ieee1275.rmk: likewise
32912 * conf/sparc64-ieee1275.rmk: likewise
32913 * conf/x86_64-efi.rmk: likewise
32914 * include/grub/i386/pc/biosnum.h: new file
32915 * lib/i386/pc/biosnum.c: likewise
32916 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
32917 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
32918 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
32919
32920 2009-06-10 Pavel Roskin <proski@gnu.org>
32921
32922 * io/gzio.c (test_header): Don't reuse one buffer for all data.
32923 Use separate variables. Read only the file size at the end, but
32924 not the checksum that we don't use.
32925
32926 * kern/file.c (grub_file_read): Use void pointer for the buffer.
32927 Adjust all callers.
32928
32929 * kern/ieee1275/openfw.c: Remove libc includes.
32930 * kern/ieee1275/cmain.c: Likewise.
32931 * include/grub/ieee1275/ieee1275.h: Likewise.
32932
32933 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
32934 compiler warnings.
32935
32936 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
32937
32938 * Makefile.in: Remove all trailing whitespace.
32939 * conf/i386-pc.rmk: Likewise.
32940 * conf/powerpc-ieee1275.rmk: Likewise.
32941 * conf/sparc64-ieee1275.rmk: Likewise.
32942 * docs/grub.texi: Likewise.
32943 * docs/texinfo.tex: Likewise.
32944 * disk/fs_uuid.c: Likewise.
32945 * disk/lvm.c: Likewise.
32946 * disk/scsi.c: Likewise.
32947 * disk/ata.c: Likewise.
32948 * disk/ieee1275/ofdisk.c: Likewise.
32949 * disk/i386/pc/biosdisk.c: Likewise.
32950 * disk/host.c: Likewise.
32951 * disk/raid.c: Likewise.
32952 * disk/efi/efidisk.c: Likewise.
32953 * disk/usbms.c: Likewise.
32954 * disk/memdisk.c: Likewise.
32955 * disk/loopback.c: Likewise.
32956 * kern/powerpc/dl.c: Likewise.
32957 * kern/device.c: Likewise.
32958 * kern/dl.c: Likewise.
32959 * kern/sparc64/dl.c: Likewise.
32960 * kern/ieee1275/ieee1275.c: Likewise.
32961 * kern/term.c: Likewise.
32962 * kern/fs.c: Likewise.
32963 * kern/i386/dl.c: Likewise.
32964 * kern/i386/pc/startup.S: Likewise.
32965 * kern/i386/pc/init.c: Likewise.
32966 * kern/i386/pc/mmap.c: Likewise.
32967 * kern/i386/pc/lzo1x.S: Likewise.
32968 * kern/i386/ieee1275/init.c: Likewise.
32969 * kern/i386/realmode.S: Likewise.
32970 * kern/i386/tsc.c: Likewise.
32971 * kern/partition.c: Likewise.
32972 * kern/corecmd.c: Likewise.
32973 * kern/file.c: Likewise.
32974 * kern/efi/efi.c: Likewise.
32975 * kern/efi/init.c: Likewise.
32976 * kern/efi/mm.c: Likewise.
32977 * kern/main.c: Likewise.
32978 * kern/err.c: Likewise.
32979 * kern/env.c: Likewise.
32980 * kern/disk.c: Likewise.
32981 * kern/generic/millisleep.c: Likewise.
32982 * kern/generic/rtc_get_time_ms.c: Likewise.
32983 * kern/misc.c: Likewise.
32984 * kern/parser.c: Likewise.
32985 * genmk.rb: Likewise.
32986 * configure.ac: Likewise.
32987 * boot/i386/pc/diskboot.S: Likewise.
32988 * boot/i386/pc/pxeboot.S: Likewise.
32989 * boot/i386/pc/boot.S: Likewise.
32990 * boot/i386/pc/lnxboot.S: Likewise.
32991 * boot/i386/pc/cdboot.S: Likewise.
32992 * parttool/pcpart.c: Likewise.
32993 * video/readers/tga.c: Likewise.
32994 * video/video.c: Likewise.
32995 * video/bitmap.c: Likewise.
32996 * lib/envblk.c: Likewise.
32997 * lib/i386/setjmp.S: Likewise.
32998 * fs/xfs.c: Likewise.
32999 * fs/afs.c: Likewise.
33000 * fs/fat.c: Likewise.
33001 * fs/ntfs.c: Likewise.
33002 * fs/udf.c: Likewise.
33003 * fs/affs.c: Likewise.
33004 * fs/iso9660.c: Likewise.
33005 * fs/hfs.c: Likewise.
33006 * fs/fshelp.c: Likewise.
33007 * fs/ext2.c: Likewise.
33008 * fs/jfs.c: Likewise.
33009 * fs/reiserfs.c: Likewise.
33010 * fs/hfsplus.c: Likewise.
33011 * fs/minix.c: Likewise.
33012 * fs/cpio.c: Likewise.
33013 * fs/sfs.c: Likewise.
33014 * fs/ufs.c: Likewise.
33015 * efiemu/prepare.c: Likewise.
33016 * efiemu/loadcore_common.c: Likewise.
33017 * efiemu/runtime/efiemu.sh: Likewise.
33018 * efiemu/runtime/efiemu.S: Likewise.
33019 * efiemu/runtime/efiemu.c: Likewise.
33020 * efiemu/pnvram.c: Likewise.
33021 * efiemu/main.c: Likewise.
33022 * efiemu/i386/pc/cfgtables.c: Likewise.
33023 * efiemu/i386/loadcore64.c: Likewise.
33024 * efiemu/i386/loadcore32.c: Likewise.
33025 * efiemu/loadcore.c: Likewise.
33026 * efiemu/symbols.c: Likewise.
33027 * efiemu/mm.c: Likewise.
33028 * include/grub/autoefi.h: Likewise.
33029 * include/grub/datetime.h: Likewise.
33030 * include/grub/term.h: Likewise.
33031 * include/grub/hfs.h: Likewise.
33032 * include/grub/lvm.h: Likewise.
33033 * include/grub/i386/tsc.h: Likewise.
33034 * include/grub/i386/linux.h: Likewise.
33035 * include/grub/i386/xnu.h: Likewise.
33036 * include/grub/i386/efiemu.h: Likewise.
33037 * include/grub/i386/pc/biosdisk.h: Likewise.
33038 * include/grub/i386/pc/memory.h: Likewise.
33039 * include/grub/i386/pc/vbe.h: Likewise.
33040 * include/grub/parttool.h: Likewise.
33041 * include/grub/video.h: Likewise.
33042 * include/grub/memory.h: Likewise.
33043 * include/grub/fs.h: Likewise.
33044 * include/grub/partition.h: Likewise.
33045 * include/grub/xnu.h: Likewise.
33046 * include/grub/efi/api.h: Likewise.
33047 * include/grub/efi/pe32.h: Likewise.
33048 * include/grub/efi/memory.h: Likewise.
33049 * include/grub/multiboot.h: Likewise.
33050 * include/grub/usbdesc.h: Likewise.
33051 * include/grub/multiboot2.h: Likewise.
33052 * include/grub/acpi.h: Likewise.
33053 * include/grub/efiemu/efiemu.h: Likewise.
33054 * include/grub/disk.h: Likewise.
33055 * include/grub/ieee1275/ieee1275.h: Likewise.
33056 * include/grub/net.h: Likewise.
33057 * include/grub/machoload.h: Likewise.
33058 * include/grub/macho.h: Likewise.
33059 * include/multiboot.h: Likewise.
33060 * genmoddep.awk: Likewise.
33061 * normal/main.c: Likewise.
33062 * normal/menu_entry.c: Likewise.
33063 * normal/menu_viewer.c: Likewise.
33064 * normal/completion.c: Likewise.
33065 * normal/cmdline.c: Likewise.
33066 * normal/misc.c: Likewise.
33067 * normal/datetime.c: Likewise.
33068 * bus/usb/usbtrans.c: Likewise.
33069 * bus/usb/ohci.c: Likewise.
33070 * bus/usb/uhci.c: Likewise.
33071 * bus/usb/usb.c: Likewise.
33072 * mmap/efi/mmap.c: Likewise.
33073 * mmap/i386/pc/mmap_helper.S: Likewise.
33074 * mmap/i386/pc/mmap.c: Likewise.
33075 * mmap/i386/mmap.c: Likewise.
33076 * mmap/i386/uppermem.c: Likewise.
33077 * mmap/mmap.c: Likewise.
33078 * commands/acpi.c: Likewise.
33079 * commands/echo.c: Likewise.
33080 * commands/blocklist.c: Likewise.
33081 * commands/loadenv.c: Likewise.
33082 * commands/usbtest.c: Likewise.
33083 * commands/boot.c: Likewise.
33084 * commands/parttool.c: Likewise.
33085 * commands/search.c: Likewise.
33086 * commands/cat.c: Likewise.
33087 * commands/i386/pc/play.c: Likewise.
33088 * commands/i386/pc/drivemap.c: Likewise.
33089 * commands/i386/pc/vbeinfo.c: Likewise.
33090 * commands/i386/pc/acpi.c: Likewise.
33091 * commands/i386/pc/vbetest.c: Likewise.
33092 * commands/ls.c: Likewise.
33093 * commands/cmp.c: Likewise.
33094 * commands/test.c: Likewise.
33095 * commands/efi/acpi.c: Likewise.
33096 * commands/gptsync.c: Likewise.
33097 * commands/help.c: Likewise.
33098 * partmap/amiga.c: Likewise.
33099 * partmap/apple.c: Likewise.
33100 * partmap/acorn.c: Likewise.
33101 * partmap/pc.c: Likewise.
33102 * partmap/sun.c: Likewise.
33103 * partmap/gpt.c: Likewise.
33104 * script/sh/lexer.c: Likewise.
33105 * script/sh/function.c: Likewise.
33106 * font/font.c: Likewise.
33107 * font/font_cmd.c: Likewise.
33108 * loader/powerpc/ieee1275/linux.c: Likewise.
33109 * loader/efi/chainloader.c: Likewise.
33110 * loader/multiboot_loader.c: Likewise.
33111 * loader/macho.c: Likewise.
33112 * loader/i386/multiboot.c: Likewise.
33113 * loader/i386/linux.c: Likewise.
33114 * loader/i386/pc/linux.c: Likewise.
33115 * loader/i386/pc/multiboot2.c: Likewise.
33116 * loader/i386/pc/chainloader.c: Likewise.
33117 * loader/i386/pc/xnu.c: Likewise.
33118 * loader/i386/bsd_trampoline.S: Likewise.
33119 * loader/i386/efi/linux.c: Likewise.
33120 * loader/i386/multiboot_elfxx.c: Likewise.
33121 * loader/i386/bsd_helper.S: Likewise.
33122 * loader/i386/bsd.c: Likewise.
33123 * loader/i386/linux_trampoline.S: Likewise.
33124 * loader/i386/xnu_helper.S: Likewise.
33125 * loader/i386/xnu.c: Likewise.
33126 * loader/i386/bsd_pagetable.c: Likewise.
33127 * loader/i386/multiboot_helper.S: Likewise.
33128 * loader/xnu.c: Likewise.
33129 * loader/xnu_resume.c: Likewise.
33130 * io/gzio.c: Likewise.
33131 * term/efi/console.c: Likewise.
33132 * term/terminfo.c: Likewise.
33133 * term/ieee1275/ofconsole.c: Likewise.
33134 * term/i386/pc/serial.c: Likewise.
33135 * term/i386/pc/vesafb.c: Likewise.
33136 * term/i386/pc/vga.c: Likewise.
33137 * term/usb_keyboard.c: Likewise.
33138 * term/gfxterm.c: Likewise.
33139 * aclocal.m4: Likewise.
33140 * util/lvm.c: Likewise.
33141 * util/grub.d/30_os-prober.in: Likewise.
33142 * util/grub.d/10_hurd.in: Likewise.
33143 * util/console.c: Likewise.
33144 * util/grub-macho2img.c: Likewise.
33145 * util/grub-probe.c: Likewise.
33146 * util/hostfs.c: Likewise.
33147 * util/i386/pc/grub-mkimage.c: Likewise.
33148 * util/i386/pc/grub-setup.c: Likewise.
33149 * util/i386/efi/grub-mkimage.c: Likewise.
33150 * util/grub-mkconfig.in: Likewise.
33151 * util/raid.c: Likewise.
33152 * util/resolve.c: Likewise.
33153 * util/grub-mkdevicemap.c: Likewise.
33154 * util/grub-emu.c: Likewise.
33155 * util/getroot.c: Likewise.
33156 * util/hostdisk.c: Likewise.
33157 * util/usb.c: Likewise.
33158 * util/grub-editenv.c: Likewise.
33159 * util/misc.c: Likewise.
33160
33161 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
33162
33163 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
33164 `genparttoollist.sh'.
33165 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
33166 Add `*.sh' to the list find searches for and change `mdate.sh'
33167 to `mdate-sh'.
33168
33169 2009-06-10 Pavel Roskin <proski@gnu.org>
33170
33171 * include/grub/multiboot2.h: Provide compatibility defines for
33172 multiboot2.h.
33173 * include/multiboot2.h: Include stdint.h only if needed, using
33174 angle brackets.
33175 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
33176 grub/multiboot2.h.
33177 * loader/ieee1275/multiboot2.c: Likewise.
33178 * loader/multiboot2.c: Likewise.
33179 * loader/multiboot_loader.c: Likewise.
33180
33181 * configure.ac: Use -nostdlib when probing for the target. It
33182 should not be required to have libc for the target.
33183
33184 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
33185 they fail without libc headers for the target.
33186 * include/grub/powerpc/libgcc.h: Use weak attribute for all
33187 exports.
33188 * include/grub/sparc64/libgcc.h: Likewise. Don't use
33189 preprocessor conditionals.
33190
33191 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
33192 build system doesn't need to be aware of the tar.c internals.
33193
33194 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
33195
33196 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
33197
33198 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
33199
33200 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
33201 disk limit to 26 for IDE, Virtio, Xen and SCSI.
33202
33203 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
33204
33205 * util/i386/pc/grub-install.in: Change the error message if UUIDs
33206 aren't available if ata.mod gets used.
33207
33208 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
33209
33210 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
33211 initialising controller.
33212 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
33213
33214 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
33215
33216 * util/i386/pc/grub-install.in: Add a parameter --disk-module
33217 to choose between ata and biosdisk module on i386-pc.
33218
33219 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
33220
33221 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
33222 Subclass and Programming Interface fields in terms of the 3 byte
33223 Class Code register.
33224 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
33225
33226 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
33227 interface is OHCI. Add grub_dprintf for symmetry with
33228 bus/usb/uhci.c.
33229 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
33230 interface is UHCI. Add interf variable for programming
33231 interface. Print interface with class/subclass.
33232
33233 * bus/usb/ohci.c: Set interf with correct field.
33234
33235 * bus/usb/uhci.c: Remove unneeded doubled lines.
33236 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
33237 Remove whitespace inside comment.
33238
33239 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
33240
33241 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
33242 as fallback an equivalent option without depth.
33243
33244 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
33245
33246 Not fail if unable to retrieve C/H/S on LBA disks
33247
33248 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
33249 if unable to retrieve C/H/S on LBA disks
33250
33251 2009-06-08 Pavel Roskin <proski@gnu.org>
33252
33253 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
33254 about aliasing.
33255
33256 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
33257
33258 * Makefile.in (uninstall): Remove all $lib_DATA files.
33259
33260 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
33261
33262 Bugfix: install on partitionless device
33263
33264 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
33265 is a whole disk
33266
33267 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
33268
33269 * Makefile.in (uninstall): Remove all $include_DATA files.
33270
33271 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
33272
33273 * commands/true.c: New file. Implement the true and false commands.
33274 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
33275 (true_mod_SOURCES): New variable.
33276 (true_mod_CFLAGS): Likewise.
33277 (true_mod_LDFLAGS): Likewise.
33278
33279 2009-06-05 Colin D Bennett <colin@gibibit.com>
33280
33281 Optimized font character lookup using binary search instead of linear
33282 search. Fonts now are required to have the character index ordered by
33283 code point.
33284
33285 * font/font.c (load_font_index): Verify that fonts have ordered
33286 character indices.
33287 (find_glyph): Use binary search instead of linear search to find a
33288 character in a font.
33289
33290 2009-06-05 Michael Scherer <misc@mandriva.org>
33291
33292 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
33293 uses case sensitive btree.
33294 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
33295 only for case insensitive filesystems.
33296
33297 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
33298
33299 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
33300 * conf/common.rmk (search_mod_CFLAGS): likewise
33301
33302 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33303
33304 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
33305 compensate a compiler bug
33306
33307 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33308
33309 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
33310 instead of '\b'
33311
33312 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33313
33314 Definitions for creating asm symbols with Apple's CC
33315
33316 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
33317 [APPLE_CC] (VARIABLE): likewise
33318
33319 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33320
33321 Disable lnxboot.img when compiled
33322 with Apple's CC
33323
33324 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
33325 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
33326 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
33327 [! APPLE_CC] (CODE_LENG): skip
33328 [! APPLE_CC] (setup_sects): likewise
33329 [! APPLE_CC]: skip filling
33330
33331 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33332
33333 Address in trampolines based on 32-bit registers when compiled
33334 with Apple's CC
33335
33336 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
33337 for addresses
33338 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
33339
33340 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33341
33342 Avoid aliases when compiling with Apple's CC for PCBIOS machine
33343
33344 * kern/misc.c [APPLE_CC] (memcpy): new function
33345 [APPLE_CC] (memmove): likewise
33346 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
33347 (memcpy): define alias conditionally on !APPLE_CC
33348 (memset): likewise
33349 (abort): likewise
33350 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
33351 APPLE_CC are defined
33352 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
33353 (grub_assert_fail): make prototype conditional
33354
33355 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33356
33357 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
33358
33359 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
33360 grub-macho2img
33361 (CLEANFILES): add grub-macho2img
33362 (grub_macho2img_SOURCES): new variable
33363 * kern/i386/pc/startup.S (bss_start): new variable
33364 (bss_end): likewise
33365 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
33366 * util/grub-macho2img.c: new file
33367
33368 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33369
33370 Use objconv when compiling with Apple's CC
33371
33372 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
33373 (efiemu64.o): likewise
33374 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
33375 when compiling with Apple's CC
33376 (efiemu64_s.o): likewise
33377 * configure.ac: check for objconv when compiling with Apple's CC
33378 * genmk.rb: use objconv for modules when compiled with Apple's CC
33379
33380 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33381
33382 Define segment as well as section when compiling with
33383 Apple's CC
33384
33385 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
33386 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
33387 (efiemu_convert_pointer): likewise
33388 (efiemu_set_virtual_address_map): likewise
33389 (efiemu_convert_pointer): likewise
33390 (efiemu_getcrc32): likewise
33391 (init_crc32_table): likewise
33392 (reflect): likewise
33393 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
33394 (GRUB_MOD_DEP): likewise
33395
33396 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33397
33398 Allow a compilation without -mcmodel=large
33399
33400 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
33401 when compiled without -mcmodel=large
33402 (filter_memory_map): remove memory post 4 GiB when compiled
33403 without -mcmodel=large
33404 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
33405 TARGET_CFLAGS when -mcmodel=large isn't supported
33406
33407 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33408
33409 Remove nested functions in efiemu core
33410
33411 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
33412
33413 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33414
33415 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
33416
33417 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
33418 temporary storage
33419 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
33420 using Apple's CC
33421 (grub_cpu_is_tsc_supported): likewise
33422 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
33423
33424 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33425
33426 Absolute addressing through constant with Apple's cc
33427
33428 * kern/i386/pc/startup.S: Define necessary constants
33429 and address through it when using ABS with Apple's CC
33430 * boot/i386/pc/diskboot.S: likewise
33431 * boot/i386/pc/boot.S: likewise
33432 * boot/i386/pc/lnxboot.S: likewise
33433 * boot/i386/pc/cdboot.S: likewise
33434 * mmap/i386/pc/mmap_helper.S: likewise
33435 * commands/i386/pc/drivemap_int13h.S: likewise
33436
33437 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33438
33439 Check if compiler is apple cc
33440
33441 * Makefile.in (ASFLAGS): new variable
33442 (TARGET_ASFLAGS): likewise
33443 (TARGET_MODULE_FORMAT): likewise
33444 (TARGET_APPLE_CC): likewise
33445 (OBJCONV): likewise
33446 (TARGET_IMG_CFLAGS): likewise
33447 (TARGET_CPPFLAGS): add includedir
33448 * configure.ac: call grub_apple_cc and grub_apple_target_cc
33449 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
33450 Check for linker script only if compiler isn't Apple's CC
33451 (TARGET_MODULE_FORMAT): set
33452 (TARGET_APPLE_CC): likewise
33453 (TARGET_ASFLAGS): likewise
33454 (ASFLAGS): likewise
33455 Check for objcopy only if compiler isn't Apple's CC
33456 Check for BSS symbol only if compiler isn't Apple's CC
33457 * genmk.rb: adapt nm options if we use Apple's utils
33458 * aclocal.m4 (grub_apple_cc): new test
33459 (grub_apple_target_cc): likewise
33460
33461 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33462
33463 Simplify sed expressions and improve awk
33464
33465 * Makefile.in (install-local): simplify sed expression
33466 * gencmdlist.sh: likewise
33467 * genmoddep.awk: avoid adding module as a dependency of itself
33468
33469 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33470
33471 Add missing start symbols
33472
33473 * boot/i386/pc/boot.S: add start
33474 * boot/i386/pc/pxeboot.S: likewise
33475
33476 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33477
33478 Fix wrong assumptions with grub-mkimage on EFI
33479
33480 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
33481 (relocate_addresses): consider both r_addend and value at offset
33482 (make_mods_section): zerofill modinfo and header
33483 (convert_elf): write prefix here
33484
33485 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33486
33487 Use .asciz instead of .string
33488
33489 * i386/pc/diskboot.S: use .asciz instead of .string
33490 * i386/pc/boot.S: likewise
33491 * include/grub/dl.h (GRUB_MOD_DEP): likewise
33492 (GRUB_MOD_NAME): likewise
33493
33494 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33495
33496 gfxpayload support
33497
33498 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
33499 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
33500 (grub_video_setup): remove
33501 (grub_video_set_mode): new prototype
33502 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
33503 (vid_mode): remove
33504 (linux_vesafb_res): compile only on PCBIOS
33505 (grub_linux_boot): support gfxpayload
33506 * loader/i386/pc/xnu.c (video_hook): new function
33507 (grub_xnu_set_video): support gfxpayload
33508 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
33509 (DEFAULT_VIDEO_HEIGHT): likewise
33510 (DEFAULT_VIDEO_FLAGS): likewise
33511 (DEFAULT_VIDEO_MODE): new definition
33512 (video_hook): new function
33513 (grub_gfxterm_init): use grub_video_set_mode
33514 * util/grub.d/30_os-prober.in: remove explicit modesetting before
33515 loading xnu
33516 * video/video.c (grub_video_setup): removed
33517 (grub_video_set_mode): new function based on grub_gfxterm_init and
33518 grub_video_setup
33519
33520 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33521
33522 Avoid calling biosdisk in drivemap
33523
33524 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
33525 (revparse_biosdisk): likewise
33526 (list_mappings): derive name from id directly
33527 (grub_cmd_drivemap): use tryparse_diskstring
33528
33529 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
33530
33531 Script fixes
33532
33533 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
33534 (grub_lexer_param): add tokenonhold
33535 (grub_script_create_cmdline): remove cmdline. All callers updated
33536 (grub_script_function_create): make functionname
33537 grub_script_arg. All callers updated
33538 (grub_script_execute_argument_to_string): new prototype
33539 * kern/parser.c (state_transitions): reorder
33540 (grub_parser_cmdline_state): fix a bug and make more compact
33541 * script/sh/execute.c (grub_script_execute_argument_to_string):
33542 make global
33543 (grub_script_execute_cmdline): use new format
33544 * script/sh/function.c (grub_script_function_create): make functionname
33545 grub_script_arg. All callers updated
33546 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
33547 (grub_script_yylex): remove
33548 (grub_script_yylex2): renamed to ...
33549 (grub_script_yylex): ...renamed
33550 parse the expressions like a${b}c
33551 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
33552 (GRUB_PARSER_TOKEN_VAR): remove
33553 (GRUB_PARSER_TOKEN_NAME): likewise
33554 ("if"): declare as typeless
33555 ("while"): likewise
33556 ("function"): likewise
33557 ("else"): likewise
33558 ("then"): likewise
33559 ("fi"): likewise
33560 (text): remove
33561 (argument): likewise
33562 (script): accept empty scripts and make exit on error
33563 (arguments): use GRUB_PARSER_TOKEN_ARG
33564 (function): likewise
33565 (command): move error handling to script
33566 (menuentry): move grub_script_lexer_ref before
33567 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
33568 argument. All callers updated
33569
33570 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
33571
33572 Prevent GRUB from probing floppies during boot.
33573
33574 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
33575 * commands/search.c (options): Add --no-floppy.
33576 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
33577 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
33578 --no-floppy when searching for UUIDs.
33579
33580 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
33581
33582 Simplify the code duplication in commands/search.c.
33583
33584 * commands/search.c (search_label, search_fs_uuid): Merge into ...
33585 (search_fs): ... this. Update all users.
33586
33587 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
33588
33589 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
33590
33591 2009-05-28 Pavel Roskin <proski@gnu.org>
33592
33593 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
33594 Remove the original symlink explicitly.
33595
33596 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
33597 just one slash. That's how grub_fshelp_find_file() does it.
33598
33599 2009-05-26 Pavel Roskin <proski@gnu.org>
33600
33601 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
33602 to `str'.
33603
33604 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
33605 possibly unused.
33606
33607 2009-05-25 Christian Franke <franke@computer.org>
33608
33609 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
33610 register.
33611 (grub_atapi_identify): Add wait after drive select.
33612 (grub_ata_identify): Do more strict status register check before
33613 calling grub_atapi_identify (). Suppress error message if status
33614 register is 0x00 after command failure. Add status register
33615 check after PIO read to avoid bogus identify due to stuck DRQ.
33616 Thanks to Pavel Roskin for testing.
33617 (grub_device_initialize): Remove unsafe status register check.
33618 Thanks to 'phcoder' for problem report and patch.
33619 Prevent sign extension in debug message.
33620
33621 2009-05-23 Colin D Bennett <colin@gibibit.com>
33622
33623 Cleaned up `include/grub/normal.h'. Grouped prototypes by
33624 definition file, and functions defined in `normal/menu.c' have had
33625 their prototypes moved to `include/grub/menu.h' for consistency.
33626
33627 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
33628 from normal.h.
33629 (grub_menu_get_entry): Likewise.
33630 (grub_menu_get_timeout): Likewise.
33631 (grub_menu_set_timeout): Likewise.
33632 (grub_menu_execute_entry): Likewise.
33633 (grub_menu_execute_with_fallback): Likewise.
33634 (grub_menu_entry_run): Likewise.
33635
33636 * include/grub/normal.h: Re-ordered and grouped function
33637 prototypes by file that the function is defined in.
33638 (grub_menu_execute_callback): Removed; moved to menu.h.
33639 (grub_menu_get_entry): Likewise.
33640 (grub_menu_get_timeout): Likewise.
33641 (grub_menu_set_timeout): Likewise.
33642 (grub_menu_execute_entry): Likewise.
33643 (grub_menu_execute_with_fallback): Likewise.
33644 (grub_menu_entry_run): Likewise.
33645 (grub_menu_addentry): Renamed from this ...
33646 (grub_normal_add_menu_entry): ... to this.
33647
33648 * normal/main.c (grub_menu_addentry): Renamed from this ...
33649 (grub_normal_add_menu_entry): ... to this.
33650
33651 * script/sh/execute.c (grub_script_execute_menuentry): Update
33652 reference to renamed grub_menu_addentry function.
33653
33654 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
33655
33656 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
33657
33658 2009-05-22 Pavel Roskin <proski@gnu.org>
33659
33660 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
33661 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
33662 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
33663 compiling for the i386 targets, but not for the utilities.
33664
33665 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
33666 to grub_uint8_t.
33667 (grub_root_drive): Likewise.
33668 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
33669 remove alignment.
33670 (grub_root_drive): Change size to byte.
33671 (grub_start_addr): Remove.
33672 (grub_end_addr): Likewise.
33673 (grub_apm_bios_info): Likewise.
33674
33675 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
33676
33677 * normal/i386: Remove.
33678 * normal/powerpc: Likewise.
33679 * normal/sparc64: Likewise.
33680 * normal/x86_64: Likewise.
33681
33682 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
33683
33684 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
33685 * loader/i386/linux_trampoline.S: Fix indentation
33686 * loader/i386/xnu_helper.S: Likewise
33687
33688 2009-05-18 Colin D Bennett <colin@gibibit.com>
33689
33690 Display error messages when parsing a Lua statement fails.
33691 Previously, executing a syntactically invalid statement like
33692 ")foo" or "bar;" would silently fail.
33693
33694 * script/lua/grub_main.c (handle_lua_error): New function.
33695 (grub_lua_parse_line): Improved reporting of Lua parser and
33696 execution errors.
33697
33698 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
33699
33700 Remove -Werror which causes build to fail on some systems
33701
33702 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
33703 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
33704 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
33705
33706 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
33707
33708 trampoline for linux on 64-bit platform
33709
33710 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
33711 loader/i386/efi/linux_trampoline.S
33712 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
33713 declaration
33714 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
33715 here
33716 * loader/i386/linux_trampoline.S: moved here
33717 * loader/i386/efi/linux.c (allocate_pages): reserve space for
33718 trampoline
33719 (jumpvector): removed
33720 (grub_linux_trampoline_start): new declaration
33721 (grub_linux_trampoline_end): likewise
33722 (grub_linux_boot): use trampoline when on 64-bit platform
33723 * loader/i386/linux.c: likewise
33724
33725 2009-05-16 Pavel Roskin <proski@gnu.org>
33726
33727 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
33728 const to avoid a warning.
33729 (grub_lua_setenv): Likewise.
33730 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
33731 lmsg to fix a warning.
33732
33733 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
33734
33735 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
33736 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
33737 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
33738 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
33739 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
33740 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
33741 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
33742 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
33743
33744 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
33745
33746 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
33747
33748 2009-05-16 Bean <bean123ch@gmail.com>
33749
33750 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
33751 (lua_mod_SOURCES): New variable.
33752 (lua_mod_CFLAGS): Likewise.
33753 (lua_mod_LDFLAGS): Likewise.
33754
33755 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
33756 (setjmp_mod_SOURCES): New variable.
33757 (setjmp_mod_CFLAGS): Likewise.
33758 (setjmp_LDFLAGS): Likewise.
33759
33760 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
33761 (setjmp_mod_SOURCES): New variable.
33762 (setjmp_mod_CFLAGS): Likewise.
33763 (setjmp_LDFLAGS): Likewise.
33764
33765 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
33766 (setjmp_mod_SOURCES): New variable.
33767 (setjmp_mod_CFLAGS): Likewise.
33768 (setjmp_LDFLAGS): Likewise.
33769
33770 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
33771 (setjmp_mod_SOURCES): New variable.
33772 (setjmp_mod_CFLAGS): Likewise.
33773 (setjmp_LDFLAGS): Likewise.
33774
33775 * normal/i386/setjmp.S: Moved from here ...
33776 * lib/i386/setjmp.S: ... Moved here
33777 * normal/x86_64/setjmp.S: Moved from here ...
33778 * lib/x86_64/setjmp.S: ... Moved here
33779 * normal/powerpc/setjmp.S: Moved from here ...
33780 * lib/powerpc/setjmp.S: ... Moved here
33781 * normal/sparc64/setjmp.S: Moved from here ...
33782 * lib/sparc64/setjmp.S: ... Moved here
33783
33784 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
33785 returns_twice in mingw.
33786
33787 * script/lua/grub_lib.c: New file.
33788 * script/lua/grub_lib.h: Likewise.
33789 * script/lua/grub_lua.h: Likewise.
33790 * script/lua/grub_main.c: Likewise.
33791 * script/lua/lapi.c: Likewise.
33792 * script/lua/lapi.h: Likewise.
33793 * script/lua/lauxlib.c: Likewise.
33794 * script/lua/lauxlib.h: Likewise.
33795 * script/lua/lbaselib.c: Likewise.
33796 * script/lua/lcode.c: Likewise.
33797 * script/lua/lcode.h: Likewise.
33798 * script/lua/ldblib.c: Likewise.
33799 * script/lua/ldebug.c: Likewise.
33800 * script/lua/ldebug.h: Likewise.
33801 * script/lua/ldo.c: Likewise.
33802 * script/lua/ldo.h: Likewise.
33803 * script/lua/ldump.c: Likewise.
33804 * script/lua/lfunc.c: Likewise.
33805 * script/lua/lfunc.h: Likewise.
33806 * script/lua/lgc.c: Likewise.
33807 * script/lua/lgc.h: Likewise.
33808 * script/lua/linit.c: Likewise.
33809 * script/lua/liolib.c: Likewise.
33810 * script/lua/llex.c: Likewise.
33811 * script/lua/llex.h: Likewise.
33812 * script/lua/llimits.h: Likewise.
33813 * script/lua/lmathlib.c: Likewise.
33814 * script/lua/lmem.c: Likewise.
33815 * script/lua/lmem.h: Likewise.
33816 * script/lua/loadlib.c: Likewise.
33817 * script/lua/lobject.c: Likewise.
33818 * script/lua/lobject.h: Likewise.
33819 * script/lua/lopcodes.c: Likewise.
33820 * script/lua/lopcodes.h: Likewise.
33821 * script/lua/loslib.c: Likewise.
33822 * script/lua/lparser.c: Likewise.
33823 * script/lua/lparser.h: Likewise.
33824 * script/lua/lstate.c: Likewise.
33825 * script/lua/lstate.h: Likewise.
33826 * script/lua/lstring.c: Likewise.
33827 * script/lua/lstring.h: Likewise.
33828 * script/lua/lstrlib.c: Likewise.
33829 * script/lua/ltable.c: Likewise.
33830 * script/lua/ltable.h: Likewise.
33831 * script/lua/ltablib.c: Likewise.
33832 * script/lua/ltm.c: Likewise.
33833 * script/lua/ltm.h: Likewise.
33834 * script/lua/lua.h: Likewise.
33835 * script/lua/luaconf.h: Likewise.
33836 * script/lua/lualib.h: Likewise.
33837 * script/lua/lundump.c: Likewise.
33838 * script/lua/lundump.h: Likewise.
33839 * script/lua/lvm.c: Likewise.
33840 * script/lua/lvm.h: Likewise.
33841 * script/lua/lzio.c: Likewise.
33842 * script/lua/lzio.h: Likewise.
33843
33844 2009-05-16 Bean <bean123ch@gmail.com>
33845
33846 * include/grub/kernel.h (grub_module_header_types): Add type
33847 OBJ_TYPE_CONFIG.
33848
33849 * kern/main.c (grub_load_config): New function.
33850 (grub_main): Call grub_load_config to read boot config.
33851
33852 * grub-mkimage (generate_image): New parameter config_path.
33853 (options): New option --config.
33854 (main): Parse --config option, and pass it to generate_image.
33855
33856 2009-05-14 Christian Franke <franke@computer.org>
33857
33858 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
33859 This fixes build on Cygwin.
33860
33861 2009-05-14 Pavel Roskin <proski@gnu.org>
33862
33863 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
33864 jump. This saves two bytes, so the typical case of 2 swapped
33865 drives would fit 32 bytes.
33866
33867 2009-05-13 Pavel Roskin <proski@gnu.org>
33868
33869 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
33870 grub_uint32_t to avoid a warning.
33871
33872 * loader/i386/linux.c (allocate_pages): When assigning
33873 real_mode_mem, cast through grub_size_t to fix a warning. The
33874 code already makes sure that the value would fit a pointer.
33875 (grub_linux_setup_video): Cast render_target->data to
33876 grub_size_t to fix a warning.
33877
33878 2009-05-13 Javier Martín <lordhabbit@gmail.com>
33879
33880 * commands/i386/pc/drivemap.c: New file - implement drivemap
33881 command.
33882 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
33883 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
33884
33885 2009-05-13 Pavel Roskin <proski@gnu.org>
33886
33887 * util/i386/pc/grub-setup.c (setup): Remove unused variable
33888 embedding_area_exists.
33889
33890 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
33891
33892 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
33893 it easier to understand / work with.
33894 Improve warning messages for cases where there's no embedding area,
33895 or when it is too small (or core.img too large).
33896
33897 2009-05-13 Pavel Roskin <proski@gnu.org>
33898
33899 * loader/i386/pc/multiboot2.c: Add necessary includes for
33900 grub_multiboot2_real_boot().
33901
33902 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
33903 PX record is always little-endian. We only need the lower 2
33904 bytes of the mode.
33905
33906 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
33907 facilitate code reuse.
33908 (grub_cpio_mount): Use "struct head", not a char buffer. This
33909 fixes a warning reported by gcc 4.4.
33910
33911 * kernel/disk.c (grub_disk_read): Use void pointer for the
33912 buffer.
33913 (grub_disk_write): Use const void pointer for the buffer.
33914 Adjust all callers. Remove unnecessary casts.
33915
33916 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
33917
33918 * util/i386/pc/grub-install.in: Update copyright year.
33919
33920 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
33921
33922 gptsync
33923
33924 * commands/gptsync.c: new file
33925 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
33926 (gptsync_mod_SOURCES): new variable
33927 (gptsync_mod_CFLAGS): likewise
33928 (gptsync_mod_LDFLAGS): likewise
33929 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
33930 new definition
33931 (GRUB_PC_PARTITION_TYPE_HFS): likewise
33932 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
33933 * conf/i386-ieee1275.rmk: likewise
33934 * conf/i386-pc.rmk: likewise
33935 * conf/powerpc-ieee1275.rmk: likewise
33936
33937 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
33938
33939 Fixed grub-emu
33940
33941 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
33942 (grub_dl_ref): likewise
33943
33944 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
33945
33946 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
33947 split in two functions (one for msdos and one for gpt).
33948
33949 2009-05-08 Pavel Roskin <proski@gnu.org>
33950
33951 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
33952 not modified.
33953
33954 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
33955 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
33956 Initialize them with -1. Add sanity check for bad1. Eliminate
33957 nerr variable.
33958
33959 2009-05-08 David S. Miller <davem@davemloft.net>
33960
33961 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
33962
33963 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
33964
33965 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
33966 existence.
33967
33968 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
33969
33970 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
33971 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
33972
33973 2009-05-05 David S. Miller <davem@davemloft.net>
33974
33975 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
33976
33977 2009-05-05 Pavel Roskin <proski@gnu.org>
33978
33979 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
33980 of grub_dl_ref() and grub_dl_unref().
33981 * commands/parttool.c: Remove preprocessor conditionals around
33982 grub_dl_ref() and grub_dl_unref().
33983 * fs/affs.c: Likewise.
33984 * fs/afs.c: Likewise.
33985 * fs/cpio.c: Likewise.
33986 * fs/ext2.c: Likewise.
33987 * fs/fat.c: Likewise.
33988 * fs/hfs.c: Likewise.
33989 * fs/hfsplus.c: Likewise.
33990 * fs/iso9660.c: Likewise.
33991 * fs/jfs.c: Likewise.
33992 * fs/minix.c: Likewise.
33993 * fs/ntfs.c: Likewise.
33994 * fs/reiserfs.c: Likewise.
33995 * fs/sfs.c: Likewise.
33996 * fs/udf.c: Likewise.
33997 * fs/ufs.c: Likewise.
33998 * fs/xfs.c: Likewise.
33999 * include/grub/dl.h: Likewise.
34000 * loader/xnu.c: Likewise.
34001
34002 2009-05-04 Pavel Roskin <proski@gnu.org>
34003
34004 * commands/acpi.c: Remove unused variable my_mod.
34005 * partmap/amiga.c: Likewise.
34006 * partmap/apple.c: Likewise.
34007 * partmap/gpt.c: Likewise.
34008 * partmap/pc.c: Likewise.
34009 * partmap/sun.c: Likewise.
34010 * term/gfxterm.c: Likewise.
34011 * term/i386/pc/vesafb.c: Likewise.
34012 * term/i386/pc/vga.c: Likewise.
34013
34014 2009-05-04 David S. Miller <davem@davemloft.net>
34015
34016 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
34017 pointer args to grub_ieee1275_get_property().
34018
34019 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
34020
34021 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
34022 devices, and do not traverse down under controller nodes.
34023
34024 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
34025 (grub_ofdisk_open): Use it to un-escape "," characters.
34026 * kern/disk.c (find_part_sep): New.
34027 (grub_disk_open): Use it to find the first non-escaped ','
34028 character in the disk name.
34029 * util/ieee1275/devicemap.c (escape_of_path): New.
34030 (grub_util_emit_devicemap_entry): Use it.
34031 * util/sparc64/ieee1275/grub-install.in: Update script to
34032 strip partition specifiers properly by not triggering on
34033 '\' escaped ',' characters.
34034
34035 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
34036
34037 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
34038 to 0x300.
34039 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
34040 resolutions.
34041 (linux_vesafb_modes): Add a lot of additional modes to the list (based
34042 on documentation from Wikipedia).
34043
34044 2009-05-04 Pavel Roskin <proski@gnu.org>
34045
34046 * disk/ata.c: Spelling fixes.
34047 * disk/raid.c: Likewise.
34048 * disk/usbms.c: Likewise.
34049 * disk/dmraid_nvidia.c: Likewise.
34050 * kern/ieee1275/openfw.c: Likewise.
34051 * kern/ieee1275/init.c: Likewise.
34052 * kern/ieee1275/cmain.c: Likewise.
34053 * boot/i386/pc/cdboot.S: Likewise.
34054 * video/readers/png.c: Likewise.
34055 * video/i386/pc/vbe.c: Likewise.
34056 * fs/udf.c: Likewise.
34057 * fs/hfs.c: Likewise.
34058 * fs/reiserfs.c: Likewise.
34059 * efiemu/runtime/efiemu.c: Likewise.
34060 * efiemu/main.c: Likewise.
34061 * efiemu/mm.c: Likewise.
34062 * include/grub/elf.h: Likewise.
34063 * include/grub/xnu.h: Likewise.
34064 * include/grub/usbdesc.h: Likewise.
34065 * include/grub/usb.h: Likewise.
34066 * include/grub/script_sh.h: Likewise.
34067 * include/grub/lib/LzmaEnc.h: Likewise.
34068 * include/grub/efiemu/efiemu.h: Likewise.
34069 * include/grub/command.h: Likewise.
34070 * normal/menu.c: Likewise.
34071 * normal/main.c: Likewise.
34072 * normal/datetime.c: Likewise.
34073 * bus/usb/uhci.c: Likewise.
34074 * mmap/i386/uppermem.c: Likewise.
34075 * mmap/mmap.c: Likewise.
34076 * commands/acpi.c: Likewise.
34077 * commands/test.c: Likewise.
34078 * partmap/apple.c: Likewise.
34079 * font/font.c: Likewise.
34080 * loader/sparc64/ieee1275/linux.c: Likewise.
34081 * loader/macho.c: Likewise.
34082 * loader/i386/bsd_trampoline.S: Likewise.
34083 * loader/i386/bsd.c: Likewise.
34084 * loader/xnu.c: Likewise.
34085 * term/i386/pc/vesafb.c: Likewise.
34086 * term/usb_keyboard.c: Likewise.
34087 * util/resolve.c: Likewise.
34088 * util/getroot.c: Likewise.
34089
34090 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
34091
34092 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
34093
34094 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
34095
34096 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
34097 build error.
34098
34099 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
34100
34101 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
34102 parameter only available on BIOS.
34103
34104 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
34105
34106 Removed wrong semicolon in declaration
34107
34108 * grub/misc.h (grub_dprintf): remove semicolon
34109
34110 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
34111
34112 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
34113 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
34114 is done by grub_cmd_linux() now).
34115 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
34116 restore video to text mode.
34117 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
34118 indicates lack of "vga=" parameter. "vga=0" is mapped to
34119 `GRUB_LINUX_VID_MODE_NORMAL'.
34120
34121 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
34122
34123 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
34124 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
34125 and `normal/script.c'. Add `kern/rescue_reader.c',
34126 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
34127 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
34128 `grub_script.tab.c'.
34129
34130 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34131 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34132 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34133 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
34134 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34135
34136 * Makefile.in: Remove duplicated 2008 in Copyright line.
34137
34138 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
34139
34140 * util/misc.c (grub_util_warn): New function. Emits a warning
34141 unconditionally.
34142 * include/grub/util/misc.h (grub_util_warn): New declaration.
34143
34144 * util/i386/pc/grub-install.in: Understand --force and pass it down
34145 to grub-setup.
34146
34147 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
34148 down to setup().
34149 (setup): Improve error messages and add warnings when requested to
34150 install in odd layouts. Refuse to install using blocklists unless
34151 --force was set.
34152
34153 2009-05-04 martin f. krafft <madduck@madduck.net>
34154
34155 * disk/raid.c (grub_raid_scan_device): Improve debug message.
34156
34157 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
34158
34159 Updated copyright year
34160
34161 * fs/hfsplus.c: updated copyright year
34162
34163 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
34164
34165 HFS+ UUID
34166
34167 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
34168 in the space previously used by unused3
34169 (grub_hfsplus_uuid): new function
34170 (grub_hfsplus_fs): added uuid field
34171
34172 2009-05-03 Pavel Roskin <proski@gnu.org>
34173
34174 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
34175 suppress warnings. It's no longer needed.
34176 * disk/host.c: Likewise.
34177 * disk/ata_pthru.c: Likewise.
34178 * disk/loopback.c: Likewise.
34179 * hook/datehook.c: Likewise.
34180 * parttool/pcpart.c: Likewise.
34181 * fs/i386/pc/pxe.c: Likewise.
34182 * fs/ntfscomp.c: Likewise.
34183 * efiemu/main.c: Likewise.
34184 * mmap/mmap.c: Likewise.
34185 * commands/crc.c: Likewise.
34186 * commands/hexdump.c: Likewise.
34187 * commands/hdparm.c: Likewise.
34188 * commands/acpi.c: Likewise.
34189 * commands/echo.c: Likewise.
34190 * commands/minicmd.c: Likewise.
34191 * commands/blocklist.c: Likewise.
34192 * commands/memrw.c: Likewise.
34193 * commands/loadenv.c: Likewise.
34194 * commands/usbtest.c: Likewise.
34195 * commands/lsmmap.c: Likewise.
34196 * commands/boot.c: Likewise.
34197 * commands/parttool.c: Likewise.
34198 * commands/configfile.c: Likewise.
34199 * commands/search.c: Likewise.
34200 * commands/ieee1275/suspend.c: Likewise.
34201 * commands/cat.c: Likewise.
34202 * commands/i386/pc/pxecmd.c: Likewise.
34203 * commands/i386/pc/play.c: Likewise.
34204 * commands/i386/pc/halt.c: Likewise.
34205 * commands/i386/pc/vbeinfo.c: Likewise.
34206 * commands/i386/pc/vbetest.c: Likewise.
34207 * commands/lspci.c: Likewise.
34208 * commands/date.c: Likewise.
34209 * commands/handler.c: Likewise.
34210 * commands/ls.c: Likewise.
34211 * commands/test.c: Likewise.
34212 * commands/cmp.c: Likewise.
34213 * commands/efi/loadbios.c: Likewise.
34214 * commands/efi/fixvideo.c: Likewise.
34215 * commands/halt.c: Likewise.
34216 * commands/help.c: Likewise.
34217 * commands/reboot.c: Likewise.
34218 * hello/hello.c: Likewise.
34219 * script/sh/main.c: Likewise.
34220 * loader/xnu.c: Likewise.
34221 * term/terminfo.c: Likewise.
34222 * term/i386/pc/serial.c: Likewise.
34223 * term/usb_keyboard.c: Likewise.
34224
34225 2009-05-03 David S. Miller <davem@davemloft.net>
34226
34227 * normal/menu.c: Include grub/parser.h
34228
34229 2009-05-03 Pavel Roskin <proski@gnu.org>
34230
34231 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
34232 not char*.
34233 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
34234 Suggested by Javier Martín <lordhabbit@gmail.com>
34235
34236 * util/i386/pc/grub-mkrescue.in: Allow for the case when
34237 efiemu??.o doesn't exist.
34238 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
34239 copying.
34240
34241 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
34242
34243 FreeBSD 64-bit support
34244
34245 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
34246 and loader/i386/bsd_trampoline.S
34247 (bsd_mod_ASFLAGS): new variable
34248 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
34249 (FREEBSD_MODTYPE_KERNEL64): likewise
34250 (grub_bsd64_trampoline_start): likewise
34251 (grub_bsd64_trampoline_end): likewise
34252 (grub_bsd64_trampoline_selfjump): likewise
34253 (grub_bsd64_trampoline_gdt): likewise
34254 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
34255 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
34256 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
34257 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
34258 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
34259 of "attrib" member
34260 * loader/i386/bsd_pagetable.c: new file
34261 * loader/i386/bsd_trampoline.S: likewise
34262 * loader/i386/bsd.c (ALIGN_QWORD): new macro
34263 (ALIGN_VAR): likewise
34264 (entry_hi): new variable
34265 (kern_end_mdofs): likewise
34266 (is_64bit): likewise
34267 (grub_freebsd_add_meta): use ALIGN_VAR
34268 (grub_e820_mmap): new declaration
34269 (grub_freebsd_add_mmap): new function
34270 (grub_freebsd_add_meta_module): support 64 bit kernels
34271 (grub_freebsd_list_modules): use ALIGN_VAR
34272 (gdt_descriptor): new declaration
34273 (grub_freebsd_boot): support 64 bit kernels
34274 (grub_bsd_elf64_hook): new function
34275 (grub_bsd_load_elf): support elf64
34276
34277 2009-05-03 Bean <bean123ch@gmail.com>
34278
34279 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
34280 after we get the result of if statement.
34281
34282 2009-05-03 Bean <bean123ch@gmail.com>
34283
34284 * Makefile.in (enable_efiemu): New variable.
34285
34286 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
34287 set.
34288 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
34289 path.
34290 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
34291 path, add -mno-red-zone option.
34292 (efiemu64_s.o): Likewise.
34293 (efiemu64.o): Use macro $^ for source file.
34294
34295 * configure.ac (--enable-efiemu): New option.
34296
34297 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
34298
34299 xnu support
34300
34301 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
34302 (pkglib_MODULES): add xnu.mod
34303 (xnu_mod_SOURCES): new variable
34304 (xnu_mod_CFLAGS): likewise
34305 (xnu_mod_LDFLAGS): likewise
34306 (xnu_mod_ASFLAGS): likewise
34307 * conf/i386-pc.rmk: likewise
34308 * conf/x86_64-efi.rmk: likewise
34309 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
34310 new declaration
34311 * include/grub/i386/macho.h: new file
34312 * include/grub/i386/xnu.h: likewise
34313 * include/grub/macho.h: likewise
34314 * include/grub/machoload.h: likewise
34315 * include/grub/x86_64/macho.h: likewise
34316 * include/grub/x86_64/xnu.h: likewise
34317 * include/grub/xnu.h: likewise
34318 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
34319 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
34320 * loader/i386/efi/xnu.c: new file
34321 * loader/i386/pc/xnu.c: likewise
34322 * loader/i386/xnu.c: likewise
34323 * loader/i386/xnu_helper.S: likewise
34324 * loader/macho.c: likewise
34325 * loader/xnu.c: likewise
34326 * loader/xnu_resume.c: likewise
34327 * util/grub-dumpdevtree: likewise
34328 * include/grub/i386/pit.h: include grub/err.h
34329 (grub_pit_wait): export
34330 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
34331
34332 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
34333
34334 Efiemu
34335
34336 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
34337 _linux_efi, linux_efi.
34338 new files in grub-emu
34339 new targets efiemu32.o and efiemu64.o
34340 * loader/linux_normal_efiemu.c: likewise
34341 * loader/i386/efi/linux.c: added preliminary efiemu support
34342 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
34343 files to copy
34344 * include/grub/autoefi.h: new file
34345 * include/grub/i386/efiemu.h: likewise
34346 * include/grub/i386/pc/efiemu.h: likewise
34347 * include/grub/efi/api.h: add LL suffix when necessary
34348 new definitions relating to tables
34349 * include/grub/efiemu/efiemu.h: new file
34350 * include/grub/efiemu/runtime.h: likewise
34351 * efiemu/prepare.c: likewise
34352 * efiemu/loadcore_common.c: likewise
34353 * efiemu/loadcore64.c: likewise
34354 * efiemu/runtime/efiemu.sh: likewise
34355 * efiemu/runtime/efiemu.S: likewise
34356 * efiemu/runtime/efiemu.c: likewise
34357 * efiemu/runtime/config.h: likewise
34358 * efiemu/prepare32.c: likewise
34359 * efiemu/main.c: likewise
34360 * efiemu/modules/pnvram.c: likewise
34361 * efiemu/modules/i386: likewise
34362 * efiemu/modules/i386/pc: likewise
34363 * efiemu/modules/acpi.c: likewise
34364 * efiemu/i386/pc/cfgtables.c: likewise
34365 * efiemu/i386/loadcore64.c: likewise
34366 * efiemu/i386/loadcore32.c: likewise
34367 * efiemu/prepare64.c: likewise
34368 * efiemu/loadcore.c: likewise
34369 * efiemu/symbols.c: likewise
34370 * efiemu/mm.c: likewise
34371 * efiemu/loadcore32.c: likewise
34372
34373 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
34374
34375 ACPI spoofing
34376
34377 * commands/acpi.c: new file
34378 * commands/i386/pc/acpi.c: likewise
34379 * commands/efi/acpi.c: likewise
34380 * include/grub/acpi.h: likewise
34381 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
34382 (acpi_mod_SOURCES): new variable
34383 (acpi_mod_CFLAGS): likewise
34384 (acpi_mod_LDFLAGS): likewise
34385 * conf/i386-efi.rmk: likewise
34386 * conf/x86_64-efi.rmk: likewise
34387
34388 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
34389
34390 Missing part from mmap patch
34391
34392 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
34393 (grub_mmap_unregister)
34394 (grub_mmap_free_and_unregister): use grub_mmap_register
34395
34396 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
34397
34398 Mmap services
34399
34400 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
34401 * loader/i386/linux.c (find_mmap_size): likewise
34402 (allocate_pages): likewise
34403 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
34404 (grub_fill_multiboot_mmap): likewise
34405 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
34406 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
34407 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
34408 (OPENBSD_MMAP_RESERVED): likewise
34409 * include/grub/i386/pc/memory.h: include grub/memory.h
34410 (grub_lower_mem): removed
34411 (grub_upper_mem): likewise
34412 (GRUB_MACHINE_MEMORY_ACPI): new definition
34413 (GRUB_MACHINE_MEMORY_NVS): likewise
34414 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
34415 (GRUB_MACHINE_MEMORY_HOLE): likewise
34416 (grub_machine_mmap_register): likewise
34417 (grub_machine_mmap_unregister): likewise
34418 (grub_machine_get_upper): likewise
34419 (grub_machine_get_lower): likewise
34420 (grub_machine_get_post64): likewise
34421 * include/grub/i386/efi/memory.h: new file
34422 * include/grub/x86_64/efi/memory.h: likewise
34423 * include/grub/efi/memory.h: likewise
34424 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
34425 (mmap_mod_SOURCES): new variable
34426 (mmap_mod_LDFLAGS): likewise
34427 (mmap_mod_ASFLAGS): likewise
34428 * conf/i386-coreboot.rmk: likewise
34429 * conf/i386-ieee1275.rmk: likewise
34430 * conf/i386-efi.rmk: likewise
34431 * conf/x86_64-efi.rmk: likewise
34432 * include/grub/types.h (UINT_TO_PTR): new macro
34433 (PTR_TO_UINT32): likewise
34434 (PTR_TO_UINT64): likewise
34435 * include/grub/memory.h: new file
34436 * mmap/i386/pc/mmap.c: likewise
34437 * mmap/i386/pc/mmap_helper.S: likewise
34438 * mmap/i386/uppermem.c: likewise
34439 * mmap/mmap.c: likewise
34440 * mmap/efi/mmap.c: likewise
34441 * kern/i386/coreboot/init.c (grub_machine_init): don't use
34442 grub_upper_mem
34443 * kern/i386/pc/init.c (grub_lower_mem): removed variable
34444 (grub_upper_mem): likewise
34445 (grub_machine_init): don't use grub_upper_mem,
34446 make grub_lower_mem local
34447 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
34448 grub_mmap_iterate and grub_mmap_get_upper
34449 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
34450
34451 2009-05-02 Bean <bean123ch@gmail.com>
34452
34453 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
34454 script/sh/parser.y.
34455 (pkglib_MODULES): Add normal.mod and sh.mod.
34456 (normal_SOURCES): New variable.
34457 (normal_mod_CFLAGS): Likewise.
34458 (normal_mod_LDFLAGS): Likewise.
34459 (sh_mod_SOURCES): Likewise.
34460 (sh_mod_CFLAGS): Likewise.
34461 (sh_mod_LDFLAGS): Likewise.
34462
34463 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
34464 script/sh/lexer.c_DEPENDENCIES.
34465 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
34466 kern/rescue_reader.c and kern/rescue_parser.c.
34467 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
34468 (grub_emu_SOURCES): Change source files.
34469 (pkglib_MODULES): Remove normal.mod.
34470 (normal_SOURCES): Removed.
34471 (normal_mod_CFLAGS): Likewise.
34472 (normal_mod_LDFLAGS): Likewise.
34473 * conf/i386-coreboot.rmk: Likewise.
34474 * conf/i386-efi.rmk: Likewise.
34475 * conf/i386-ieee1276.rmk: Likewise.
34476 * conf/powerpc-ieee1275.rmk: Likewise.
34477 * conf/sparc64-ieee1275.rmk: Likewise.
34478 * conf/x86_64-efi.rmk: Likewise.
34479
34480 * include/grub/command.h (grub_command_execute): New inline function.
34481
34482 * include/grub/menu.h (grub_menu_entry): Removed commands field.
34483
34484 * include/grub/normal.h: Remove <grub/setjmp.h>.
34485 (grub_fs_module_list): Moved to normal/autofs.c.
34486 (grub_exit_env): Removed.
34487 (grub_command_execute): Likewise.
34488 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
34489 parameter script.
34490 (read_command_list): New function declaration.
34491 (read_fs_list): Likewise.
34492
34493 * include/parser.h: Include <grub/reader.h>.
34494 (grub_parser_split_cmdline): Change type of getline parameter.
34495 (grub_parser): New structure.
34496 (grub_parser_class): New variable.
34497 (grub_parser_execute): New function declaration.
34498 (grub_register_rescue_parser): Likewise.
34499 (grub_parser_register): New inline function.
34500 (grub_parser_unregister): Likewise.
34501 (grub_parser_get_current): Likewise.
34502 (grub_parser_set_current): Likewise.
34503
34504 * include/grub/reader.h: New file.
34505 * kern/reader.c: Likewise.
34506 * kern/rescue_parser.c: Likewise.
34507 * kern/rescue_reader.c: Likewise.
34508 * normal/autofs.c: Likewise.
34509 * normal/dyncmd.c: Likewise.
34510
34511 * include/grub/rescue.h: Removed.
34512 * normal/command.h: Likewise.
34513
34514 * include/grub/script.h: Moved to ...
34515 * include/grub/script_sh.h: ... Moved here.
34516 * normal/execute.c: Moved to ...
34517 * script/sh/execute.c: ... Moved here.
34518 * normal/function.c: Moved to ...
34519 * script/sh/function.c: ... Moved here.
34520 * normal/lexer.c: Moved to ...
34521 * script/sh/lexer.c: ... Moved here.
34522 * normal/parser.y: Moved to ...
34523 * script/sh/parser.y: ... Moved here.
34524 * normal/script.c: Moved to ...
34525 * script/sh/script.c: ... Moved here.
34526
34527 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
34528 <grub/reader.h>.
34529 (grub_exit_env): Removed.
34530 (fs_module_list): Moved to normal/autofs.c.
34531 (grub_file_getline): Don't handle comment here.
34532 (free_menu): Skip removed field entry->commands.
34533 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
34534 script parameter.
34535 (read_config_file): Removed nested parameter, change getline function.
34536 (grub_enter_normal_mode): Removed.
34537 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
34538 (read_command_list): Likewise.
34539 (autoload_fs_module): Moved to normal/autofs.c.
34540 (read_fs_list): Likewise.
34541 (reader_nested): New variable.
34542 (grub_normal_execute): Run parser.sh to switch to sh parser.
34543 (grub_cmd_rescue): Removed.
34544 (cmd_normal): Removed.
34545 (grub_cmd_normal): Unregister itself at the beginning. Don't register
34546 rescue command.
34547 (grub_cmdline_run): New function.
34548 (grub_normal_reader_init): Likewise.
34549 (grub_normal_read_line): Likewise.
34550 (grub_env_write_pager): Likewise.
34551 (cmdline): New variable.
34552 (grub_normal_reader): Likewise.
34553 (GRUB_MOD_INIT): Register normal reader and set as current, register
34554 pager hook, register normal command with grub_register_command_prio,
34555 so that it won't show up in command.lst.
34556 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
34557 grub_fs_autoload_hook.
34558
34559 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
34560 (grub_menu_execute_entry): Replace grub_script_execute with
34561 grub_parser_execute, change parameter to grub_command_execute.
34562
34563 * normal/menu_text.c: Remove <grub/script.h>.
34564
34565 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
34566 and <grub/parser.h>.
34567 (run): Change editor_getline to use new parser interface. Change
34568 parameter to grub_command_execute.
34569
34570 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
34571 <grub/reader.h> and <grub/parser.h>.
34572 (grub_load_normal_mode): Execute normal command.
34573 (grub_main): Call grub_register_core_commands,
34574 grub_register_rescue_parser and grub_register_rescue_reader, use
34575 grub_reader_loop to enter input loop.
34576
34577 * kern/parser.c (grub_parser_split_cmdline): Change type of
34578 getline parameter.
34579 (grub_parser_class): New variable.
34580 (grub_parser_execute): New function.
34581
34582 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
34583 * loader/multiboot2.c: Likewise.
34584 * loader/sparc64/ieee1275/linux.c: Likewise.
34585
34586 * util/grub-emu.c (read_command_list): New dummy function.
34587
34588 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
34589
34590 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
34591 count to 16 for CCISS and IDA.
34592
34593 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
34594
34595 * normal/menu_text.c (grub_wait_after_message): Print a newline
34596 after waiting for user input.
34597
34598 * loader/i386/linux.c: Include `<grub/normal.h>'.
34599 (grub_cmd_linux): Improve the error message about `ask' mode, by
34600 waiting for user input so it's not missed (we can do this, since
34601 user requested interaction).
34602
34603 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
34604
34605 Added missing lst to grub-mkrescue
34606
34607 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
34608 and ${input_dir}/parttool.lst
34609
34610 2009-04-30 David S. Miller <davem@davemloft.net>
34611
34612 * util/hostdisk.c (device_is_wholedisk): New function.
34613 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
34614 zero only if device_is_wholedisk() returns true.
34615
34616 * util/hostdisk.c (convert_system_partition_to_system_disk):
34617 Handle virtual disk devices named /dev/vdiskX as found on sparc
34618 and powerpc.
34619
34620 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
34621 lettered partition specifier is found, convert to numbered.
34622
34623 2009-04-29 David S. Miller <davem@davemloft.net>
34624
34625 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
34626 * include/grub/sparc64/ieee1275/memory.h: Likewise.
34627
34628 * normal/command.c: Add missing newline at end of file.
34629
34630 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
34631 warnings.
34632 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
34633 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
34634 grub_ofdisk_read): Likewise, and deal similarly with the fact that
34635 ihandles have a 32-bit type but need to be stored in a "void *".
34636
34637 2009-04-28 Pavel Roskin <proski@gnu.org>
34638
34639 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
34640 not disk. Adjust all dependencies.
34641 (grub_fs_uuid_close): Use grub_device_close(), not
34642 grub_disk_close().
34643
34644 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
34645 parent's partition, don't copy it by reference, as it gets freed
34646 on close.
34647
34648 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
34649
34650 Preboot hooks support
34651
34652 * commands/boot.c (struct grub_preboot_t): new declaration
34653 (preboots_head): new variable
34654 (preboots_tail): likewise
34655 (grub_loader_register_preboot_hook): new function
34656 (grub_loader_unregister_preboot_hook): likewise
34657 (grub_loader_set): launch preboot hooks
34658 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
34659 (grub_loader_register_preboot_hook): new declaration
34660 (grub_loader_unregister_preboot_hook): likewise
34661
34662 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
34663
34664 Warning fix
34665
34666 * disk/scsi.c (grub_scsi_open): added missing cast when
34667 calling grub_dprintf
34668
34669 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
34670
34671 Bug and warning fixes
34672
34673 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
34674 declaration
34675 * commands/test.c (test_parse): fixed bug with file tests and corrected
34676 declaration of find_file
34677
34678 2009-04-26 Pavel Roskin <proski@gnu.org>
34679
34680 * Makefile.in: Don't install empty manual pages if help2man is
34681 missing. Use help2man option for output, not shell redirection.
34682
34683 2009-04-26 David S. Miller <davem@davemloft.net>
34684
34685 * util/grub-mkdevicemap.c (make_device_map): Add missing
34686 NESTED_FUNC_ATTR to process_device().
34687
34688 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
34689
34690 Test command
34691
34692 * commands/test.c: rewritten to use bash-like test
34693
34694 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
34695
34696 Parttool autoloading and improvements
34697
34698 * Makefile.in (pkglib_DATA): add parttool.lst
34699 (parttool.lst): new target
34700 * genmk.rb: generate parttool-*
34701 (CLEANFILES): add #{parttool}
34702 (PARTTOOLFILES): new variable
34703 * genparttoollist.sh: new file
34704 * parttool/pcpart.c (grub_pcpart_boot): more feedback
34705 (grub_pcpart_type): likewise
34706 * commands/parttool.c (helpmsg): new variable
34707 (grub_cmd_parttool): output help if not enough arguments are supplied
34708 autoload modules
34709 (GRUB_MOD_INIT(parttool)): use helpmsg
34710
34711 2009-04-24 David S. Miller <davem@davemloft.net>
34712
34713 Avoiding opening same device multiple times in device iterator.
34714
34715 * kern/device.c: (grub_device_iterate): Define struct part_ent,
34716 and use it to build a list of partitions in iterate_disk() and
34717 iterate_partition().
34718
34719 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
34720 on disk->data.
34721
34722 * disk/ieee1275/nand.c (grub_nand_iterate): Return
34723 grub_devalias_iterate() result instead of unconditional 0.
34724 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
34725 Also, capture hook return value, either directly or via
34726 grub_children_iterate(), and propagate to caller.
34727 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
34728 grub_children_iterate): Return value is now 'int' instead of
34729 'grub_err_t'.
34730 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
34731 like a proper iterator, stopping when hooks return non-zero.
34732 (grub_devalias_iterate): Likewise.
34733
34734 2009-04-23 David S. Miller <davem@davemloft.net>
34735
34736 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
34737
34738 2009-04-22 David S. Miller <davem@davemloft.net>
34739
34740 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
34741 is larger than address_cells, use that value for address_cells too.
34742
34743 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
34744 IEEE1275_MAX_PATH_LEN): Define.
34745 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
34746 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
34747 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
34748 'devtype'. Explicitly NULL terminate devalias expansion.
34749
34750 * util/sparc64/ieee1275/misc.c: New file.
34751 * util/sparc64/ieee1275/grub-setup.c: New file.
34752 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
34753 * util/sparc64/ieee1275/grub-mkimage.c: New file.
34754 * util/sparc64/ieee1275/grub-install.in: New file.
34755 * util/ieee1275/ofpath.c: New file.
34756 * util/ieee1275/devicemap.c: New file.
34757 * util/devicemap.c: New file.
34758 * util/deviceiter.c: New file.
34759 * kern/sparc64/ieee1275/init.c: New file.
34760 * include/grub/util/ofpath.h: New file.
34761 * include/grub/util/deviceiter.h: New file.
34762 * util/grub-mkdevicemap.c: Include deviceiter.h.
34763 Implement using grub_util_emit_devicemap_entry and
34764 grub_util_iterate_devices.
34765 * conf/i386-corebook.rmk: Build util/deviceiter.c and
34766 util/devicemap.c into grub-mkdevicemap
34767 * conf/i386-efi.rmk: Likewise.
34768 * conf/i386-ieee1275.rmk: Likewise.
34769 * conf/i386-pc.rmk: Likewise.
34770 * conf/powerpc-ieee1275.rmk: Likewise.
34771 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
34772 images and installation utilities. Build kernel as image
34773 instead of as elf binary. Use common rules as much as possible.
34774
34775 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
34776
34777 Correct GPT definition
34778
34779 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
34780 of "attrib" member
34781
34782 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
34783
34784 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
34785
34786 2009-04-19 David S. Miller <davem@davemloft.net>
34787
34788 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
34789 (grub_rescue_cmd_linux): Rename to...
34790 (grub_cmd_linux): and fix prototype.
34791 (grub_rescue_cmd_initrd): Rename to...
34792 (grub_cmd_initrd): and fix prototype.
34793 (cmd_linux, cmd_initrd): New.
34794 (GRUB_MOD_INIT(linux)): Use grub_register_command().
34795 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
34796
34797 2009-04-17 Pavel Roskin <proski@gnu.org>
34798
34799 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
34800 format.
34801 (grub_ohci_transfer): Likewise.
34802
34803 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
34804
34805 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
34806 return without a value. Fix inconsistent indentation.
34807
34808 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
34809 match struct grub_fs.
34810
34811 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
34812 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
34813 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
34814 * commands/lspci.c (grub_lspci_iter): Likewise.
34815
34816 2009-04-16 Bean <bean123ch@gmail.com>
34817
34818 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
34819 value.
34820
34821 2009-04-15 Pavel Roskin <proski@gnu.org>
34822
34823 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
34824 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
34825 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
34826 definitions.
34827
34828 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
34829
34830 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
34831 that no multiple data or metadata areas are supported and `Unknown
34832 metadata header'.
34833
34834 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
34835
34836 Move loader out of the kernel
34837
34838 * kern/loader.c: moved to ...
34839 * commands/boot.c: ... moved here
34840 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
34841 * commands/boot.c (grub_cmd_boot): moved here. All users updated
34842 * include/grub/kernel.h (grub_machine_fini): export
34843 * include/grub/loader.h (grub_loader_is_loaded): update declaration
34844 (grub_loader_set): likewise
34845 (grub_loader_unset): likewise
34846 (grub_loader_boot): likewise
34847 * conf/common.rmk: new module boot.mod
34848 (pkglib_MODULES): add boot.mod
34849 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
34850 (grub_emu_SOURCES): likewise
34851 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
34852 (grub_emu_SOURCES): likewise
34853 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
34854 (grub_emu_SOURCES): likewise
34855 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
34856 (grub_emu_SOURCES): likewise
34857 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
34858 (grub_emu_SOURCES): likewise
34859 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
34860 (grub_emu_SOURCES): likewise
34861 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
34862 (grub_emu_SOURCES): likewise
34863
34864 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
34865
34866 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
34867
34868 * kern/misc.c (grub_itoa): Removed function
34869 (grub_ltoa): likewise
34870 (grub_vsprintf): use grub_lltoa
34871
34872 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
34873
34874 Restore grub-emu
34875
34876 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
34877 * conf/i386-coreboot.rmk: likewise
34878 * conf/i386-ieee1275.rmk: likewise
34879 * conf/powerpc-ieee1275.rmk: likewise
34880
34881 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
34882
34883 * INSTALL: Add that `./autogen.sh' needs to be run before
34884 `./configure.'.
34885
34886 2009-04-14 Bean <bean123ch@gmail.com>
34887
34888 * Makefile.in (pkglib_DATA): Add handler.lst.
34889 (handler.lst): New rule.
34890
34891 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
34892 * conf/i386-coreboot.rmk: Likewise.
34893 * conf/i386-ieee1275.rmk: Likewise.
34894 * conf/i386-efi.rmk: Likewise.
34895 * conf/x86_64-efi.rmk: Likewise.
34896 * conf/powerpc-ieee1275.rmk: Likewise.
34897 * conf/sparc64-ieee1275.rmk: Likewise.
34898
34899 * genhandlerlist.sh: New file.
34900
34901 * genmk.rb: Add rules to generate handler.lst.
34902
34903 * include/grub/normal.h (grub_file_getline): New function definition.
34904 (read_handler_list): Likewise.
34905 (free_handler_list): Likewise.
34906
34907 * include/grub/term.h (grub_term_register_input): Add name parameter
34908 for auto generation of handler.lst.
34909 (grub_term_register_output): Likewise.
34910
34911 * normal/handler.c: New file.
34912
34913 * normal/main.c (get_line): Renamed to grub_file_getline.
34914 (read_config_file): Use the newly renamed grub_file_getline.
34915 (read_command_list): Likewise.
34916 (read_fs_list): Likewise.
34917 (grub_normal_execute): Call read_handler_list to parse handler.lst.
34918 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
34919
34920 * term/efi/console.c (grub_console_init): Add name parameter for auto
34921 generation of handler.lst.
34922 * term/gfxterm.c: Likewise.
34923 * term/i386/pc/at_keyboard.c: Likewise.
34924 * term/i386/pc/console.c: Likewise.
34925 * term/i386/pc/serial.c: Likewise.
34926 * term/i386/pc/vesafb.c: Likewise.
34927 * term/i386/pc/vga.c: Likewise.
34928 * term/i386/pc/vga_text.c: Likewise.
34929 * term/ieee1275/ofconsole.c: Likewise.
34930 * term/usb_keyboard.c: Likewise.
34931
34932 2009-04-14 Bean <bean123ch@gmail.com>
34933
34934 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
34935 properly with null character.
34936
34937 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
34938
34939 * configure: Remove.
34940 * config.h.in: Likewise.
34941 * stamp-h.in: Likewise.
34942 * DISTLIST: Likewise.
34943 * conf/common.mk: Likewise.
34944 * conf/i386-coreboot.mk: Likewise.
34945 * conf/i386-efi.mk: Likewise.
34946 * conf/i386-ieee1275.mk: Likewise.
34947 * conf/i386.mk: Likewise.
34948 * conf/i386-pc.mk: Likewise.
34949 * conf/powerpc-ieee1275.mk: Likewise.
34950 * conf/sparc64-ieee1275.mk: Likewise.
34951 * conf/x86_64-efi.mk: Likewise.
34952
34953 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
34954 develop on GRUB.
34955
34956 2009-04-14 John Stanley <jpsinthemix@verizon.net>
34957 David S. Miller <davem@davemloft.net>
34958
34959 * util/hostdisk.c (make_device_name): Fix buffer length
34960 calculations.
34961
34962 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
34963
34964 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
34965 <sys/param.h> and <sys/sysctl.h>.
34966 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
34967 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
34968 opening the device and reset them afterwards.
34969
34970 2009-04-13 Pavel Roskin <proski@gnu.org>
34971
34972 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
34973 Reported by John Stanley <jpsinthemix@verizon.net>
34974
34975 2009-04-13 Robert Millan <rmh@aybabtu.com>
34976
34977 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
34978 that name for menuentries when appropriate.
34979
34980 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
34981
34982 * util/grub.d/10_freebsd.in: Add a missing `fi'.
34983
34984 2009-04-13 Robert Millan <rmh@aybabtu.com>
34985
34986 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
34987 to Linux, simply abort telling the user it's no longer supported.
34988
34989 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
34990
34991 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
34992 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
34993 `freebsd_loadenv' only when devices.hints exist.
34994
34995 2009-04-13 Pavel Roskin <proski@gnu.org>
34996
34997 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
34998
34999 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
35000
35001 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
35002 partition number.
35003 (grub_drive): Likewise.
35004
35005 2009-04-13 David S. Miller <davem@davemloft.net>
35006
35007 * kern/sparc64/ieee1275/ieee1275.c: New file.
35008 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
35009 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
35010 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
35011 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
35012 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
35013 grub_ieee1275_alloc_physmem): Declare new exported functions.
35014
35015 * include/grub/sparc64/ieee1275/loader.h: New file.
35016 * include/grub/sparc64/ieee1275/memory.h: Likewise.
35017 * include/grub/sparc64/kernel.h: Likewise.
35018 * loader/sparc64/ieee1275/linux.c: Likewise.
35019
35020 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
35021 (grub_fstest_SOURCES): Likewise.
35022
35023 * util/hostdisk.c (make_device_name): Do not make any assumptions
35024 about the length of drive names.
35025
35026 * kern/dl.c (grub_dl_load_file): Close file immediately when
35027 we are done using it.
35028
35029 2009-04-12 David S. Miller <davem@davemloft.net>
35030
35031 * kern/misc.c (grub_ltoa): Fix cast when handling negative
35032 values. Noticed by Pavel Roskin.
35033
35034 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
35035 target compiler.
35036
35037 * genmk.rb: Add more flexible image type specification, also
35038 pass --strip-unneeded to objcopy.
35039 * conf/i386-pc.rmk: Use *_FORMAT.
35040 * conf/i386-pc.mk: Rebuilt.
35041
35042 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
35043 (OFDISK_HASH_SZ): Define.
35044 (ofdisk_hash): New hash table.
35045 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
35046 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
35047 instead of device phandle which is not unique.
35048
35049 * kern/sparc64/ieee1275/init.c: Delete, replace with...
35050 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
35051 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
35052 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
35053 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
35054 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
35055 GRUB_KERNEL_MACHINE_DATA_END): Define.
35056 (grub_kernel_image_size, grub_total_module_size): Declare.
35057
35058 2009-04-12 Pavel Roskin <proski@gnu.org>
35059
35060 * configure.ac: Change the logic when we check for target tools.
35061 Do it when the target is specified and it's different from the
35062 specified value of the host.
35063
35064 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
35065
35066 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
35067 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
35068 GNU/kFreeBSD. Check if a device is a character device. Use
35069 DIOCGMEDIASIZE to get the size.
35070 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
35071 support for GNU/kFreeBSD.
35072 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
35073 is a character device instead of a block device. Add support for
35074 FreeBSD device names.
35075
35076 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
35077 is a character device instead of a block device.
35078
35079 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
35080 is a character device instead of a block device.
35081
35082 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
35083
35084 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
35085 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
35086 FreeBSD. Check if a device is a character device. Use
35087 DIOCGMEDIASIZE to get the size.
35088 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
35089 support for FreeBSD.
35090 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
35091 is a character device instead of a block device. Add support for
35092 FreeBSD device names.
35093
35094 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
35095 a character device instead of a block device.
35096 (grub_util_check_char_device): New function.
35097
35098 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
35099 a character device instead of a block device.
35100
35101 * include/grub/util/getroot.h (grub_util_check_char_device): New
35102 prototype.
35103
35104 2009-04-11 David S. Miller <davem@davemloft.net>
35105
35106 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
35107 static libgcc.
35108 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
35109 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
35110 function, if present.
35111 (__bswapdi2): Likewise.
35112
35113 * include/grub/sparc64/ieee1275/boot.h: New file.
35114 * boot/sparc64/ieee1275/boot.S: Likewise.
35115 * boot/sparc64/ieee1275/diskboot.S: Likewise.
35116
35117 * kern/misc.c (grub_ltoa): New function.
35118 (grub_vsprintf): Use it to format 'long' integers.
35119
35120 2009-04-10 David S. Miller <davem@davemloft.net>
35121
35122 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
35123 slots are of type grub_ieee1275_cell_t.
35124 (grub_nand_read): Likewise.
35125 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
35126 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
35127 macros are used to compare values in arg/ret block of the call.
35128 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
35129 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
35130 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
35131 grub_ieee1275_instance_to_path, grub_ieee1275_write,
35132 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
35133 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
35134 grub_ieee1275_close, grub_ieee1275_set_property,
35135 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
35136 grub_ieee1275_cell_t.
35137 * kern/ieee1275/openfw.c (grub_map): Likewise.
35138 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
35139 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
35140
35141 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
35142 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
35143 (grub_devalias_iterate): Likewise.
35144
35145 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
35146
35147 UFS improvements
35148
35149 * fs/ufs.c (INODE_NBLOCKS): new definition
35150 (struct grub_ufs_dirent): added fields for non-BSD dirents
35151 (grub_ufs_get_file_block): fixed double indirect handling
35152 (grub_ufs_lookup_symlink): use more robust way to determine whether
35153 symlink is inline
35154 (grub_ufs_find_file): support for non-BSD dirents
35155 (grub_ufs_dir): support for non-BSD dirents
35156
35157 2009-04-10 Bean <bean123ch@gnail.com>
35158
35159 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
35160 attribute, otherwise the size would be wrong for i386 platform.
35161
35162 * include/grub/pci.h (grub_pci_read_word): New inline function.
35163 (grub_pci_read_byte): Likewise.
35164 (grub_pci_write): Likewise.
35165 (grub_pci_write_word): Likewise.
35166 (grub_pci_write_byte): Likewise.
35167
35168 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
35169
35170 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
35171 (find_framebuf): Scan pci to locate the frame buffer address.
35172
35173 * commands/efi/fixvideo.c: New file.
35174
35175 * commands/efi/loadbios.c: Likewise.
35176
35177 * commands/memrw.c: Likewise.
35178
35179 * util/grub-dumpbios.in: Likewise.
35180
35181 * conf/common.rmk (grub-dumpbios): New utility.
35182 (pkglib_MODULES): New module memrw.mod.
35183 (memrw_mod_SOURCE): New macro.
35184 (memrw_mod_CFLAGS): Likewise.
35185 (memrw_mod_LDFLAGS): Likewise.
35186
35187 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
35188 fixvideo.mod.
35189 (loadbios_mod_SOURCE): New macro.
35190 (loadbios_mod_CFLAGS): Likewise.
35191 (loadbios_mod_LDFLAGS): Likewise.
35192 (fixvideo_mod_SOURCE): Likewise.
35193 (fixvideo_mod_CFLAGS): Likewise.
35194 (fixvideo_mod_LDFLAGS): Likewise.
35195
35196 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
35197 fixvideo.mod.
35198 (loadbios_mod_SOURCE): New macro.
35199 (loadbios_mod_CFLAGS): Likewise.
35200 (loadbios_mod_LDFLAGS): Likewise.
35201 (fixvideo_mod_SOURCE): Likewise.
35202 (fixvideo_mod_CFLAGS): Likewise.
35203 (fixvideo_mod_LDFLAGS): Likewise.
35204
35205 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
35206
35207 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
35208
35209 2009-04-07 David S. Miller <davem@davemloft.net>
35210
35211 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
35212 support for R_SPARC_OLO10 relocations. Fix compile warning for
35213 R_SPARC_WDISP30 case.
35214 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
35215
35216 2009-04-06 Pavel Roskin <proski@gnu.org>
35217
35218 * include/grub/misc.h (ARRAY_SIZE): New macro.
35219 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
35220 New macro.
35221 * loader/i386/linux.c (allocate_pages): Use free_pages().
35222 (grub_linux_unload): Don't use free_pages().
35223 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
35224 wrong index. Treat all other modes as text modes.
35225 (grub_cmd_linux): Initialize vid_mode unconditionally to
35226 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
35227
35228 * commands/help.c (print_command_help): Use cmd->prio, not
35229 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
35230
35231 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
35232
35233 Parttool
35234
35235 * parttool/pcpart.c: new file
35236 * commands/parttool.c: likewise
35237 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
35238 (parttool_mod_SOURCES): new variable
35239 (parttool_mod_CFLAGS): likewise
35240 (parttool_mod_LDFLAGS): likewise
35241 (pcpart_mod_SOURCES): likewise
35242 (pcpart_mod_CFLAGS): likewise
35243 (pcpart_mod_LDFLAGS): likewise
35244 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
35245 and parttool/pcpart.c
35246 * conf/i386-efi.rmk: likewise
35247 * conf/i386-ieee1275.rmk: likewise
35248 * conf/i386-pc.rmk: likewise
35249 * conf/powerpc-ieee1275.rmk: likewise
35250 * conf/sparc64-ieee1275.rmk: likewise
35251 * conf/x86_64-ieee1275.rmk: likewise
35252
35253 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
35254
35255 Support for mtime and further expandability of dir command
35256
35257 * include/grub/lib/datetime.h: moved to ...
35258 * include/grub/datetime.h: ... moved here and added
35259 declaration of grub_unixtime2datetime. All users updated
35260 * include/grub/fs.h: new syntax for dir and mtime functions in
35261 struct grub_fs
35262 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
35263 and GRUB_FSHELP_FLAGS_MASK
35264 * commands/ls.c (grub_ls_list_files): Write mtime in long format
35265 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
35266 (grub_ext2_mtime): new function
35267 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
35268 (grub_hfsplus_mtime): new function
35269 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
35270 (GRUB_UFS_ATTR_FILE): likewise
35271 (GRUB_UFS_ATTR_LNK): likewise
35272 (struct grub_ufs_sblock): new fields mtime
35273 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
35274 all users updated
35275 (grub_ufs_dir): mtime support
35276 (grub_ufs_mtime): new function
35277 * fs/affs.c (grub_affs_dir): use new dir syntax
35278 * fs/afs.c (grub_afs_dir): likewise
35279 * fs/cpio.c (grub_cpio_dir): likewise
35280 * fs/fat.c (grub_fat_find_dir): likewise
35281 * fs/hfs.c (grub_hfs_dir): likewise
35282 * fs/iso9660.c (grub_iso9660_dir): likewise
35283 * fs/jfs.c (grub_jfs_dir): likewise
35284 * fs/minix.c (grub_minix_dir): likewise
35285 * fs/ntfs.c (grub_ntfs_dir): likewise
35286 * fs/reiserfs.c (grub_reiserfs_dir): likewise
35287 * fs/sfs.c (grub_sfs_dir): likewise
35288 * fs/xfs.c (grub_xfs_dir): likewise
35289 * util/hostfs.c (grub_hostfs_dir): likewise
35290 * lib/datetime.c: moved to ...
35291 * normal/datetime.c: ... moved here
35292 (grub_unixtime2datetime): new function
35293 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
35294 * normal/completion.c (iterate_dir): use new dir syntax
35295 * normal/misc.c (grub_normal_print_device_info): tell the
35296 last modification time of a volume
35297 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
35298 * conf/common.rmk: added lib/datetime.c to ls.mod
35299 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
35300 (normal_mod_SOURCES): likewise
35301 (datetime_mod_SOURCES): Removed lib/datetime.c
35302 * conf/i386-efi.rmk: likewise
35303 * conf/i386-ieee1275.rmk: likewise
35304 * conf/i386-pc.rmk: likewise
35305 * conf/powerpc-ieee1275.rmk: likewise
35306 * conf/sparc64-ieee1275.rmk: likewise
35307 * conf/x86_64-efi.rmk: likewise
35308
35309 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
35310
35311 Trim trailing spaces in FAT label and support mtools-like labels
35312
35313 * fs/fat.c (grub_fat_iterate_dir): New function based
35314 on grub_fat_find_dir
35315 (grub_fat_find_dir): use grub_fat_iterate_dir
35316 (grub_fat_label): likewise
35317
35318 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
35319
35320 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
35321 and command.h
35322 remove extraneous kernel_elf_HEADERS
35323
35324 2009-04-04 Bean <bean123ch@gnail.com>
35325
35326 * include/grub/util/misc.h: Add dummy function fsync for mingw.
35327
35328 * util/misc.c: Likewise.
35329
35330 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
35331
35332 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
35333 instead of grub_printf.
35334
35335 2009-04-03 Robert Millan <rmh@aybabtu.com>
35336
35337 * loader/i386/linux.c (grub_linux_setup_video): Fill
35338 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
35339 values from `mode info' structure instead of hardcoded
35340 values.
35341
35342 2009-04-01 Pavel Roskin <proski@gnu.org>
35343
35344 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
35345 unused now.
35346 * genmk.rb: Likewise.
35347 * configure.ac: Likewise.
35348
35349 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
35350
35351 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
35352 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
35353
35354 2009-04-01 David S. Miller <davem@davemloft.net>
35355
35356 * normal/sparc64/setjmp.S: Fix setjmp implementation.
35357 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
35358 (grub_setjmp): Mark with 'returns_twice' attribute.
35359 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
35360 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
35361 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
35362
35363 2009-04-01 Robert Millan <rmh@aybabtu.com>
35364
35365 Reapply fix from 2008-07-28 which was accidentally reverted; also
35366 perform the same fix to a similar check in same function.
35367
35368 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
35369 with the same number are found, just use issue a warning with
35370 grub_dprintf(), as this error has been reported to be non-fatal.
35371
35372 2009-03-31 Pavel Roskin <proski@gnu.org>
35373
35374 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
35375 for cross-compilation.
35376
35377 2009-03-30 Robert Millan <rmh@aybabtu.com>
35378
35379 Fix i386-ieee1275 build.
35380
35381 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
35382 Remove declaration.
35383
35384 2009-03-30 Pavel Roskin <proski@gnu.org>
35385
35386 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
35387 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
35388 zero-terminated, rely only on the strlen value. Fix comparison
35389 of strings differing in length.
35390
35391 2009-03-30 Robert Millan <rmh@aybabtu.com>
35392
35393 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
35394 checking for abi version. Improve error messages on BIOS to notify
35395 user about `linux16' command.
35396
35397 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
35398
35399 Leak fixes
35400
35401 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
35402 in case of collision
35403 * disk/scsi.c (grub_scsi_open): free scsi in case of error
35404
35405 2009-03-29 Robert Millan <rmh@aybabtu.com>
35406
35407 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
35408 set `vid_mode' accordingly.
35409 (grub_linux_boot): Process `vid_mode' and set video mode.
35410
35411 2009-03-29 Robert Millan <rmh@aybabtu.com>
35412
35413 * util/grub.d/10_linux.in (linux_entry): New function.
35414 Factorize generation of Linux boot entries.
35415
35416 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
35417
35418 Make the format of Environment Block plain text. The boot loader
35419 part is not tested well yet.
35420
35421 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
35422 (buffer): Removed.
35423 (envblk): Likewise.
35424 (usage): Remove "info" and "clear". Add "unset". Update the
35425 description of "set", as this does not delete variables any
35426 longer.
35427 (create_envblk_file): Complete rewrite.
35428 (open_envblk_file): Likewise.
35429 (cmd_info): Removed.
35430 (cmd_list): Likewise.
35431 (cmd_set): Likewise.
35432 (cmd_clear): Likewise.
35433 (list_variables): New function.
35434 (write_envblk): Likewise.
35435 (set_variables): Likewise.
35436 (unset_variables): Likewise.
35437 (main): Complete rewrite.
35438
35439 * commands/loadenv.c (buffer): Removed.
35440 (envblk): Likewise.
35441 (open_envblk_file): New function.
35442 (read_envblk_file): Complete rewrite.
35443 (grub_cmd_load_env): Likewise.
35444 (grub_cmd_list_env): Likewise.
35445 (struct blocklist): New struct.
35446 (free_blocklists): New function.
35447 (check_blocklists): Likewise.
35448 (write_blocklists): Likewise.
35449 (grub_cmd_save_env): Complete rewrite.
35450
35451 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
35452 a plain text signature.
35453 (GRUB_ENVBLK_MAXLEN): Removed.
35454 (struct grub_envblk): Complete rewrite.
35455 (grub_envblk_find): Removed.
35456 (grub_envblk_insert): Likewise.
35457 (grub_envblk_open): New prototype.
35458 (grub_envblk_set): Likewise.
35459 (grub_envblk_delete): Put const to VALUE.
35460 (grub_envblk_iterate): Put const to NAME and VALUE.
35461 (grub_envblk_close): New prototype.
35462 (grub_envblk_buffer): New inline function.
35463 (grub_envblk_size): Likewise.
35464
35465 * lib/envblk.c: Include grub/mm.h.
35466 (grub_env_find): Removed.
35467 (grub_envblk_open): New function.
35468 (grub_envblk_close): Likewise.
35469 (escaped_value_len): Likewise.
35470 (find_next_line): Likewise.
35471 (grub_envblk_insert): Removed.
35472 (grub_envblk_set): New function.
35473 (grub_envblk_delete): Complete rewrite.
35474 (grub_envblk_iterate): Likewise.
35475
35476 2009-03-28 Robert Millan <rmh@aybabtu.com>
35477
35478 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
35479 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
35480 variables. Use 16-bit loader.
35481 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
35482 loader.
35483 * kern/i386/loader.S (grub_linux_boot): Rename to ...
35484 (grub_linux16_boot): ... this. Update all users.
35485 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
35486 (grub_linux_boot): ... this. Update all users.
35487
35488 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
35489 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
35490 commands to `linux16' and `initrd16'.
35491 (GRUB_MOD_FINI(linux)): Rename to ...
35492 (GRUB_MOD_FINI(linux16)): ... this.
35493
35494 2009-03-24 Pavel Roskin <proski@gnu.org>
35495
35496 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
35497 not just for compilation.
35498
35499 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
35500
35501 Move multiboot helper out of kernel
35502
35503 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
35504 `loader/i386/multiboot_helper.S'.
35505 * conf/i386-coreboot.rmk: Likewise
35506 * conf/i386-ieee1275.rmk: Likewise
35507
35508 * kern/i386/loader.S: Move multiboot helpers from here...
35509 * loader/i386/multiboot_helper.S: ...moved here
35510 * include/grub/i386/loader.h: Move declarations of multiboot
35511 helpers from here...
35512 * include/grub/i386/multiboot.h: ...moved here
35513 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
35514
35515 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
35516
35517 * kern/env.c (grub_env_context_open): Added an argument to specify
35518 whether a new context inherits exported variables from current
35519 one. This is useful when making a sandbox to interpret a config
35520 file.
35521 All callers updated.
35522
35523 * include/grub/env.h (grub_env_context_open): Updated the prototype.
35524
35525 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
35526
35527 * kern/env.c (grub_env_context_close): Fix memory leaks.
35528
35529 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
35530
35531 * normal/main.c (grub_normal_execute): Added an argument
35532 BATCH to specify if an interactive interface should be provided
35533 after reading a config file.
35534 All callers updated.
35535 (read_command_list): Prevent being executed twice.
35536 (read_fs_list): Likewise.
35537
35538 * include/grub/normal.h (grub_normal_execute): Updated the
35539 prototype.
35540
35541 2009-03-22 Pavel Roskin <proski@gno.org>
35542
35543 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
35544 _start.
35545 * kern/i386/pc/startup.S: Likewise.
35546 * kern/i386/efi/startup.S: Likewise.
35547 * kern/i386/ieee1275/startup.S: Likewise.
35548 * kern/i386/coreboot/startup.S: Likewise.
35549 * kern/x86_64/efi/startup.S: Likewise.
35550
35551 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
35552 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
35553 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
35554
35555 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
35556
35557 Bugfixes in multiboot for bugs uncovered by solaris kernel.
35558
35559 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
35560 limit detection.
35561 Use vaddr of correct segment for entry_point.
35562
35563 2009-03-21 Bean <bean123ch@gmail.com>
35564
35565 * commands/blocklist.c: Add include file <grub/command.h>, remove
35566 <grub/normal.h> and <grub/arg.h>.
35567 (grub_cmd_blocklist): Use the new command interface.
35568 (GRUB_MOD_INIT): Likewise.
35569 (GRUB_MOD_FINI): Likewise.
35570 * commands/boot.c: Likewise.
35571 * commands/cat.c: Likewise.
35572 * commands/cmp.c: Likewise.
35573 * commands/configfile.c: Likewise.
35574 * commands/crc.c: Likewise.
35575 * commands/echo.c: Likewise.
35576 * commands/halt.c: Likewise.
35577 * commands/handler.c: Likewise.
35578 * commands/hdparm.c: Likewise.
35579 * commands/help.c: Likewise.
35580 * commands/hexdump.c: Likewise.
35581 * commands/loadenv.c: Likewise.
35582 * commands/ls.c: Likewise.
35583 * commands/lsmmap.c: Likewise.
35584 * commands/lspci.c: Likewise.
35585 * commands/loadenv.c: Likewise.
35586 * commands/read.c: Likewise.
35587 * commands/reboot.c: Likewise.
35588 * commands/search.c: Likewise.
35589 * commands/sleep.c: Likewise.
35590 * commands/test.c: Likewise.
35591 * commands/usbtest.c: Likewise.
35592 * commands/videotest.c: Likewise.
35593 * commands/i386/cpuid.c: Likewise.
35594 * commands/i386/pc/halt.c: Likewise.
35595 * commands/i386/pc/play.c: Likewise.
35596 * commands/i386/pc/pxecmd.c: Likewise.
35597 * commands/i386/pc/vbeinfo.c: Likewise.
35598 * commands/i386/pc/vbetest.c: Likewise.
35599 * commands/ieee1275/suspend.c: Likewise.
35600 * disk/loopback.c: Likewise.
35601 * font/font_cmd.c: Likewise.
35602 * hello/hello.c: Likewise.
35603 * loader/efi/appleloader.c: Likewise.
35604 * loader/efi/chainloader.c: Likewise.
35605 * loader/i386/bsd.c: Likewise.
35606 * loader/i386/efi/linux.c: Likewise.
35607 * loader/i386/ieee1275/linux.c: Likewise.
35608 * loader/i386/linux.c: Likewise.
35609 * loader/i386/pc/chainloader.c: Likewise.
35610 * loader/i386/pc/linux.c: Likewise.
35611 * loader/powerpc/ieee1275/linux.c: Likewise.
35612 * loader/multiboot_loader.c: Likewise.
35613 * term/gfxterm.c: Likewise.
35614 * term/i386/pc/serial.c: Likewise.
35615 * term/terminfo.c: Likewise.
35616
35617 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
35618 * term/i386/pc/vga.c: Likewise.
35619 * video/readers/jpeg.c: Likewise.
35620 * video/readers/png.c: Likewise.
35621 * video/readers/tga.c: Likewise.
35622
35623 * util/grub-fstest (cmd_loopback): Removed.
35624 (cmd_blocklist): Likewise.
35625 (cmd_ls): Likewise.
35626 (grub_register_command): Likewise.
35627 (grub_unregister_command): Likewise.
35628 (execute_command): Use grub_command_find to locate command and execute
35629 it.
35630
35631 * include/grub/efi/chainloader.h: Removed.
35632 * loader/efi/chainloader_normal.c: Likewise.
35633 * loader/i386/bsd_normal.c: Likewise.
35634 * loader/i386/pc/chainloader_normal.c: Likewise.
35635 * loader/i386/pc/multiboot_normal.c: Likewise.
35636 * loader/linux_normal.c: Likewise.
35637 * loader/multiboot_loader_normal.c: Likewise.
35638 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
35639
35640 * gencmdlist.sh: Scan new registration command grub_register_extcmd
35641 and grub_register_command_p1.
35642
35643 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
35644 kern/command.c, lib/arg.c and commands/extcmd.c.
35645 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
35646 (minicmd_mod_SOURCES): New variable.
35647 (minicmd_mod_CFLAGS): Likewise.
35648 (minicmd_mod_LDFLAGS): Likewise.
35649 (extcmd_mod_SOURCES): Likewise.
35650 (extcmd_mod_CFLAGS): Likewise.
35651 (extcmd_mod_LDFLAGS): Likewise.
35652 (boot_mod_SOURCES): Removed.
35653 (boot_mod_CFLAGS): Likewise.
35654 (boot_mod_LDFLAGS): Likewise.
35655
35656 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
35657 kern/corecmd.c.
35658 (kernel_img_HEADERS): Add command.h.
35659 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
35660 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
35661 and lib/arg.c.
35662 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
35663 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
35664 remove the corresponding normal mode command.
35665 (normal_mod_SOURCES): Remove normal/arg.c.
35666 * conf/i386-coreboot.rmk: Likewise.
35667 * conf/i386-efi.rmk: Likewise.
35668 * conf/i386-ieee1275.rmk: Likewise.
35669 * conf/powerpc-ieee1275.rmk: Likewise.
35670 * conf/x86_64-efi.rmk: Likewise.
35671
35672 * include/grub/arg.h: Move from here ...
35673 * include/grub/lib/arg.h: ... to here.
35674
35675 * normal/arg.c: Move from here ...
35676 * lib/arg.c: ... to here.
35677
35678 * commands/extcmd.c: New file.
35679 * commands/minicmd.c: Likewise.
35680 * include/grub/command.h: Likewise.
35681 * include/grub/extcmd.h: Likewise.
35682 * kern/command.c: Likewise.
35683 * kern/corecmd.c: Likewise.
35684
35685 * kern/list.c (grub_list_iterate): Return int instead of void.
35686 (grub_list_insert): New function.
35687 (grub_prio_list_insert): Likewise.
35688
35689 * kern/rescue.c (grub_rescue_command): Removed.
35690 (grub_rescue_command_list): Likewise.
35691 (grub_rescue_register_command): Likewise.
35692 (grub_rescue_unregister_command): Likewise.
35693 (grub_rescue_cmd_boot): Move to minicmd.c
35694 (grub_rescue_cmd_help): Likewise.
35695 (grub_rescue_cmd_info): Likewise.
35696 (grub_rescue_cmd_boot): Likewise.
35697 (grub_rescue_cmd_testload): Likewise.
35698 (grub_rescue_cmd_dump): Likewise.
35699 (grub_rescue_cmd_rmmod): Likewise.
35700 (grub_rescue_cmd_lsmod): Likewise.
35701 (grub_rescue_cmd_exit): Likewise.
35702 (grub_rescue_print_devices): Moved to corecmd.c.
35703 (grub_rescue_print_files): Likewise.
35704 (grub_rescue_cmd_ls): Likewise.
35705 (grub_rescue_cmd_insmod): Likewise.
35706 (grub_rescue_cmd_set): Likewise.
35707 (grub_rescue_cmd_unset): Likewise.
35708 (attempt_normal_mode): Use grub_command_find to get normal module.
35709 (grub_enter_rescue_mode): Use grub_register_core_commands to register
35710 commands, remove grub_rescue_register_command calls.
35711
35712 * normal/command.c (grub_register_command): Removed.
35713 (grub_unregister_command): Likewise.
35714 (grub_command_find): Likewise.
35715 (grub_iterate_commands): Likewise.
35716 (rescue_command): Likewise.
35717 (export_command): Moved to corecmd.c.
35718 (set_command): Removed.
35719 (unset_command): Likewise.
35720 (insmod_command): Likewise.
35721 (rmmod_command): Likewise.
35722 (lsmod_command): Likewise.
35723 (grub_command_init): Likewise.
35724
35725 * normal/completion.c (iterate_command): Use cmd->prio to check for
35726 active command.
35727 (complete_arguments): Use grub_extcmd_t structure to find options.
35728 (grub_normal_do_completion): Change function grub_iterate_commands to
35729 grub_command_iterate.
35730
35731 * normal/execute.c (grub_script_execute_cmd): No need to parse
35732 argument here.
35733
35734 * normal/main.c (grub_dyncmd_dispatcher): New function.
35735 (read_command_list): Register unload commands as dyncmd.
35736 (grub_cmd_normal): Use new command interface, register rescue,
35737 unregister normal at entry, register normal, unregister rescue at exit.
35738
35739 * include/grub/list.h (grub_list_test_t): New type.
35740 (grub_list_iterate): Return int instead of void.
35741 (grub_list_insert): New function.
35742 (GRUB_AS_NAMED_LIST_P): New macro.
35743 (GRUB_AS_PRIO_LIST): Likewise.
35744 (GRUB_AS_PRIO_LIST_P): Likewise.
35745 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
35746 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
35747 (grub_prio_list): New structure.
35748 (grub_prio_list_insert): New function.
35749 (grub_prio_list_remove): New inline function.
35750
35751 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
35752 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
35753 (GRUB_COMMAND_FLAG_MENU): Likewise.
35754 (GRUB_COMMAND_FLAG_BOTH): Likewise.
35755 (GRUB_COMMAND_FLAG_TITLE): Likewise.
35756 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
35757 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
35758 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
35759 (grub_command): Likewise.
35760 (grub_register_command): Likewise.
35761 (grub_command_find): Likewise.
35762 (grub_iterate_commands): Likewise.
35763 (grub_command_init): Likewise.
35764 (grub_arg_parse): Likewise.
35765 (grub_arg_show_help): Likewise.
35766
35767 * include/grub/rescue.h (grub_rescue_register_command): Removed.
35768 (grub_rescue_unregister_command): Likewise.
35769
35770 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
35771 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
35772 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
35773
35774 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
35775 grub_rescue_cmd_initrd.
35776 * include/grub/i386/loader.h: Likewise.
35777 * include/grub/x86_64/loader.h: Likewise.
35778
35779 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
35780
35781 2009-03-21 Bean <bean123ch@gmail.com>
35782
35783 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
35784 instead of stat in mingw environment.
35785
35786 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
35787
35788 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
35789
35790 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
35791 AC_CONFIG_LINKS.
35792
35793 2009-03-21 Bean <bean123ch@gmail.com>
35794
35795 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
35796 out of range error.
35797
35798 2009-03-18 Michel Dänzer <michel@daenzer.net>
35799
35800 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
35801 checking inode flags for EXT4_EXTENTS_FLAG.
35802
35803 2009-03-18 Robert Millan <rmh@aybabtu.com>
35804
35805 * loader/i386/linux.c: Include `<grub/video.h>' and
35806 `<grub/i386/pc/vbe.h>'..
35807 (grub_linux_setup_video): New function. Loosely based on the EFI one.
35808 (grub_linux32_boot): Attempt to configure video settings with
35809 grub_linux_setup_video().
35810 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
35811 to avoid grub_console_fini() which would step out of graphical mode
35812 unconditionally.
35813
35814 2009-03-14 Robert Millan <rmh@aybabtu.com>
35815
35816 Fix build on powerpc.
35817 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
35818
35819 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
35820
35821 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
35822 background image command.
35823
35824 2009-03-12 Colin D Bennett <colin@gibibit.com>
35825
35826 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
35827 (grub_gfxterm_putchar): Extract pairs of identical calls to
35828 draw_cursor out of conditional blocks.
35829
35830 2009-03-11 Pavel Roskin <proski@gnu.org>
35831
35832 * fs/hfs.c (grub_hfs_strncasecmp): New function.
35833 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
35834
35835 2009-03-11 Robert Millan <rmh@aybabtu.com>
35836
35837 * loader/i386/multiboot_elfxx.c
35838 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
35839
35840 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
35841
35842 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
35843 `kern/handler.c'.
35844
35845 2009-03-11 Robert Millan <rmh@aybabtu.com>
35846
35847 * loader/i386/multiboot.c (code_size): New variable.
35848 (grub_multiboot): Define offsets by adding to `code_size' rather
35849 than subtracting from `grub_multiboot_payload_size'. Provide
35850 4-byte alignment to MBI and others by increasing
35851 `boot_loader_name_length' appropriately.
35852
35853 * loader/i386/multiboot_elfxx.c
35854 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
35855
35856 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
35857
35858 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
35859 `fs/ext2.c'.
35860
35861 2009-03-08 Robert Millan <rmh@aybabtu.com>
35862
35863 Make loader/i386/linux.c usable on i386-pc again.
35864
35865 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
35866 memory to heap.
35867 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
35868 `#error' stanza.
35869
35870 2009-03-07 Bean <bean123ch@gmail.com>
35871
35872 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
35873 allocation.
35874
35875 2009-03-06 Robert Millan <rmh@aybabtu.com>
35876
35877 Fix display issue on terminals with screen size other than 80x25
35878 (e.g. gfxterm with resolution higher than 640x480).
35879
35880 * normal/main.c (grub_normal_init_page): Display title text in a
35881 position relative to the center of the terminal instead of relying
35882 on a hardcoded offset.
35883
35884 2009-03-04 Robert Millan <rmh@aybabtu.com>
35885
35886 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
35887 installed.
35888
35889 * Makefile.in (host_kernel): New variable.
35890 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
35891 scripts instead of just the windows one.
35892 * configure.ac: Initialize and AC_SUBST `host_kernel'.
35893
35894 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
35895
35896 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
35897 `kern/handler.c'.
35898 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35899 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35900 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35901 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35902 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35903 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35904
35905 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
35906
35907 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
35908 or if there's no space for the disk label and print the partition number on a
35909 invalid magic.
35910
35911 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
35912
35913 * util/misc.c: Include <time.h>.
35914 (grub_millisleep): New function.
35915
35916 2009-03-04 Bean <bean123ch@gmail.com>
35917
35918 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
35919 another option -mno-red-zone.
35920
35921 * commands/handler.c: Change module description.
35922
35923 * kern/handler.c: Add missing space at the end of description line.
35924
35925 * kern/list.c: Likewise.
35926
35927 2009-03-03 Robert Millan <rmh@aybabtu.com>
35928
35929 Move more components to the relocation area, and fix mbi pointer
35930 handling to use the destination rather than the origin (thanks to
35931 Vladimir Serbinenko for spotting).
35932
35933 * loader/i386/multiboot.c (mbi_dest): New variable.
35934 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
35935 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
35936 relocation area.
35937
35938 2009-03-01 Bean <bean123ch@gmail.com>
35939
35940 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
35941 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
35942 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
35943 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
35944
35945 * loader/i386/efi/linux.c (acpi_guid): New variable.
35946 (acpi_guid): Likewise.
35947 (EBDA_SEG_ADDR): New constant.
35948 (LOW_MEM_ADDR): Likewise.
35949 (FAKE_EBDA_SEG): Likewise.
35950 (fake_bios_data): New function.
35951 (grub_linux_boot): Call fake_bios_data.
35952
35953 2009-03-01 Bean <bean123ch@gmail.com>
35954
35955 * commands/terminal.c: Removed.
35956
35957 * commands/handler.c: New file.
35958
35959 * include/grub/list.h: Likewise.
35960
35961 * include/grub/handler.h: Likewise.
35962
35963 * kern/list.c: Likewise.
35964
35965 * kern/handler.c: Likewise.
35966
35967 * kern/term.h: Include header file <grub/handler.h>.
35968 (grub_term_input): Move next field to the beginning.
35969 (grub_term_output): Likewise.
35970 (grub_term_input_class): New variable.
35971 (grub_term_output_class): Likewise.
35972 (grub_term_register_input): Changed to inline function.
35973 (grub_term_register_output): Likewise.
35974 (grub_term_unregister_input): Likewise.
35975 (grub_term_unregister_output): Likewise.
35976 (grub_term_set_current_input): Likewise.
35977 (grub_term_set_current_output): Likewise.
35978 (grub_term_get_current_input): Likewise.
35979 (grub_term_get_current_output): Likewise.
35980 (grub_term_iterate_input): Removed.
35981 (grub_term_iterate_output): Likewise.
35982
35983 * kern/term.c (grub_term_list_input): Removed.
35984 (grub_term_list_output): Likewise.
35985 (grub_term_input_class): New variable.
35986 (grub_term_output_class): Likewise.
35987 (grub_cur_term_input): Change variable as macro.
35988 (grub_cur_term_output): Likewise.
35989 (grub_term_register_input): Removed.
35990 (grub_term_register_output): Likewise.
35991 (grub_term_unregister_input): Likewise.
35992 (grub_term_unregister_output): Likewise.
35993 (grub_term_set_current_input): Likewise.
35994 (grub_term_set_current_output): Likewise.
35995 (grub_term_iterate_input): Likewise.
35996 (grub_term_iterate_output): Likewise.
35997 (grub_term_get_current_input): Likewise.
35998 (grub_term_get_current_output): Likewise.
35999
36000 * util/grub-editenv.c: Include header file <grub/handler.h>.
36001 (grub_term_get_current_input): Removed.
36002 (grub_term_get_current_output): Likewise.
36003 (grub_term_input_class): New variable.
36004 (grub_term_output_class): Likewise.
36005
36006 * util/grub-fstest.c (grub_term_get_current_input): Removed.
36007 (grub_term_get_current_output): Likewise.
36008 (grub_term_input_class): New variable.
36009 (grub_term_output_class): Likewise.
36010
36011 * util/grub-probe.c (grub_term_get_current_input): Removed.
36012 (grub_term_get_current_output): Likewise.
36013 (grub_term_input_class): New variable.
36014 (grub_term_output_class): Likewise.
36015
36016 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
36017 (grub_term_get_current_output): Likewise.
36018 (grub_term_input_class): New variable.
36019 (grub_term_output_class): Likewise.
36020
36021 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
36022 (terminal_mod_SOURCES): Likewise.
36023 (terminal_mod_CFLAGS): Likewise.
36024 (terminal_mod_LDFLAGS): Likewise.
36025
36026 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
36027 handler.c.
36028 (kernel_img_SOURCES): Add list.c and handler.c.
36029 (kernel_img_HEADERS): Add list.h and handler.h.
36030
36031 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
36032 handler.c.
36033 (kernel_mod_SOURCES): Add list.c and handler.c.
36034 (kernel_mod_HEADERS): Add list.h and handler.h.
36035
36036 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
36037 handler.c.
36038 (kernel_elf_SOURCES): Add list.c and handler.c.
36039 (kernel_elf_HEADERS): Add list.h and handler.h.
36040
36041 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
36042 handler.c.
36043 (kernel_elf_SOURCES): Add list.c and handler.c.
36044 (kernel_elf_HEADERS): Add list.h and handler.h.
36045
36046 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
36047 handler.c.
36048 (kernel_mod_SOURCES): Add list.c and handler.c.
36049 (kernel_mod_HEADERS): Add list.h and handler.h.
36050
36051 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
36052 handler.c.
36053 (kernel_elf_SOURCES): Add list.c and handler.c.
36054 (kernel_elf_HEADERS): Add list.h and handler.h.
36055
36056 2009-02-27 Robert Millan <rmh@aybabtu.com>
36057
36058 Factorize elf32 / elf64 code in Multiboot loader. This will
36059 prevent it from getting out of sync again.
36060
36061 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
36062 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
36063 grub_multiboot_load_elf64): Move from here ...
36064 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
36065 grub_multiboot_load_elf): ... to here (new file).
36066
36067 2009-02-27 Robert Millan <rmh@aybabtu.com>
36068
36069 * util/grub.d/10_linux.in: Rename "single-user mode" to
36070 "recovery mode".
36071
36072 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
36073
36074 Don't leak in SCSI code.
36075 * disk/scsi.c (grub_scsi_close): free `scsi'.
36076
36077 2009-02-27 Robert Millan <rmh@aybabtu.com>
36078
36079 * loader/i386/pc/multiboot.c: Move from here ...
36080 * loader/i386/multiboot.c: ... to here. Update all users.
36081
36082 2009-02-27 Robert Millan <rmh@aybabtu.com>
36083
36084 Patch from Alexandre Bique <bique.alexandre@gmail.com>
36085 * util/i386/pc/grub-setup.c (setup): Fix directory path.
36086
36087 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
36088
36089 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
36090 b-tree.
36091
36092 2009-02-27 Robert Millan <rmh@aybabtu.com>
36093
36094 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
36095 `0x' qualifier as 0 when base is specified as parameter).
36096
36097 2009-02-24 Bean <bean123ch@gmail.com>
36098
36099 * configure.ac: Check for -mcmodel=large in x86_64 target.
36100
36101 * include/grub/efi/api.h (efi_call_10): New macro.
36102 (efi_wrap_10): New function.
36103
36104 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
36105 (GRUB_PE32_REL_BASED_HIGH): Likewise.
36106 (GRUB_PE32_REL_BASED_LOW): Likewise.
36107 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
36108 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
36109 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
36110 (GRUB_PE32_REL_BASED_SECTION): Likewise.
36111 (GRUB_PE32_REL_BASED_REL): Likewise.
36112 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
36113 (GRUB_PE32_REL_BASED_DIR64): Likewise.
36114 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
36115
36116 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
36117 issue.
36118
36119 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
36120 (efi_wrap_10): New function.
36121
36122 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
36123
36124 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
36125 MB/MBP model (NV chipset).
36126 (devdata_devs): Add devpath_5 to the list.
36127
36128 * load/i386/efi/linux.c (video_base): Remove variable.
36129 (RGB_MASK): New macro.
36130 (RGB_MAGIC): Likewise.
36131 (LINE_MIN): Likewise.
36132 (LINE_MAX): Likewise.
36133 (FBTEST_STEP): Likewise.
36134 (FBTEST_COUNT): Likewise.
36135 (fb_list): New variable.
36136 (grub_find_video_card): Remove function.
36137 (find_framebuf): New function.
36138 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
36139 line length.
36140
36141 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
36142 problem for x86_64.
36143
36144 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
36145
36146 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
36147
36148 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
36149 coding tool name.
36150
36151 2009-02-22 Robert Millan <rmh@aybabtu.com>
36152
36153 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
36154 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
36155 in our relocation, instead of using it directly from heap. Also
36156 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
36157
36158 2009-02-21 Robert Millan <rmh@aybabtu.com>
36159
36160 Implement USB keyboard support (based on patch by Marco Gerards)
36161
36162 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
36163 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
36164 (usb_keyboard_mod_LDFLAGS): New variables.
36165
36166 * term/usb_keyboard.c: New file.
36167
36168 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
36169
36170 Corrected wrong declaration
36171
36172 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
36173
36174 2009-02-14 Christian Franke <franke@computer.org>
36175
36176 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
36177 (grub_lspci_iter): Print class code and programming interface byte.
36178
36179 2009-02-14 Christian Franke <franke@computer.org>
36180
36181 * gendistlist.sh: Ignore `.svn' directories.
36182
36183 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
36184
36185 * fs/fat.c: Add 2009 to Copyright line.
36186
36187 2009-02-14 Christian Franke <franke@computer.org>
36188
36189 * commands/hdparm.c: New file. Provides `hdparm' command
36190 which sends ATA commands via grub_disk_ata_pass_through ().
36191
36192 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
36193
36194 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
36195 and <grub/cpu/io.h> to include/grub/ata.h.
36196 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
36197 (GRUB_CDROM_SECTOR_SIZE): Remove.
36198 (GRUB_ATA_*): Move to include/grub/ata.h.
36199 (GRUB_ATAPI_*): Likewise.
36200 (enum grub_ata_commands): Likewise.
36201 (enum grub_ata_timeout_milliseconds): Likewise.
36202 (struct grub_ata_device): Likewise.
36203 (grub_ata_regset): Likewise.
36204 (grub_ata_regget): Likewise.
36205 (grub_ata_regset2): Likewise.
36206 (grub_ata_regget2): Likewise.
36207 (grub_ata_check_ready): Likewise.
36208 (grub_ata_wait_not_busy): Remove static, exported in
36209 include/grub/ata.h.
36210 (grub_ata_wait_drq): Likewise.
36211 (grub_ata_pio_read): Likewise.
36212
36213 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
36214 function for hdparm.mod.
36215
36216 * include/grub/ata.h: New file, contains declarations from
36217 disk/ata.c.
36218 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
36219
36220 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
36221 (grub_disk_ata_pass_through): New exported variable.
36222
36223 * kern/disk.c (grub_disk_ata_pass_through): New variable.
36224
36225 2009-02-13 Colin D Bennett <colin@gibibit.com>
36226
36227 Support multiple fallback entries, and provide an API to support
36228 executing default+fallback menu entries. Renamed the `terminal' menu
36229 viewer to `text'.
36230
36231 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
36232 variable declaration.
36233 (grub_menu_execute_callback): New structure declaration.
36234 (grub_menu_execute_callback_t): New typedef.
36235 (grub_menu_execute_with_fallback): New function declaration.
36236 (grub_menu_get_entry): Likewise.
36237 (grub_menu_get_timeout): Likewise.
36238 (grub_menu_set_timeout): Likewise.
36239
36240 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
36241
36242 * normal/menu.c (grub_wait_after_message): Moved to
36243 `normal/menu_text.c'.
36244 (draw_border): Likewise.
36245 (print_message): Likewise.
36246 (print_entry): Likewise.
36247 (print_entries): Likewise.
36248 (grub_menu_init_page): Likewise.
36249 (get_entry_number): Likewise.
36250 (print_timeout): Likewise.
36251 (run_menu): Likewise.
36252 (grub_menu_execute_entry): Likewise.
36253 (show_text_menu): Likewise.
36254 (get_and_remove_first_entry_number): New function.
36255 (grub_menu_execute_with_fallback): Likewise.
36256 (get_entry): Renamed to ...
36257 (grub_menu_get_entry): .. this and made it global.
36258 (get_timeout): Renamed to ...
36259 (grub_menu_get_timeout): ... this and made it global.
36260 (set_timeout): Renamed to ...
36261 (grub_menu_set_timeout): ... this and made it global.
36262 (grub_normal_terminal_menu_viewer): Renamed to ...
36263 (grub_normal_text_menu_viewer): ... this.
36264
36265 * normal/menu_text.c: New file. Extracted text-menu-specific code
36266 from normal/menu.c.
36267
36268 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
36269 (normal_mod_SOURCES): Likewise.
36270
36271 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36272 (normal_mod_SOURCES): Likewise.
36273
36274 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36275 (normal_mod_SOURCES): Likewise.
36276
36277 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
36278 (normal_mod_SOURCES): Likewise.
36279
36280 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36281 (normal_mod_SOURCES): Likewise.
36282
36283 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36284 (normal_mod_SOURCES): Likewise.
36285
36286 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36287 (normal_mod_SOURCES): Likewise.
36288
36289 2009-02-11 Robert Millan <rmh@aybabtu.com>
36290
36291 * util/grub.d/00_header.in: Update old reference to `font' command.
36292
36293 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
36294
36295 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
36296
36297 Based on patch from Javier Martín.
36298
36299 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
36300
36301 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
36302 to avoid false positives with FAT.
36303 (grub_fstest_SOURCES): Likewise.
36304 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36305 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36306 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36307 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36308 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36309 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36310
36311 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
36312
36313 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
36314 bpb.version_specific.fat12_or_fat16.fstype and
36315 bpb.version_specific.fat32.fstype.
36316
36317 2009-02-08 Robert Millan <rmh@aybabtu.com>
36318
36319 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
36320
36321 2009-02-08 Robert Millan <rmh@aybabtu.com>
36322
36323 * Makefile.in (host_os, host_cpu): New variables.
36324 (target_os): Remove. Update all users.
36325
36326 2009-02-08 Marco Gerards <marco@gnu.org>
36327
36328 * Makefile.in (enable_grub_emu_usb): New variable.
36329 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
36330 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
36331 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
36332 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
36333 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
36334 `usbtest.mod' and `usbms.mod'.
36335 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
36336 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
36337 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
36338 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
36339 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
36340 variables.
36341
36342 * disk/usbms.c: New file.
36343
36344 * include/grub/usb.h: Likewise.
36345
36346 * include/grub/usbtrans.h: Likewise.
36347
36348 * include/grub/usbdesc.h: Likewise.
36349
36350 * bus/usb/usbtrans.c: Likewise.
36351
36352 * bus/usb/ohci.c: Likewise.
36353
36354 * bus/usb/uhci.c: Likewise.
36355
36356 * bus/usb/usbhub.c: Likewise.
36357
36358 * bus/usb/usb.c: Likewise.
36359
36360 * commands/usbtest.c: Likewise.
36361
36362 * util/usb.c: Likewise.
36363
36364 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
36365
36366 * configure.ac: Test for libusb presence.
36367
36368 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
36369
36370 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
36371
36372 * kern/mm.c: Add more comments.
36373
36374 2009-02-08 Robert Millan <rmh@aybabtu.com>
36375
36376 Patch from Javier Martín.
36377 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
36378 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
36379
36380 2009-02-08 Robert Millan <rmh@aybabtu.com>
36381
36382 * fs/cpio.c: Split tar functionality to ...
36383 * fs/tar.c: ... here (new file). Update all users.
36384
36385 2009-02-07 Robert Millan <rmh@aybabtu.com>
36386
36387 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
36388 backward-incompatible features.
36389
36390 Based on patch from Javier Martín, with some adjustments.
36391
36392 2009-02-07 Michael Scherer <misc@mandriva.org>
36393
36394 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
36395
36396 2009-02-07 Robert Millan <rmh@aybabtu.com>
36397
36398 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
36399 position of `disk/lvm.c' to ensure grub_init_all() always picks it
36400 after the RAID stuff.
36401
36402 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
36403
36404 Fixes problem when running vbetest command as reported by
36405 Vladimir Serbinenko <phcoder@gmail.com>.
36406
36407 * (grub_vbe_set_video_mode): Fixed problem with text modes.
36408
36409 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
36410
36411 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
36412 /dev/md/NpN style mdraid devices.
36413
36414 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
36415
36416 * util/unifont2pff.rb: Remove.
36417
36418 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
36419
36420 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
36421 `#'.
36422
36423 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
36424
36425 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
36426 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36427 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36428 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36429 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36430 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36431 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36432
36433 2009-02-02 Christian Franke <franke@computer.org>
36434
36435 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
36436
36437 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
36438
36439 * INSTALL: Note that we now require at least autoconf 2.59 and
36440 that LZO is optional.
36441
36442 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
36443
36444 Base on patch on bug #24154 created by Tomas Tintera
36445 <trosos@seznam.cz>.
36446
36447 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
36448
36449 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
36450
36451 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
36452 <bero@arklinux.org>.
36453
36454 * normal/parser.y (script_init): Add missing semicolon.
36455
36456 2009-01-31 Colin D Bennett <colin@gibibit.com>
36457
36458 * normal/main.c: Add include to grub/menu_viewer.h.
36459 (free_menu_entry_classes): Added.
36460 (grub_normal_menu_addentry): Added class property handling.
36461 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
36462 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
36463
36464 * normal/menu_viewer.c: New file.
36465
36466 * normal/menu.c (run_menu_entry): Renamed to ...
36467 (grub_menu_execute_entry): ... this and made it as global.
36468 (grub_menu_run): Renamed to ...
36469 (show_text_menu): ... this and made it local.
36470 (show_text_menu): Adapt to new function names.
36471 (grub_normal_terminal_menu_viewer): New global variable.
36472
36473 * include/grub/menu.h: New file.
36474
36475 * include/grub/menu_viewer.h: New file.
36476
36477 * include/grub/normal.h: Added include to grub/menu.h.
36478 (grub_menu_entry): Moved to include/grub/menu.h.
36479 (grub_menu_entry_t): Likewise.
36480 (grub_menu): Likewise.
36481 (grub_menu_t): Likewise.
36482 (grub_normal_terminal_menu_viewer): Added.
36483 (grub_menu_execute_entry): Likewise.
36484 (grub_menu_run): Removed.
36485
36486 * DISTLIST: Added include/grub/menu.h.
36487 Added include/grub/menu_viewer.h.
36488 Added normal/menu_viewer.c.
36489
36490 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
36491
36492 * normal/execute.c (grub_script_execute_menuentry): Changed to use
36493 arglist for menutitle arguments.
36494
36495 * normal/main.c (grub_normal_menu_addentry): Likewise.
36496
36497 * normal/parser.y (menuentry): Likewise.
36498
36499 * normal/script.c (grub_script_create_cmdmenu): Likewise.
36500
36501 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
36502 (grub_script_create_cmdmenu): Likewise.
36503
36504 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
36505
36506 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
36507 changes.
36508
36509 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
36510
36511 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
36512
36513 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
36514
36515 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
36516
36517 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
36518
36519 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
36520
36521 2009-01-30 Christian Franke <franke@computer.org>
36522
36523 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
36524 in option help text.
36525
36526 2009-01-27 Pavel Roskin <proski@gnu.org>
36527
36528 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
36529
36530 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
36531
36532 * commands/lsmmap.c: Add include to grub/machine/memory.h.
36533
36534 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
36535
36536 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
36537 unregister function.
36538
36539 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
36540
36541 * disk/scsi.c (grub_scsi_read): Fix sign problem.
36542
36543 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
36544
36545 * util/grub-mkfont.c (usage): Fix typo.
36546
36547 * util/elf/grub-mkimage.c (load_modules): Fix warning.
36548
36549 2009-01-26 Daniel Mierswa <impulze@impulze.org>
36550
36551 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
36552
36553 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
36554
36555 * kern/misc.c (grub_strcasecmp): New function.
36556 (grub_strcasecmp): Use grub_size_t instead of int for length.
36557 Fix return value.
36558 * include/grub/misc.h: Update function prototypes.
36559
36560 2009-01-26 Robert Millan <rmh@aybabtu.com>
36561
36562 * configure.ac: Fix cross-compilation check.
36563
36564 2009-01-22 Christian Franke <franke@computer.org>
36565
36566 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
36567 (precision) digit string. Allow `.format2' without `format1' (width).
36568 Limit input chars for `%s' output to `format2' if specified. This is
36569 compatible with standard printf ().
36570
36571 2009-01-22 Christian Franke <franke@computer.org>
36572
36573 * disk/ata.c (grub_ata_wait_status): Replace by ...
36574 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
36575 other status bits may be invalid while BSY is asserted.
36576 (grub_ata_check_ready): New function.
36577 (grub_ata_cmd): Removed.
36578 (grub_ata_wait_drq): New function.
36579 (grub_ata_strncpy): Remove inline.
36580 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
36581 and error check now done by grub_ata_wait_drq ().
36582 (grub_ata_pio_write): Likewise.
36583 (grub_atapi_identify): Set DEV before check for !BSY. Use
36584 grub_ata_wait_drq () to wait for data.
36585 (grub_ata_device_initialize): Add status register check to
36586 detect missing SATA slave devices. Add debug messages.
36587 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
36588 (grub_atapi_packet): Set DEV before check for !BSY. Replace
36589 transfer loop by grub_ata_pio_write ().
36590 (grub_ata_identify): Set DEV before check for !BSY. Use
36591 grub_ata_wait_drq () to wait for data.
36592 (grub_ata_setaddress): Set DEV before check for !BSY.
36593 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
36594 read/write in one loop. Fix invalid command on write. Fix incomplete
36595 command on (size % batch) == 0. Add missing error check after write of
36596 last block. Add debug messages.
36597 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
36598
36599 2009-01-19 Christian Franke <franke@computer.org>
36600
36601 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
36602 (GRUB_ATAPI_IREASON_*): Likewise.
36603 (grub_ata_pio_write): Fix timeout error return.
36604 (grub_atapi_identify): Add grub_ata_wait () after cmd.
36605 (grub_atapi_wait_drq): New function.
36606 (grub_atapi_packet): New parameter `size'.
36607 Use grub_atapi_wait_drq () and direct write instead of
36608 grub_ata_pio_write ().
36609 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
36610 reads the number of bytes requested by the device for each DRQ
36611 assertion.
36612 (grub_atapi_write): Remove old implementation, return not
36613 implemented instead.
36614
36615 2009-01-19 Christian Franke <franke@computer.org>
36616
36617 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
36618 of 512 to calculate data size.
36619 (grub_scsi_read12): Likewise.
36620 (grub_scsi_write10): Likewise.
36621 (grub_scsi_write12): Likewise.
36622 (grub_scsi_read): Adjust size according to blocksize.
36623 Add checks for invalid blocksize and unaligned transfer.
36624
36625 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
36626
36627 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
36628
36629 * term/gfxterm.c (write_char): Fix background rendering for wide
36630 width glyphs.
36631
36632 2009-01-19 Robert Millan <rmh@aybabtu.com>
36633
36634 * config.guess: Update to latest version from config git.
36635 * config.sub: Likewise.
36636
36637 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
36638
36639 * Makefile.in: Change font compilation to use new grub-mkfont instead
36640 of java version.
36641
36642 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
36643 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
36644 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
36645 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
36646 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
36647 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
36648 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
36649 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
36650 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
36651
36652 2009-01-16 Christian Franke <franke@computer.org>
36653
36654 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
36655 (enum grub_ata_timeout_milliseconds): New enum.
36656 (grub_ata_wait_status): Add parameter milliseconds.
36657 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
36658 recovery from timed-out commands.
36659 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
36660 return grub_errno instead of REG_ERROR.
36661 (grub_ata_pio_write): Add parameter milliseconds.
36662 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
36663 Pass milliseconds to grub_ata_wait_status () and
36664 grub_ata_pio_read ().
36665 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
36666 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
36667 grub_ata_wait_status (). Fix IDENTIFY timeout check.
36668 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
36669 It is not suitable for device detection, because DEV bit is ignored,
36670 the command may run too long, and not all devices set the signature
36671 properly.
36672 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
36673 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
36674 Fix device selection, DEV bit must be set first to address the registers
36675 of the correct device.
36676 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
36677 grub_ata_pio_read/write ().
36678 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
36679 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
36680
36681 2009-01-13 Carles Pina i Estany <carles@pina.cat>
36682
36683 * util/grub-editenv.c (main): Use fseeko(), not fseek().
36684
36685 2009-01-13 Bean <bean123ch@gmail.com>
36686
36687 * util/grub-mkfont.c (write_font): forget to remove some debug code.
36688
36689 2009-01-13 Bean <bean123ch@gmail.com>
36690
36691 * Makefile.in: (enable_grub_mkfont): New variable.
36692 (freetype_cflags): Likewise.
36693 (freetype_libs): Likewise.
36694
36695 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
36696 (grub_mkfont_SOURCES): New variable.
36697 (grub_mkfont_CFLAGS): Likewise.
36698 (grub_mkfont_LDFLAGS): Likewise.
36699
36700 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
36701 library if `--enable-grub-mkfont' is requested.
36702 (enable_grub_mkfont): New variable.
36703 (freetype_cflags): Likewise.
36704 (freetype_libs): Likewise.
36705
36706 * util/grub-mkfont.c: New file.
36707
36708 2009-01-12 Christian Franke <franke@computer.org>
36709
36710 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
36711 mode check. Fix setting of compat_use[].
36712
36713 2009-01-10 Robert Millan <rmh@aybabtu.com>
36714
36715 Update a few copyright years which we forgot to do in 2008 (only for
36716 files whose changes made in 2008 were copyright-significant)
36717
36718 * Makefile.in: Add 2008 to Copyright line.
36719 * disk/ieee1275/ofdisk.c: Likewise.
36720 * disk/efi/efidisk.c: Likewise.
36721 * kern/dl.c: Likewise.
36722 * kern/sparc64/ieee1275/init.c: Likewise.
36723 * kern/mm.c: Likewise.
36724 * kern/efi/mm.c: Likewise.
36725 * boot/i386/pc/boot.S: Likewise.
36726 * genfslist.sh: Likewise.
36727 * fs/iso9660.c: Likewise.
36728 * fs/hfs.c: Likewise.
36729 * fs/jfs.c: Likewise.
36730 * fs/minix.c: Likewise.
36731 * fs/ufs.c: Likewise.
36732 * gensymlist.sh.in: Likewise.
36733 * genkernsyms.sh.in: Likewise.
36734 * include/grub/misc.h: Likewise.
36735 * include/grub/types.h: Likewise.
36736 * include/grub/symbol.h: Likewise.
36737 * include/grub/elf.h: Likewise.
36738 * include/grub/kernel.h: Likewise.
36739 * include/grub/disk.h: Likewise.
36740 * include/grub/dl.h: Likewise.
36741 * include/grub/i386/linux.h: Likewise.
36742 * include/grub/i386/pc/biosdisk.h: Likewise.
36743 * include/grub/efi/api.h: Likewise.
36744 * include/grub/efi/pe32.h: Likewise.
36745 * include/grub/util/misc.h: Likewise.
36746 * normal/execute.c: Likewise.
36747 * normal/arg.c: Likewise.
36748 * normal/completion.c: Likewise.
36749 * normal/lexer.c: Likewise.
36750 * normal/parser.y: Likewise.
36751 * normal/misc.c: Likewise.
36752 * commands/i386/pc/vbeinfo.c: Likewise.
36753 * commands/hexdump.c: Likewise.
36754 * commands/terminal.c: Likewise.
36755 * commands/ls.c: Likewise.
36756 * commands/help.c: Likewise.
36757 * partmap/pc.c: Likewise.
36758 * loader/efi/chainloader.c: Likewise.
36759 * loader/multiboot_loader.c: Likewise.
36760 * loader/i386/pc/multiboot2.c: Likewise.
36761 * term/efi/console.c: Likewise.
36762 * term/i386/pc/serial.c: Likewise.
36763 * util/lvm.c: Likewise.
36764 * util/console.c: Likewise.
36765 * util/i386/efi/grub-mkimage.c: Likewise.
36766 * util/raid.c: Likewise.
36767
36768 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
36769
36770 * commands/videotest.c: Removed include to grub/machine/memory.h.
36771
36772 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
36773 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
36774 (video_mod_SOURCES): Removed.
36775 (video_mod_CFLAGS): Likewise.
36776 (video_mod_LDFLAGS): Likewise.
36777 (gfxterm_mod_SOURCES): Likewise.
36778 (gfxterm_mod_CFLAGS): Likewise.
36779 (gfxterm_mod_LDFLAGS): Likewise.
36780 (videotest_mod_SOURCES): Likewise.
36781 (videotest_mod_CFLAGS): Likewise.
36782 (videotest_mod_LDFLAGS): Likewise.
36783 (bitmap_mod_SOURCES): Likewise.
36784 (bitmap_mod_CFLAGS): Likewise.
36785 (bitmap_mod_LDFLAGS): Likewise.
36786 (tga_mod_SOURCES): Likewise.
36787 (tga_mod_CFLAGS): Likewise.
36788 (tga_mod_LDFLAGS): Likewise.
36789 (jpeg_mod_SOURCES): Likewise.
36790 (jpeg_mod_CFLAGS): Likewise.
36791 (jpeg_mod_LDFLAGS): Likewise.
36792 (png_mod_SOURCES): Likewise.
36793 (png_mod_CFLAGS): Likewise.
36794 (png_mod_LDFLAGS): Likewise.
36795
36796 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
36797 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
36798 (video_mod_SOURCES): Added.
36799 (video_mod_CFLAGS): Likewise.
36800 (video_mod_LDFLAGS): Likewise.
36801 (videotest_mod_SOURCES): Likewise.
36802 (videotest_mod_CFLAGS): Likewise.
36803 (videotest_mod_LDFLAGS): Likewise.
36804 (bitmap_mod_SOURCES): Likewise.
36805 (bitmap_mod_CFLAGS): Likewise.
36806 (bitmap_mod_LDFLAGS): Likewise.
36807 (tga_mod_SOURCES): Likewise.
36808 (tga_mod_CFLAGS): Likewise.
36809 (tga_mod_LDFLAGS): Likewise.
36810 (jpeg_mod_SOURCES): Likewise.
36811 (jpeg_mod_CFLAGS): Likewise.
36812 (jpeg_mod_LDFLAGS): Likewise.
36813 (png_mod_SOURCES): Likewise.
36814 (png_mod_CFLAGS): Likewise.
36815 (png_mod_LDFLAGS): Likewise.
36816 (gfxterm_mod_SOURCES): Likewise.
36817 (gfxterm_mod_CFLAGS): Likewise.
36818 (gfxterm_mod_LDFLAGS): Likewise.
36819
36820 * term/gfxterm.c: Removed include to grub/machine/memory.h,
36821 grub/machine/console.h.
36822
36823 2009-01-04 Jerone Young <jerone@gmail.com>
36824
36825 Make on screen instructions clearer
36826
36827 Based on patch created by Jidanni <jidanni@jidanni.org>
36828
36829 * normal/menu.c: print clearer instructions on the screen
36830
36831 2009-01-02 Colin D Bennett <colin@gibibit.com>
36832
36833 New font engine.
36834
36835 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
36836 build system and fixed gfxterm.c to work with different sized fonts.
36837
36838 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
36839
36840 * configure: Re-generated.
36841
36842 * DISTLIST: Removed font/manager.c.
36843 Added font/font.c.
36844 Added font/font_cmd.c.
36845
36846 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
36847 compilation.
36848
36849 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
36850
36851 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
36852
36853 * kern/term.c: Changed users of grub_utf8_to_ucs4.
36854
36855 * normal/menu.c: Likewise.
36856
36857 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
36858 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
36859
36860 * include/grub/font.h: Replaced with new file.
36861
36862 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
36863 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
36864 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
36865 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
36866 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
36867 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
36868 fg_red, fg_green, fg_blue, fg_alpha.
36869 (grub_video_adapter): Removed blit_glyph.
36870 (grub_video_blit_glyph): Removed.
36871
36872 * font/manager.c: Removed file.
36873
36874 * font/font.c: New file.
36875
36876 * font/font_cmd.c: Likewise.
36877
36878 * video/video.c (grub_video_blit_glyph): Removed.
36879
36880 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
36881 (grub_video_vbe_map_rgba): Likewise.
36882 (grub_video_vbe_unmap_color_int): Likewise.
36883 (grub_video_vbe_blit_glyph): Removed.
36884 (grub_video_vbe_adapter): Removed blit_glyph.
36885
36886 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
36887 (get_pixel): Likewise.
36888 (set_pixel): Likewise.
36889
36890 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
36891
36892 * term/gfxterm.c: Adapted to new font engine.
36893
36894 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
36895
36896 * term/i386/pc/vga.c: Likewise.
36897
36898 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
36899
36900 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
36901
36902 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
36903
36904 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
36905
36906 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
36907
36908 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
36909
36910 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
36911
36912 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
36913
36914 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
36915
36916 * util/grub.d/00_header.in: Changed to use new loadfont command.
36917
36918 * util/grub-mkconfig_lib.in: Changed font extension.
36919
36920 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
36921
36922 * util/getroot.c (grub_util_get_grub_dev): Add support for
36923 /dev/md/dNNpNN style partitionable mdraid devices.
36924
36925 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
36926
36927 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
36928 at a time limit of the PXE TFTP API correctly.
36929 (grub_pxefs_close): Likewise.
36930
36931 2008-11-29 Robert Millan <rmh@aybabtu.com>
36932
36933 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
36934 grub_ata_device_initialize() calls.
36935
36936 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
36937
36938 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
36939 iteration failed.
36940 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
36941
36942 2008-11-28 Robert Millan <rmh@aybabtu.com>
36943
36944 Fix build on powerpc-ieee1275. Based on patch created by
36945 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
36946 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
36947 `kern/ieee1275/mmap.c'.
36948 * include/grub/powerpc/ieee1275/memory.h: New file.
36949
36950 Provide grub-install on coreboot.
36951 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
36952 (grub_install_SOURCES): New variable.
36953 * util/i386/pc/grub-install.in: Add a few condition checks to make it
36954 usable on coreboot.
36955
36956 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
36957
36958 * util/grub-fstest.c (grub_term_get_current_input): Change return type
36959 to `grub_term_input_t'.
36960 (grub_term_get_current_output): Change return type to
36961 `grub_term_output_t'.
36962
36963 2008-11-22 Robert Millan <rmh@aybabtu.com>
36964
36965 Fix breakage on coreboot due to declaration mismatch.
36966 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
36967 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
36968 grub_vga_text_cls().
36969
36970 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
36971 comments. Avoid copying one more byte than necessary (just in case).
36972
36973 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
36974 to 0x200000 (avoids trouble with some OFW implementations, and matches
36975 with the one in Yaboot).
36976 Reported by Manoel Abranches
36977
36978 2008-11-20 Robert Millan <rmh@aybabtu.com>
36979
36980 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
36981 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
36982
36983 * util/grub-mkconfig_lib.in (grub_warn): New function.
36984 (convert_system_path_to_grub_path): Use grub_warn() when issuing
36985 warnings, to obtain consistent formatting.
36986 * util/grub.d/00_header.in: Likewise.
36987 * util/update-grub_lib.in: Likewise.
36988
36989 * loader/i386/linux.c (allocate_pages): Fix a warning.
36990 Move comment text to `#error' stanza.
36991
36992 Harmonize ieee1275's grub_available_iterate() with the generic
36993 grub_machine_mmap_iterate() interface (fixes a recently-introduced
36994 build problem on i386-ieee1275):
36995 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
36996 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
36997 parameter `type'. Update all users of this function.
36998 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
36999 `kern/ieee1275/mmap.c'.
37000 * kern/ieee1275/init.c
37001 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
37002 with ...
37003 (grub_machine_mmap_iterate): ... this.
37004 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
37005 return type to `grub_err_t'. Update all implementations of this
37006 function prototype.
37007 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
37008 Likewise.
37009
37010 Add `lsmmap' command (lists firmware-provided memory map):
37011 * commands/lsmmap.c: New file.
37012 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
37013 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
37014 variables.
37015 * conf/powerpc-ieee1275.rmk: Likewise.
37016 * conf/i386-coreboot.rmk: Likewise.
37017 * conf/i386-ieee1275.rmk: Likewise.
37018
37019 2008-11-19 Robert Millan <rmh@aybabtu.com>
37020
37021 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
37022 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
37023 constraints to initrd allocation (based on code from
37024 loader/i386/pc/linux.c). Without them, initrd was allocated too high
37025 for Linux to find it.
37026
37027 2008-11-14 Robert Millan <rmh@aybabtu.com>
37028
37029 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
37030 order to cope with duplicate slashes.
37031
37032 2008-11-14 Robert Millan <rmh@aybabtu.com>
37033
37034 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
37035 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
37036 don't want to mess with lower memory, because it is used in the Linux
37037 loader.
37038
37039 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
37040 an appropriate place in lower memory, between 0x10000 and 0x90000,
37041 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
37042 is in our heap (probably as a result of it being corrupted during
37043 decompression). Add #error instance with comment to explain why this
37044 loader isn't currently usable on PC/BIOS.
37045
37046 2008-11-14 Robert Millan <rmh@aybabtu.com>
37047
37048 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
37049 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
37050
37051 2008-11-12 Robert Millan <rmh@aybabtu.com>
37052
37053 Make loader/i386/linux.c buildable on i386-pc (although disabled).
37054
37055 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
37056 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
37057 from here ...
37058 * include/grub/i386/pc/memory.h: ... to here.
37059
37060 2008-11-12 Robert Millan <rmh@aybabtu.com>
37061
37062 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
37063 split).
37064
37065 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
37066 (grub_console_cur_color, grub_console_real_putchar)
37067 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
37068 (grub_console_setcolorstate, grub_console_setcolor)
37069 (grub_console_getcolor): Move from here ...
37070 * include/grub/i386/vga_common.h: ... to here (new file).
37071
37072 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
37073 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
37074 `<grub/i386/io.h>'.
37075 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
37076 `<grub/i386/vga_common.h>'.
37077
37078 2008-11-12 Robert Millan <rmh@aybabtu.com>
37079
37080 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
37081 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
37082 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
37083 variables.
37084 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
37085 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
37086
37087 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
37088 grub_console_init() with call to grub_vga_text_init().
37089 (grub_machine_fini): Replace call to
37090 grub_console_fini() with call to grub_vga_text_fini() and
37091 grub_at_keyboard_fini().
37092
37093 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
37094 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
37095 (grub_console_setcolorstate, grub_console_setcolor)
37096 (grub_console_getcolor): New function prototypes.
37097
37098 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
37099 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
37100 (grub_vga_text_setcursor): Static-ize.
37101 (grub_vga_text_term): New structure.
37102 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
37103
37104 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
37105 (grub_console_cur_color, grub_console_standard_color)
37106 (grub_console_normal_color, grub_console_highlight_color)
37107 (map_char, grub_console_putchar, grub_console_getcharwidth)
37108 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
37109 (grub_console_getcolor): Move from here ...
37110 * term/i386/vga_common.c: ... to here (same function names).
37111
37112 2008-11-12 Robert Millan <rmh@aybabtu.com>
37113
37114 Use newly-added Multiboot support in coreboot.
37115
37116 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
37117 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
37118
37119 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
37120 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
37121 (codestart): Store the MBI in `startup_multiboot_info' when we're
37122 being loaded using Multiboot.
37123
37124 * kern/i386/coreboot/init.c (grub_machine_init): Move
37125 grub_at_keyboard_init() call to beginning of function (useful for
37126 debugging). Call grub_machine_mmap_init() before attempting to use
37127 grub_machine_mmap_iterate().
37128 (grub_lower_mem, grub_upper_mem): Move from here ...
37129 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
37130 here (new file).
37131
37132 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
37133 function prototype.
37134
37135 2008-11-12 Robert Millan <rmh@aybabtu.com>
37136
37137 Fix a regression introduced by the at_keyboard.mod split. Because
37138 some terminals are default on some platforms and non-default on
37139 others, the first terminal being registered determines which is
37140 going to be default.
37141
37142 * kern/term.c (grub_term_register_input): If this is the first
37143 terminal being registered, set it as the current one.
37144 (grub_term_register_output): Likewise.
37145
37146 * term/efi/console.c (grub_console_init): Do not call
37147 grub_term_set_current_output() or grub_term_set_current_input().
37148 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
37149 * term/i386/pc/console.c (grub_console_init): Likewise.
37150 (grub_console_fini): Do not call grub_term_set_current_input()
37151 (but leave grub_term_set_current_output() to restore text mode).
37152
37153 2008-11-10 Robert Millan <rmh@aybabtu.com>
37154
37155 * util/grub.d/00_header.in: Add backward compatibility check for
37156 versions of terminal.mod that don't understand `terminal_input' or
37157 `terminal_output'.
37158
37159 2008-11-09 Robert Millan <rmh@aybabtu.com>
37160
37161 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
37162 `terminal_input' / `terminal_output', not `terminal'.
37163
37164 2008-11-08 Robert Millan <rmh@aybabtu.com>
37165
37166 * Makefile.in (include_DATA): Fix srcdir=. assumption.
37167 (DISTCLEANFILES): Add `build_env.mk'.
37168
37169 2008-11-08 Robert Millan <rmh@aybabtu.com>
37170
37171 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
37172 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
37173 members. Update all users.
37174 * util/console.c (grub_ncurses_term): Split in ...
37175 (grub_ncurses_term_input): ... this, and ...
37176 (grub_ncurses_term_output): ... this. Update all users.
37177 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
37178
37179 2008-11-08 Robert Millan <rmh@aybabtu.com>
37180
37181 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
37182 (PKGDATA): Add $(pkgdata_SRCDIR).
37183 (pkglib_BUILDDIR): New variable.
37184 (pkgdata_SRCDIR): New variable.
37185 (build_env.mk): New target.
37186 (include_DATA): New variable.
37187 (install-local): Install $(include_DATA) files in $(includedir).
37188
37189 2008-11-07 Pavel Roskin <proski@gnu.org>
37190
37191 * gendistlist.sh: Use C locale for sorting to ensure consistent
37192 output on all systems.
37193
37194 * util/grub.d/00_header.in: Remove incorrect space before
37195 "serial".
37196
37197 2008-11-07 Robert Millan <rmh@aybabtu.com>
37198
37199 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
37200 per specification.
37201 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
37202 * loader/multiboot_loader.c (find_multi_boot2_header): New function
37203 (based on find_multi_boot1_header).
37204 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
37205 using find_multi_boot2_header(), and abort if neither Multiboot or
37206 Multiboot headers were found.
37207
37208 2008-11-07 Robert Millan <rmh@aybabtu.com>
37209
37210 Modularize at_keyboard.mod:
37211
37212 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
37213 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
37214 (at_keyboard_mod_LDFLAGS): New variables.
37215
37216 Actual terminal split:
37217
37218 * include/grub/term.h (struct grub_term): Split in ...
37219 (struct grub_term_input): ... this, and ...
37220 (struct grub_term_output): ... this. Update all users.
37221 (grub_term_set_current): Split in ...
37222 (grub_term_set_current_input): ... this, and ...
37223 (grub_term_set_current_output): ... this.
37224 (grub_term_get_current): Split in ...
37225 (grub_term_get_current_input): ... this, and ...
37226 (grub_term_get_current_output): ... this.
37227 (grub_term_register): Split in ...
37228 (grub_term_register_input): ... this, and ...
37229 (grub_term_register_output): ... this.
37230 (grub_term_unregister): Split in ...
37231 (grub_term_unregister_input): ... this, and ...
37232 (grub_term_unregister_output): ... this.
37233 (grub_term_iterate): Split in ...
37234 (grub_term_iterate_input): ... this, and ...
37235 (grub_term_iterate_output): ... this.
37236
37237 * kern/term.c (grub_term_list): Split in ...
37238 (grub_term_list_input): ... this, and ...
37239 (grub_term_list_output): ... this. Update all users.
37240 (grub_cur_term): Split in ...
37241 (grub_cur_term_input): ... this, and ...
37242 (grub_cur_term_output): ... this. Update all users.
37243 (grub_term_set_current): Split in ...
37244 (grub_term_set_current_input): ... this, and ...
37245 (grub_term_set_current_output): ... this.
37246 (grub_term_get_current): Split in ...
37247 (grub_term_get_current_input): ... this, and ...
37248 (grub_term_get_current_output): ... this.
37249 (grub_term_register): Split in ...
37250 (grub_term_register_input): ... this, and ...
37251 (grub_term_register_output): ... this.
37252 (grub_term_unregister): Split in ...
37253 (grub_term_unregister_input): ... this, and ...
37254 (grub_term_unregister_output): ... this.
37255 (grub_term_iterate): Split in ...
37256 (grub_term_iterate_input): ... this, and ...
37257 (grub_term_iterate_output): ... this.
37258
37259 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
37260 a check for input and one for output (and only attempt to get keys
37261 from user when input works).
37262
37263 * util/grub-probe.c (grub_term_get_current): Split in ...
37264 (grub_term_get_current_input): ... this, and ...
37265 (grub_term_get_current_output): ... this.
37266 * util/grub-fstest.c: Likewise.
37267 * util/i386/pc/grub-setup.c: Likewise.
37268 * util/grub-editenv.c: Likewise.
37269
37270 Portability adjustments:
37271
37272 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
37273 `term/i386/pc/at_keyboard.c'.
37274 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
37275 grub_keyboard_controller_init() (now handled by terminal .init).
37276 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
37277 grub_at_keyboard_init().
37278 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
37279 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
37280 at_keyboard.mod via input terminal interface).
37281 * include/grub/i386/coreboot/console.h: Convert into a stub for
37282 `<grub/i386/pc/console.h>'.
37283
37284 Migrate full terminals to new API:
37285
37286 * term/efi/console.c (grub_console_term): Split into ...
37287 (grub_console_term_input): ... this, and ...
37288 (grub_console_term_output): ... this. Update all users.
37289 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
37290 (grub_ofconsole_init): Split into ...
37291 (grub_ofconsole_init_input): ... this, and ...
37292 (grub_ofconsole_init_output): ... this.
37293 (grub_ofconsole_term): Split into ...
37294 (grub_ofconsole_term_input): ... this, and ...
37295 (grub_ofconsole_term_output): ... this. Update all users.
37296 * term/i386/pc/serial.c (grub_serial_term): Split into ...
37297 (grub_serial_term_input): ... this, and ...
37298 (grub_serial_term_output): ... this. Update all users.
37299 * term/i386/pc/console.c (grub_console_term): Split into ...
37300 (grub_console_term_input): ... this, and ...
37301 (grub_console_term_output): ... this. Update all users.
37302 (grub_console_term_input): Only enable it on PC/BIOS platform.
37303 (grub_console_init): Remove grub_keyboard_controller_init() call.
37304
37305 Migrate input terminals to new API:
37306
37307 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
37308 `i386' and `i386/pc' to enable build on x86_64 (this driver is
37309 i386-specific anyway).
37310 (grub_console_checkkey): Rename to ...
37311 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
37312 users.
37313 (grub_keyboard_controller_orig): New variable.
37314 (grub_console_getkey): Rename to ...
37315 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
37316 users.
37317 (grub_keyboard_controller_init): Static-ize. Save original
37318 controller value so that it can be restored ...
37319 (grub_keyboard_controller_fini): ... here (new function).
37320 (grub_at_keyboard_term): New structure.
37321 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
37322 functions.
37323
37324 Migrate output terminals to new API:
37325
37326 * term/i386/pc/vga.c (grub_vga_term): Change type to
37327 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
37328 members. Update all users.
37329 * term/gfxterm.c (grub_video_term): Change type to
37330 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
37331 members. Update all users.
37332 * include/grub/i386/pc/console.h (grub_console_checkkey)
37333 (grub_console_getkey): Do not export (no longer needed by gfxterm,
37334 etc).
37335
37336 Migrate `terminal' command and userland tools to new API:
37337
37338 * commands/terminal.c (grub_cmd_terminal): Split into ...
37339 (grub_cmd_terminal_input): ... this, and ...
37340 (grub_cmd_terminal_output): ... this.
37341 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
37342 `terminal_input' and `terminal_output'.
37343 * util/grub.d/00_header.in: Adjust `terminal' calls to new
37344 `terminal_input' / `terminal_output' API.
37345 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
37346 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
37347 provided ${GRUB_TERMINAL}, convert it).
37348
37349 2008-11-04 Robert Millan <rmh@aybabtu.com>
37350
37351 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
37352 for FreeBSD.
37353 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
37354
37355 2008-11-03 Bean <bean123ch@gmail.com>
37356
37357 * kern/elf.c (grub_elf32_load): Revert to previous code.
37358 (grub_elf64_load): Likewise.
37359
37360 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
37361
37362 2008-11-01 Robert Millan <rmh@aybabtu.com>
37363
37364 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
37365 (TARGET_CPPFLAGS): Likewise.
37366 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
37367
37368 2008-11-01 Carles Pina i Estany <carles@pina.cat>
37369
37370 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
37371
37372 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
37373
37374 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
37375 addition of objects until the code is not going to be able to fail.
37376
37377 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
37378
37379 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
37380 (add a missing NULL check, and correct them by moving the pointer
37381 operations after the actual check).
37382
37383 2008-10-29 Robert Millan <rmh@aybabtu.com>
37384
37385 * util/i386/pc/grub-install.in: Handle empty string as output from
37386 make_system_path_relative_to_its_root().
37387
37388 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
37389
37390 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
37391 circular metadata worst case scenario. If the metadata is circular
37392 then copy the wrap in place.
37393 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
37394 project lib/format_text/layout.h
37395 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
37396
37397 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
37398
37399 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
37400
37401 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
37402
37403 * util/update-grub_lib.in: Mention filename in warning message.
37404
37405 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
37406
37407 * NEWS: Update for rename of update-grub to grub-mkconfig.
37408
37409 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
37410
37411 * util/update-grub_lib.in: Copy to ...
37412 * util/grub-mkconfig_lib.in: ... this. Update all users.
37413 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
37414 * util/update-grub.in: Rename to ...
37415 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
37416 option. Add `--output' option to allow users to specify the generated
37417 configuration file. Default to stdout.
37418 (update_grub_dir): Rename to ...
37419 (grub_mkconfig_dir): ... this.
37420 (grub_cfg): Default to an empty string.
37421 * conf/common.rmk (update-grub): Rename to ...
37422 (grub-mkconfig): ... this.
37423 (update-grub_lib): Copy to ...
37424 (grub-mkconfig_lib): ... this.
37425 (update-grub_SCRIPTS): Copy to ...
37426 (grub-mkconfig_SCRIPTS): ... this. Update all users.
37427 (update-grub_DATA): Rename to ...
37428 (grub-mkconfig_DATA): ... this.
37429
37430 2008-09-28 Robert Millan <rmh@aybabtu.com>
37431
37432 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
37433 to `modified'. Add the real `created' field.
37434 (grub_iso9660_uuid): Use `modified' rather than `created' for
37435 constructing the UUID.
37436
37437 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
37438
37439 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
37440 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
37441
37442 2008-09-28 Bean <bean123ch@gmail.com>
37443
37444 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
37445 Thanks to Christian Franke for finding this bug.
37446
37447 2008-09-25 Robert Millan <rmh@aybabtu.com>
37448
37449 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
37450 instances of grub_util_get_disk_name() (see previous commit).
37451
37452 2008-09-25 Robert Millan <rmh@aybabtu.com>
37453
37454 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
37455 `util/i386/get_disk_name.c'.
37456 * conf/i386-efi.rmk: Likewise.
37457 * conf/x86_64-efi.rmk: Likewise.
37458 * conf/i386-coreboot.rmk: Likewise.
37459 * conf/i386-ieee1275.rmk: Likewise.
37460 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
37461 `util/ieee1275/get_disk_name.c'.
37462 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
37463 * util/ieee1275/get_disk_name.c: Remove file.
37464 * util/i386/get_disk_name.c: Remove file.
37465 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
37466 "hd%d" for device.map entries, rather than using
37467 grub_util_get_disk_name().
37468
37469 2008-09-24 Carles Pina i Estany <carles@pina.cat>
37470
37471 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
37472 warning.
37473 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
37474
37475 2008-09-24 Carles Pina i Estany <carles@pina.cat>
37476
37477 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
37478 Changed to 0x5100.
37479 (GRUB_TERM_PPAGE): Changed to 0x4900.
37480
37481 2008-09-24 Robert Millan <rmh@aybabtu.com>
37482
37483 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
37484 macros (they were i386-pc specific).
37485 * include/grub/sparc64/ieee1275/console.h: Likewise.
37486 * include/grub/efi/console.h: Likewise.
37487
37488 2008-09-22 Bean <bean123ch@gmail.com>
37489
37490 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
37491 resident and in attribute list.
37492
37493 * include/grub/ntfs.h (BMP_LEN): Removed.
37494
37495 2008-09-22 Bean <bean123ch@gmail.com>
37496
37497 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
37498 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
37499
37500 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
37501 error occurs, as grub_disk_open will call grub_disk_close, which will
37502 call p->close (scsi).
37503
37504 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
37505
37506 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
37507 (AC_PREREQ): Bumped to 2.59.
37508 (AC_TRY_COMPILE): Replace obsolete macro with ...
37509 (AC_COMPILE_IFELSE): ... this.
37510 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
37511 (AC_LINK_IFELSE): ... this.
37512
37513 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
37514
37515 * autogen.sh: Add a call to `gendistlist.sh'.
37516
37517 2008-09-19 Christian Franke <franke@computer.org>
37518
37519 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
37520 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
37521 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
37522 Export __enable_execute_stack() to modules.
37523 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
37524 New function.
37525
37526 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
37527
37528 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
37529 Sort the list.
37530
37531 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
37532
37533 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
37534 #include <grub/util/hostdisk.h>.
37535
37536 2008-09-08 Robert Millan <rmh@aybabtu.com>
37537
37538 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
37539 segments when their filesz is zero (grub_file_read() interprets
37540 zero-size as "read until EOF", which results in memory corruption).
37541 Use `lowest_segment' rather than 0 for calculating the current
37542 segment load address.
37543
37544 2008-09-08 Robert Millan <rmh@aybabtu.com>
37545
37546 * util/hostdisk.c (open_device): Replace a grub_util_info() call
37547 with grub_dprintf("hostdisk", ...), as it was so verbose that it
37548 clobbered useful information.
37549
37550 2008-09-08 Robert Millan <rmh@aybabtu.com>
37551
37552 * include/grub/util/biosdisk.h: Move to ...
37553 * include/grub/util/hostdisk.h: ... here. Update all users.
37554 * util/biosdisk.c: Move to ...
37555 * util/hostdisk.c: ... here. Update all users.
37556
37557 2008-09-07 Robert Millan <rmh@aybabtu.com>
37558
37559 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
37560 variables.
37561 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
37562 and length can be stored directly in the `mbi->mmap_addr' and
37563 `mbi->mmap_length' struct fields.
37564
37565 2008-09-07 Robert Millan <rmh@aybabtu.com>
37566
37567 * conf/i386.rmk: New file. Provides declaration for building
37568 `cpuid.mod'.
37569 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
37570 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
37571 variables.
37572 Include `conf/i386.mk'.
37573 * conf/i386-efi.rmk: Likewise.
37574 * conf/x86_64-efi.rmk: Likewise.
37575 * conf/i386-coreboot.rmk: Likewise.
37576 * conf/i386-ieee1275.rmk: Likewise.
37577
37578 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
37579
37580 Based on patch created by Colin D Bennett <colin@gibibit.com>.
37581 Adds optimization support for BGR based modes.
37582
37583 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
37584 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
37585 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
37586 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
37587 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
37588 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
37589 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
37590 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
37591 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
37592 (grub_video_i386_vbeblit_index_index): Likewise.
37593 (grub_video_i386_vbeblit_replace_directN): Added.
37594 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
37595 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
37596 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
37597 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
37598 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
37599 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
37600 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
37601 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
37602 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
37603 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
37604 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
37605 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
37606 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
37607
37608 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
37609 (grub_video_i386_vbefill_R8G8B8): Likewise.
37610 (grub_video_i386_vbefill_index): Likewise.
37611 (grub_video_i386_vbefill_direct32): Added.
37612 (grub_video_i386_vbefill_direct24): Likewise.
37613 (grub_video_i386_vbefill_direct16): Likewise.
37614 (grub_video_i386_vbefill_direct8): Likewise.
37615
37616 * include/grub/video.h (grub_video_blit_format): Removed
37617 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
37618 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
37619 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
37620 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
37621 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
37622
37623 * video/video.c (grub_video_get_blit_format): Updated to use new
37624 blit formats. Added handling for 16 bit color modes.
37625
37626 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
37627 fillers.
37628 (common_blitter): Updated to use new blitters.
37629
37630 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
37631 Removed.
37632 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
37633 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
37634 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
37635 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
37636 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
37637 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
37638 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
37639 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
37640 (grub_video_i386_vbeblit_index_index): Likewise.
37641 (grub_video_i386_vbeblit_replace_directN): Added.
37642 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
37643 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
37644 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
37645 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
37646 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
37647 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
37648 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
37649 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
37650 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
37651 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
37652 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
37653 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
37654 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
37655
37656 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
37657 (grub_video_i386_vbefill_R8G8B8): Likewise.
37658 (grub_video_i386_vbefill_index): Likewise.
37659 (grub_video_i386_vbefill_direct32): Added.
37660 (grub_video_i386_vbefill_direct24): Likewise.
37661 (grub_video_i386_vbefill_direct16): Likewise.
37662 (grub_video_i386_vbefill_direct8): Likewise.
37663
37664 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
37665 types.
37666
37667 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
37668 types.
37669
37670 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
37671 blitter types.
37672
37673 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
37674 types.
37675
37676 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
37677
37678 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
37679 RAID level 1.
37680
37681 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
37682
37683 * fs/iso9660.c (grub_iso9660_date): New structure.
37684 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
37685 (grub_iso9660_uuid): New function.
37686
37687 2008-09-05 Bean <bean123ch@gmail.com>
37688
37689 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
37690
37691 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
37692 insensitive bit for names in Win32 and Win32 & DOS namespace.
37693
37694 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
37695
37696 * include/grub/types.h (LONG_MAX): Likewise.
37697
37698 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
37699
37700 * util/getroot.c: Include <config.h>.
37701 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
37702 add support for /dev/md/N devices and handle LVM double dash escaping.
37703
37704 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
37705
37706 * config.guess: Update to latest version from config git.
37707 * config.sub: Likewise.
37708
37709 2008-09-03 Robert Millan <rmh@aybabtu.com>
37710
37711 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
37712 `disk->total_sectors'.
37713
37714 2008-09-01 Colin D Bennett <colin@gibibit.com>
37715
37716 * include/grub/normal.h: Fixed incorrect comment for
37717 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
37718
37719 2008-09-01 Colin D Bennett <colin@gibibit.com>
37720
37721 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
37722 values with defines.
37723
37724 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
37725 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
37726 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
37727 (GRUB_VBE_MODEATTR_COLOR): Likewise.
37728 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
37729 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
37730 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
37731 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
37732 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
37733 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
37734 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
37735 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
37736 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
37737 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
37738 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
37739 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
37740 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
37741 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
37742 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
37743
37744 2008-08-31 Robert Millan <rmh@aybabtu.com>
37745
37746 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
37747 declaration.
37748 (grub_multiboot): Fix a few warnings.
37749
37750 2008-08-31 Robert Millan <rmh@aybabtu.com>
37751
37752 * loader/i386/pc/multiboot.c: Update comment not to say that
37753 boot_device support is unimplemented.
37754
37755 2008-08-31 Robert Millan <rmh@aybabtu.com>
37756
37757 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
37758 or memory map support are unimplemented.
37759
37760 2008-08-31 Colin D Bennett <colin@gibibit.com>
37761
37762 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
37763
37764 2008-08-31 Colin D Bennett <colin@gibibit.com>
37765
37766 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
37767 total video memory in 'vbeinfo' output; show color format details for
37768 each video mode.
37769
37770 2008-08-30 Pavel Roskin <proski@gnu.org>
37771
37772 * util/genmoddep.c: Remove for real this time.
37773 * DISTLIST: Remove util/genmoddep.c.
37774
37775 2008-08-30 Robert Millan <rmh@aybabtu.com>
37776
37777 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
37778 as required by Multiboot spec (it was already 4-byte aligned, but
37779 only by chance).
37780
37781 2008-08-29 Pavel Roskin <proski@gnu.org>
37782
37783 * kern/powerpc/ieee1275/crt0.S: Rename to ...
37784 * kern/powerpc/ieee1275/startup.S: ... this.
37785 * conf/powerpc-ieee1275.rmk: Adjust for the above.
37786 * DISTLIST: Likewise.
37787
37788 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
37789 grub/cpu/kernel.h. Add start label for consistency with other
37790 platforms. Add grub_prefix immediately after start. Add jump
37791 to the code after grub_prefix.
37792 * include/grub/powerpc/kernel.h: Provide valid values for
37793 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
37794
37795 2008-08-29 Bean <bean123ch@gmail.com>
37796
37797 * configure.ac: Change host_os to cygwin for mingw.
37798 (asprintf): New check for function.
37799
37800 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
37801 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
37802
37803 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
37804 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
37805 sync, sleep and grub_util_get_disk_size for mingw.
37806
37807 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
37808 to get size in mingw.
37809 (open_device): Use flag O_BINARY if it's defined.
37810 (find_root_device): Add dummy code for mingw.
37811
37812 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
37813 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
37814 (get_scsi_disk_name): Return 0 for mingw.
37815
37816 * util/hostfs.c: #include <grub/util/misc.h>.
37817 (grub_hostfs_open): Use "rb" flag to open file, use
37818 grub_util_get_disk_size to get disk size for mingw.
37819
37820 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
37821 (asprintf): New function if HAVE_ASPRINTF is not set.
37822 (sync): New function for mingw.
37823 (sleep): Likewise.
37824 (grub_util_get_disk_size): Likewise.
37825
37826 2008-08-28 Pavel Roskin <proski@gnu.org>
37827
37828 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
37829 kern/time.c.
37830
37831 2008-08-28 Robert Millan <rmh@aybabtu.com>
37832
37833 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
37834
37835 2008-08-28 Robert Millan <rmh@aybabtu.com>
37836
37837 Change find_grub_drive() syntax so it doesn't prevent it from
37838 detecting NULL names as errors.
37839
37840 * util/biosdisk.c (find_grub_drive): Move free slot search code
37841 from here ...
37842 (find_free_slot): ... to here.
37843 (read_device_map): Use find_free_slot() to search for free slots.
37844
37845 2008-08-27 Marco Gerards <marco@gnu.org>
37846
37847 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
37848 (scsi_mod_SOURCES): New variable.
37849 (scsi_mod_CFLAGS): Likewise
37850 (scsi_mod_LDFLAGS): Likewise.
37851
37852 * disk/scsi.c: New file.
37853
37854 * include/grub/scsi.h: Likewise.
37855
37856 * include/grub/scsicmd.h: Likewise.
37857
37858 * disk/ata.c: Include <grub/scsi.h>.
37859 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
37860 instead.
37861 (grub_ata_iterate): Skip ATAPI devices.
37862 (grub_ata_open): Only handle ATAPI devices.
37863 (struct grub_atapi_read): Removed.
37864 (grub_atapi_readsector): Likewise.
37865 (grub_ata_read): No longer handle ATAPI devices.
37866 (grub_ata_write): Likewise.
37867 (grub_atapi_iterate): New function.
37868 (grub_atapi_read): Likewise.
37869 (grub_atapi_write): Likewise.
37870 (grub_atapi_open): Likewise.
37871 (grub_atapi_close): Likewise.
37872 (grub_atapi_dev): New variable.
37873 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
37874 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
37875
37876 * include/grub/disk.h (enum grub_disk_dev_id): Add
37877 `GRUB_DISK_DEVICE_SCSI_ID'.
37878
37879 2008-08-26 Robert Millan <rmh@aybabtu.com>
37880
37881 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
37882 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
37883 descriptive.
37884
37885 2008-08-23 Bean <bean123ch@gmail.com>
37886
37887 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
37888 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
37889 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
37890 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
37891 dm_nv.mod.
37892 (raid5rec_mod_SOURCES): New macro.
37893 (raid5rec_mod_CFLAGS): Likewise.
37894 (raid5rec_mod_LDFLAGS): Likewise.
37895 (raid6rec_mod_SOURCES): Likewise.
37896 (raid6rec_mod_CFLAGS): Likewise.
37897 (raid6rec_mod_LDFLAGS): Likewise.
37898 (mdraid_mod_SOURCES): Likewise.
37899 (mdraid_mod_CFLAGS): Likewise.
37900 (mdraid_mod_LDFLAGS): Likewise.
37901 (dm_nv_mod_SOURCES): Likewise.
37902 (dm_nv_mod_CFLAGS): Likewise.
37903 (dm_nv_mod_LDFLAGS): Likewise.
37904
37905 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
37906 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
37907 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
37908
37909 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
37910 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
37911
37912 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37913
37914 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37915
37916 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37917
37918 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37919
37920 * disk/raid5_recover.c: New file.
37921
37922 * disk/raid6_recover.c: Likewise.
37923
37924 * disk/mdraid_linux.c: Likewise.
37925
37926 * disk/dmraid_nvidia.c: Likewise.
37927
37928 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
37929 ULONG_MAX.
37930
37931 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
37932 calculate the size of raid device.
37933 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
37934 different layout of raid5.
37935 (grub_raid_scan_device): Remove code specific to mdraid.
37936 (grub_raid_list): New variable.
37937 (free_array): New function.
37938 (grub_raid_register): Likewise.
37939 (grub_raid_unregister): Likewise.
37940 (grub_raid_rescan): Likewise.
37941 (GRUB_MOD_INIT): Don't iterate device here.
37942 (GRUB_MOD_FINI): Use free_array to release resource.
37943
37944 * include/grub/raid.h: Remove macro and structure specific to mdraid.
37945 (grub_raid5_recover_func_t): New function variable type.
37946 (grub_raid6_recover_func_t): Likewise.
37947 (grub_raid5_recover_func): New variable.
37948 (grub_raid6_recover_func): Likewise.
37949 (grub_raid_register): New function.
37950 (grub_raid_unregister): Likewise.
37951 (grub_raid_rescan): Likewise.
37952 (grub_raid_block_xor): Likewise.
37953
37954 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
37955 (CMD_CRC): New macro.
37956 (part): Removed.
37957 (read_file): Handle device as well as file.
37958 (cmd_crc): New function.
37959 (fstest): Handle multiple disks.
37960 (options): Remove part, raw and long, add root and diskcount.
37961 (usage): Add crc, remove -p, -r, -l, add -r and -c.
37962 (main): Find the first non option entry and ignore subsequent options,
37963 add handling for the new options, support multiple disks.
37964
37965 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
37966
37967 2008-08-23 Bean <bean123ch@gmail.com>
37968
37969 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
37970
37971 * genfslist.sh: Ignore kernel.mod.
37972
37973 * genpartmaplist.sh: Likewise.
37974
37975 2008-08-23 Robert Millan <rmh@aybabtu.com>
37976
37977 * util/getroot.c (find_root_device): Skip anything that starts with
37978 a dot, not just directories. This avoids things like /dev/.tmp.md0.
37979
37980 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
37981
37982 * util/update-grub.in (GRUB_GFXMODE): Export variable.
37983 * util/grub.d/00_header.in: Allow the administrator to change default
37984 gfxmode via ${GRUB_GFXMODE}.
37985
37986 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
37987
37988 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
37989
37990 2008-08-21 Robert Millan <rmh@aybabtu.com>
37991
37992 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
37993 loader.
37994 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
37995 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
37996
37997 2008-08-20 Carles Pina i Estany <carles@pina.cat>
37998
37999 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
38000 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
38001
38002 2008-08-19 Robert Millan <rmh@aybabtu.com>
38003
38004 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
38005 (struct grub_virtual_screen): Remove `cursor_color'.
38006 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
38007 initialization.
38008 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
38009
38010 2008-08-18 Robert Millan <rmh@aybabtu.com>
38011
38012 Unify (identical) linux_normal.c files.
38013 * loader/i386/efi/linux_normal.c: Move from here ...
38014 * loader/linux_normal.c: ... to here. Update all users.
38015 * loader/i386/pc/linux_normal.c: Delete. Update all users.
38016 * loader/i386/ieee1275/linux_normal.c: Likewise.
38017
38018 2008-08-18 Robert Millan <rmh@aybabtu.com>
38019
38020 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
38021 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
38022 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
38023 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
38024 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
38025 New macros.
38026 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
38027 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
38028 (GRUB_LINUX_CL_END_OFFSET): ... to here.
38029 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
38030 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
38031 (GRUB_EFI_CL_END_OFFSET): Rename to ...
38032 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
38033 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
38034 Initialize `params->video_cursor_x' and `params->video_cursor_y'
38035 portably using grub_getxy().
38036 Replace `-EFI' with `-bzImage' in boot message.
38037
38038 2008-08-17 Robert Millan <rmh@aybabtu.com>
38039
38040 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
38041
38042 2008-08-17 Robert Millan <rmh@aybabtu.com>
38043
38044 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
38045
38046 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
38047 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
38048 (grub_machine_mmap_iterate): New function declaration.
38049 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
38050 structure.
38051 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
38052 macros.
38053
38054 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
38055 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
38056 Move e820 parsing from here ...
38057 * kern/i386/pc/mmap.c: New file.
38058 (grub_machine_mmap_iterate): ... to here.
38059
38060 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
38061 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
38062 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
38063 (grub_available_iterate): Redeclare to return `void', and redeclare
38064 its hook to use grub_uint64_t as addr and size parameters, and rename
38065 to ...
38066 (grub_machine_mmap_iterate): ... this. Update all users.
38067
38068 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
38069 to make it more readable. Rename to ...
38070 (grub_machine_mmap_iterate): ... this.
38071
38072 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
38073 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
38074 (grub_multiboot): Allocate an extra region after the payload, and fill
38075 it with a Multiboot memory map. Adjust a.out loader to calculate size
38076 with the extra space.
38077 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
38078 with the extra space.
38079
38080 2008-08-17 Carles Pina i Estany <carles@pina.cat>
38081
38082 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
38083
38084 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
38085
38086 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
38087 mdate-sh to the list `find' searches for.
38088 * DISTLIST: Regenerated.
38089
38090 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
38091
38092 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
38093 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
38094 genmoddep.awk, gensymlist.sh.in.
38095 (DISTDIRS): Add bus, docs, hook, lib.
38096 * DISTLIST: Regenerated.
38097 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
38098
38099 2008-08-16 Robert Millan <rmh@aybabtu.com>
38100
38101 * disk/raid.c (grub_raid_init): Handle/report errors set by
38102 grub_device_iterate().
38103 * disk/lvm.c (grub_lvm_init): Likewise.
38104
38105 2008-08-15 Bean <bean123ch@gmail.com>
38106
38107 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
38108 and datehook.mod.
38109 (datetime_mod_SOURCES): New macro.
38110 (datetime_mod_CFLAGS): Likewise.
38111 (datetime_mod_LDFLAGS): Likewise.
38112 (date_mod_SOURCES): Likewise.
38113 (date_mod_CFLAGS): Likewise.
38114 (date_mod_LDFLAGS): Likewise.
38115 (datehook_mod_SOURCES): Likewise.
38116 (datehook_mod_CFLAGS): Likewise.
38117 (datehook_mod_LDFLAGS): Likewise.
38118
38119 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
38120 and datehook.mod.
38121 (datetime_mod_SOURCES): New macro.
38122 (datetime_mod_CFLAGS): Likewise.
38123 (datetime_mod_LDFLAGS): Likewise.
38124 (date_mod_SOURCES): Likewise.
38125 (date_mod_CFLAGS): Likewise.
38126 (date_mod_LDFLAGS): Likewise.
38127 (datehook_mod_SOURCES): Likewise.
38128 (datehook_mod_CFLAGS): Likewise.
38129 (datehook_mod_LDFLAGS): Likewise.
38130
38131 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
38132 and datehook.mod.
38133 (datetime_mod_SOURCES): New macro.
38134 (datetime_mod_CFLAGS): Likewise.
38135 (datetime_mod_LDFLAGS): Likewise.
38136 (date_mod_SOURCES): Likewise.
38137 (date_mod_CFLAGS): Likewise.
38138 (date_mod_LDFLAGS): Likewise.
38139 (datehook_mod_SOURCES): Likewise.
38140 (datehook_mod_CFLAGS): Likewise.
38141 (datehook_mod_LDFLAGS): Likewise.
38142
38143 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
38144 and datehook.mod.
38145 (datetime_mod_SOURCES): New macro.
38146 (datetime_mod_CFLAGS): Likewise.
38147 (datetime_mod_LDFLAGS): Likewise.
38148 (date_mod_SOURCES): Likewise.
38149 (date_mod_CFLAGS): Likewise.
38150 (date_mod_LDFLAGS): Likewise.
38151 (datehook_mod_SOURCES): Likewise.
38152 (datehook_mod_CFLAGS): Likewise.
38153 (datehook_mod_LDFLAGS): Likewise.
38154
38155 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
38156 and datehook.mod.
38157 (datetime_mod_SOURCES): New macro.
38158 (datetime_mod_CFLAGS): Likewise.
38159 (datetime_mod_LDFLAGS): Likewise.
38160 (date_mod_SOURCES): Likewise.
38161 (date_mod_CFLAGS): Likewise.
38162 (date_mod_LDFLAGS): Likewise.
38163 (datehook_mod_SOURCES): Likewise.
38164 (datehook_mod_CFLAGS): Likewise.
38165 (datehook_mod_LDFLAGS): Likewise.
38166
38167 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
38168
38169 * commands/date.c: New file.
38170
38171 * hook/datehook.c: Likewise.
38172
38173 * include/grub/lib/datetime.h: Likewise.
38174
38175 * include/grub/i386/cmos.h: Likewise.
38176
38177 * lib/datetime.c: Likewise.
38178
38179 * lib/i386/datetime.c: Likewise.
38180
38181 * lib/efi/datetime.c: Likewise.
38182
38183 2008-08-14 Robert Millan <rmh@aybabtu.com>
38184
38185 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
38186 (grub_mkelfimage_SOURCES): New variable.
38187 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
38188
38189 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
38190 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
38191 * conf/powerpc-ieee1275.rmk: Likewise.
38192 * conf/i386-ieee1275.rmk: Likewise.
38193
38194 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
38195 * kern/i386/coreboot/init.c: Likewise.
38196
38197 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
38198 with `<grub/cpu/kernel.h>'.
38199 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
38200 to ...
38201 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
38202 * kern/i386/coreboot/startup.S: Likewise.
38203
38204 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
38205 (GRUB_MOD_GAP): Remove.
38206 * include/grub/powerpc/kernel.h: New file.
38207 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
38208 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
38209 * include/grub/i386/kernel.h: New file.
38210 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
38211 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
38212 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
38213
38214 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
38215 `grub-mkelfimage'.
38216 Use --directory when invoking grub_mkimage.
38217
38218 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
38219 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
38220 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
38221 and GRUB_KERNEL_CPU_PREFIX.
38222
38223 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
38224
38225 * include/grub/err.h (grub_err_printf): New function prototype.
38226 * util/misc.c (grub_err_printf): New function.
38227 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
38228 grub_printf.
38229 * kern/err.c (grub_print_error): Use grub_err_printf.
38230
38231 2008-08-13 Robert Millan <rmh@aybabtu.com>
38232
38233 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
38234
38235 2008-08-13 Robert Millan <rmh@aybabtu.com>
38236
38237 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
38238 boot entry.
38239
38240 2008-08-12 Robert Millan <rmh@aybabtu.com>
38241
38242 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
38243 of the relocation code from here ...
38244 (grub_multiboot): ... to here.
38245 (forward_relocator, backward_relocator): Move from here ...
38246 * kern/i386/loader.S (grub_multiboot_forward_relocator)
38247 (grub_multiboot_backward_relocator): ... to here.
38248 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
38249 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
38250 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
38251 (grub_multiboot_forward_relocator_end)
38252 (grub_multiboot_backward_relocator)
38253 (grub_multiboot_backward_relocator_end): New variables.
38254
38255 2008-08-12 Bean <bean123ch@gmail.com>
38256
38257 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
38258
38259 2008-08-11 Robert Millan <rmh@aybabtu.com>
38260
38261 * kern/i386/linuxbios/startup.S: Move from here ...
38262 * kern/i386/coreboot/startup.S: ... to here.
38263
38264 * kern/i386/linuxbios/init.c: Move from here ...
38265 * kern/i386/coreboot/init.c: ... to here.
38266
38267 * kern/i386/linuxbios/table.c: Move from here ...
38268 * kern/i386/coreboot/mmap.c: ... to here.
38269
38270 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
38271
38272 2008-08-11 Robert Millan <rmh@aybabtu.com>
38273
38274 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
38275 errors. Leave it to the upper layer to handle them.
38276
38277 2008-08-09 Christian Franke <franke@computer.org>
38278
38279 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
38280 * conf/common.rmk: Install `grub-pe2elf' only if requested.
38281 Install `grub.d/10_windows' only on Cygwin.
38282 * configure.ac: Add subst of `target_os'.
38283 Check `target_os' also before setting TARGET_OBJ2ELF.
38284 Add `--enable-grub-pe2elf'.
38285
38286 2008-08-08 Robert Millan <rmh@aybabtu.com>
38287
38288 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
38289 (grub_last_time): Change type to grub_uint64_t.
38290 (grub_disk_open): Migrate code from to using grub_get_time_ms().
38291 (grub_disk_close): Likewise.
38292
38293 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
38294 (run_menu): Migrate code from to using grub_get_time_ms().
38295
38296 * util/misc.c (grub_get_time_ms): New function.
38297
38298 2008-08-08 Marco Gerards <marco@gnu.org>
38299
38300 * disk/ata.c (grub_ata_regget): Change return type to
38301 `grub_uint8_t'.
38302 (grub_ata_regget2): Likewise.
38303 (grub_ata_wait_status): New function.
38304 (grub_ata_wait_busy): Removed function, updated all users to use
38305 `grub_ata_wait_status'.
38306 (grub_ata_wait_drq): Likewise.
38307 (grub_ata_cmd): New function.
38308 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
38309 error handling.
38310 (grub_ata_pio_write): Add error handling.
38311 (grub_atapi_identify): Likewise.
38312 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
38313 handling.
38314 (grub_ata_identify): Use `grub_ata_cmd' and improve error
38315 handling. Actually use the detected registers. Reorder the
38316 detection logic such that it is easier to read.
38317 (grub_ata_pciinit): Do not assign the same ID to each controller.
38318 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
38319 handling.
38320 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
38321
38322 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
38323
38324 2008-08-08 Marco Gerards <marco@gnu.org>
38325
38326 * NEWS: Update.
38327
38328 2008-08-07 Bean <bean123ch@gmail.com>
38329
38330 * include/grub/x86_64/pci.h: New file.
38331
38332 2008-08-07 Christian Franke <franke@computer.org>
38333
38334 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
38335 (TIMER2_GATE): Likewise.
38336 (grub_pit_wait): Add enable/disable of the timer2 gate
38337 bit of port 0x61. This fixes a possible infinite loop.
38338
38339 2008-08-07 Bean <bean123ch@gmail.com>
38340
38341 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
38342 kern/i386/tsc.c and kern/i386/pit.c.
38343
38344 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
38345 x86_64 platform.
38346
38347 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
38348 <grub/i386/tsc.h>.
38349
38350 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
38351
38352 2008-08-07 Bean <bean123ch@gmail.com>
38353
38354 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
38355
38356 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
38357
38358 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
38359 multiple inclusion. Add #include <grub/types.h>.
38360
38361 2008-08-06 Christian Franke <franke@computer.org>
38362
38363 * conf/common.rmk: Build and install `10_windows'.
38364 * util/grub.d/10_windows.in: New script.
38365
38366 2008-08-06 Pavel Roskin <proski@gnu.org>
38367
38368 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
38369
38370 2008-08-06 Robert Millan <rmh@aybabtu.com>
38371
38372 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
38373 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
38374
38375 2008-08-06 Bean <bean123ch@gmail.com>
38376
38377 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
38378 (grub_pxefs_fs_int): Remove dummy definition.
38379 (grub_pxefs_open): Use data->block_size to store the current block
38380 size setting.
38381 (grub_pxefs_read): Use block size stored in data->block_size. As the
38382 value of grub_pxe_blksize can be changed after the file is opened.
38383
38384 2008-08-06 Bean <bean123ch@gmail.com>
38385
38386 * fs/i386/pc/pxe.c (curr_file): new variable.
38387 (grub_pxefs_open): Simply the handling of pxe file system. Don't
38388 require the dummy internal file system anymore.
38389 (grub_pxefs_read): Removed.
38390 (grub_pxefs_close): Likewise.
38391 (grub_pxefs_fs_int): Likewise.
38392 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
38393 connection when we switch file.
38394 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
38395
38396 2008-08-06 Robert Millan <rmh@aybabtu.com>
38397
38398 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
38399 `halt.mod'.
38400 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
38401 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
38402
38403 * kern/i386/halt.c: New file.
38404 * kern/i386/reboot.c: Likewise.
38405 * include/grub/i386/reboot.h: Likewise.
38406 * include/grub/i386/halt.h: Likewise.
38407
38408 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
38409 Include `<grub/cpu/halt.h>'.
38410 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
38411 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
38412
38413 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
38414 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
38415 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
38416 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
38417 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
38418 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
38419 from here ...
38420 * include/grub/i386/at_keyboard.h: ... to here.
38421
38422 2008-08-05 Robert Millan <rmh@aybabtu.com>
38423
38424 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
38425 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
38426 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
38427 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
38428 `kern/generic/millisleep.c'.
38429
38430 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
38431 instead of grub_get_rtc().
38432 (grub_tsc_init): Initialize `tsc_boot_time'.
38433
38434 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
38435 (grub_machine_init): Use grub_tsc_init() rather than
38436 installing an RTC-based handler via grub_install_get_time_ms().
38437
38438 * kern/i386/pit.c: New file.
38439 * include/grub/i386/pit.h: Likewise.
38440
38441 2008-08-05 Bean <bean123ch@gmail.com>
38442
38443 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
38444
38445 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
38446 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
38447 (pxe_mod_SOURCES): New macro.
38448 (pxe_mod_CFLAGS): Likewise.
38449 (pxe_mod_LDFLAGS): Likewise.
38450 (pxecmd_mod_SOURCES): Likewise.
38451 (pxecmd_mod_CFLAGS): Likewise.
38452 (pxecmd_mod_LDFLAGS): Likewise.
38453
38454 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
38455 (grub_pxe_call): Likewise.
38456
38457 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
38458
38459 * commands/i386/pc/pxecmd.c: New file.
38460
38461 * fs/i386/pc/pxe.c: Likewise.
38462
38463 * include/grub/i386/pc/pxe.h: Likewise.
38464
38465 2008-08-05 Bean <bean123ch@gmail.com>
38466
38467 * util/console.c (grub_console_cur_color): New variable.
38468 (grub_console_standard_color): Likewise.
38469 (grub_console_normal_color): Likewise.
38470 (grub_console_highlight_color): Likewise.
38471 (color_map): Likewise.
38472 (use_color): Likewise.
38473 (NUM_COLORS): New macro.
38474 (grub_ncurses_setcolorstate): Handle color properly.
38475 (grub_ncurses_setcolor): Don't change color here, just remember the
38476 settings, color will be set in grub_ncurses_setcolorstate.
38477 (grub_ncurses_getcolor): New function.
38478 (grub_ncurses_init): Initialize color pairs.
38479 (grub_ncurses_term): New member grub_ncurses_getcolor.
38480
38481 2008-08-05 Colin D Bennett <colin@gibibit.com>
38482
38483 High resolution timer support. Implemented for x86 CPUs using TSC.
38484 Extracted generic grub_millisleep() so it's linked in only as needed.
38485 This requires a Pentium compatible CPU; if the RDTSC instruction is
38486 not supported, then it falls back on the generic grub_get_time_ms()
38487 implementation that uses the machine's RTC.
38488
38489 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
38490 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
38491 `kern/generic/millisleep.c'.
38492
38493 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
38494 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
38495
38496 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
38497 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
38498
38499 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
38500
38501 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
38502 `kern/generic/millisleep.c'.
38503
38504 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
38505
38506 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
38507
38508 * kern/generic/rtc_get_time_ms.c: New file.
38509
38510 * kern/generic/millisleep.c: New file.
38511
38512 * kern/misc.c: Don't include
38513 <kern/time.h> anymore.
38514 (grub_millisleep_generic): Removed.
38515
38516 * commands/sleep.c (grub_interruptible_millisleep): Uses
38517 grub_get_time_ms() instead of grub_get_rtc().
38518
38519 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
38520 function.
38521 (grub_cpu_is_cpuid_supported): New inline function.
38522 (grub_cpu_is_tsc_supported): New inline function.
38523 (grub_tsc_init): New function prototype.
38524 (grub_tsc_get_time_ms): New function prototype.
38525
38526 * kern/i386/tsc.c (grub_get_time_ms): New file.
38527
38528 * include/grub/time.h: Include <grub/types.h.
38529 (grub_millisleep_generic): Removed.
38530 (grub_get_time_ms): New prototype.
38531 (grub_install_get_time_ms): New prototype.
38532 (grub_rtc_get_time_ms): New prototype.
38533
38534 * kern/time.c (grub_get_time_ms): New function.
38535 (grub_install_get_time_ms): New function.
38536
38537 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
38538 <grub/time.h> anymore.
38539 (grub_millisleep): Removed.
38540 (grub_machine_init): Call grub_tsc_init.
38541
38542 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
38543 get_time_ms() implementation.
38544
38545 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
38546 (ieee1275_get_time_ms): New function.
38547 (grub_machine_init): Install get_time_ms() implementation.
38548
38549 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
38550 (grub_machine_init): Call grub_tsc_init().
38551 (grub_millisleep): Removed.
38552
38553 * kern/ieee1275/init.c (grub_millisleep): Removed.
38554 (grub_machine_init): Install ieee1275_get_time_ms()
38555 implementation.
38556 (ieee1275_get_time_ms): New function.
38557 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
38558 real work.
38559
38560 2008-08-05 Marco Gerards <marco@gnu.org>
38561
38562 * disk/ata.c: Include <grub/pci.h>.
38563 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
38564 (grub_ata_initialize): Rewritten.
38565 (grub_ata_device_initialize): New function.
38566
38567 2008-08-04 Pavel Roskin <proski@gnu.org>
38568
38569 * kern/main.c: Include grub/mm.h.
38570
38571 2008-08-04 Robert Millan <rmh@aybabtu.com>
38572
38573 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
38574 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
38575 corruption problem).
38576
38577 2008-08-04 Robert Millan <rmh@aybabtu.com>
38578
38579 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
38580 warnings introduced in my last commit.
38581
38582 2008-08-03 Robert Millan <rmh@aybabtu.com>
38583
38584 Make PCI available on all i386 architectures.
38585
38586 * include/grub/i386/pc/pci.h: Move from here ...
38587 * include/grub/i386/pci.h: ... to here.
38588
38589 * include/grub/i386/pc/pci.h: Remove.
38590 * include/grub/i386/efi/pci.h: Remove.
38591 * include/grub/x86_64/efi/pci.h: Remove.
38592
38593 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
38594 `<grub/cpu/pci.h>'.
38595
38596 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
38597 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
38598 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
38599
38600 * conf/i386-ieee1275.rmk: Likewise.
38601
38602 2008-08-03 Robert Millan <rmh@aybabtu.com>
38603
38604 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
38605 (grub_console_setcursor): Make it possible to set cursor off.
38606
38607 2008-08-03 Robert Millan <rmh@aybabtu.com>
38608
38609 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
38610 of modules instead of assuming which platform provides what.
38611 * util/update-grub.in: Likewise.
38612
38613 2008-08-03 Robert Millan <rmh@aybabtu.com>
38614
38615 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
38616 instead of `grub_install_dos_part' to determine whether a drive needs
38617 to be prepended to prefix (`grub_install_dos_part' is not reliable,
38618 because it can be overridden when loading GRUB via Multiboot).
38619
38620 2008-08-02 Robert Millan <rmh@aybabtu.com>
38621
38622 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
38623
38624 2008-08-02 Robert Millan <rmh@aybabtu.com>
38625
38626 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
38627 of informational grub_dprintf() calls.
38628
38629 2008-08-02 Robert Millan <rmh@aybabtu.com>
38630
38631 * disk/memdisk.c (memdisk_size): Don't initialize.
38632 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
38633
38634 * include/grub/i386/pc/kernel.h
38635 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
38636 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
38637 (grub_memdisk_image_size, grub_arch_memdisk_addr)
38638 (grub_arch_memdisk_size): Remove.
38639
38640 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
38641 field (was only used to transfer a constant). Add `type' field to
38642 support multiple module types.
38643 (grub_module_iterate): New function.
38644
38645 * kern/device.c (grub_device_open): Do not hide error messages
38646 when grub_disk_open() fails. Use grub_print_error() instead.
38647
38648 * kern/i386/pc/init.c (grub_arch_modules_addr)
38649 (grub_arch_memdisk_size): Remove functions.
38650 (grub_arch_modules_addr): Return the module address in high memory
38651 (now that it isn't copied anymore).
38652
38653 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
38654 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
38655 decompression routine (grub_total_module_size already includes that
38656 now). Don't copy modules back to low memory.
38657
38658 * kern/main.c: Include `<grub/mm.h>'.
38659 (grub_load_modules): Split out (and use) ...
38660 (grub_module_iterate): ... this function, which iterates through
38661 module objects and runs a hook.
38662 Comment out grub_mm_init_region() call, as it would cause non-ELF
38663 modules to be overwritten.
38664
38665 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
38666 the memdisk image in its own region, make it part of the module list.
38667 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
38668 (main): Parse --memdisk|-m option, and pass user-provided path as
38669 parameter to generate_image().
38670 (add_segments): Pass `memdisk_path' down to load_modules().
38671 (load_modules): Embed memdisk image in module section when requested.
38672 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
38673 `header.type' instead of `header.offset'.
38674
38675 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
38676 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
38677 (memdisk_mod_LDFLAGS): New variables.
38678 * conf/i386-coreboot.rmk: Likewise.
38679 * conf/i386-ieee1275.rmk: Likewise.
38680
38681 2008-08-02 Robert Millan <rmh@aybabtu.com>
38682
38683 * loader/i386/pc/multiboot.c (playground, forward_relocator)
38684 (backward_relocator): New variables. Used to allocate and relocate
38685 the payload, respectively.
38686 (grub_multiboot_load_elf32): Load into heap instead of requested
38687 address, install the appropriate relocator code in each bound of
38688 the payload, and set the entry point such that
38689 grub_multiboot_real_boot() will jump to one of them.
38690
38691 * kern/i386/loader.S (grub_multiboot_payload_size)
38692 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
38693 (grub_multiboot_payload_entry_offset): New variables.
38694 (grub_multiboot_real_boot): Set cpu context to what the relocator
38695 expects, and jump to the relocator instead of the payload.
38696
38697 * include/grub/i386/loader.h (grub_multiboot_payload_size)
38698 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
38699 (grub_multiboot_payload_entry_offset): Export.
38700
38701 2008-08-01 Bean <bean123ch@gmail.com>
38702
38703 * normal/menu_entry.c (editor_getline): Don't return the original
38704 string as result, as it will be released by lexer once it has done
38705 using it.
38706
38707 2008-08-01 Robert Millan <rmh@aybabtu.com>
38708
38709 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
38710 within menuentries, not before them.
38711 util/grub.d/10_hurd.in: Likewise.
38712
38713 2008-08-01 Bean <bean123ch@gmail.com>
38714
38715 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
38716 (bufio_mod_SOURCES): New macro.
38717 (bufio_mod_CFLAGS): Likewise.
38718 (bufio_mod_LDFLAGS): Likewise.
38719
38720 * include/grub/bufio.h: New file.
38721
38722 * io/bufio.c: Likewise.
38723
38724 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
38725 (grub_video_reader_png): Use grub_buffile_open to open file.
38726
38727 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
38728 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
38729
38730 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
38731 (grub_video_reader_tga): Use grub_buffile_open to open file.
38732
38733 * font/manager.c: Include <grub/bufio.h>.
38734 (add_font): Use grub_buffile_open to open file.
38735
38736 2008-07-31 Robert Millan <rmh@aybabtu.com>
38737
38738 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
38739 ELF segments, use a macro for arbitrarily accessing any of them instead
38740 of preparing a pointer that allows access to one at a time.
38741 (grub_multiboot_load_elf64): Likewise.
38742
38743 2008-07-31 Bean <bean123ch@gmail.com>
38744
38745 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
38746 GRUB_KERNEL_MACHINE_DATA_END.
38747
38748 2008-07-30 Robert Millan <rmh@aybabtu.com>
38749
38750 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
38751 Increase from 0x50 to 0x60.
38752 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
38753 use UUIDs to identify the root drive for them. If that's not
38754 possible, abort.
38755 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
38756 check, for cross-disk installs.
38757
38758 2008-07-30 Robert Millan <rmh@aybabtu.com>
38759
38760 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
38761 is non-empty, use it to set the `prefix' environment variable instead
38762 of the usual approach.
38763 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
38764 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
38765 environment variable instead of dummy make_install_device().
38766
38767 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
38768 (start): Insert a data section, with `grub_prefix' variable.
38769 * kern/i386/linuxbios/startup.S: Likewise.
38770
38771 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
38772 New variable reference.
38773 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
38774 New macro. Defines offset of `grub_prefix' within startup.S (relative
38775 to `start').
38776 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
38777 section within startup.S (relative to `start').
38778 * include/grub/i386/coreboot/kernel.h: Likewise.
38779
38780 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
38781 Overwrite grub_prefix with its contents, at the beginning of the
38782 first segment.
38783 (main): Understand -p|--prefix.
38784
38785 2008-07-30 Robert Millan <rmh@aybabtu.com>
38786
38787 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
38788
38789 2008-07-30 Robert Millan <rmh@aybabtu.com>
38790
38791 * term/i386/pc/vga_text.c (grub_console_cls): Use
38792 grub_console_gotoxy() to go back to beginning of the screen.
38793 Found by Patrick Georgi <patrick.georgi@coresystems.de>
38794
38795 2008-07-29 Christian Franke <franke@computer.org>
38796
38797 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
38798 Add conversion of emulated mount points on Cygwin.
38799
38800 2008-07-29 Christian Franke <franke@computer.org>
38801
38802 * util/update-grub.in: Add a check for admin
38803 group on Cygwin.
38804 Remove old `grub.cfg.new' before creation.
38805 Add `-f' to `mv' to handle the different filesystem
38806 semantics of Windows.
38807
38808 2008-07-29 Bean <bean123ch@gmail.com>
38809
38810 * normal/main.c (get_line): Fix buffer overflow bug.
38811
38812 2008-07-28 Robert Millan <rmh@aybabtu.com>
38813
38814 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
38815 (struct grub_apple_header): New struct. Describes the layout of
38816 the partmap header.
38817 (apple_partition_map_iterate): Check the header magic as well as the
38818 partition magic (which was already being checked).
38819
38820 2008-07-28 Pavel Roskin <proski@gnu.org>
38821
38822 * genmk.rb: Add a warning to the beginning of the output that
38823 it's a generated file and should not be edited.
38824
38825 2008-07-28 Robert Millan <rmh@aybabtu.com>
38826
38827 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
38828 with the same number are found, just use issue a warning with
38829 grub_dprintf(), as this error has been reported to be non-fatal.
38830
38831 2008-07-27 Robert Millan <rmh@aybabtu.com>
38832
38833 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
38834 information.
38835
38836 2008-07-27 Bean <bean123ch@gmail.com>
38837
38838 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
38839 (grub_fat_find_dir): Ignore case when comparing filename.
38840
38841 2008-07-27 Bean <bean123ch@gmail.com>
38842
38843 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
38844 smallino, as it's more descriptive, and i8count can be confused with
38845 the other field count.
38846 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
38847 inode type.
38848
38849 2008-07-27 Bean <bean123ch@gmail.com>
38850
38851 * commands/crc.c: New file.
38852
38853 * lib/crc.c: Likewise.
38854
38855 * include/grub/lib/crc.h: Likewise.
38856
38857 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
38858
38859 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
38860 (hexdump): Move this function to ...
38861
38862 * lib/hexdump.c: ... here.
38863
38864 * include/grub/hexdump.h: Renamed to ...
38865
38866 * include/grub/lib/hexdump.h: ... this.
38867
38868 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
38869
38870 * util/grub-editenv.c: Likewise.
38871
38872 * include/envblk.h: Renamed to ...
38873
38874 * include/lib/envblk.h: ... this.
38875
38876 * util/envblk.c: Renamed to ...
38877
38878 * lib/envblk.c: ... this.
38879
38880 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
38881 lib/hexdump.c.
38882 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
38883 (pkglib_MODULES): Add crc.mod.
38884 (hexdump_mod_SOURCES): Add lib/hexdump.c.
38885 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
38886 (crc_mod_SOURCES): New macro.
38887 (crc_mod_CFLAGS): Likewise.
38888 (crc_mod_LDFLAGS): Likewise.
38889
38890 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
38891
38892 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38893
38894 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38895
38896 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38897
38898 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38899
38900 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
38901
38902 * commands/help.c: Include <grub/term.h>.
38903 (TERM_WIDTH): Removed. Updated all users.
38904
38905 2008-07-27 Pavel Roskin <proski@gnu.org>
38906
38907 * util/getroot.c (find_root_device): Rephrase a comment to avoid
38908 spurious warnings about a comment within a comment.
38909
38910 2008-07-25 Robert Millan <rmh@aybabtu.com>
38911
38912 * util/getroot.c (find_root_device): Skip devices that match
38913 /dev/dm-[0-9]. This lets the real device be found for any type of
38914 abstraction (LVM, EVMS, RAID..).
38915 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
38916 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
38917 device is found first, find_root_device() will now skip it.
38918
38919 2008-07-24 Pavel Roskin <proski@gnu.org>
38920
38921 * include/grub/types.h: Use __builtin_bswap32() and
38922 __builtin_bswap64() with gcc 4.3 and newer.
38923
38924 2008-07-24 Christian Franke <franke@computer.org>
38925
38926 * util/i386/pc/grub-install.in: If `--debug' is specified,
38927 pass `--verbose' to grub-setup.
38928 Abort script if make_system_path_relative_to_its_root() fails.
38929
38930 2008-07-24 Bean <bean123ch@gmail.com>
38931
38932 * configure.ac: Fixed a bug caused by the previous cygwin patch,
38933 variable `target_platform' should be `platform'.
38934
38935 2008-07-24 Bean <bean123ch@gmail.com>
38936
38937 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
38938 (grub_png_init_fixed_block): New function.
38939 (grub_png_decode_image_data): Handle fixed huffman code compression.
38940
38941 2008-07-24 Bean <bean123ch@gmail.com>
38942
38943 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
38944 (grub_pe2elf_SOURCES): New macro.
38945 (CLEANFILES): Add grub-pe2elf.
38946
38947 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
38948 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
38949 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
38950 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
38951 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
38952 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
38953 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
38954 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
38955 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
38956 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
38957 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
38958 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
38959 (GRUB_PE32_DT_FUNCTION): Likewise.
38960 (GRUB_PE32_REL_I386_DIR32): Likewise.
38961 (GRUB_PE32_REL_I386_REL32): Likewise.
38962 (grub_pe32_symbol): New structure.
38963 (grub_pe32_reloc): Likewise.
38964
38965 * util/grub-pe2elf.c: New file.
38966
38967 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
38968 start symbol in non pc platform.
38969
38970 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
38971
38972 The following patches are from Christian Franke.
38973
38974 * include/grub/dl.h: Remove .previous, gas supports this only
38975 for ELF format.
38976
38977 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
38978 Remove .type, gas supports this only for ELF format.
38979
38980 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
38981 nullbytes in symbol table. This fixes an infinite loop if table is
38982 zero filled.
38983
38984 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
38985 TARGET_IMG_LDFLAGS and EXEEXT.
38986
38987 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
38988 TARGET_IMG_LDFLAGS_AC.
38989 (grub_CHECK_STACK_ARG_PROBE): New function.
38990
38991 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
38992
38993 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
38994
38995 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
38996 to set TARGET_IMG_LD* accordingly.
38997 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
38998 Add call to grub_CHECK_STACK_ARG_PROBE.
38999 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
39000
39001 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
39002
39003 * genmk.rb: Add EXEEXT to CLEANFILES.
39004
39005 2008-07-23 Robert Millan <rmh@aybabtu.com>
39006
39007 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
39008 define the codes for arrows and lines used for the menu).
39009 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
39010 as well.
39011
39012 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
39013 fonts, because the latter are too slow.
39014
39015 2008-07-21 Bean <bean123ch@gmail.com>
39016
39017 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
39018 a20. Run keyboard test last, as it will cause macbook to halt.
39019
39020 2008-07-18 Pavel Roskin <proski@gnu.org>
39021
39022 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
39023 load foreign architecture modules correctly anyway. Keep
39024 support for loading host architecture modules, whether we
39025 compile them or not.
39026
39027 2008-07-17 Pavel Roskin <proski@gnu.org>
39028
39029 * configure.ac: Use -m32 or -m64 regardless of whether we had to
39030 change target_cpu. The compiler default can mismatch target_cpu
39031 in any case.
39032
39033 * disk/efi/efidisk.c: Fix format warnings on x86_64.
39034 * kern/efi/efi.c: Likewise.
39035
39036 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
39037 target compiler is functional.
39038 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
39039 are set up.
39040
39041 * configure.ac: Default to efi platform for x86_64-apple. Allow
39042 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
39043 adjustments from the rest, only do them if target is not
39044 explicitly given. Merge other adjustments with the final sanity
39045 check. Remove an extraneous check for supported CPU. Be
39046 specific which CPU and which platform is not supported.
39047
39048 * configure.ac: Default to pc platform for x86_64.
39049
39050 2008-07-17 Robert Millan <rmh@aybabtu.com>
39051
39052 Partial LinuxBIOS -> Coreboot rename.
39053
39054 * conf/i386-linuxbios.rmk: Renamed to ...
39055 * conf/i386-coreboot.rmk: ... this.
39056 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
39057 * configure.ac: Accept "coreboot" as input platform (but maintain
39058 compatibility with "linuxbios").
39059 * include/grub/i386/linuxbios: Renamed to ...
39060 * include/grub/i386/coreboot: ... this.
39061
39062 2008-07-17 Bean <bean123ch@gmail.com>
39063
39064 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
39065 (appleldr_mod_SOURCE): New variable.
39066 (appleldr_mod_CFLAGS): Likewise.
39067 (appleldr_mod_LDFLAGS): Likewise.
39068 (pci_mod_SOURCES): Likewise.
39069 (pci_mod_CFLAGS): Likewise.
39070 (pci_mod_LDFLAGS): Likewise.
39071 (lspci_mod_SOURCES): Likewise.
39072 (lspci_mod_CFLAGS): Likewise.
39073 (lspci_mod_LDFLAGS): Likewise.
39074
39075 * conf/x86_64-efi.rmk: New file.
39076
39077 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
39078 macro.
39079 (grub_efidisk_write): Likewise.
39080
39081 * include/efi/api.h (efi_call_0): New macro.
39082 (efi_call_1): Likewise.
39083 (efi_call_2): Likewise.
39084 (efi_call_3): Likewise.
39085 (efi_call_4): Likewise.
39086 (efi_call_5): Likewise.
39087 (efi_call_6): Likewise.
39088
39089 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
39090 grub_rescue_cmd_chainloader.
39091
39092 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
39093 (grub_pe32_optional_header): Change some fields based on i386 or
39094 x86_64 platform.
39095 (GRUB_PE32_PE32_MAGIC): Likewise.
39096
39097 * include/grub/efi/uga_draw.h: New file.
39098
39099 * include/grub/elf.h (STN_ABS): New constant.
39100 (R_X86_64_NONE): Relocation constant for x86_64.
39101 (R_X86_64_64): Likewise.
39102 (R_X86_64_PC32): Likewise.
39103 (R_X86_64_GOT32): Likewise.
39104 (R_X86_64_PLT32): Likewise.
39105 (R_X86_64_COPY): Likewise.
39106 (R_X86_64_GLOB_DAT): Likewise.
39107 (R_X86_64_JUMP_SLOT): Likewise.
39108 (R_X86_64_RELATIVE): Likewise.
39109 (R_X86_64_GOTPCREL): Likewise.
39110 (R_X86_64_32): Likewise.
39111 (R_X86_64_32S): Likewise.
39112 (R_X86_64_16): Likewise.
39113 (R_X86_64_PC16): Likewise.
39114 (R_X86_64_8): Likewise.
39115 (R_X86_64_PC8): Likewise.
39116
39117 * include/grub/i386/efi/pci.h: New file.
39118
39119 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
39120 Change it value based on platform.
39121 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
39122 (GRUB_E820_RAM): Likewise.
39123 (GRUB_E820_RESERVED): Likewise.
39124 (GRUB_E820_ACPI): Likewise.
39125 (GRUB_E820_NVS): Likewise.
39126 (GRUB_E820_EXEC_CODE): Likewise.
39127 (GRUB_E820_MAX_ENTRY): Likewise.
39128 (grub_e820_mmap): New structure.
39129 (linux_kernel_header): Change the efi field according to different
39130 kernel version, also field from linux_kernel_header.
39131
39132 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
39133
39134 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
39135 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
39136 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
39137 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
39138 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
39139 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
39140 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
39141 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
39142 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
39143 (GRUB_PCI_ADDR_IO_MASK): Likewise.
39144
39145 * include/grub/x86_64/efi/kernel.h: New file.
39146
39147 * include/grub/x86_64/efi/loader.h: Likewise.
39148
39149 * include/grub/x86_64/efi/machine.h: Likewise.
39150
39151 * include/grub/x86_64/efi/pci.h: Likewise.
39152
39153 * include/grub/x86_64/efi/time.h: Likewise.
39154
39155 * include/grub/x86_64/linux.h: Likewise.
39156
39157 * include/grub/x86_64/setjmp.h: Likewise.
39158
39159 * include/grub/x86_64/time.h: Likewise.
39160
39161 * include/grub/x86_64/types.h: Likewise.
39162
39163 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
39164 GRUB_TARGET_SIZEOF_VOID_P.
39165
39166 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
39167 (grub_efi_locate_handle): Likewise.
39168 (grub_efi_open_protocol): Likewise.
39169 (grub_efi_set_text_mode): Likewise.
39170 (grub_efi_stall): Likewise.
39171 (grub_exit): Likewise.
39172 (grub_reboot): Likewise.
39173 (grub_halt): Likewise.
39174 (grub_efi_exit_boot_services): Likewise.
39175 (grub_get_rtc): Likewise.
39176
39177 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
39178 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
39179 (grub_efi_allocate_pages): Wrap efi calls.
39180 (grub_efi_free_pages): Wrap efi calls.
39181 (grub_efi_get_memory_map): Wrap efi calls.
39182
39183 * kern/x86_64/dl.c: New file.
39184
39185 * kern/x86_64/efi/callwrap.S: Likewise.
39186
39187 * kern/x86_64/efi/startup.S: Likewise.
39188
39189 * loader/efi/appleloader.c: Likewise.
39190
39191 * loader/efi/chainloader.c (cmdline): New variable.
39192 (grub_chainloader_unload): Wrap efi calls.
39193 (grub_chainloader_boot): Likewise.
39194 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
39195 command line.
39196
39197 * loader/efi/chainloader_normal.c (chainloader_command):
39198 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
39199 command line.
39200
39201 * loader/i386/efi/linux.c (allocate_pages): Change allocation
39202 method.
39203 (grub_e820_add_region): New function.
39204 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
39205 booting.
39206 (grub_find_video_card): New function.
39207 (grub_linux_setup_video): New function.
39208 (grub_rescue_cmd_linux): Probe for video information.
39209
39210 * normal/x86_64/setjmp.S: New file.
39211
39212 * term/efi/console.c (map_char): New function.
39213 (grub_console_putchar): Map unicode char.
39214 (grub_console_checkkey): Wrap efi calls.
39215 (grub_console_getkey): Likewise.
39216 (grub_console_getwh): Likewise.
39217 (grub_console_gotoxy): Likewise.
39218 (grub_console_cls): Likewise.
39219 (grub_console_setcolorstate): Likewise.
39220 (grub_console_setcursor): Likewise.
39221
39222 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
39223
39224 2008-07-16 Pavel Roskin <proski@gnu.org>
39225
39226 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
39227 format strings.
39228
39229 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
39230 pointer, not an integer. This fixes a warning and prevents
39231 precision loss on 64-bit systems.
39232 (relocate_addresses): Remove unneeded cast.
39233
39234 2008-07-15 Pavel Roskin <proski@gnu.org>
39235
39236 * kern/i386/ieee1275/init.c: Include grub/cache.h.
39237
39238 * term/ieee1275/ofconsole.c: Disable code unused on i386.
39239
39240 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
39241 Fix comparison between signed and unsigned.
39242
39243 * include/grub/i386/ieee1275/console.h: Declare
39244 grub_console_init() and grub_console_fini().
39245
39246 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
39247 It's empty and unused.
39248
39249 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
39250 beginning to avoid warnings with some compilers.
39251
39252 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
39253 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
39254
39255 2008-07-14 Pavel Roskin <proski@gnu.org>
39256
39257 * kern/env.c (grub_register_variable_hook): Don't copy empty
39258 string, it leaks memory. Pass "" to grub_env_set(), it should
39259 handle constant strings.
39260
39261 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
39262 * commands/cmp.c (grub_cmd_cmp): Likewise.
39263 * kern/dl.c (grub_dl_flush_cache): Likewise.
39264 (grub_dl_load_core): Likewise.
39265 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
39266 (grub_elf64_load_phdrs): Likewise.
39267
39268 2008-07-13 Pavel Roskin <proski@gnu.org>
39269
39270 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
39271 between signed and unsigned.
39272 (LzmaEnc_Finish): Fix warning about an unused parameter.
39273
39274 2008-07-13 Bean <bean123ch@gmail.com>
39275
39276 * Makefile.in (enable_lzo): New rule.
39277
39278 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
39279
39280 * configure.ac (ENABLE_LZO): New option --enable-lzo.
39281
39282 * boot/i386/pc/lnxboot.S: #include <config.h>.
39283
39284 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
39285 its value according to the compression algorithm used, lzo or lzma.
39286
39287 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
39288 compression algorithm according to configure macro.
39289
39290 * kern/i386/pc/startup.S (codestart): Likewise.
39291
39292 * kern/i386/pc/lzma_decode.S: New file.
39293
39294 * include/grub/lib/LzFind.h: Likewise.
39295
39296 * include/grub/lib/LzHash.h: Likewise.
39297
39298 * include/grub/lib/LzmaDec.h: Likewise.
39299
39300 * include/grub/lib/LzmaEnc.h: Likewise.
39301
39302 * include/grub/lib/LzmaTypes.h: Likewise.
39303
39304 * lib/LzFind.c: Likewise.
39305
39306 * lib/LzmaDec.c: Likewise.
39307
39308 * lib/LzmaEnc.c: Likewise.
39309
39310 2008-07-13 Bean <bean123ch@gmail.com>
39311
39312 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
39313 (grub_ext4_extent_header): New structure.
39314 (grub_ext4_extent): Likewise.
39315 (grub_ext4_extent_idx): Likewise.
39316 (grub_ext4_find_leaf): New function.
39317 (grub_ext2_read_block): Handle extents.
39318
39319 2008-07-12 Robert Millan <rmh@aybabtu.com>
39320
39321 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
39322
39323 2008-07-11 Robert Millan <rmh@aybabtu.com>
39324
39325 * util/grub.d/40_custom.in: New file. Example on how to add custom
39326 entries to /etc/grub.d.
39327 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
39328 40_custom (implicitly, by merging all the grub.d rules).
39329
39330 2008-07-11 Pavel Roskin <proski@gnu.org>
39331
39332 * commands/read.c (grub_getline): Fix invalid memory access.
39333 Don't add newline to the variable value.
39334
39335 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
39336 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
39337 (serial_hw_get_port): Check validity of the port number.
39338 (grub_cmd_serial): Check return value of serial_hw_get_port().
39339
39340 2008-07-07 Pavel Roskin <proski@gnu.org>
39341
39342 * boot/i386/pc/diskboot.S (notification_string): Replace
39343 "Loading kernel" with just "loading". This is shorter, less
39344 confusing and saves a few bytes for possible future changes.
39345
39346 2008-07-05 Pavel Roskin <proski@gnu.org>
39347
39348 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
39349 size for ATAPI devices, they are undefined. Output sector
39350 number in decimal form.
39351
39352 * disk/ata.c: Use named constants for status bits.
39353
39354 2008-07-04 Pavel Roskin <proski@gnu.org>
39355
39356 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
39357 grub_addr_t before casting it to the void pointer to fix a
39358 warning. Non-addressable regions are discarded earlier.
39359 (grub_arch_modules_addr): Cast _end to grub_addr_t.
39360 * kern/i386/linuxbios/table.c: Include grub/misc.h.
39361 (check_signature): Don't shadow table_header.
39362 (grub_linuxbios_table_iterate): Cast numeric constants to
39363 grub_linuxbios_table_header_t.
39364 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
39365 grub_stop().
39366
39367 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
39368 prevent warnings.
39369
39370 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
39371 pointer, which can cause warnings. Support 64-bit addresses.
39372
39373 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
39374 of sizeof(long). This fixes PowerPC image generation on x86_64.
39375
39376 2008-07-04 Robert Millan <rmh@aybabtu.com>
39377
39378 This fixes a performance issue when pc & gpt partmap iterators
39379 didn't abort iteration even after our hook found what it was
39380 looking for (often causing expensive probes of non-existent drives).
39381
39382 Some callers relied on previous buggy behaviour, since they would
39383 raise an error when their own hooks caused early abortion of its
39384 iteration.
39385
39386 * kern/device.c (grub_device_open): Improve error message.
39387 * disk/lvm.c (grub_lvm_open): Likewise.
39388 * disk/raid.c (grub_raid_open): Likewise.
39389
39390 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
39391 when hook requests it, independently of grub_errno.
39392 (pc_partition_map_probe): Do not fail when find_func() caused
39393 early abortion of pc_partition_map_iterate().
39394
39395 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
39396 when hook requests it, independently of grub_errno.
39397 (gpt_partition_map_probe): Do not fail when find_func() caused
39398 early abortion of gpt_partition_map_iterate().
39399
39400 * kern/partition.c (grub_partition_iterate): Abort parent iteration
39401 when hook requests it, independently of grub_errno. Do not fail when
39402 part_map_iterate_hook() caused early abortion of p->iterate().
39403
39404 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
39405 when grub_partition_iterate() returned with non-zero.
39406
39407 2008-07-03 Pavel Roskin <proski@gnu.org>
39408
39409 * disk/ata.c (grub_ata_pio_write): Check status before writing,
39410 like we do in grub_ata_pio_read().
39411 (grub_ata_readwrite): Always write individual sectors. Fix the
39412 sector count for the remainder.
39413 (grub_ata_write): Enable writing to ATA devices. Correctly
39414 report error for ATAPI devices.
39415
39416 2008-07-02 Pavel Roskin <proski@gnu.org>
39417
39418 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
39419 warning.
39420
39421 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
39422 for every read sector, we already increment it for the whole
39423 batch. This fixes reading more than 256 sectors at once.
39424
39425 * util/grub-editenv.c (cmd_info): Cast argument to long
39426 explicitly. ptrdiff_t reduces to int on i386.
39427
39428 * util/grub-editenv.c (main): Be specific which parameter is
39429 missing.
39430
39431 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
39432 (memdisk): Make memdisk_orig_addr a pointer.
39433
39434 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
39435 for file offsets, use grub_off_t instead. Fix printf format
39436 warnings.
39437
39438 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
39439 there. Real unexpected warnings should not drown in the noise
39440 about known problems.
39441
39442 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
39443 grub_disk_addr_t for memory addresses.
39444
39445 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
39446 explicitly to fix a warning.
39447
39448 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
39449
39450 * Makefile.in (MODULE_LDFLAGS): New variable.
39451 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
39452 the linker accepts --build-id=none.
39453 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
39454 MODULE_LDFLAGS.
39455 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
39456
39457 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
39458 those in Linux XFS code. Provide a way to access 64-bit parent
39459 inode.
39460 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
39461 the end of struct grub_xfs_dir_header.
39462
39463 2008-07-02 Bean <bean123ch@gmail.com>
39464
39465 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
39466 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
39467 and GRUB_IEEE1275_FLAG_NO_ANSI.
39468
39469 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
39470 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
39471 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
39472
39473 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
39474 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
39475
39476 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
39477 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
39478
39479 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
39480 esc sequence on non ANSI terminal.
39481 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
39482
39483 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
39484 beginning of file.
39485
39486 2008-07-02 Bean <bean123ch@gmail.com>
39487
39488 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
39489 (grub_editenv_SOURCES): New variable.
39490 (pkglib_MODULES): Add loadenv.mod.
39491 (loadenv_mod_SOURCES): New variable.
39492 (loadenv_mod_CFLAGS): Likewise.
39493 (loadenv_mod_LDFLAGS): Likewise.
39494
39495 * include/grub/envblk.h: New file.
39496
39497 * util/envblk.c: New file.
39498
39499 * util/grub-editenv.c: New file.
39500
39501 * commands/loadenv.c: New file.
39502
39503 2008-07-01 Pavel Roskin <proski@gnu.org>
39504
39505 * include/multiboot2.h (struct multiboot_tag_module): Use char,
39506 not unsigned char. This fixes warnings and is consistent with
39507 other tags.
39508
39509 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
39510
39511 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
39512
39513 * term/tparm.c (analyze): Always set *popcount.
39514
39515 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
39516 cast to fix a warning.
39517
39518 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
39519 cast to suppress a warning.
39520
39521 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
39522 grub_fshelp_read_file() expects.
39523
39524 * fs/fat.c: Fix UUID calculation on big-endian systems. We
39525 write uuid as a 32-bit value in CPU byte order, so declare and
39526 use it as such.
39527
39528 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
39529 long if the format specifier expects it.
39530 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
39531 * partmap/pc.c (pc_partition_map_iterate): Likewise.
39532 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
39533 long to fix a warning.
39534 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
39535 grub_dprintf() arguments to fix warnings.
39536
39537 2008-06-30 Pavel Roskin <proski@gnu.org>
39538
39539 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
39540 install_bsd_part immediately before core.img is embedded or
39541 modified on disk. This fixes core.img verification if core.img
39542 cannot be embedded.
39543
39544 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
39545 core_path to calculate the blocklist.
39546 Patch from Javier Martín <lordhabbit@gmail.com>
39547
39548 2008-06-29 Robert Millan <rmh@aybabtu.com>
39549
39550 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
39551 block to disk block.
39552 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
39553 Patch from Niels Böhm <bitbucket@arcor.de>
39554
39555 2008-06-29 Robert Millan <rmh@aybabtu.com>
39556
39557 * util/update-grub_lib.in (font_path): Search for fonts in
39558 /boot/grub first, which is more likely to be readable (we aren't
39559 deciding where fonts live, just looking for them).
39560
39561 2008-06-26 Pavel Roskin <proski@gnu.org>
39562
39563 * util/biosdisk.c (read_device_map): Don't leave dead map
39564 entries for devices failing stat() check.
39565
39566 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
39567 core_path_dev for the core.img path on the target device.
39568
39569 2008-06-26 Robert Millan <rmh@aybabtu.com>
39570
39571 * disk/fs_uuid.c: New file.
39572 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
39573 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
39574 (fs_uuid_mod_LDFLAGS): New variables.
39575 * include/grub/disk.h (grub_disk_dev_id): Add
39576 `GRUB_DISK_DEVICE_UUID_ID'.
39577 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
39578 implement iterate().
39579
39580 2008-06-26 Robert Millan <rmh@aybabtu.com>
39581
39582 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
39583 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
39584 Linux image includes no initrd.
39585
39586 2008-06-21 Javier Martín <lordhabbit@gmail.com>
39587
39588 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
39589 call to resolve the core image location that effectively appended the
39590 name twice.
39591
39592 2008-06-21 Robert Millan <rmh@aybabtu.com>
39593
39594 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
39595 call from here ...
39596
39597 * util/grub.d/10_hurd.in: ... to here ...
39598 * util/grub.d/10_linux.in: ... and here.
39599
39600 2008-06-19 Robert Millan <rmh@aybabtu.com>
39601
39602 * kern/main.c (grub_main): Export `prefix' variable immediately
39603 after it has been set by grub_machine_set_prefix().
39604
39605 2008-06-19 Robert Millan <rmh@aybabtu.com>
39606
39607 * commands/search.c (search_label, search_fs_uuid, search_file): Print
39608 search result when not saving to variable, not the other way around.
39609 When saving to variable, abort iteration as soon as a match is found.
39610
39611 2008-06-19 Robert Millan <rmh@aybabtu.com>
39612
39613 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
39614 check for partition that provides /boot/grub. Its logic is flawed,
39615 as it prevents prepare_grub_to_access_device() from being called
39616 multiple times.
39617
39618 2008-06-19 Robert Millan <rmh@aybabtu.com>
39619
39620 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
39621 "insmod" command directly when abstraction modules are needed,
39622 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
39623 since it had already been processed).
39624
39625 2008-06-19 Pavel Roskin <proski@gnu.org>
39626
39627 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
39628 changed. This is needed in case GRUB_LIBDIR changes.
39629 * conf/i386-ieee1275.rmk: Likewise.
39630 * conf/i386-linuxbios.rmk: Likewise.
39631 * conf/i386-pc.rmk: Likewise.
39632 * conf/powerpc-ieee1275.rmk: Likewise.
39633
39634 2008-06-18 Pavel Roskin <proski@gnu.org>
39635
39636 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
39637 kernel_elf_symlist.c to symlist.c for consistency with other
39638 architectures. Update all users.
39639 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
39640
39641 2008-06-18 Robert Millan <rmh@aybabtu.com>
39642
39643 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
39644 it in prefix.
39645
39646 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
39647 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
39648 a RAID device, run setup() for all members independently on whether
39649 LVM abstraction is being used.
39650 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
39651 If grub-mkimage has set `*install_dos_part == -2', don't override this
39652 value.
39653 Perform *install_dos_part adjustments independently on whether
39654 we're embedding or not.
39655 Clarify error message when image is too big for embedding.
39656 Remove duplicate *install_dos_part stanza.
39657
39658 2008-06-17 Robert Millan <rmh@aybabtu.com>
39659
39660 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
39661 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
39662 variables.
39663 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
39664 values in grub_ofconsole_normal_color and
39665 grub_ofconsole_highlight_color (they're not directly related to
39666 background and foreground).
39667 (grub_ofconsole_setcolorstate): Extract background and foreground
39668 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
39669
39670 2008-06-17 Robert Millan <rmh@aybabtu.com>
39671
39672 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
39673 /boot/grub for the check in last commit, not /boot (they could be
39674 different partitions).
39675
39676 2008-06-16 Robert Millan <rmh@aybabtu.com>
39677
39678 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
39679 asked to setup access for the same partition that provides /boot,
39680 don't bother using UUIDs since our root already has the value we
39681 want.
39682
39683 2008-06-16 Robert Millan <rmh@aybabtu.com>
39684
39685 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
39686 I2O devices.
39687 Patch from Sven Mueller <sven@debian.org>.
39688
39689 2008-06-16 Robert Millan <rmh@aybabtu.com>
39690
39691 * util/update-grub.in: Check for $EUID instead of $UID.
39692 Reported by Vincent Zweije.
39693
39694 2008-06-16 Bean <bean123ch@gmail.com>
39695
39696 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
39697 (grub_ext2_read_block): Likewise.
39698 (grub_ext2_read_inode): Likewise.
39699 (grub_ext2_mount): Likewise.
39700 (grub_ext2_close): Likewise.
39701 (grub_ext3_get_journal): Removed.
39702
39703 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
39704 (grub_reiserfs_read_symlink): Likewise.
39705 (grub_reiserfs_mount): Likewise.
39706 (grub_reiserfs_open): Likewise.
39707 (grub_reiserfs_read): Likewise.
39708 (grub_reiserfs_close): Likewise.
39709 (grub_reiserfs_get_journal): Removed.
39710
39711 * fs/fshelp.c (grub_fshelp_read): Removed.
39712 (grub_fshelp_map_block): Likewise.
39713
39714 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
39715 (grub_fshelp_journal): Likewise.
39716 (grub_fshelp_read): Likewise.
39717 (grub_fshelp_map_block): Likewise.
39718
39719 2008-06-16 Pavel Roskin <proski@gnu.org>
39720
39721 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
39722 floating point anymore.
39723 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
39724
39725 2008-06-15 Pavel Roskin <proski@gnu.org>
39726
39727 * commands/ls.c (grub_ls_list_files): Use integer calculations
39728 for human readable format, avoid floating point use.
39729 * kern/misc.c (grub_ftoa): Remove.
39730 (grub_vsprintf): Remove floating point support.
39731
39732 2008-06-15 Robert Millan <rmh@aybabtu.com>
39733
39734 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
39735 devices.
39736 Reported by Max Vozeler.
39737
39738 2008-06-15 Robert Millan <rmh@aybabtu.com>
39739
39740 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
39741 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
39742 skipped later.
39743 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
39744 the beginning of the prefix.
39745
39746 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
39747 It is assumed that if we have a memdisk, grub-mkimage has set
39748 grub_prefix to include the "(memdisk)" drive in it.
39749
39750 2008-06-15 Robert Millan <rmh@aybabtu.com>
39751
39752 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
39753 Initialize keyboard controller after registering the terminal, so that
39754 grub_printf() can be called from grub_keyboard_controller_init().
39755
39756 2008-06-15 Robert Millan <rmh@aybabtu.com>
39757
39758 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
39759 extent-btree which is written as big endian on disk.
39760 Reported by Alain Greppin <al@chilibi.org>.
39761
39762 2008-06-14 Robert Millan <rmh@aybabtu.com>
39763
39764 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
39765 * util/i386/pc/grub-install.in (modules): Likewise.
39766
39767 2008-06-13 Pavel Roskin <proski@gnu.org>
39768
39769 * commands/ls.c (grub_ls_list_files): Fix format warnings.
39770
39771 2008-06-13 Bean <bean123ch@gmail.com>
39772
39773 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
39774
39775 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
39776
39777 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
39778 to indicate sparse block.
39779
39780 2008-06-12 Pavel Roskin <proski@gnu.org>
39781
39782 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
39783 number, grub_fshelp_read() does it for us.
39784
39785 * fs/fshelp.c (grub_fshelp_read): New function. Implement
39786 linear disk read with journal translation.
39787 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
39788 * include/grub/fshelp.h: Declare grub_fshelp_read().
39789
39790 2008-06-09 Pavel Roskin <proski@gnu.org>
39791
39792 * fs/minix.c (grub_minix_mount): Handle error reading
39793 superblock.
39794
39795 2008-06-08 Robert Millan <rmh@aybabtu.com>
39796
39797 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
39798 don't append the RAID prefix afterwards.
39799 Reported by Clint Adams.
39800
39801 2008-06-08 Robert Millan <rmh@aybabtu.com>
39802
39803 Based on description from Pavel:
39804 * kern/disk.c (grub_disk_check_range): Rename to ...
39805 (grub_disk_adjust_range): ... this. Add a comment explaining the
39806 tasks performed by this function.
39807
39808 2008-06-08 Robert Millan <rmh@aybabtu.com>
39809
39810 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
39811 `num_serial' (for consistency with other variables).
39812 (struct grub_ntfs_data): Add `uuid' member.
39813 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
39814 (grub_ntfs_uuid): New function.
39815 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
39816
39817 2008-06-07 Pavel Roskin <proski@gnu.org>
39818
39819 * util/biosdisk.c (open_device): Revert last change to the
39820 function, it broke installation. The sector needs to be
39821 different dependent on which device is opened.
39822
39823 2008-06-06 Robert Millan <rmh@aybabtu.com>
39824
39825 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
39826 rest of GRUB, and breakage doesn't happen if its value were modified.
39827
39828 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
39829 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
39830 a constant (same value).
39831 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
39832 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
39833
39834 2008-06-06 Robert Millan <rmh@aybabtu.com>
39835
39836 * util/biosdisk.c (open_device): Do not modify sector offset when
39837 accessing a partition. kern/disk.c already handles this for us.
39838
39839 2008-06-06 Robert Millan <rmh@aybabtu.com>
39840
39841 * util/grub-emu.c (grub_machine_init): Move code in this function from
39842 here ...
39843 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
39844 segfault in case grub_printf() is called).
39845
39846 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
39847 grub_probe. Update all users not to explicitly add it again.
39848 (grub_device): New variable; contains corresponding device for grubdir.
39849 (fs_module, partmap_module, devabstraction_module): Pass
39850 `--device ${grub_device}' to grub_probe to avoid traversing /dev
39851 every time.
39852
39853 2008-06-05 Robert Millan <rmh@aybabtu.com>
39854
39855 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
39856 is found, print it (same layout as with labels).
39857
39858 2008-06-04 Robert Millan <rmh@aybabtu.com>
39859
39860 * util/biosdisk.c (get_drive): Rename to ...
39861 (find_grub_drive): ... this. Update all users.
39862
39863 (get_os_disk): Rename to ...
39864 (convert_system_partition_to_system_disk): ... this. Update all users.
39865
39866 (find_drive): Rename to ...
39867 (find_system_device): ... this. Update all users.
39868
39869 2008-06-04 Robert Millan <rmh@aybabtu.com>
39870
39871 * util/biosdisk.c (get_os_disk): Handle IDA devices.
39872 * util/grub-mkdevicemap.c (get_mmc_disk_name)
39873 (make_device_map): Likewise.
39874
39875 2008-06-01 Robert Millan <rmh@aybabtu.com>
39876
39877 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
39878 before dereferencing it.
39879
39880 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
39881 union with fat12/fat16-specific ones. Add some new fields, including
39882 `num_serial' for both versions.
39883 (struct grub_fat_data): Add `uuid' member.
39884 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
39885 names. Initialize `data->uuid' using `num_serial'.
39886 (grub_fat_uuid): New function.
39887 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
39888
39889 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
39890 (grub_reiserfs_uuid): New function.
39891 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
39892 member.
39893
39894 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
39895 (grub_xfs_uuid): New function.
39896 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
39897
39898 2008-06-01 Robert Millan <rmh@aybabtu.com>
39899
39900 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
39901 code that is backward compatible with pre-uuid search command.
39902
39903 2008-05-31 Robert Millan <rmh@aybabtu.com>
39904
39905 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
39906 floppies after everything else, to ensure floppy drive isn't accessed
39907 unnecessarily (patch from Bean).
39908
39909 2008-05-31 Robert Millan <rmh@aybabtu.com>
39910
39911 * commands/search.c (search_label, search_fs_uuid, search_file): Do
39912 not print device names when we were asked to set a variable.
39913
39914 2008-05-31 Robert Millan <rmh@aybabtu.com>
39915
39916 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
39917 using "cursor-on" and "cursor-off" commands (understood at least by
39918 the Open Firmware flavour on OLPC).
39919
39920 2008-05-31 Michael Gorven <michael@gorven.za.net>
39921
39922 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
39923 on and off sequences.
39924
39925 2008-05-31 Robert Millan <rmh@aybabtu.com>
39926
39927 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
39928 * util/update-grub.in: Likewise.
39929
39930 2008-05-30 Pavel Roskin <proski@gnu.org>
39931
39932 * util/biosdisk.c (linux_find_partition): Simplify logic and
39933 make the code more universal. Keep special processing for
39934 devfs, but use a simple rule for all other devices. If the
39935 device ends with a number, append 'p' and the partition number.
39936 Otherwise, append only the partition number.
39937
39938 2008-05-30 Robert Millan <rmh@aybabtu.com>
39939
39940 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
39941 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
39942 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
39943 the `root' parameter to Linux.
39944
39945 2008-05-30 Robert Millan <rmh@aybabtu.com>
39946
39947 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
39948 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
39949 --fs_uuid with --fs-uuid.
39950 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
39951 all filesystems support them).
39952
39953 2008-05-30 Robert Millan <rmh@aybabtu.com>
39954
39955 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
39956 grub_printf() flags, since we're printing in units of 2 bytes.
39957
39958 2008-05-30 Robert Millan <rmh@aybabtu.com>
39959
39960 * util/grub.d/00_header.in: Remove obsolete comment referencing
39961 convert_system_path_to_grub_path().
39962 * util/update-grub.in: Likewise.
39963 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
39964 (convert_system_path_to_grub_path): Add a warning message explaining
39965 that this function is deprecated. Rely on is_path_readable_by_grub()
39966 for the readability checks.
39967 (font_path): Use is_path_readable_by_grub() for the readability
39968 check rather than convert_system_path_to_grub_path().
39969
39970 2008-05-30 Robert Millan <rmh@aybabtu.com>
39971
39972 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
39973 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
39974 converting it first.
39975 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
39976 grub.cfg for access to font file, and afterwards call it again to set
39977 the root device.
39978
39979 2008-05-30 Robert Millan <rmh@aybabtu.com>
39980
39981 * commands/search.c (options): Add --fs_uuid option.
39982 (search_fs_uuid): New function.
39983 (grub_cmd_search): Fix --set argument passing.
39984 Use search_fs_uuid() when requested via --fs_uuid.
39985 (grub_search_init): Update help message.
39986 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
39987 and redeclare it as an array of 16-bit words.
39988 (grub_ext2_uuid): New function.
39989 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
39990 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
39991 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
39992 (GRUB_DEVICE_BOOT_UUID): New variables.
39993 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
39994 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
39995 whenever possible.
39996 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
39997 just assume `root' variable has the right value.
39998 * util/grub.d/10_linux.in: Likewise.
39999 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
40000 via PRINT_FS_UUID.
40001 (main): Recognise `-t fs_uuid' argument.
40002
40003 2008-05-30 Robert Millan <rmh@aybabtu.com>
40004
40005 * util/biosdisk.c (map): Redefine structure to hold information
40006 about GRUB drive name.
40007 (get_drive): Reimplement without assuming (and verifying) BIOS-like
40008 drive names.
40009 (call_hook): Remove.
40010 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
40011 member. Assume drive has partitions.
40012 (grub_util_biosdisk_open): Access device names via `.device' struct
40013 member.
40014 (open_device): Likewise.
40015 (find_drive): Likewise.
40016 (read_device_map): Adjust map[] usage to match the new struct
40017 definition. Don't check for duplicates (still possible, but not cheap
40018 anymore).
40019 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
40020 (make_device_name): Remove assumption of BIOS-like drive names.
40021
40022 2008-05-30 Pavel Roskin <proski@gnu.org>
40023
40024 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
40025 compiling execute.c doesn't need grub_script.tab.h anymore.
40026 (normal/command.c_DEPENDENCIES): Likewise.
40027 (normal/function.c_DEPENDENCIES): Likewise.
40028 * conf/i386-ieee1275.rmk: Likewise.
40029 * conf/i386-linuxbios.rmk: Likewise.
40030 * conf/i386-pc.rmk: Likewise.
40031 * conf/powerpc-ieee1275.rmk: Likewise.
40032 * conf/sparc64-ieee1275.rmk: Likewise.
40033
40034 2008-05-29 Pavel Roskin <proski@gnu.org>
40035
40036 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
40037 when scanning metadata for volume group name.
40038
40039 * include/grub/script.h: Don't include grub_script.tab.h. It's
40040 a generated file, which may only be included from the files with
40041 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
40042 use union YYSTYPE, as the later allows forward declaration.
40043 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
40044
40045 2008-05-29 Robert Millan <rmh@aybabtu.com>
40046
40047 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
40048 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
40049 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
40050 (grub_console_checkkey): Add grub_dprintf() call to report unknown
40051 scan codes.
40052
40053 2008-05-29 Robert Millan <rmh@aybabtu.com>
40054
40055 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
40056 control key combinations.
40057
40058 2008-05-29 Robert Millan <rmh@aybabtu.com>
40059
40060 * util/powerpc/ieee1275/grub-install.in: Move from here ...
40061 * util/ieee1275/grub-install.in: ... to here.
40062 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
40063 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
40064 (grub_install_SOURCES): Likewise.
40065
40066 2008-05-29 Robert Millan <rmh@aybabtu.com>
40067
40068 * fs/affs.c: Update copyright year.
40069 * fs/ext2.c: Likewise.
40070 * fs/fshelp.c: Likewise.
40071 * fs/hfsplus.c: Likewise.
40072 * fs/ntfs.c: Likewise.
40073 * fs/xfs.c: Likewise.
40074 * include/grub/fshelp.h: Likewise.
40075 * util/grub-mkdevicemap.c: Likewise.
40076
40077 2008-05-28 Robert Millan <rmh@aybabtu.com>
40078
40079 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
40080 might need to be fatfs to support some firmware implementations
40081 (e.g. OFW or EFI).
40082
40083 2008-05-28 Robert Millan <rmh@aybabtu.com>
40084
40085 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
40086 devices.
40087 * util/grub-mkdevicemap.c (get_mmc_disk_name)
40088 (make_device_map): Likewise.
40089
40090 2008-05-20 Bean <bean123ch@gmail.com>
40091
40092 * fs/fshelp.c (grub_fshelp_map_block): New function.
40093 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
40094 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
40095
40096 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
40097 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
40098 (grub_fshelp_journal): New structure.
40099 (grub_fshelp_map_block): New function prototype.
40100 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
40101 (grub_fshelp_map_block): Likewise.
40102
40103 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
40104 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
40105 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
40106 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
40107 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
40108 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
40109 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
40110 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
40111 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
40112 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
40113 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
40114 (grub_ext2_sblock): New members for journal support.
40115 (grub_ext3_journal_header): New structure.
40116 (grub_ext3_journal_revoke_header): Likewise.
40117 (grub_ext3_journal_block_tag): Likewise.
40118 (grub_ext3_journal_sblock): Likewise.
40119 (grub_fshelp_node): New members logfile and journal.
40120 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
40121 grub_fshelp_map_block to get real block number.
40122 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
40123 number.
40124 (grub_ext2_read_inode): Likewise.
40125 (grub_ext3_get_journal): New function.
40126 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
40127 (grub_ext2_close): Release memory used by journal.
40128
40129 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
40130 (REISERFS_MAGIC_DESC_BLOCK): New macro.
40131 (grub_reiserfs_transaction_header): Renamed to
40132 grub_reiserfs_description_block, replace field data with real_blocks.
40133 (grub_reiserfs_commit_block): New structure.
40134 (grub_reiserfs_data): New member journal.
40135 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
40136 number.
40137 (grub_reiserfs_read_symlink): Likewise.
40138 (grub_reiserfs_iterate_dir): Likewise.
40139 (grub_reiserfs_open): Likewise.
40140 (grub_reiserfs_read): Likewise.
40141 (grub_reiserfs_get_journal): New function.
40142 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
40143 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
40144 using grub_reiserfs_get_journal.
40145 (grub_reiserfs_close): Release memory used by journal.
40146
40147 * fs/affs.c (grub_affs_read_block): Change block type to
40148 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
40149
40150 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
40151
40152 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
40153
40154 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
40155
40156 * fs/udf.c (grub_udf_read_block): Change block type to
40157 grub_disk_addr_t. Use type cast to avoid warning.
40158
40159 * fs/xfs.c (grub_xfs_read_block): Likewise.
40160
40161 2008-05-16 Christian Franke <franke@computer.org>
40162
40163 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
40164 to ensure that break with ESC will always work.
40165 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
40166 Remove ESC from keyboard queue.
40167
40168 2008-05-16 Christian Franke <franke@computer.org>
40169
40170 * util/biosdisk.c: [__CYGWIN__] Add includes.
40171 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
40172 (get_os_disk): Move variable declarations to OS specific
40173 parts to avoid warning.
40174 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
40175 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
40176 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
40177 Cygwin.
40178 * util/getroot.c: [__CYGWIN__] Add includes.
40179 (strip_extra_slashes): Fix "/" case.
40180 [__CYGWIN__] (get_win32_path): New function.
40181 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
40182 [__CYGWIN__] (find_root_device): Disable.
40183 [__CYGWIN__] (get_bootsec_serial): New function.
40184 [__CYGWIN__] (find_cygwin_root_device): Likewise.
40185 [__linux__] (grub_guess_root_device): Add early returns to simplify
40186 structure.
40187 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
40188 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
40189 check for Linux only.
40190
40191 2008-05-15 Bean <bean123ch@gmail.com>
40192
40193 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
40194 keyboard hang problem in apple's intel mac.
40195
40196 2008-05-09 Robert Millan <rmh@aybabtu.com>
40197
40198 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
40199 devices.
40200 * util/grub-mkdevicemap.c (get_virtio_disk_name)
40201 (make_device_map): Likewise.
40202 Reported by Aurelien Jarno <aurel32@debian.org>
40203
40204 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
40205
40206 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
40207 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
40208 (make_device_map): Output entries for xvd type disks.
40209
40210 2008-05-07 Robert Millan <rmh@aybabtu.com>
40211
40212 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
40213 devices.
40214 * util/grub-mkdevicemap.c (get_cciss_disk_name)
40215 (make_device_map): Likewise.
40216 Reported by Roland Dreier <rdreier@cisco.com>
40217
40218 2008-05-07 Robert Millan <rmh@aybabtu.com>
40219
40220 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
40221 grub_strstr() call. Correct a few mistakes in failure path handling.
40222
40223 2008-05-06 Robert Millan <rmh@aybabtu.com>
40224
40225 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
40226 Do not print a trailing slash (therefore, the root directory is an
40227 empty string).
40228 (convert_system_path_to_grub_path): Do not remove trailing slash
40229 from make_system_path_relative_to_its_root() output.
40230
40231 * util/i386/pc/grub-install.in: Add trailing slash to output from
40232 make_system_path_relative_to_its_root().
40233
40234 2008-05-06 Robert Millan <rmh@aybabtu.com>
40235
40236 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
40237 ensures that output lines aren't intermangled with those sent to
40238 stderr (via grub_util_info()).
40239 * util/grub-probe.c (grub_refresh): Likewise.
40240 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
40241
40242 2008-05-05 Christian Franke <franke@computer.org>
40243
40244 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
40245 Add Cygwin device names.
40246 (get_ide_disk_name) [__CYGWIN__]: Likewise.
40247 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
40248 (check_device): Return error instead of success on empty name.
40249 (make_device_map): Move label inside linux specific code to
40250 prevent compiler warning.
40251
40252 2008-04-30 Robert Millan <rmh@aybabtu.com>
40253
40254 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
40255 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
40256 first boot option.
40257 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
40258
40259 2008-04-29 Robert Millan <rmh@aybabtu.com>
40260
40261 * docs/grub.cfg: New file (example GRUB configuration).
40262
40263 2008-04-26 Robert Millan <rmh@aybabtu.com>
40264
40265 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
40266 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
40267 and `disk/ieee1275/nand.c'.
40268
40269 2008-04-25 Bean <bean123ch@gmail.com>
40270
40271 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
40272 i386-linuxbios.
40273
40274 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
40275 change the buffer size to 4096 for cdrom device.
40276
40277 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
40278 and nand.mod.
40279 (_linux_mod_SOURCES): New variable.
40280 (_linux_mod_CFLAGS): Likewise.
40281 (_linux_mod_LDFLAGS): Likewise.
40282 (linux_mod_SOURCES): Likewise.
40283 (linux_mod_CFLAGS): Likewise.
40284 (linux_mod_LDFLAGS): Likewise.
40285 (nand_mod_SOURCES): Likewise.
40286 (nand_mod_CFLAGS): Likewise.
40287 (nand_mod_LDFLAGS): Likewise.
40288
40289 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
40290 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
40291 type property. (nand device in olpc don't have this property)
40292
40293 * include/grub/disk.h (grub_disk_dev_id): New macro
40294 GRUB_DISK_DEVICE_NAND_ID.
40295
40296 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
40297 function prototype.
40298 (grub_rescue_cmd_initrd): Likewise.
40299
40300 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
40301 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
40302 ofw_cif_handler and ofw_idt, adjust padding number.
40303
40304 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
40305 GRUB_MACHINE_IEEE1275 is defined.
40306
40307 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
40308 Use NESTED_FUNC_ATTR attribute on the hook parameter.
40309
40310 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
40311 on nested function heap_init.
40312 (grub_upper_mem): New variable for i386-ieee1275.
40313 (grub_get_extended_memory): New function for i386-ieee1275.
40314 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
40315
40316 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
40317 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
40318 property.
40319
40320 * loader/i386/ieee1275/linux.c: New file.
40321
40322 * loader/i386/ieee1275/linux_normal.c: New file.
40323
40324 * disk/ieee1275/nand.c: New file.
40325
40326 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
40327
40328 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
40329 value.
40330 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
40331
40332 2008-04-18 Robert Millan <rmh@aybabtu.com>
40333
40334 Restructures early code path on ieee1275 to unify grub_main() as
40335 the first C function that is executed in every platform.
40336
40337 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
40338 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
40339 cmain().
40340 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
40341 * kern/ieee1275/cmain.c (cmain): Rename to ...
40342 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
40343 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
40344 at the beginning.
40345
40346 2008-04-18 Robert Millan <rmh@aybabtu.com>
40347
40348 * util/update-grub.in: Fix syntax error when setting
40349 `GRUB_PRELOAD_MODULES'.
40350 Reported by Stephane Chazelas <stephane@artesyncp.com>
40351
40352 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
40353
40354 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
40355 section into account, newer toolchains generate unique build ids
40356 * configure.ac: remove the test for --build-id=none acceptance,
40357 we want build ids to be preserved
40358 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
40359 far from other sections don't cause the raw binary images grow
40360 size
40361
40362 2008-04-15 Robert Millan <rmh@aybabtu.com>
40363
40364 * disk/lvm.c: Update copyright year.
40365 * kern/misc.c: Likewise.
40366
40367 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
40368
40369 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
40370 there is no memory left for physical volume name.
40371
40372 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
40373
40374 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
40375 volume name mapping to support bigger than 9 character names properly.
40376
40377 2008-04-13 Robert Millan <rmh@aybabtu.com>
40378
40379 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
40380 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
40381
40382 2008-04-13 Christian Franke <franke@computer.org>
40383
40384 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
40385 to create a floppy emulation boot CD when non emulation mode
40386 does not work.
40387 Enable Joliet CD filesystem extension.
40388
40389 2008-04-13 Robert Millan <rmh@aybabtu.com>
40390
40391 * kern/misc.c (grub_strncat): Fix off-by-one error.
40392 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
40393
40394 * kern/env.c (grub_env_context_close): Clear current context, not
40395 previous one.
40396 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
40397
40398 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
40399
40400 2008-04-13 Robert Millan <rmh@aybabtu.com>
40401
40402 Improve robustness when handling LVM.
40403
40404 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
40405 (and leave `*p' unmodified).
40406 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
40407 through it.
40408 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
40409 iterating through it.
40410 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
40411 through it.
40412 (grub_lvm_scan_device): Check the return value (and fail gracefully
40413 when due) on each grub_lvm_getvalue() or grub_strstr() call.
40414 Don't assume `vg->pvs != NULL' when iterating through it.
40415
40416 2008-04-13 Robert Millan <rmh@aybabtu.com>
40417
40418 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
40419 * genmk.rb (partmap): New variable.
40420 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
40421 (#{partmap}): New target rule.
40422 * genpartmaplist.sh: New file.
40423 * Makefile.in (pkglib_DATA): Add partmap.lst.
40424 (partmap.lst): New target rule.
40425 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
40426 modules (including all partition maps), instead of preloading them.
40427
40428 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
40429
40430 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
40431 `linux-boot-prober' (if installed) to detect other operating
40432 systems which are installed on the computer and add them to
40433 the boot menu.
40434 * conf/common.rmk: Build and install 30_os-prober.
40435
40436 2008-04-12 Robert Millan <rmh@aybabtu.com>
40437
40438 * kern/powerpc/ieee1275/init.c: Move from here ...
40439 * kern/ieee1275/init.c: ... to here. Update all users.
40440
40441 * kern/powerpc/ieee1275/cmain.c: Move from here ...
40442 * kern/ieee1275/cmain.c: ... to here. Update all users.
40443
40444 * kern/powerpc/ieee1275/openfw.c: Move from here ...
40445 * kern/ieee1275/openfw.c: ... to here. Update all users.
40446
40447 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
40448 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
40449
40450 2008-04-10 Pavel Roskin <proski@gnu.org>
40451
40452 * configure.ac: Always use "_cv_" in cache variables for
40453 compatibility with Autoconf 2.62.
40454
40455 2008-04-07 Robert Millan <rmh@aybabtu.com>
40456
40457 Revert grub/machine/init.h addition by Pavel (since it breaks on
40458 i386-ieee1275 and others):
40459 * util/i386/pc/misc.c: Remove grub/machine/init.h.
40460 * util/powerpc/ieee1275/misc.c: Likewise.
40461
40462 2008-04-07 Robert Millan <rmh@aybabtu.com>
40463
40464 * util/grub-probe.c (probe): Improve error message.
40465
40466 2008-04-07 Robert Millan <rmh@aybabtu.com>
40467
40468 * util/biosdisk.c (read_device_map): Skip devices that don't exist
40469 (this prevents the presence of a bogus entry from ruining the whole
40470 thing).
40471
40472 2008-04-06 Pavel Roskin <proski@gnu.org>
40473
40474 * util/biosdisk.c: Include grub/util/biosdisk.h.
40475 * util/grub-fstest.c (execute_command): Make static.
40476 * util/grub-mkdevicemap.c (check_device): Likewise.
40477 * util/i386/pc/misc.c: Include grub/machine/init.h.
40478 * util/powerpc/ieee1275/misc.c: Likewise.
40479 * util/lvm.c: Include grub/util/lvm.h.
40480 * util/misc.c: Include grub/kernel.h, grub/misc.h and
40481 grub/cache.h.
40482 * util/raid.c: Include grub/util/raid.h.
40483 (grub_util_getdiskname): Make static.
40484
40485 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
40486 grub_hostfs_fini(), as they are called from grub_init_all() and
40487 grub_fini_all() respectively. This fixes an infinite loop in
40488 grub-fstest due to double registration of hostfs.
40489 Reported by Christian Franke <Christian.Franke@t-online.de>
40490
40491 2008-04-05 Pavel Roskin <proski@gnu.org>
40492
40493 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
40494 all 8 functions. Otherwise, probe function 0 only.
40495
40496 2008-04-04 Pavel Roskin <proski@gnu.org>
40497
40498 * commands/lspci.c (grub_lspci_iter): Print the bus number
40499 correctly.
40500
40501 * commands/lspci.c (grub_pci_classes): Fix typos.
40502 (grub_lspci_iter): Don't print func twice. Print vendor ID
40503 before device ID, as it's normally done.
40504
40505 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
40506 Fix signedness warnings.
40507 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
40508 Likewise.
40509 * util/ieee1275/get_disk_name.c: Include config.h so that
40510 _GNU_SOURCE is defined and getline() is declared. Mark an
40511 unused argument as such. Fix a signedness warning.
40512
40513 2008-04-02 Pavel Roskin <proski@gnu.org>
40514
40515 * genkernsyms.sh.in: Use more robust assignments for CC and
40516 srcdir. Quote srcdir.
40517 * gensymlist.sh.in: Likewise. Assert at the compile time that
40518 the symbol table is not empty.
40519
40520 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
40521 * fs/cpio.c (grub_cpio_read): Likewise.
40522
40523 2008-04-01 Pavel Roskin <proski@gnu.org>
40524
40525 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
40526 * disk/host.c (grub_host_open): Likewise.
40527 * disk/loopback.c (grub_loopback_open): Likewise.
40528 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
40529 disk->id as in disk/host.c, not a multi-character constant.
40530
40531 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
40532 later is obsolete, potentially dangerous and sets a bad example.
40533 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
40534 * util/misc.c (grub_util_get_image_size): Likewise.
40535
40536 * disk/loopback.c (options): Improve help for "--partitions".
40537
40538 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
40539 options to align them with the short options, e.g. "echo -e".
40540
40541 2008-03-31 Bean <bean123ch@gmail.com>
40542
40543 * video/reader/png.c (grub_png_data): New member is_16bit and
40544 image_data.
40545 (grub_png_decode_image_header): Detect 16 bit png image.
40546 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
40547 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
40548 (grub_video_reader_png): Release memory occupied by image_data.
40549
40550 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
40551 4096 bytes.
40552 (grub_nfs_mount): Skip the test for sector per cluster.
40553
40554 * include/grub/ntfs.h (MAX_SPC): Removed.
40555
40556 2008-03-31 Bean <bean123ch@gmail.com>
40557
40558 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
40559 (grub_probe_SOURCES): Add fs/afs.c.
40560 (grub_fstest_SOURCES): Likewise.
40561 (afs_mod_SOURCES): New variable.
40562 (afs_mod_CFLAGS): Likewise.
40563 (afs_mod_LDFLAGS): Likewise.
40564
40565 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
40566 (grub_emu_SOURCES): Likewise.
40567
40568 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40569
40570 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40571
40572 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
40573
40574 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40575
40576 * fs/afs.c: New file.
40577
40578 2008-03-30 Pavel Roskin <proski@gnu.org>
40579
40580 * disk/host.c: Include grub/misc.h to fix a warning.
40581 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
40582 warnings about implicit declarations.
40583
40584 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
40585 variable.
40586 * include/grub/i386/loader.h: Change declaration of
40587 grub_linux_boot() to match what grub_loader_set() expects.
40588 * util/getroot.c (grub_guess_root_device): Return const char* to
40589 fix a warning.
40590 * util/grub-probe.c (probe): Fix a warning about uninitialized
40591 abstraction_name variable.
40592 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
40593 second argument as unused to fix a warning.
40594
40595 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
40596 missing grub_error() call.
40597
40598 * util/update-grub_lib.in: Define datarootdir, since Autoconf
40599 2.60 and newer uses it to define datadir.
40600
40601 * commands/sleep.c: Fix warning about implicit declaration.
40602 * disk/memdisk.c: Likewise.
40603 * loader/aout.c: Likewise.
40604 * loader/i386/bsd_normal.c: Likewise.
40605 * util/grub-probe.c: Likewise.
40606
40607 * commands/i386/cpuid.c (has_longmode): Make static.
40608 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
40609 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
40610
40611 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
40612 GDT. This is more robust, as %ds can change.
40613 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
40614 calling real_to_prot().
40615 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
40616
40617 2008-03-28 Pavel Roskin <proski@gnu.org>
40618
40619 * kern/i386/pc/startup.S: Assert that uncompressed functions
40620 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
40621 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
40622 code, as they push parts of the code (error handlers) beyond
40623 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
40624 code as correctness and size.
40625
40626 2008-03-28 Pavel Roskin <proski@gnu.org>
40627
40628 * kern/i386/pc/startup.S
40629 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
40630 data block address to the real mode, keep offset minimal. This
40631 works around a bug in AWARD BIOS on old Athlon systems, which
40632 makes CD detection hang.
40633
40634 2008-03-26 Pavel Roskin <proski@gnu.org>
40635
40636 * normal/color.c (grub_parse_color_name_pair): Make `name' a
40637 const.
40638 * include/grub/normal.h: Add grub_parse_color_name_pair()
40639 declaration.
40640
40641 2008-03-24 Bean <bean123ch@gmail.com>
40642
40643 * disk/i386/pc/biosdisk.c (cd_start): Removed.
40644 (cd_count): Removed.
40645 (cd_drive): New variable.
40646 (grub_biosdisk_get_drive): Don't check for (cdN) device.
40647 (grub_biosdisk_call_hook): Likewise.
40648 (grub_biosdisk_iterate): Change cdrom detection method.
40649 (grub_biosdisk_open): Replace cd_start with cd_drive.
40650 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
40651 detect cdrom device.
40652
40653 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
40654 Removed.
40655 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
40656 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
40657 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
40658 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
40659 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
40660 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
40661 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
40662 (grub_biosdisk_cdrp): New structure.
40663 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
40664
40665 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
40666
40667 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
40668 device.
40669
40670 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
40671 New function.
40672
40673 2008-03-20 Robert Millan <rmh@aybabtu.com>
40674
40675 Remove 2 TiB limit in ata.mod.
40676 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
40677 (grub_ata_dumpinfo): Print sector count with 0x%llx.
40678 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
40679 grub_uint64_t instead of grub_uint32_t.
40680
40681 2008-03-05 Bean <bean123ch@gmail.com>
40682
40683 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
40684 (grub_multiboot): Set boot device.
40685
40686 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
40687
40688 2008-03-02 Bean <bean123ch@gmail.com>
40689
40690 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
40691 symlink_buffer.
40692
40693 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
40694
40695 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
40696 texinfo.tex.
40697
40698 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
40699 modified.
40700
40701 * docs/fdl.texi: New file.
40702
40703 * docs/mdate-sh: New file. Copied from gnulib.
40704 * docs/texinfo.tex: Likewise.
40705
40706 * config.guess: Updated from gnulib.
40707 * install-sh: Likewise.
40708
40709 2008-02-28 Robert Millan <rmh@aybabtu.com>
40710
40711 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
40712 (aout_mod_SOURCES): New variable.
40713 (aout_mod_CFLAGS): Likewise.
40714 (aout_mod_LDFLAGS): Likewise.
40715
40716 * conf/i386-ieee1275.rmk: Likewise.
40717
40718 2008-02-28 Robert Millan <rmh@aybabtu.com>
40719
40720 * util/update-grub.in: Reorganise terminal validity check. Accept
40721 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
40722 Based on suggestion by Franklin PIAT.
40723
40724 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
40725
40726 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
40727 function.
40728 * util/getroot.c (grub_util_check_block_device): New function that
40729 returns the given argument if it is a block device and returns NULL else.
40730 * util/grub-probe.c (argument_is_device): New variable.
40731 (probe): Promote device_name from a variable to an argument. Receive
40732 device_name from grub_util_check_block_device() if path is NULL and from
40733 grub_guess_root_device() else. Do not free() device_name anymore.
40734 (options): Introduce new parameter '-d, --device'.
40735 (main): Add description of the new parameter to the help screen.
40736 Rename path variable to argument. Set argument_is_device if the '-d'
40737 option is given. Pass argument to probe() depending on
40738 argument_is_device.
40739
40740 2008-02-24 Bean <bean123ch@gmail.com>
40741
40742 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
40743 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
40744 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
40745 (GRUB_ISO9660_VOLDESC_PART): Likewise.
40746 (GRUB_ISO9660_VOLDESC_END): Likewise.
40747 (grub_iso9660_primary_voldesc): New member escape.
40748 (grub_iso9660_data): New member joliet.
40749 (grub_iso9660_convert_string): New function.
40750 (grub_iso9660_mount): Detect joliet extension.
40751 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
40752 (grub_iso9660_iso9660_label): Likewise.
40753
40754 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
40755 (grub_setup_SOURCES): Add fs/udf.c.
40756 (grub_fstest_SOURCES): Likewise.
40757 (udf_mod_SOURCES): New variable.
40758 (udf_mod_CFLAGS): Likewise.
40759 (udf_mod_LDFLAGS): Likewise.
40760
40761 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
40762 (grub_emu_SOURCES): Likewise.
40763
40764 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40765
40766 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40767
40768 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
40769
40770 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40771
40772 * fs/udf.c: New file.
40773
40774 2008-02-24 Robert Millan <rmh@aybabtu.com>
40775
40776 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
40777 (normal/lexer.c_DEPENDENCIES): New variables.
40778 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
40779 (normal/lexer.c_DEPENDENCIES): Likewise.
40780 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
40781 (normal/lexer.c_DEPENDENCIES): Likewise.
40782 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
40783 (normal/lexer.c_DEPENDENCIES): Likewise.
40784 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
40785 (normal/lexer.c_DEPENDENCIES): Likewise.
40786 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
40787 (normal/lexer.c_DEPENDENCIES): Likewise.
40788
40789 2008-02-23 Robert Millan <rmh@aybabtu.com>
40790
40791 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
40792 since they were intended to be in hex. This didn't break previously
40793 because of a bug in gpt_partition_map_iterate() (see below).
40794
40795 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
40796 when checking the validity of GPT header.
40797 Remove `partno', since it always provides the same information as `i'.
40798
40799 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
40800
40801 * include/grub/efi/time.h: Fix a wrong comment.
40802
40803 2008-02-19 Pavel Roskin <proski@gnu.org>
40804
40805 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
40806 message.
40807
40808 2008-02-19 Bean <bean123ch@gmail.com>
40809
40810 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
40811 (aout_mod_SOURCES): New variable.
40812 (aout_mod_CFLAGS): Likewise.
40813 (aout_mod_LDFLAGS): Likewise.
40814 (_bsd_mod_SOURCES): New variable.
40815 (_bsd_mod_CFLAGS): Likewise.
40816 (_bsd_mod_LDFLAGS): Likewise.
40817 (bsd_mod_SOURCES): New variable.
40818 (bsd_mod_CFLAGS): Likewise.
40819 (bsd_mod_LDFLAGS): Likewise.
40820
40821 * include/grub/aout.h: New file.
40822
40823 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
40824
40825 * include/grub/i386/bsd.h: New file.
40826
40827 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
40828 to make it public.
40829
40830 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
40831 function is called, so that it's possible to change it inside the hook.
40832 (grub_elf64_load): Likewise.
40833 (grub_elf_file): Don't close the file if elf header is not found.
40834 (grub_elf_close): Close the file if grub_elf_file fails (The new
40835 grub_elf_file won't close it).
40836 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
40837 (grub_elf64_size): Likewise.
40838
40839 * kern/i386/loader.S (grub_unix_real_boot): New function.
40840
40841 * loader/aout.c: New file.
40842
40843 * loader/i386/bsd.c: New file.
40844
40845 * loader/i386/bsd_normal.c: New file.
40846
40847 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
40848
40849 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
40850 can test other formats.
40851
40852 2008-02-19 Robert Millan <rmh@aybabtu.com>
40853
40854 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
40855 (grub_gpt_partition_type_empty): Redefine with macro from
40856 `<grub/gpt_partition.h>'.
40857 (gpt_partition_map_iterate): Adjust partition type comparison.
40858
40859 Export `entry' as partmap-specific `part.data' struct.
40860 (grub_gpt_header, grub_gpt_partentry): Move from here ...
40861
40862 * include/grub/gpt_partition.h (grub_gpt_header)
40863 (grub_gpt_partentry): ... to here (new file).
40864
40865 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
40866
40867 (grub_gpt_partition_type_bios_boot): New const variable, defined
40868 with macro from `<grub/gpt_partition.h>'.
40869
40870 (setup): Replace `first_start' with `embed_region', which keeps
40871 track of the embed region (and is partmap-agnostic).
40872
40873 Replace find_first_partition_start() with find_usable_region(),
40874 which finds a usable region for embedding using partmap-specific
40875 knowledge (supports PC/MSDOS and GPT).
40876
40877 Fix all assumptions that the embed region start at sector 1, using
40878 `embed_region.start' from now on. Similarly, use `embed_region.end'
40879 rather than `first_start' to calculate available size.
40880
40881 In grub_util_info() message, replace "into after the MBR" with an
40882 indication of the specific sector our embed region starts at.
40883
40884 2008-02-19 Robert Millan <rmh@aybabtu.com>
40885
40886 * DISTLIST: Replace `commands/ieee1275/halt.c' and
40887 `commands/ieee1275/reboot.c' with `commands/halt.c' and
40888 `commands/reboot.c'.
40889 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
40890 (halt_mod_SOURCES): Likewise.
40891 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
40892 (halt_mod_SOURCES): Likewise.
40893
40894 2008-02-17 Christian Franke <franke@computer.org>
40895
40896 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
40897
40898 2008-02-17 Robert Millan <rmh@aybabtu.com>
40899
40900 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
40901 set `first_start' to 0 for non-PC/MSDOS partition maps.
40902
40903 2008-02-16 Robert Millan <rmh@aybabtu.com>
40904
40905 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
40906 do not assume partition map is PC/MSDOS before performing checks that
40907 are specific to that layout.
40908
40909 2008-02-13 Robert Millan <rmh@aybabtu.com>
40910
40911 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
40912 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
40913 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
40914
40915 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
40916
40917 * configure.ac: Only a cosmetic change on the handling of
40918 -fno-stack-protector.
40919
40920 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
40921
40922 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
40923 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
40924 reboot.c.
40925 (grub_install_SOURCES): Add halt.mod and reboot.mod.
40926 (halt_mod_SOURCES): New variable.
40927 (halt_mod_CFLAGS): Likewise.
40928 (halt_mod_LDFLAGS): Likewise.
40929 (reboot_mod_SOURCES): Likewise.
40930 (reboot_mod_CFLAGS): Likewise.
40931 (reboot_mod_LDFLAGS): Likewise.
40932
40933 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
40934 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
40935 reboot.c.
40936 (halt_mod_SOURCES): Likewise.
40937 (reboot_mod_SOURCES): Likewise.
40938
40939 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
40940 commands/i386/pc/reboot.c by commands/reboot.c.
40941 (reboot_mod_SOURCES): Likewise.
40942
40943 * commands/i386/pc/reboot.c: merge this file ...
40944
40945 * commands/ieee1275/reboot.c: ... and this file ...
40946
40947 * commands/reboot.c: ... to this file.
40948 Add some precompiler directive to include the correct header for
40949 each machine.
40950
40951 * commands/ieee1275/halt.c: move this file ...
40952
40953 * commands/halt.c: ... to here.
40954 Add some precompiler directive to include the correct header for
40955 each machine.
40956
40957 * include/grub/efi/efi.h (grub_reboot): New function declaration.
40958 (grub_halt): Likewise.
40959
40960 * kern/efi/efi.c (grub_reboot): New function.
40961 (grub_halt): Likewise.
40962
40963 2008-02-12 Robert Millan <rmh@aybabtu.com>
40964
40965 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
40966 /dev (like it is done for /dev/mapper). This doesn't provide support
40967 for EVMS, but at least it is now easy to identify the problem when it
40968 arises.
40969
40970 2008-02-11 Robert Millan <rmh@aybabtu.com>
40971
40972 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
40973 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
40974 comparing it with -1, not 0.
40975
40976 2008-02-10 Robert Millan <rmh@aybabtu.com>
40977
40978 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
40979 `disk/lvm.c'.
40980 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40981 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
40982
40983 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
40984 `disk/lvm.c' to the end of the list.
40985 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
40986 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40987
40988 2008-02-10 Robert Millan <rmh@aybabtu.com>
40989
40990 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
40991 grub_print_error() instead. This will let user know why we're entering
40992 rescue mode.
40993 Based on suggestions from Sam Morris.
40994
40995 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
40996
40997 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
40998 on remaining N args, instead of "--" arg N times.
40999
41000 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
41001
41002 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
41003 (fill_with_default_glyph): Changed to use unknown_glyph for fill
41004 pattern for unknown glyphs.
41005
41006 2008-02-09 Robert Millan <rmh@aybabtu.com>
41007
41008 * configure.ac: Probe for `help2man'.
41009 * Makefile.in (builddir): New variable.
41010 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
41011 or otherwise add a few flags/options to it.
41012 (install-local): For every executable utility or script that is
41013 installed, invoke $(HELP2MAN) to install a manpage based on --help
41014 output.
41015
41016 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
41017 that it doesn't prevent --help from working in build tree.
41018
41019 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
41020 with `bug-grub@gnu.org'.
41021 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
41022 * util/update-grub.in (usage): New function.
41023 Implement proper argument check, with support for --help and --version
41024 (as well as existing -y).
41025
41026 2008-02-09 Christian Franke <franke@computer.org>
41027
41028 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
41029 avoid overwriting previous output.
41030 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
41031
41032 2008-02-09 Robert Millan <rmh@aybabtu.com>
41033
41034 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
41035 drawing the menu.
41036
41037 2008-02-09 Robert Millan <rmh@aybabtu.com>
41038
41039 * commands/sleep.c: New file.
41040 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
41041 (sleep_mod_SOURCES): New variable.
41042 (sleep_mod_CFLAGS): Likewise.
41043 (sleep_mod_LDFLAGS): Likewise.
41044
41045 2008-02-09 Robert Millan <rmh@aybabtu.com>
41046
41047 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
41048 situations in which we can deduce the RAID size and the superblock
41049 doesn't match it.
41050
41051 2008-02-09 Robert Millan <rmh@aybabtu.com>
41052
41053 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
41054 and return a grub_diskmemberlist_t composed of LVM physical volumes.
41055 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
41056
41057 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
41058 and return a grub_diskmemberlist_t composed of physical array members.
41059 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
41060
41061 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
41062 prototype.
41063 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
41064 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
41065 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
41066
41067 * util/grub-probe.c (probe): Move partmap probing code from here ...
41068 (probe_partmap): ... to here.
41069 (probe): Use probe_partmap() once for the disk we're probing, and
41070 additionally, when such disk contains a memberlist() struct member,
41071 once for each disk that is contained in the structure returned by
41072 memberlist().
41073
41074 2008-02-09 Robert Millan <rmh@aybabtu.com>
41075
41076 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
41077 environment variable to 'all' in order to obtain debug output from
41078 non-util/ code.
41079 * util/i386/pc/grub-setup.c (main): Likewise.
41080
41081 2008-02-08 Robert Millan <rmh@aybabtu.com>
41082
41083 * disk/raid.c (grub_raid_scan_device): Check for
41084 `array->device[sb.this_disk.number]' rather than for
41085 `array->device[sb.this_disk.number]->name', since the latter is not
41086 guaranteed to be accessible.
41087
41088 2008-02-08 Robert Millan <rmh@aybabtu.com>
41089
41090 * disk/raid.c: Update copyright.
41091 * fs/cpio.c: Likewise.
41092 * include/grub/raid.h: Likewise.
41093 * loader/i386/pc/multiboot.c: Likewise.
41094 * util/hostfs.c: Likewise.
41095
41096 2008-02-08 Robert Millan <rmh@aybabtu.com>
41097
41098 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
41099 to a grub_disk_t array.
41100 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
41101 `device[x]'.
41102 (grub_raid_scan_device): Replace `device[x].name' accesses with
41103 `device[x]->name'. Simplify initialization of `array->device[x]'.
41104
41105 2008-02-08 Robert Millan <rmh@aybabtu.com>
41106
41107 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
41108 grub_dprintf() calls.
41109 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
41110 error message.
41111
41112 2008-02-07 Christian Franke <franke@computer.org>
41113
41114 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
41115 instead of fseek and ftell to support large files.
41116 (grub_hostfs_read): Likewise.
41117
41118 2008-02-07 Robert Millan <rmh@aybabtu.com>
41119
41120 Patch from Jeroen Dekkers.
41121 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
41122 failure, since successfully reading all array members might not be
41123 required.
41124
41125 2008-02-06 Robert Millan <rmh@aybabtu.com>
41126
41127 * util/grub-probe.c (probe): Simplify partmap probing (with the
41128 assumption that the first word up to the underscore equals to
41129 the module name).
41130
41131 2008-02-06 Christian Franke <franke@computer.org>
41132
41133 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
41134 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
41135 last block of a cpio or tar stream.
41136 Check for "TRAILER!!!" instead of any empty data
41137 block to detect last block of a cpio stream.
41138 (grub_cpio_dir): Fix constness of variable np.
41139 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
41140 cpio or tar trailer is detected. This fixes a crash
41141 on open of a non existing file.
41142
41143 2008-02-05 Bean <bean123ch@gmail.com>
41144
41145 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
41146 address of entry.
41147 (grub_multiboot_load_elf64): Likewise.
41148 (grub_multiboot): Initialize mbi structure.
41149
41150 * util/grub-fstest.c: Don't include unused header file script.h.
41151
41152 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
41153 of file.
41154 (grub_fstest_SOURCES): Likewise.
41155
41156 2008-02-05 Robert Millan <rmh@aybabtu.com>
41157
41158 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
41159 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
41160 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
41161 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
41162
41163 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
41164 (translation_table): Replace hardcoded values with macros
41165 provided by `<grub/term.h>'.
41166
41167 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
41168 (keyboard_map): Correct/add a few values, with macros provided
41169 by `<grub/term.h>'.
41170 (keyboard_map_shift): Zero values that don't differ from their
41171 `keyboard_map' equivalents.
41172 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
41173 Discard the second scan code that is always sent by Caps lock.
41174 Only use `keyboard_map_shift' when it provides a non-zero value,
41175 otherwise fallback to `keyboard_map'.
41176
41177 2008-02-04 Bean <bean123ch@gmail.com>
41178
41179 * Makefile.in (enable_grub_fstest): New variable.
41180
41181 * conf/common.rmk (grub_fstest_init.lst): New rule.
41182 (grub_fstest_init.h): Likewise.
41183 (grub_fstest_init.c): Likewise.
41184 (util/grub-fstest.c_DEPENDENCIES): New variable.
41185 (grub_fstest_SOURCES): Likewise.
41186
41187 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
41188
41189 * util/grub-fstest.c: New file.
41190
41191 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
41192
41193 Make grub-setup handle a separate root device.
41194
41195 * util/i386/pc/grub-setup.c (setup): Always open the root device,
41196 so that the root device can be compared with the destination
41197 device.
41198 When embedding the core image, if the root and destination devices
41199 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
41200 0xFF.
41201 When not embedding, set ROOT_DRIVE to 0xFF.
41202
41203 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
41204
41205 Add support for having a grub directory in a different drive. This
41206 is still only the data handling part.
41207
41208 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
41209 (codestart): Save %dh in GRUB_ROOT_DRIVE.
41210 (grub_root_drive): New variable.
41211
41212 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
41213 instead of GRUB_BOOT_DRIVE to construct a device name. Set
41214 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
41215 as it was.
41216
41217 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
41218
41219 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
41220 macro.
41221 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
41222
41223 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
41224 is bogus, because PXE booting does not specify any drive
41225 correctly.
41226
41227 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
41228 am not sure if this is really correct.
41229
41230 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
41231 is always identical to the boot drive when booting from a CD.
41232
41233 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
41234 longer.
41235 (root_drive): New variable.
41236 (real_start): Unconditionally set %dh to ROOT_DRIVE.
41237 (setup_sectors): Push %dx right after popping it, because %dh will
41238 be modified later.
41239 (copy_buffer): Restore %dx.
41240
41241 2008-02-03 Robert Millan <rmh@aybabtu.com>
41242
41243 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
41244 use `cdboot.img' for cdrom images.
41245
41246 2008-02-03 Robert Millan <rmh@aybabtu.com>
41247
41248 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
41249 only setup gfxterm when `font' command has succeeded.
41250
41251 2008-02-03 Robert Millan <rmh@aybabtu.com>
41252
41253 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
41254 (grub_rescue_cmd_multiboot_loader)
41255 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
41256
41257 2008-02-03 Pavel Roskin <proski@gnu.org>
41258
41259 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
41260 %edx and %esi from stack only after grub_gate_a20() is called.
41261 grub_gate_a20() clobbers %edx.
41262
41263 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
41264
41265 * configure.ac (AC_INIT): Bumped to 1.96.
41266
41267 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
41268 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
41269 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
41270 video/readers/png.c.
41271
41272 2008-02-03 Bean <bean123ch@gmail.com>
41273
41274 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
41275 (cdboot_img_SOURCES): New variable.
41276 (cdboot_img_ASFLAGS): New variable.
41277 (cdboot_img_LDFLAGS): New variable.
41278
41279 * boot/i386/pc/cdboot.S: New file.
41280
41281 * disk/i386/pc/biosdisk.c (cd_start): New variable.
41282 (cd_count): Likewise.
41283 (grub_biosdisk_get_drive): Add support for cd device.
41284 (grub_biosdisk_call_hook): Likewise.
41285 (grub_biosdisk_iterate): Likewise.
41286 (grub_biosdisk_open): Likewise.
41287 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
41288 (grub_biosdisk_rw): Support reading from cd device.
41289 (GRUB_MOD_INIT): Iterate cd devices.
41290
41291 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
41292 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
41293 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
41294
41295 * kern/i386/pc/init.c (make_install_device): Check for cd device.
41296
41297 2008-02-02 Robert Millan <rmh@aybabtu.com>
41298
41299 * commands/read.c: New file.
41300 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
41301 (read_mod_SOURCES): New variable.
41302 (read_mod_CFLAGS): Likewise.
41303 (read_mod_LDFLAGS): Likewise.
41304
41305 2008-02-02 Robert Millan <rmh@aybabtu.com>
41306
41307 * normal/main.c (grub_normal_execute): Check for `menu->size' when
41308 determining whether menu has to be displayed.
41309
41310 2008-02-02 Marco Gerards <marco@gnu.org>
41311
41312 * bus/pci.c: New file.
41313
41314 * include/grub/pci.h: Likewise.
41315
41316 * include/grub/i386/pc/pci.h: Likewise.
41317
41318 * commands/lspci.c: Likewise.
41319
41320 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
41321 `lspci.mod'.
41322 (pci_mod_SOURCES): New variable.
41323 (pci_mod_CFLAGS): Likewise.
41324 (pci_mod_LDFLAGS): Likewise.
41325 (lspci_mod_SOURCES): Likewise.
41326 (lspci_mod_CFLAGS): Likewise.
41327 (lspci_mod_LDFLAGS): Likewise.
41328
41329 2008-02-02 Bean <bean123ch@gmail.com>
41330
41331 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
41332 (grub_ufs_get_file_block): Fix indirect block calculation problem.
41333
41334 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
41335 (grub_xfs_btree_node): New structure.
41336 (grub_xfs_btree_root): New structure.
41337 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
41338 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
41339 (GRUB_XFS_EXTENT_BLOCK): Likewise.
41340 (GRUB_XFS_EXTENT_SIZE): Likewise.
41341 (grub_xfs_read_block): Support btree format type.
41342 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
41343 Use directory block as basic unit.
41344
41345 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
41346
41347 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
41348 __attribute__ ((__regparm__ (1))).
41349
41350 2008-02-01 Robert Millan <rmh@aybabtu.com>
41351
41352 Correct a mistake in previous commit.
41353
41354 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
41355 top.
41356 (normal/command.c_DEPENDENCIES): New variable.
41357
41358 2008-02-01 Robert Millan <rmh@aybabtu.com>
41359
41360 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
41361 top.
41362 (normal/command.c_DEPENDENCIES): New variable.
41363 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
41364 * conf/i386-ieee1275.rmk: Likewise.
41365 * conf/i386-linuxbios.rmk: Likewise.
41366 * conf/i386-pc.rmk: Likewise.
41367 * conf/sparc64-ieee1275.rmk: Likewise.
41368 * conf/powerpc-ieee1275.rmk: Likewise.
41369 (grub_emu_SOURCES): Add `fs/fshelp.c'.
41370
41371 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
41372
41373 2008-02-01 Robert Millan <rmh@aybabtu.com>
41374
41375 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
41376 call at beginning of function.
41377
41378 2008-01-31 Pavel Roskin <proski@gnu.org>
41379
41380 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
41381 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
41382 (grub_mkrescue_SOURCES): Likewise.
41383 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
41384
41385 2008-01-30 Robert Millan <rmh@aybabtu.com>
41386
41387 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
41388 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
41389 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
41390 (grub_probe_SOURCES): ... to here.
41391
41392 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
41393 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
41394 * conf/i386-ieee1275.rmk: Likewise.
41395 * conf/i386-linuxbios.rmk: Likewise.
41396 * conf/powerpc-ieee1275.rmk: Likewise.
41397
41398 2008-01-30 Tristan Gingold <gingold@free.fr>
41399
41400 * kern/rescue.c: Silently accept empty lines.
41401
41402 2008-01-29 Bean <bean123ch@gmail.com>
41403
41404 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
41405 (real_code_2): Code cleanup and change comment style.
41406 (move_memory): Avoid using 32-bit address mode.
41407
41408 2008-01-29 Bean <bean123ch@gmail.com>
41409
41410 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
41411 (png_mod_SOURCES): New variable.
41412 (png_mod_CFLAGS): Likewise.
41413 (png_mod_LDFLAGS): Likewise.
41414
41415 * video/readers/png.c: New file.
41416
41417 2008-01-28 Robert Millan <rmh@aybabtu.com>
41418
41419 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
41420 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
41421 `ifndef GRUB_MOD_GAP' hack.
41422 * util/elf/grub-mkimage.c (add_segments): Likewise.
41423
41424 2008-01-27 Robert Millan <rmh@aybabtu.com>
41425
41426 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
41427 `GRUB_MOD_GAP' for platforms in which it's not defined.
41428 * util/elf/grub-mkimage.c (add_segments): Likewise.
41429
41430 2008-01-27 Robert Millan <rmh@aybabtu.com>
41431
41432 Get grub-emu to build again (including parallel builds).
41433
41434 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
41435 Split into ...
41436 (util/grub-emu.c_DEPENDENCIES): ... this, ...
41437 (normal/execute.c_DEPENDENCIES): ... this, ...
41438 (grub-emu_DEPENDENCIES): ... and this.
41439
41440 * conf/i386-efi.rmk: Likewise.
41441 * conf/i386-linuxbios.rmk: Likewise.
41442 * conf/i386-ieee1275.rmk: Likewise.
41443 * conf/powerpc-ieee1275.rmk: Likewise.
41444 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
41445
41446 2008-01-27 Robert Millan <rmh@aybabtu.com>
41447
41448 * NEWS: Add a few items.
41449
41450 2008-01-27 Robert Millan <rmh@aybabtu.com>
41451
41452 Fix parallel builds with grub-emu. Based on earlier commit for
41453 grub-probe and grub-setup.
41454
41455 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
41456 (util/grub-emu.c_DEPENDENCIES): ... this.
41457 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
41458 (util/grub-emu.c_DEPENDENCIES): ... this.
41459 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
41460 (util/grub-emu.c_DEPENDENCIES): ... this.
41461 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
41462 (util/grub-emu.c_DEPENDENCIES): ... this.
41463 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
41464 (util/grub-emu.c_DEPENDENCIES): ... this.
41465
41466 2008-01-27 Pavel Roskin <proski@gnu.org>
41467
41468 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
41469 to create a gap between _end and the modules added to the image
41470 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
41471 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
41472 * util/elf/grub-mkimage.c (add_segments): Likewise.
41473
41474 2008-01-26 Pavel Roskin <proski@gnu.org>
41475
41476 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
41477 just return an error.
41478
41479 2008-01-26 Bean <bean123ch@gmail.com>
41480
41481 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
41482 (grub_reiserfs_get_item): Save offset of the next item.
41483 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
41484
41485 2008-01-25 Robert Millan <rmh@aybabtu.com>
41486
41487 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
41488 make all filesystem sources appear together (possibly fixing omissions
41489 while at it).
41490 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41491 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41492 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
41493 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41494
41495 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
41496 add `kern/file.c'.
41497 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
41498 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
41499 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
41500 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
41501
41502 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
41503 (probe): Add a sanity check to make sure of our ability to read
41504 requested files when probing for filesystem type.
41505
41506 * genmk.rb: Update copyright year (2007).
41507
41508 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
41509 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
41510 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
41511 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
41512 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
41513 : Remove function prototypes.
41514
41515 2008-01-25 Robert Millan <rmh@aybabtu.com>
41516
41517 Revert my previous commits (based on wrong assumption of how grub_errno
41518 works).
41519
41520 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
41521 * kern/file.c (grub_file_open): Likewise.
41522
41523 2008-01-24 Pavel Roskin <proski@gnu.org>
41524
41525 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
41526 that hang if GRUB tries to setup colors.
41527 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
41528 colors for firmwares that don't support it.
41529 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
41530 Recognize Open Hack'Ware, set flags to work around its
41531 limitations.
41532
41533 2008-01-24 Robert Millan <rmh@aybabtu.com>
41534
41535 * kern/file.c (grub_file_open): Do not account previous failures of
41536 unrelated functions when grub_errno is checked for.
41537 Reported by Oleg Strikov.
41538
41539 2008-01-24 Bean <bean123ch@gmail.com>
41540
41541 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
41542 (grub_ufs_sblock): New member volume name.
41543 (grub_ufs_find_file): Fix string copy bug.
41544 (grub_ufs_label): Implement this function properly.
41545
41546 * fs/hfs.c (grub_hfs_cnid_type): New enum.
41547 (grub_hfs_iterate_records): Use the correct file number for extents
41548 and catalog file. Fix problem in next index calculation.
41549 (grub_hfs_find_node): Replace recursive function call with loop.
41550 (grub_hfs_iterate_dir): Replace recursive function call with loop.
41551
41552 2008-01-23 Robert Millan <rmh@aybabtu.com>
41553
41554 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
41555 `<grub/symbol.h>' and `<grub/multiboot.h>'.
41556 (grub_multiboot2_real_boot): New function prototype.
41557
41558 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
41559 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
41560
41561 * kern/i386/ieee1275/init.c (grub_os_area_addr)
41562 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
41563
41564 2008-01-23 Robert Millan <rmh@aybabtu.com>
41565
41566 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
41567 #ifdef'ed out grub_printf().
41568
41569 2008-01-23 Robert Millan <rmh@aybabtu.com>
41570
41571 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
41572 grub_dprintf calls, since they make "debug=all" mode unusable.
41573 (grub_console_checkkey): Likewise.
41574
41575 2008-01-23 Robert Millan <rmh@aybabtu.com>
41576
41577 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41578 `term/i386/pc/at_keyboard.c'.
41579 (pkglib_MODULES): Add `serial.mod'.
41580 (serial_mod_SOURCES): New variable.
41581 (serial_mod_CFLAGS): Likewise.
41582 (serial_mod_LDFLAGS): Likewise.
41583
41584 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
41585 `<grub/powerpc/ieee1275/console.h>'.
41586 (grub_keyboard_controller_init): New function prototype.
41587 (grub_console_checkkey): Likewise.
41588 (grub_console_getkey): Likewise.
41589
41590 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
41591 keyboard on i386.
41592
41593 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
41594 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
41595
41596 2008-01-23 Robert Millan <rmh@aybabtu.com>
41597
41598 * kern/i386/pc/init.c (make_install_device): When memdisk image is
41599 present, "(memdisk)/boot/grub" becomes the default prefix.
41600
41601 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
41602 a memdisk tarball with all the modules. Add --overlay=DIR option that
41603 allows users to overlay additional files into the image.
41604
41605 2008-01-23 Robert Millan <rmh@aybabtu.com>
41606
41607 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
41608 and `machine/memory.h'.
41609 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
41610 (_multiboot_mod_SOURCES): New variable.
41611 (_multiboot_mod_CFLAGS): Likewise.
41612 (_multiboot_mod_LDFLAGS): Likewise.
41613 (multiboot_mod_SOURCES): Likewise.
41614 (multiboot_mod_CFLAGS): Likewise.
41615 (multiboot_mod_LDFLAGS): Likewise.
41616
41617 * include/grub/i386/ieee1275/loader.h: New file.
41618
41619 * include/grub/i386/ieee1275/machine.h: Likewise.
41620
41621 * include/grub/i386/ieee1275/memory.h: Likewise.
41622
41623 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
41624 variable declaration.
41625 (grub_os_area_size): Likewise.
41626
41627 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
41628 (grub_lower_mem, grub_upper_mem): New variables.
41629 (grub_stop_floppy): New function (just to make
41630 grub_multiboot2_real_boot() happy).
41631
41632 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
41633 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
41634 (grub_stop): New function.
41635 Include `"../realmode.S"' and `"../loader.S"'.
41636
41637 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
41638 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
41639
41640 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
41641 rely on grub_multiboot2_real_boot() for final boot.
41642
41643 2008-01-22 Robert Millan <rmh@aybabtu.com>
41644
41645 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
41646 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
41647 device that doesn't look like an SD card.
41648 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
41649 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
41650 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
41651 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
41652 found.
41653
41654 2008-01-22 Robert Millan <rmh@aybabtu.com>
41655
41656 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
41657 avoid claiming over our own code.
41658
41659 2008-01-22 Bean <bean123ch@gmail.com>
41660
41661 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
41662 (jpeg_mod_SOURCES): New variable.
41663 (jpeg_mod_CFLAGS): Likewise.
41664 (jpeg_mod_LDFLAGS): Likewise.
41665
41666 * video/readers/jpeg.c : New file.
41667
41668 2008-01-22 Bean <bean123ch@gmail.com>
41669
41670 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
41671 there are no more items.
41672
41673 2008-01-21 Robert Millan <rmh@aybabtu.com>
41674
41675 * kern/mm.c (grub_mm_init_region): Improve debug message.
41676
41677 2008-01-21 Robert Millan <rmh@aybabtu.com>
41678
41679 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
41680 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
41681 address.
41682 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
41683 a C macro.
41684 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
41685 Indicates start of upper memory.
41686 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
41687 (generate_image): Abort when image size is big enough to corrupt
41688 upper memory.
41689
41690 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
41691 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
41692 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
41693 instead of hardcoding 0xA0000.
41694 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
41695 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
41696 instead of hardcoding 0xA0000.
41697
41698 2008-01-21 Robert Millan <rmh@aybabtu.com>
41699
41700 * disk/memdisk.c (memdisk_size): New variable.
41701 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
41702 `memdisk_size'.
41703 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
41704 image to dynamic memory.
41705 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
41706 `memdisk_size'. Free memdisk block.
41707
41708 2008-01-21 Robert Millan <rmh@aybabtu.com>
41709
41710 Fix detection of very small filesystems (like tar).
41711
41712 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
41713 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
41714 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
41715 a problem with this disk).
41716
41717 2008-01-21 Robert Millan <rmh@aybabtu.com>
41718
41719 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
41720 on grub_biosdisk_rw_standard() error.
41721
41722 2008-01-21 Robert Millan <rmh@aybabtu.com>
41723
41724 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
41725 recent changes.
41726 * kern/elf.c: Likewise.
41727 * kern/ieee1275/ieee1275.c: Likewise.
41728 * kern/powerpc/ieee1275/openfw.c: Likewise.
41729 * term/ieee1275/ofconsole.c: Likewise.
41730
41731 2008-01-21 Robert Millan <rmh@aybabtu.com>
41732
41733 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
41734
41735 * include/grub/kernel.h (grub_arch_memdisk_addr)
41736 (grub_arch_memdisk_size): Moved from here ...
41737
41738 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
41739 (grub_arch_memdisk_size): ... to here.
41740
41741 2008-01-21 Robert Millan <rmh@aybabtu.com>
41742
41743 Mostly based on bugfix from Bean.
41744
41745 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
41746 attribute with hook() parameter.
41747 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
41748 declaration.
41749 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
41750 attribute with hook() parameter.
41751 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
41752 declaration.
41753
41754 2008-01-21 Robert Millan <rmh@aybabtu.com>
41755
41756 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
41757 (pkglib_MODULES): Add `memdisk.mod'.
41758 (memdisk_mod_SOURCES): New variable.
41759 (memdisk_mod_CFLAGS): Likewise.
41760 (memdisk_mod_LDFLAGS): Likewise.
41761
41762 * disk/memdisk.c: New file.
41763
41764 * include/grub/disk.h (grub_disk_dev_id): Add
41765 `GRUB_DISK_DEVICE_MEMDISK_ID'.
41766
41767 * include/grub/i386/pc/kernel.h
41768 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
41769 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
41770 (grub_kernel_image_size): New variable declaration.
41771 (grub_total_module_size): Likewise.
41772 (grub_memdisk_image_size): Likewise.
41773
41774 * include/grub/i386/pc/memory.h
41775 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
41776
41777 * include/grub/kernel.h: Include `<grub/symbol.h>'.
41778 (grub_arch_memdisk_addr): New variable declaration.
41779 (grub_arch_memdisk_size): Likewise.
41780
41781 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
41782 (grub_arch_memdisk_size): Likewise.
41783
41784 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
41785 (codestart): Replace hardcoded `0x100000' with
41786 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
41787
41788 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
41789 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
41790 not NULL, append the contents of the file it refers to, at the end of
41791 the compressed kernel image. Initialize `grub_memdisk_image_size'
41792 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
41793 (options): Add "memdisk"|'m' option.
41794 (main): Parse --memdisk|-m option, and pass user-provided path as
41795 parameter to generate_image().
41796
41797 2008-01-20 Robert Millan <rmh@aybabtu.com>
41798
41799 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
41800 grub_dprintf() calls from here ...
41801 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
41802
41803 2008-01-20 Robert Millan <rmh@aybabtu.com>
41804
41805 Fix detection of "real mode" when /options/real-mode? doesn't exist.
41806
41807 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
41808 declaration.
41809 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
41810 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
41811 `GRUB_IEEE1275_FLAG_REAL_MODE'.
41812 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
41813 property).
41814 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
41815 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
41816
41817 2008-01-19 Robert Millan <rmh@aybabtu.com>
41818
41819 Get rid of confusing function (superseded by
41820 `grub_ieee1275_get_integer_property')
41821 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
41822 prototype.
41823 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
41824 function.
41825 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
41826 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
41827 in native endianness from grub_ieee1275_get_integer_property().
41828
41829 2008-01-19 Robert Millan <rmh@aybabtu.com>
41830
41831 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
41832 command after "shut-down", since implementations differ on which
41833 the command for halt is.
41834
41835 2008-01-19 Robert Millan <rmh@aybabtu.com>
41836
41837 * include/grub/i386/linuxbios/console.h: Add header protection.
41838 (grub_keyboard_controller_init): New function prototype.
41839 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
41840 (KEYBOARD_COMMAND_READ): Likewise.
41841 (KEYBOARD_COMMAND_WRITE): Likewise.
41842 (KEYBOARD_SCANCODE_SET1): Likewise.
41843 (grub_keyboard_controller_write): New function.
41844 (grub_keyboard_controller_read): Likewise.
41845 (grub_keyboard_controller_init): Likewise.
41846
41847 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
41848 (grub_console_init): On coreboot/LinuxBIOS, call
41849 grub_keyboard_controller_init().
41850
41851 2008-01-19 Robert Millan <rmh@aybabtu.com>
41852
41853 PowerPC changes provided by Pavel Roskin.
41854
41855 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
41856 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
41857 don't rely on cmain() doing it.
41858 * kern/i386/ieee1275/startup.S (_start): Store %eax in
41859 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
41860
41861 2008-01-16 Robert Millan <rmh@aybabtu.com>
41862
41863 * include/grub/i386/linuxbios/memory.h
41864 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
41865 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
41866 receive `table_header' as argument. Instead, probe for it in the
41867 known memory ranges where it can be present.
41868 (grub_available_iterate): Do not pass a fixed `table_header' address
41869 to grub_linuxbios_table_iterate().
41870
41871 2008-01-15 Robert Millan <rmh@aybabtu.com>
41872
41873 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
41874 * conf/i386-ieee1275.rmk: New file.
41875 * include/grub/i386/ieee1275/console.h: Likewise.
41876 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
41877 * include/grub/i386/ieee1275/kernel.h: Likewise.
41878 * include/grub/i386/ieee1275/time.h: Likewise.
41879 * kern/i386/ieee1275/init.c: Likewise.
41880 * kern/i386/ieee1275/startup.S: Likewise.
41881
41882 2008-01-15 Robert Millan <rmh@aybabtu.com>
41883
41884 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
41885 when pointers are 32-bit (but still do set it to one when they are
41886 64-bit).
41887
41888 2008-01-15 Robert Millan <rmh@aybabtu.com>
41889
41890 * include/grub/ieee1275/ieee1275.h
41891 (grub_ieee1275_get_integer_property): New function prototype.
41892
41893 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
41894 (grub_ieee1275_get_integer_property): New function. Wraps around
41895 grub_ieee1275_get_property() to handle endianness.
41896
41897 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
41898 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
41899 where appropriate.
41900 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
41901 (grub_map): Likewise.
41902 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
41903
41904 2008-01-15 Bean <bean123ch@gmail.com>
41905
41906 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
41907 (grub_script_execute_cmdline): Reset grub_errno.
41908
41909 * normal/main.c (read_config_file): Reset grub_errno.
41910
41911 * normal/parse.y (script_init): New.
41912 (script): Move function and menuentry here.
41913 (delimiter): New.
41914 (command): Add delimiter at the end of command.
41915 (commands): Adjust to match the new command.
41916 (commandblock): Remove grub_script_lexer_record_start.
41917 (menuentry): Add grub_script_lexer_record_start, use the new commands.
41918 (if): Use the new commands.
41919
41920 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
41921
41922 2008-01-15 Robert Millan <rmh@aybabtu.com>
41923
41924 * normal/menu.c (run_menu): Move timeout message from here ...
41925 (print_timeout): ... to here.
41926 (run_menu): Use print_timeout() once during initial draw to print
41927 the whole message, and again in every clock tick to update only
41928 the number of seconds.
41929
41930 2008-01-15 Robert Millan <rmh@aybabtu.com>
41931
41932 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
41933 actual size of `available' from grub_ieee1275_get_property(), and
41934 restrict parsing to that bound.
41935
41936 2008-01-15 Christian Franke <franke@computer.org>
41937
41938 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
41939 (argp_program_version): Remove variable.
41940 (argp_program_bug_address): Likewise.
41941 (options): Convert from struct argp_option to struct option.
41942 (struct arguments): Remove.
41943 (parse_opt): Remove.
41944 (usage): New function.
41945 (main): Replace struct args members by simple variables.
41946 Replace argp_parse() by getopt_long().
41947 Add switch to evaluate options.
41948 Add missing "(...)" around root_dev in prefix string.
41949
41950 2008-01-14 Robert Millan <rmh@aybabtu.com>
41951
41952 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
41953 for grub_ieee1275_exit(), in order to improve portability.
41954
41955 2008-01-14 Robert Millan <rmh@aybabtu.com>
41956
41957 * util/grub.d/10_linux.in (prefix): Define.
41958 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
41959
41960 2008-01-13 Pavel Roskin <proski@gnu.org>
41961
41962 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
41963 grub_errno if no errors have been detected.
41964
41965 2008-01-12 Robert Millan <rmh@aybabtu.com>
41966
41967 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
41968 (grub_util_get_dev_abstraction): New function prototype.
41969
41970 * util/getroot.c: Include `<grub/util/getroot.h>'
41971 (grub_util_get_grub_dev): Move detection of abstraction type to ...
41972 (grub_util_get_dev_abstraction): ... here (new function).
41973
41974 * util/grub-probe.c: Convert PRINT_* to an enum. Add
41975 `PRINT_ABSTRACTION'.
41976 (probe): Probe for abstraction type when requested.
41977 (main): Understand `--target=abstraction'.
41978
41979 * util/i386/efi/grub-install.in: Add abstraction module to core
41980 image when it is found to be necessary.
41981 * util/i386/pc/grub-install.in: Likewise.
41982 * util/powerpc/ieee1275/grub-install.in: Likewise.
41983
41984 * util/update-grub_lib.in (font_path): Return system path without
41985 converting to GRUB path.
41986 * util/update-grub.in: Convert system path returned by font_path()
41987 to a GRUB path. Use `grub-probe -t abstraction' to determine what
41988 abstraction module is needed for loading fonts (if any). Export
41989 that as `GRUB_PRELOAD_MODULES'.
41990 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
41991 insmod commands).
41992
41993 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
41994
41995 Remove some unused code from reiserfs.
41996
41997 * fs/reiserfs.c (struct grub_reiserfs_key)
41998 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
41999 (struct grub_reiserfs_node_body): Removed.
42000 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
42001 Likewise.
42002 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
42003 Likewise.
42004 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
42005 Likewise.
42006 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
42007 Likewise.
42008 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
42009 Likewise.
42010 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
42011 Likewise.
42012 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
42013 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
42014 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
42015
42016 2008-01-10 Robert Millan <rmh@aybabtu.com>
42017
42018 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
42019 Determines if a file is garbage left by packaging systems, etc.
42020 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
42021 for processing /etc/grub.d scripts.
42022 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
42023 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
42024 as a condition for processing Linux images.
42025
42026 2008-01-10 Pavel Roskin <proski@gnu.org>
42027
42028 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
42029 to compile reiserfs.c on PowerPC.
42030
42031 2008-01-10 Robert Millan <rmh@aybabtu.com>
42032
42033 * kern/device.c (grub_device_iterate): Do not abort device iteration
42034 when one of the devices cannot be opened.
42035 * kern/disk.c (grub_disk_open): Do not account previous failures of
42036 unrelated functions when grub_errno is checked for.
42037
42038 2008-01-08 Robert Millan <rmh@aybabtu.com>
42039
42040 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
42041 `! grub_linux_is_bzimage', change order of address comparison to make
42042 it more intuitive, and improve "too big zImage" error message.
42043
42044 2008-01-08 Robert Millan <rmh@aybabtu.com>
42045
42046 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
42047 `$(update-grub_DATA)'.
42048 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
42049 targets.
42050
42051 2008-01-07 Robert Millan <rmh@aybabtu.com>
42052
42053 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
42054 which instruction is modified by grub-setup during installation
42055 (since it wasn't obvious by only looking at this file).
42056
42057 2008-01-07 Robert Millan <rmh@aybabtu.com>
42058
42059 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
42060 listing actual TODO items.
42061
42062 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
42063
42064 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
42065 correctly.
42066 (grub_reiserfs_get_key_offset): Likewise.
42067 (grub_reiserfs_set_key_offset): Likewise.
42068 (grub_reiserfs_set_key_type): Likewise.
42069 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
42070
42071 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
42072 better to remove the bitfield version completely.
42073
42074 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
42075
42076 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
42077 allocated from the heap, due to the fshelp implementation.
42078 (grub_reiserfs_dir): Free NODE, due to the same reason.
42079
42080 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
42081
42082 Mostly from Vincent Pelletier:
42083
42084 * fs/reiserfs.c: New file.
42085
42086 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
42087 (reiserfs_mod_SOURCES): New variable.
42088 (reiserfs_mod_CFLAGS): Likewise.
42089 (reiserfs_mod_LDFLAGS): Likewise.
42090
42091 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
42092 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
42093 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
42094 normal/color.c.
42095
42096 2008-01-06 Robert Millan <rmh@aybabtu.com>
42097
42098 * normal/color.c: Remove `<grub/env.h>'.
42099
42100 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
42101
42102 * include/grub/normal.h: Include <grub/env.h>.
42103
42104 2008-01-05 Robert Millan <rmh@aybabtu.com>
42105
42106 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
42107 usage example with `(hd0,1)'.
42108 Reported by Samuel Thibault.
42109
42110 2008-01-05 Robert Millan <rmh@aybabtu.com>
42111
42112 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
42113 (grub_linux_boot_zimage): Rename to ...
42114 (grub_linux_boot): ... this.
42115 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
42116 (grub_linux_boot_zimage): Conditionalize zImage copy.
42117
42118 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
42119 (grub_linux_boot_bzimage): Remove prototype.
42120 (grub_linux_boot_zimage): Rename to ...
42121 (grub_linux_boot): ... this.
42122
42123 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
42124 (grub_linux_boot): Remove function.
42125
42126 2008-01-05 Robert Millan <rmh@aybabtu.com>
42127
42128 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
42129 (grub_env_write_color_highlight): Likewise.
42130 (grub_wait_after_message): Likewise.
42131
42132 * normal/color.c: New file.
42133
42134 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
42135 (normal_mod_DEPENDENCIES): Likewise.
42136
42137 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
42138 (normal_mod_DEPENDENCIES): Likewise.
42139
42140 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
42141 (normal_mod_DEPENDENCIES): Likewise.
42142
42143 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
42144 (normal_mod_DEPENDENCIES): Likewise.
42145
42146 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
42147 for waiting after a message is printed.
42148 * normal/main.c (read_config_file): Likewise.
42149 (grub_normal_init): Register grub_env_write_color_normal() and
42150 grub_env_write_color_highlight() hooks. Mark `color_normal' and
42151 `color_highlight' variables as global.
42152
42153 * normal/menu.c (grub_wait_after_message): New function.
42154 (grub_color_menu_normal): New variable. Replaces ...
42155 (GRUB_COLOR_MENU_NORMAL): ... this macro.
42156 (grub_color_menu_highlight): New variable. Replaces ...
42157 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
42158 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
42159 `GRUB_TERM_COLOR_STANDARD'.
42160 (print_message): Use `grub_setcolorstate' to reload colors. Rename
42161 `normal_code' and `highlight_code' to `old_color_normal' and
42162 `old_color_highlight', respectively.
42163 (grub_menu_init_page): Update colors when drawing the menu, based on
42164 `menu_color_normal' and `menu_color_highlight' variables.
42165 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
42166 a message is printed.
42167
42168 2008-01-05 Robert Millan <rmh@aybabtu.com>
42169
42170 * kern/env.c (grub_env_context_open): Propagate hooks for global
42171 variables to new context.
42172
42173 * kern/main.c (grub_set_root_dev): Export `root' variable.
42174
42175 2008-01-05 Robert Millan <rmh@aybabtu.com>
42176
42177 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
42178 discs unconditionally, since udev and others have options to provide
42179 them.
42180
42181 2008-01-05 Robert Millan <rmh@aybabtu.com>
42182
42183 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
42184
42185 2008-01-04 Christian Franke <franke@computer.org>
42186
42187 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
42188 of eisa_mmap.
42189
42190 2008-01-03 Pavel Roskin <proski@gnu.org>
42191
42192 * kern/i386/linuxbios/init.c: Put "void" to all function
42193 declarations with no arguments.
42194 * kern/powerpc/ieee1275/init.c: Likewise.
42195 * term/i386/pc/at_keyboard.c: Likewise.
42196 * term/i386/pc/vga_text.c: Likewise.
42197 * util/grub-mkdevicemap.c: Likewise.
42198
42199 2008-01-02 Robert Millan <rmh@aybabtu.com>
42200
42201 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
42202 message when loaded image is out of bounds.
42203 (grub_multiboot_load_elf64): Likewise.
42204
42205 2008-01-02 Pavel Roskin <proski@gnu.org>
42206
42207 * util/grub.d/10_linux.in: Try version without ".old" when
42208 looking for initrd. It's better to use initrd from the newer
42209 kernel of the same version than no initrd at all.
42210
42211 2008-01-01 Robert Millan <rmh@aybabtu.com>
42212
42213 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
42214
42215 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
42216
42217 * include/grub/video.h: Added grub_video_unmap_color and
42218 grub_video_get_active_render_target.
42219 (grub_video_adapter): Added unmap_color and get_active_render_target.
42220
42221 * video/video.c: Added grub_video_unmap_color and
42222 grub_video_get_active_render_target.
42223 (grub_video_get_info): Changed method to accept NULL pointer as an
42224 argument to allow detection of active video adapter.
42225
42226 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
42227 grub_video_vbe_unmap_color_int.
42228 Added grub_video_vbe_unmap_color and
42229 grub_video_vbe_get_active_render_target.
42230 (grub_video_vbe_adapter): Added unmap_color and
42231 get_active_render_target.
42232
42233 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
42234 with grub_video_vbe_unmap_color_int.
42235
42236 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
42237 (DEFAULT_NORMAL_COLOR): Likewise.
42238 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
42239 (DEFAULT_FG_COLOR): Removed.
42240 (DEFAULT_BG_COLOR): Likewise.
42241 (DEFAULT_CURSOR_COLOR): Changed value.
42242 (grub_virtual_screen): Added standard_color_setting,
42243 normal_color_setting, highlight_color_setting and term_color.
42244 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
42245 (bitmap_width): Added.
42246 (bitmap_height): Likewise.
42247 (bitmap): Likewise.
42248 (set_term_color): Likewise.
42249 (grub_virtual_screen_setup): Changed to use new terminal coloring
42250 settings.
42251 (grub_gfxterm_init): Added init for bitmap.
42252 (grub_gfxterm_fini): Added destroy for bitmap.
42253 (redraw_screen_rect): Updated to use background bitmap and new
42254 terminal coloring.
42255 (scroll_up): Added optimization for case when there is no bitmap.
42256 (grub_gfxterm_cls): Fixed to use correct background color.
42257 (grub_virtual_screen_setcolorstate): Changed to use new terminal
42258 coloring.
42259 (grub_virtual_screen_setcolor): Likewise.
42260 (grub_virtual_screen_getcolor): Added.
42261 (grub_gfxterm_background_image_cmd): Likewise.
42262 (grub_video_term): Added setcolor and getcolor.
42263 (MOD_INIT): Added registration of background_image command.
42264 (MOD_TERM): Added unregistration for background_image command.
42265
42266 2007-12-30 Pavel Roskin <proski@gnu.org>
42267
42268 * loader/multiboot_loader.c: Fix multiboot command
42269 unregistration. Fix all typos in the word "multiboot".
42270
42271 2007-12-29 Pavel Roskin <proski@gnu.org>
42272
42273 * util/grub.d/10_linux.in: Refactor search for initrd. Add
42274 support for initrd names used in Fedora.
42275
42276 2007-12-26 Bean <bean123ch@gmail.com>
42277
42278 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
42279 (cpio_mod_SOURCES): New variable.
42280 (cpio_mod_CFLAGS): Likewise.
42281 (cpio_mod_LDFLAGS): Likewise.
42282
42283 * fs/cpio.c: New file.
42284
42285 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
42286
42287 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42288
42289 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42290
42291 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42292
42293 2007-12-25 Robert Millan <rmh@aybabtu.com>
42294
42295 * include/grub/term.h (struct grub_term): Add `getcolor' function.
42296 (grub_getcolor): New function.
42297
42298 * kern/term.c (grub_getcolor): New function.
42299 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
42300 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
42301 (print_entry): Set normal and highlight colors to
42302 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
42303 respectively, before printing and restore them to old
42304 values afterwards.
42305 (grub_menu_init_page): Likewise. Fill an additional colored space
42306 that would otherwise be left blank.
42307
42308 * term/efi/console.c (grub_console_getcolor): New function.
42309 (struct grub_console_term.getcolor): New variable.
42310 * term/i386/pc/console.c (grub_console_getcolor): New function.
42311 (struct grub_console_term.getcolor): New variable.
42312 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
42313 (struct grub_console_term.getcolor): New variable.
42314
42315 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
42316 (struct grub_console_term.setcolor): Remove variable.
42317 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
42318 (struct grub_console_term.setcolor): Remove variable.
42319 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
42320 (struct grub_console_term.setcolor): Remove variable.
42321 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
42322 (struct grub_console_term.setcolor): Remove variable.
42323
42324 2007-12-25 Robert Millan <rmh@aybabtu.com>
42325
42326 * configure.ac: Search for possible unifont.hex locations, and
42327 define UNIFONT_HEX if found.
42328
42329 * Makefile.in (UNIFONT_HEX): Define variable.
42330 (DATA): Rename to ...
42331 (PKGLIB): ... this. Update all users.
42332 (PKGDATA): New variable.
42333 (pkgdata_IMAGES): Rename to ...
42334 (pkglib_IMAGES): ... this. Update all users.
42335 (pkgdata_MODULES): Rename to ...
42336 (pkglib_MODULES): ... this. Update all users.
42337 (pkgdata_PROGRAMS): Rename to ...
42338 (pkglib_PROGRAMS): ... this. Update all users.
42339 (pkgdata_DATA): Rename to ...
42340 (pkglib_DATA): ... this. Update all users.
42341 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
42342 (unicode.pff, ascii.pff): New rules.
42343 (all-local): Add `$(PKGDATA)' dependency.
42344 (install-local): Process `$(PKGDATA)'.
42345
42346 * util/update-grub_lib.in (font_path): Search for *.pff files in
42347 a few more locations, including `${pkgdata}'.
42348
42349 2007-12-23 Robert Millan <rmh@aybabtu.com>
42350
42351 Patch from Bean <bean123ch@gmail.com>:
42352 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
42353 `size'.
42354
42355 2007-12-21 Bean <bean123ch@gmail.com>
42356
42357 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
42358 (ntfscomp_mod_SOURCES): New variable.
42359 (ntfscomp_mod_CFLAGS): Likewise.
42360 (ntfscomp_mod_LDFLAGS): Likewise.
42361
42362 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
42363 (grub_probe_SOURCES): Likewise.
42364 (grub_emu_SOURCES): Likewise.
42365
42366 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
42367 (grub_emu_SOURCES): Likewise.
42368
42369 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
42370 (grub_emu_SOURCES): Likewise.
42371
42372 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
42373 (grub_emu_SOURCES): Likewise.
42374
42375 * fs/ntfs.c (grub_ntfscomp_func): New variable.
42376 (read_run_list): Renamed to grub_ntfs_read_run_list.
42377 (decomp_nextvcn): Moved to ntfscomp.c.
42378 (decomp_getch): Likewise.
42379 (decomp_get16): Likewise.
42380 (decomp_block): Likewise.
42381 (read_block): Likewise.
42382 (read_data): Partially moved to ntfscomp.c.
42383 (fixup): Change unsigned to grub_uint16_t.
42384 (read_mft): Change unsigned long to grub_uint32_t.
42385 (read_attr): Likewise.
42386 (read_data): Likewise.
42387 (read_run_data): Likewise.
42388 (read_run_list): Likewise.
42389 (read_mft): Likewise.
42390
42391 * fs/ntfscomp.c: New file.
42392
42393 * include/grub/ntfs.h: New file.
42394
42395 2007-12-16 Robert Millan <rmh@aybabtu.com>
42396
42397 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
42398 IDE disk check, since Linux is known to support 20 IDE disks.
42399 Reported by Colin Watson.
42400
42401 2007-12-15 Bean <bean123ch@gmail.com>
42402
42403 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
42404 (lnxboot_img_SOURCES): New variable.
42405 (lnxboot_img_ASFLAGS): Likewise.
42406 (lnxboot_img_LDFLAGS): Likewise.
42407
42408 * boot/i386/pc/lnxboot.S: New file.
42409
42410 2007-11-24 Pavel Roskin <proski@gnu.org>
42411
42412 * configure.ac: Test if '--build-id=none' is supported by the
42413 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
42414 objcopy to generate incorrect binary files (binutils
42415 2.17.50.0.18-1 as shipped by Fedora 8).
42416 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
42417 linking, so that build ID doesn't break the test.
42418
42419 2007-11-24 Pavel Roskin <proski@gnu.org>
42420
42421 * include/grub/i386/time.h: use "void" in the argument list
42422 of grub_cpu_idle().
42423 * include/grub/powerpc/time.h: Likewise.
42424 * include/grub/sparc64/time.h: Likewise.
42425
42426 2007-11-18 Christian Franke <franke@computer.org>
42427
42428 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
42429 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
42430 This fixes the problem that function keys did not work in grub-emu.
42431
42432 2007-11-18 Christian Franke <franke@computer.org>
42433
42434 * disk/host.c (grub_host_open): Remove attribute unused from
42435 name parameter. Add check for "host". This fixes the problem
42436 that grub-emu does not find partitions.
42437
42438 2007-11-18 Christian Franke <franke@computer.org>
42439
42440 * util/hostfs.c (is_dir): New function.
42441 (grub_hostfs_dir): Handle missing dirent.d_type case.
42442 (grub_hostfs_read): Add missing fseek().
42443 (grub_hostfs_label): Clear label pointer. This fixes a crash
42444 of grub-emu on "ls (host)".
42445
42446 2007-11-18 Christian Franke <franke@computer.org>
42447
42448 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
42449 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
42450 to 64 bit boundary by default.
42451
42452 2007-11-18 Bean <bean123ch@gmail.com>
42453
42454 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
42455 (hexdump_mod_SOURCES): New variable.
42456 (hexdump_mod_CFLAGS): Likewise.
42457 (hexdump_mod_LDFLAGS): Likewise.
42458
42459 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
42460
42461 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
42462
42463 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
42464
42465 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
42466
42467 * include/grub/hexdump.h: New file.
42468
42469 * commands/hexdump.c: New file.
42470
42471 2007-11-10 Robert Millan <rmh@aybabtu.com>
42472
42473 * commands/i386/pc/play.c (beep_off): Switch order of arguments
42474 in grub_outb() calls.
42475 (beep_on): Likewise.
42476
42477 2007-11-10 Christian Franke <franke@computer.org>
42478
42479 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
42480 (grub_menu_run): Likewise.
42481
42482 2007-11-10 Robert Millan <rmh@aybabtu.com>
42483
42484 * include/grub/i386/efi/machine.h: New file.
42485 * include/grub/i386/linuxbios/machine.h: Likewise.
42486 * include/grub/i386/pc/machine.h: Likewise.
42487 * include/grub/powerpc/ieee1275/machine.h: Likewise.
42488 * include/grub/sparc64/ieee1275/machine.h: Likewise.
42489
42490 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
42491 (serial_hw_io_addr): New variable.
42492 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
42493 instead of `(unsigned short *) 0x400'.
42494
42495 2007-11-10 Bean <bean123ch@gmail.com>
42496
42497 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
42498
42499 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
42500
42501 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
42502 (vga_mod_SOURCES): Added.
42503 (vga_mod_CFLAGS): Likewise.
42504 (vga_mod_LDFLAGS): Likewise.
42505
42506 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
42507 grub_outb() calls.
42508 (set_map_mask): Likewise.
42509 (set_read_map): Likewise.
42510 (set_read_address): Likewise.
42511 (vga_font): Removed variable.
42512 (get_vga_glyph): Removed function.
42513 (invalidate_char): Likewise.
42514 (write_char): Changed to use grub_font_get_glyph() for font
42515 information.
42516 (grub_vga_putchar): Likewise.
42517 (grub_vga_getcharwidth): Likewise.
42518
42519 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
42520
42521 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
42522 flags.
42523 (pxeboot_img_LDFLAGS): Likewise.
42524 (diskboot_img_LDFLAGS): Likewise.
42525 (kernel_img_LDFLAGS): Likewise.
42526
42527 2007-11-06 Robert Millan <rmh@aybabtu.com>
42528
42529 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
42530 in grub_outb() calls.
42531 (serial_hw_init): Likewise.
42532
42533 2007-11-05 Robert Millan <rmh@aybabtu.com>
42534
42535 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
42536 spaces. Skip non-regular files.
42537
42538 2007-11-05 Robert Millan <rmh@aybabtu.com>
42539
42540 * kern/disk.c (grub_disk_firmware_fini)
42541 (grub_disk_firmware_is_tainted): New variables.
42542
42543 * include/grub/disk.h (grub_disk_firmware_fini)
42544 (grub_disk_firmware_is_tainted): Likewise.
42545
42546 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
42547 (grub_disk_biosdisk_fini): ... to here.
42548 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
42549 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
42550 is set. Register grub_disk_biosdisk_fini() in
42551 `grub_disk_firmware_fini'.
42552
42553 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
42554 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
42555 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
42556 to finish existing firmware disk interface.
42557
42558 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
42559 (ata_mod_SOURCES): New variable.
42560 (ata_mod_CFLAGS): Likewise.
42561 (ata_mod_LDFLAGS): Likewise.
42562
42563 2007-11-05 Robert Millan <rmh@aybabtu.com>
42564
42565 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
42566 (grub_ata_wait): Reimplement using grub_millisleep().
42567
42568 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
42569 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
42570
42571 2007-11-03 Marco Gerards <marco@gnu.org>
42572
42573 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
42574 (CRTC_ADDR_PORT): New macro.
42575 (CRTC_DATA_PORT): Likewise.
42576 (CRTC_CURSOR): Likewise.
42577 (CRTC_CURSOR_ADDR_HIGH): Likewise.
42578 (CRTC_CURSOR_ADDR_LOW): Likewise.
42579 (update_cursor): New function.
42580 (grub_console_real_putchar): Call `update_cursor'.
42581 (grub_console_gotoxy): Likewise.
42582 (grub_console_cls): Set the default color when clearing the
42583 screen.
42584 (grub_console_setcursor): Implemented.
42585
42586 2007-11-03 Marco Gerards <marco@gnu.org>
42587
42588 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
42589 become activate.
42590 (grub_ata_pio_write): Likewise.
42591
42592 (grub_atapi_identify): Wait after issuing an ATA command.
42593 (grub_atapi_packet): Likewise.
42594 (grub_ata_identify): Likewise.
42595 (grub_ata_readwrite): Likewise.
42596
42597 2007-11-03 Marco Gerards <marco@gnu.org>
42598
42599 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
42600 (grub_ata_pio_write): Likewise.
42601 (grub_ata_readwrite): Use `grub_error', instead of
42602 returning `grub_errno'.
42603
42604 2007-11-03 Marco Gerards <marco@gnu.org>
42605
42606 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
42607 grub_ata_pio_write once for every single sector, instead of for
42608 multiple sectors.
42609
42610 2007-10-31 Robert Millan <rmh@aybabtu.com>
42611
42612 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
42613
42614 * conf/i386-linuxbios.rmk: New file.
42615
42616 * kern/i386/pc/hardware.c: Likewise.
42617 * term/i386/pc/at_keyboard.c: Likewise.
42618 * term/i386/pc/vga_text.c: Likewise.
42619
42620 * include/grub/i386/linuxbios/boot.h: Likewise.
42621 * include/grub/i386/linuxbios/console.h: Likewise.
42622 * include/grub/i386/linuxbios/init.h: Likewise.
42623 * include/grub/i386/linuxbios/kernel.h: Likewise.
42624 * include/grub/i386/linuxbios/loader.h: Likewise.
42625 * include/grub/i386/linuxbios/memory.h: Likewise.
42626 * include/grub/i386/linuxbios/serial.h: Likewise.
42627 * include/grub/i386/linuxbios/time.h: Likewise.
42628
42629 * kern/i386/linuxbios/init.c: Likewise.
42630 * kern/i386/linuxbios/startup.S: Likewise.
42631 * kern/i386/linuxbios/table.c: Likewise.
42632
42633 2007-10-31 Marco Gerards <marco@gnu.org>
42634
42635 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
42636 (ata_mod_SOURCES): New variable.
42637 (ata_mod_CFLAGS): Likewise.
42638 (ata_mod_LDFLAGS): Likewise.
42639
42640 * disk/ata.c: New file.
42641
42642 * include/grub/disk.h (grub_disk_dev_id): Add
42643 `GRUB_DISK_DEV_ATA_ID'.
42644
42645 2007-10-31 Robert Millan <rmh@aybabtu.com>
42646
42647 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
42648 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
42649
42650 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
42651 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
42652
42653 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
42654 `<grub/types.h>'.
42655
42656 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
42657
42658 2007-10-27 Robert Millan <rmh@aybabtu.com>
42659
42660 * include/grub/types.h (ULONG_MAX): Define macro.
42661
42662 2007-10-22 Robert Millan <rmh@aybabtu.com>
42663
42664 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
42665 `"../realmode.S"'.
42666 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
42667
42668 2007-10-22 Robert Millan <rmh@aybabtu.com>
42669
42670 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
42671 (pkgdata_MODULES): Add `biosdisk.mod'.
42672 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
42673 variables.
42674
42675 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
42676 (grub_biosdisk_init): Replace with ...
42677 (GRUB_MOD_INIT(biosdisk)): ... this.
42678 (grub_biosdisk_fini): Replace with ...
42679 (GRUB_MOD_FINI(biosdisk)): ... this.
42680
42681 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
42682 (grub_machine_init): Remove call to grub_biosdisk_init().
42683 (grub_machine_fini): Remove call to grub_machine_fini().
42684
42685 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
42686
42687 2007-10-22 Robert Millan <rmh@aybabtu.com>
42688
42689 * include/grub/time.h: New file.
42690 * include/grub/i386/time.h: Likewise.
42691 * include/grub/powerpc/time.h: Likewise.
42692 * include/grub/sparc64/time.h: Likewise.
42693
42694 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
42695 instances to ...
42696 (KERNEL_MACHINE_TIME_HEADER): ... this.
42697 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
42698 instances to ...
42699 (KERNEL_MACHINE_TIME_HEADER): ... this.
42700 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
42701 instances to ...
42702 (KERNEL_MACHINE_TIME_HEADER): ... this.
42703
42704 * kern/i386/efi/init.c: Include `<grub/time.h>'.
42705 (grub_millisleep): New function.
42706 * kern/i386/pc/init.c: Include `<grub/time.h>'.
42707 (grub_millisleep): New function.
42708 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
42709 Remove `grub/machine/time.h' include.
42710 (grub_millisleep): New function.
42711 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
42712 Remove `grub/machine/time.h' include.
42713 (grub_millisleep): New function.
42714
42715 * include/grub/misc.h (grub_div_roundup): New function.
42716
42717 * kern/misc.c: Include `<grub/time.h>'.
42718 (grub_millisleep_generic): New function.
42719
42720 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
42721 Add `time.h'.
42722 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
42723 Add `time.h'.
42724 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
42725 `machine/time.h'. Add `time.h'.
42726 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
42727
42728 2007-10-21 Robert Millan <rmh@aybabtu.com>
42729
42730 * include/grub/misc.h (grub_max): New function.
42731
42732 2007-10-21 Robert Millan <rmh@aybabtu.com>
42733
42734 * util/misc.c (grub_util_info): Call fflush() before returning.
42735
42736 2007-10-20 Robert Millan <rmh@aybabtu.com>
42737
42738 * genmk.rb (Image): Copy `extra_flags' from here ...
42739 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
42740
42741 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
42742 to `argc' and `args' arguments.
42743
42744 2007-10-17 Robert Millan <rmh@aybabtu.com>
42745
42746 * kern/i386/loader.S: New file.
42747
42748 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
42749 * kern/i386/loader.S (grub_linux_prot_size)... to here.
42750 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
42751 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
42752 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
42753 * kern/i386/loader.S (grub_linux_real_addr)... to here.
42754 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
42755 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
42756 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
42757 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
42758 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
42759 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
42760 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
42761 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
42762
42763 * kern/i386/realmode.S: New file.
42764
42765 * kern/i386/pc/startup.S (protstack): Moved from here ...
42766 * kern/i386/realmode.S (protstack)... to here.
42767 * kern/i386/pc/startup.S (gdt): Moved from here ...
42768 * kern/i386/realmode.S (gdt)... to here.
42769 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
42770 * kern/i386/realmode.S (prot_to_real)... to here.
42771
42772 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
42773 `kern/i386/realmode.S'.
42774
42775 2007-10-17 Robert Millan <rmh@aybabtu.com>
42776
42777 * include/grub/i386/loader.h: New file.
42778
42779 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
42780 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
42781 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
42782 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
42783 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
42784 * include/grub/i386/loader.h (grub_linux_prot_size)
42785 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
42786 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
42787 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
42788 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
42789
42790 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
42791
42792 2007-10-15 Robert Millan <rmh@aybabtu.com>
42793
42794 * normal/misc.c (grub_normal_print_device_info): Do not probe for
42795 filesystem when dev->disk is unset.
42796 Do probe for filesystem even when dev->disk->has_partitions is set.
42797 In case a filesystem is found, always report it.
42798 In case it isn't, if dev->disk->has_partitions is set, report that
42799 a partition table was found instead of reporting that no filesystem
42800 could be identified.
42801
42802 2007-10-12 Robert Millan <rmh@aybabtu.com>
42803
42804 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
42805 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
42806
42807 * include/grub/types.h (grub_host_to_target16): New macro.
42808 (grub_host_to_target32): Likewise.
42809 (grub_host_to_target64): Likewise.
42810 (grub_target_to_host16): Likewise.
42811 (grub_target_to_host32): Likewise.
42812 (grub_target_to_host64): Likewise.
42813
42814 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
42815 Renamed from to ...
42816 (GRUB_MOD_ALIGN): ...this. Update all users.
42817
42818 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
42819 grub_host_to_target32.
42820 Replace grub_be_to_cpu32 with grub_target_to_host32.
42821 (load_modules): Likewise.
42822 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
42823 Replace grub_be_to_cpu32 with grub_target_to_host32.
42824 Replace grub_cpu_to_be16 with grub_host_to_target16.
42825 Replace grub_cpu_to_be32 grub_host_to_target32.
42826
42827 2007-10-12 Robert Millan <rmh@aybabtu.com>
42828
42829 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
42830 * util/elf/grub-mkimage.c: ... here.
42831
42832 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
42833 `util/powerpc/ieee1275/grub-mkimage.c'.
42834
42835 2007-10-07 Robert Millan <rmh@aybabtu.com>
42836
42837 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
42838 and make it easier to figure out.
42839 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
42840 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
42841 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
42842 leave us with less than HEAP_MIN_SIZE total heap.
42843 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
42844
42845 2007-10-03 Robert Millan <rmh@aybabtu.com>
42846
42847 * include/grub/i386/io.h: New file.
42848 * commands/i386/pc/play.c (inb): Removed.
42849 (outb): Removed.
42850 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
42851 with grub_outb().
42852 * term/i386/pc/serial.c (inb): Removed.
42853 (outb): Removed.
42854 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
42855 with grub_outb().
42856 * term/i386/pc/vga.c (inb): Removed.
42857 (outb): Removed.
42858 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
42859 with grub_outb().
42860
42861 2007-10-02 Robert Millan <rmh@aybabtu.com>
42862
42863 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
42864 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42865 Reported by Marcin Kurek.
42866
42867 2007-09-07 Robert Millan <rmh@aybabtu.com>
42868
42869 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
42870 SmartFirmware version updates (as released by Sven Luther), and avoid
42871 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
42872 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
42873 known broken.
42874
42875 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
42876
42877 From Hitoshi Ozeki:
42878 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
42879 when merging two regions.
42880
42881 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
42882
42883 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
42884 * normal/completion.c (grub_normal_do_completion): Likewise.
42885 Reported by Hitoshi Ozeki.
42886
42887 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
42888
42889 Do not use devices at boot in chainloading.
42890
42891 * loader/i386/pc/chainloader.c (boot_drive): New variable.
42892 (boot_part_addr): Likewise.
42893 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
42894 with BOOT_DRIVE and BOOT_PART_ADDR.
42895 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
42896 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
42897
42898 2007-08-29 Robert Millan <rmh@aybabtu.com>
42899
42900 Patch from Simon Peter <dn.tlp@gmx.net>:
42901 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
42902 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
42903 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
42904 util/i386/pc/grub-setup.c_DEPENDENCIES.
42905 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
42906 util/grub-probe.c_DEPENDENCIES.
42907 * conf/powerpc-ieee1275.rmk: Likewise.
42908
42909 2007-08-28 Robert Millan <rmh@aybabtu.com>
42910
42911 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
42912 to tell grub-mkdevicemap how to name devices.
42913 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
42914 feature).
42915
42916 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
42917 util/i386/get_disk_name.c.
42918 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
42919 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
42920 util/ieee1275/get_disk_name.c.
42921
42922 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
42923
42924 * DISTLIST: Add util/i386/get_disk_name.c and
42925 util/ieee1275/get_disk_name.c.
42926
42927 * util/grub-mkdevicemap.c: Replace device naming logic with
42928 grub_util_get_disk_name() calls.
42929
42930 2007-08-20 Robert Millan <rmh@aybabtu.com>
42931
42932 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
42933 (so that it works for both plural and singular quantities).
42934
42935 2007-08-05 Robert Millan <rmh@aybabtu.com>
42936
42937 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
42938 so that [xz] isn't taken into account when determining order.
42939
42940 2007-08-02 Marco Gerards <marco@gnu.org>
42941
42942 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
42943 `include/multiboot2.h', `include/grub/elfload.h',
42944 `include/multiboot.h', `include/grub/multiboot.h',
42945 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
42946 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
42947 `kern/elf.c', `loader/multiboot_loader.c',
42948 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
42949 `loader/i386/pc/multiboot2.c',
42950 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
42951 `util/i386/pc/grub-mkrescue.in'. Remove
42952 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
42953 `include/grub/i386/pc/util/biosdisk.h' and
42954 `include/grub/powerpc/ieee1275/multiboot.h'.
42955
42956 2007-08-02 Bean <bean123ch@gmail.com>
42957
42958 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
42959 (ntfs_mod_SOURCES): New variable.
42960 (ntfs_mod_CFLAGS): Likewise.
42961 (ntfs_mod_LDFLAGS): Likewise.
42962
42963 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
42964 (grub_probe_SOURCES): Likewise.
42965 (grub_emu_SOURCES): Likewise.
42966
42967 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
42968 (grub_emu_SOURCES): Likewise.
42969
42970 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
42971 (grub_emu_SOURCES): Likewise.
42972
42973 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
42974
42975 * fs/ntfs.c: New file.
42976
42977 2007-08-02 Bean <bean123ch@gmail.com>
42978
42979 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
42980
42981 * file.h (grub_file): Likewise.
42982
42983 * fshelp.h (grub_fshelp_read_file): Likewise.
42984
42985 * util/i386/pc/grub-setup.c (setup): Likewise.
42986 (save_first_sector): Likewise.
42987 (save_blocklists): Likewise.
42988
42989 * fs/affs.c (grub_affs_read_file): Likewise.
42990
42991 * fs/ext2.c (grub_ext2_read_file): Likewise.
42992
42993 * fs/fat.c (grub_fat_read_data): Likewise.
42994
42995 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
42996
42997 * fs/hfs.c (grub_hfs_read_file): Likewise.
42998
42999 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
43000
43001 * fs/jfs.c (grub_jfs_read_file): Likewise.
43002
43003 * fs/minix.c (grub_minix_read_file): Likewise.
43004
43005 * fs/sfs.c (grub_sfs_read_file): Likewise.
43006
43007 * fs/ufs.c (grub_ufs_read_file): Likewise.
43008
43009 * fs/xfs.c (grub_xfs_read_file): Likewise.
43010
43011 * command/blocklist.c (read_blocklist): Likewise.
43012 (print_blocklist): Likewise.
43013
43014 2007-08-02 Marco Gerards <marco@gnu.org>
43015
43016 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
43017 `util/hostfs.c'.
43018
43019 * disk/host.c: New file.
43020
43021 * util/hostfs.c: Likewise.
43022
43023 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
43024 return `GRUB_ERR_BAD_FS'.
43025 * fs/sfs.c (grub_sfs_mount): Likewise.
43026 * fs/xfs.c (grub_xfs_mount): Likewise.
43027
43028 * include/grub/disk.h (enum grub_disk_dev_id): Add
43029 `GRUB_DISK_DEVICE_HOST_ID'.
43030
43031 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
43032
43033 2007-07-24 Jerone Young <jerone@gmail.com>
43034
43035 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
43036 modules for compilation.
43037 * conf/powerpc-ieee1275.rmk: Likewise.
43038
43039 * include/multiboot.h: Move multiboot definitions to one file. Rename
43040 many definitions to not get grub specific.
43041 * include/multiboot2.h: Create header with multiboot 2 definitions.
43042 * include/grub/multiboot.h: Header for grub specific function
43043 prototypes and definitions.
43044 * include/grub/multiboot2.h: Likewise.
43045 * include/grub/multiboot_loader.h: Likewise.
43046 * include/grub/i386/pc/multiboot.h: Removed.
43047 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
43048
43049 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
43050 and 2 to allow for one multiboot and module commands.
43051 * loader/multiboot2.c: Add multiboot2 functionality.
43052 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
43053 and definition names.
43054 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
43055 2 functions.
43056 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
43057 ieee1275 specific multiboot2 code.
43058
43059 * kern/i386/pc/startup.S: Change headers and definition names for
43060 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
43061
43062 2007-07-22 Robert Millan <rmh@aybabtu.com>
43063
43064 * geninitheader.sh: Process file specified in first parameter rather
43065 than hardcoding grub_modules_init.lst.
43066 * geninit.sh: Likewise. Also, construct header name dynamically rather
43067 than hardcoding grub_modules_init.h.
43068
43069 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
43070 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
43071 grub_probe_init.[ch] and grub_setup_init.[ch].
43072
43073 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
43074 grub_modules_init.h with grub_emu_init.h.
43075 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
43076 grub_probe_init.[ch] files.
43077 * conf/i386-efi.rmk: Likewise.
43078 * conf/i386-pc.rmk: Likewise.
43079 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
43080 grub_setup_init.[ch] files.
43081
43082 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
43083 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
43084 to initialize modules rather than a list of hardcoded functions.
43085 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
43086 grub_init_all() to initialize modules rather than a list of hardcoded
43087 functions.
43088
43089 2007-07-22 Robert Millan <rmh@aybabtu.com>
43090
43091 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
43092 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
43093
43094 2007-07-22 Robert Millan <rmh@aybabtu.com>
43095
43096 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
43097 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
43098 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
43099 flag when running on SmartFirmware.
43100 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
43101 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
43102 was set.
43103
43104 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
43105 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
43106 rather than decreasing it.
43107
43108 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
43109 there's not enough space to do it, fail in the same way as when it
43110 can't be done because there are no partitions.
43111
43112 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
43113 when nvsetenv failed.
43114
43115 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
43116
43117 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
43118 because this rule is automatically generated.
43119 (grub-mkrescue): Removed for the same reason as above.
43120
43121 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
43122
43123 Migrate to GNU General Public License Version 3.
43124
43125 * COPYING: Replaced with the plain text version of GPLv3.
43126
43127 * config.guess: Updated from gnulib.
43128 * config.sub: Likewise.
43129
43130 * geninit.sh: Output a GPLv3 copyright notice.
43131 * geninitheader.sh: Likewise.
43132 * genmodsrc.sh: Likewise.
43133 * gensymlist.sh.in: Likewise.
43134
43135 * boot/i386/pc/boot.S: Upgraded to GPLv3.
43136 * boot/i386/pc/diskboot.S: Likewise.
43137 * boot/i386/pc/pxeboot.S: Likewise.
43138 * commands/blocklist.c: Likewise.
43139 * commands/boot.c: Likewise.
43140 * commands/cat.c: Likewise.
43141 * commands/cmp.c: Likewise.
43142 * commands/configfile.c: Likewise.
43143 * commands/echo.c: Likewise.
43144 * commands/help.c: Likewise.
43145 * commands/ls.c: Likewise.
43146 * commands/search.c: Likewise.
43147 * commands/terminal.c: Likewise.
43148 * commands/test.c: Likewise.
43149 * commands/videotest.c: Likewise.
43150 * commands/i386/cpuid.c: Likewise.
43151 * commands/i386/pc/halt.c: Likewise.
43152 * commands/i386/pc/play.c: Likewise.
43153 * commands/i386/pc/reboot.c: Likewise.
43154 * commands/i386/pc/vbeinfo.c: Likewise.
43155 * commands/i386/pc/vbetest.c: Likewise.
43156 * commands/ieee1275/halt.c: Likewise.
43157 * commands/ieee1275/reboot.c: Likewise.
43158 * commands/ieee1275/suspend.c: Likewise.
43159 * disk/loopback.c: Likewise.
43160 * disk/lvm.c: Likewise.
43161 * disk/raid.c: Likewise.
43162 * disk/efi/efidisk.c: Likewise.
43163 * disk/i386/pc/biosdisk.c: Likewise.
43164 * disk/ieee1275/ofdisk.c: Likewise.
43165 * font/manager.c: Likewise.
43166 * fs/affs.c: Likewise.
43167 * fs/ext2.c: Likewise.
43168 * fs/fat.c: Likewise.
43169 * fs/fshelp.c: Likewise.
43170 * fs/hfs.c: Likewise.
43171 * fs/hfsplus.c: Likewise.
43172 * fs/iso9660.c: Likewise.
43173 * fs/jfs.c: Likewise.
43174 * fs/minix.c: Likewise.
43175 * fs/sfs.c: Likewise.
43176 * fs/ufs.c: Likewise.
43177 * fs/xfs.c: Likewise.
43178 * hello/hello.c: Likewise.
43179 * include/grub/acorn_filecore.h: Likewise.
43180 * include/grub/arg.h: Likewise.
43181 * include/grub/bitmap.h: Likewise.
43182 * include/grub/boot.h: Likewise.
43183 * include/grub/cache.h: Likewise.
43184 * include/grub/device.h: Likewise.
43185 * include/grub/disk.h: Likewise.
43186 * include/grub/dl.h: Likewise.
43187 * include/grub/elfload.h: Likewise.
43188 * include/grub/env.h: Likewise.
43189 * include/grub/err.h: Likewise.
43190 * include/grub/file.h: Likewise.
43191 * include/grub/font.h: Likewise.
43192 * include/grub/fs.h: Likewise.
43193 * include/grub/fshelp.h: Likewise.
43194 * include/grub/gzio.h: Likewise.
43195 * include/grub/hfs.h: Likewise.
43196 * include/grub/kernel.h: Likewise.
43197 * include/grub/loader.h: Likewise.
43198 * include/grub/lvm.h: Likewise.
43199 * include/grub/misc.h: Likewise.
43200 * include/grub/mm.h: Likewise.
43201 * include/grub/net.h: Likewise.
43202 * include/grub/normal.h: Likewise.
43203 * include/grub/parser.h: Likewise.
43204 * include/grub/partition.h: Likewise.
43205 * include/grub/pc_partition.h: Likewise.
43206 * include/grub/raid.h: Likewise.
43207 * include/grub/rescue.h: Likewise.
43208 * include/grub/script.h: Likewise.
43209 * include/grub/setjmp.h: Likewise.
43210 * include/grub/symbol.h: Likewise.
43211 * include/grub/term.h: Likewise.
43212 * include/grub/terminfo.h: Likewise.
43213 * include/grub/tparm.h: Likewise.
43214 * include/grub/types.h: Likewise.
43215 * include/grub/video.h: Likewise.
43216 * include/grub/efi/api.h: Likewise.
43217 * include/grub/efi/chainloader.h: Likewise.
43218 * include/grub/efi/console.h: Likewise.
43219 * include/grub/efi/console_control.h: Likewise.
43220 * include/grub/efi/disk.h: Likewise.
43221 * include/grub/efi/efi.h: Likewise.
43222 * include/grub/efi/pe32.h: Likewise.
43223 * include/grub/efi/time.h: Likewise.
43224 * include/grub/i386/linux.h: Likewise.
43225 * include/grub/i386/setjmp.h: Likewise.
43226 * include/grub/i386/types.h: Likewise.
43227 * include/grub/i386/efi/kernel.h: Likewise.
43228 * include/grub/i386/efi/loader.h: Likewise.
43229 * include/grub/i386/efi/time.h: Likewise.
43230 * include/grub/i386/pc/biosdisk.h: Likewise.
43231 * include/grub/i386/pc/boot.h: Likewise.
43232 * include/grub/i386/pc/chainloader.h: Likewise.
43233 * include/grub/i386/pc/console.h: Likewise.
43234 * include/grub/i386/pc/init.h: Likewise.
43235 * include/grub/i386/pc/kernel.h: Likewise.
43236 * include/grub/i386/pc/loader.h: Likewise.
43237 * include/grub/i386/pc/memory.h: Likewise.
43238 * include/grub/i386/pc/multiboot.h: Likewise.
43239 * include/grub/i386/pc/serial.h: Likewise.
43240 * include/grub/i386/pc/time.h: Likewise.
43241 * include/grub/i386/pc/vbe.h: Likewise.
43242 * include/grub/i386/pc/vbeblit.h: Likewise.
43243 * include/grub/i386/pc/vbefill.h: Likewise.
43244 * include/grub/i386/pc/vbeutil.h: Likewise.
43245 * include/grub/i386/pc/vga.h: Likewise.
43246 * include/grub/ieee1275/ieee1275.h: Likewise.
43247 * include/grub/ieee1275/ofdisk.h: Likewise.
43248 * include/grub/powerpc/libgcc.h: Likewise.
43249 * include/grub/powerpc/setjmp.h: Likewise.
43250 * include/grub/powerpc/types.h: Likewise.
43251 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
43252 * include/grub/powerpc/ieee1275/console.h: Likewise.
43253 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
43254 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
43255 * include/grub/powerpc/ieee1275/loader.h: Likewise.
43256 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
43257 * include/grub/powerpc/ieee1275/time.h: Likewise.
43258 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
43259 * include/grub/sparc64/libgcc.h: Likewise.
43260 * include/grub/sparc64/setjmp.h: Likewise.
43261 * include/grub/sparc64/types.h: Likewise.
43262 * include/grub/sparc64/ieee1275/console.h: Likewise.
43263 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
43264 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
43265 * include/grub/sparc64/ieee1275/time.h: Likewise.
43266 * include/grub/util/biosdisk.h: Likewise.
43267 * include/grub/util/getroot.h: Likewise.
43268 * include/grub/util/lvm.h: Likewise.
43269 * include/grub/util/misc.h: Likewise.
43270 * include/grub/util/raid.h: Likewise.
43271 * include/grub/util/resolve.h: Likewise.
43272 * io/gzio.c: Likewise.
43273 * kern/device.c: Likewise.
43274 * kern/disk.c: Likewise.
43275 * kern/dl.c: Likewise.
43276 * kern/elf.c: Likewise.
43277 * kern/env.c: Likewise.
43278 * kern/err.c: Likewise.
43279 * kern/file.c: Likewise.
43280 * kern/fs.c: Likewise.
43281 * kern/loader.c: Likewise.
43282 * kern/main.c: Likewise.
43283 * kern/misc.c: Likewise.
43284 * kern/mm.c: Likewise.
43285 * kern/parser.c: Likewise.
43286 * kern/partition.c: Likewise.
43287 * kern/rescue.c: Likewise.
43288 * kern/term.c: Likewise.
43289 * kern/efi/efi.c: Likewise.
43290 * kern/efi/init.c: Likewise.
43291 * kern/efi/mm.c: Likewise.
43292 * kern/i386/dl.c: Likewise.
43293 * kern/i386/efi/init.c: Likewise.
43294 * kern/i386/efi/startup.S: Likewise.
43295 * kern/i386/pc/init.c: Likewise.
43296 * kern/i386/pc/lzo1x.S: Likewise.
43297 * kern/i386/pc/startup.S: Likewise.
43298 * kern/ieee1275/ieee1275.c: Likewise.
43299 * kern/powerpc/cache.S: Likewise.
43300 * kern/powerpc/dl.c: Likewise.
43301 * kern/powerpc/ieee1275/cmain.c: Likewise.
43302 * kern/powerpc/ieee1275/crt0.S: Likewise.
43303 * kern/powerpc/ieee1275/init.c: Likewise.
43304 * kern/powerpc/ieee1275/openfw.c: Likewise.
43305 * kern/sparc64/cache.S: Likewise.
43306 * kern/sparc64/dl.c: Likewise.
43307 * kern/sparc64/ieee1275/init.c: Likewise.
43308 * kern/sparc64/ieee1275/openfw.c: Likewise.
43309 * loader/efi/chainloader.c: Likewise.
43310 * loader/efi/chainloader_normal.c: Likewise.
43311 * loader/i386/efi/linux.c: Likewise.
43312 * loader/i386/efi/linux_normal.c: Likewise.
43313 * loader/i386/pc/chainloader.c: Likewise.
43314 * loader/i386/pc/chainloader_normal.c: Likewise.
43315 * loader/i386/pc/linux.c: Likewise.
43316 * loader/i386/pc/linux_normal.c: Likewise.
43317 * loader/i386/pc/multiboot.c: Likewise.
43318 * loader/i386/pc/multiboot_normal.c: Likewise.
43319 * loader/powerpc/ieee1275/linux.c: Likewise.
43320 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
43321 * normal/arg.c: Likewise.
43322 * normal/cmdline.c: Likewise.
43323 * normal/command.c: Likewise.
43324 * normal/completion.c: Likewise.
43325 * normal/execute.c: Likewise.
43326 * normal/function.c: Likewise.
43327 * normal/lexer.c: Likewise.
43328 * normal/main.c: Likewise.
43329 * normal/menu.c: Likewise.
43330 * normal/menu_entry.c: Likewise.
43331 * normal/misc.c: Likewise.
43332 * normal/parser.y: Likewise.
43333 * normal/script.c: Likewise.
43334 * normal/i386/setjmp.S: Likewise.
43335 * normal/powerpc/setjmp.S: Likewise.
43336 * normal/sparc64/setjmp.S: Likewise.
43337 * partmap/acorn.c: Likewise.
43338 * partmap/amiga.c: Likewise.
43339 * partmap/apple.c: Likewise.
43340 * partmap/gpt.c: Likewise.
43341 * partmap/pc.c: Likewise.
43342 * partmap/sun.c: Likewise.
43343 * term/gfxterm.c: Likewise.
43344 * term/terminfo.c: Likewise.
43345 * term/efi/console.c: Likewise.
43346 * term/i386/pc/console.c: Likewise.
43347 * term/i386/pc/serial.c: Likewise.
43348 * term/i386/pc/vesafb.c: Likewise.
43349 * term/i386/pc/vga.c: Likewise.
43350 * term/ieee1275/ofconsole.c: Likewise.
43351 * util/biosdisk.c: Likewise.
43352 * util/console.c: Likewise.
43353 * util/genmoddep.c: Likewise.
43354 * util/getroot.c: Likewise.
43355 * util/grub-emu.c: Likewise.
43356 * util/grub-mkdevicemap.c: Likewise.
43357 * util/grub-probe.c: Likewise.
43358 * util/lvm.c: Likewise.
43359 * util/misc.c: Likewise.
43360 * util/raid.c: Likewise.
43361 * util/resolve.c: Likewise.
43362 * util/update-grub.in: Likewise.
43363 * util/update-grub_lib.in: Likewise.
43364 * util/grub.d/00_header.in: Likewise.
43365 * util/grub.d/10_hurd.in: Likewise.
43366 * util/grub.d/10_linux.in: Likewise.
43367 * util/i386/efi/grub-install.in: Likewise.
43368 * util/i386/efi/grub-mkimage.c: Likewise.
43369 * util/i386/pc/grub-install.in: Likewise.
43370 * util/i386/pc/grub-mkimage.c: Likewise.
43371 * util/i386/pc/grub-mkrescue.in: Likewise.
43372 * util/i386/pc/grub-setup.c: Likewise.
43373 * util/i386/pc/misc.c: Likewise.
43374 * util/powerpc/ieee1275/grub-install.in: Likewise.
43375 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
43376 * util/powerpc/ieee1275/misc.c: Likewise.
43377 * video/bitmap.c: Likewise.
43378 * video/video.c: Likewise.
43379 * video/i386/pc/vbe.c: Likewise.
43380 * video/i386/pc/vbeblit.c: Likewise.
43381 * video/i386/pc/vbefill.c: Likewise.
43382 * video/i386/pc/vbeutil.c: Likewise.
43383 * video/readers/tga.c: Likewise.
43384
43385 2007-07-02 Robert Millan <rmh@aybabtu.com>
43386
43387 * conf/i386-efi.rmk: Replace obsolete reference to
43388 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
43389 with util/getroot.c.
43390 * conf/powerpc-ieee1275.rmk: Likewise.
43391 * conf/sparc64-ieee1275.rmk: Likewise.
43392
43393 * util/grub-emu.c (main): Fix unchecked pointer handling.
43394
43395 2007-07-02 Robert Millan <rmh@aybabtu.com>
43396
43397 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
43398 invocation to fail, in order to support partition-less media.
43399
43400 * util/i386/pc/grub-install.in: Likewise.
43401
43402 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
43403 which fs or partmap modules are needed (akin to its sister scripts).
43404
43405 Also use grub-probe to get rid of unportable /proc/mounts check.
43406
43407 Print the same informational message that the other scripts do, before
43408 exiting.
43409
43410 2007-06-23 Robert Millan <rmh@aybabtu.com>
43411
43412 * util/update-grub_lib.in (font_path): New function. Determine whether
43413 a font file can be found and, if so, echo the GRUB path to it.
43414
43415 * util/update-grub.in: Handle multiple terminals depending on user
43416 input, platform availability and font file presence. Propagate
43417 variables of our findings to /etc/grub.d/ children.
43418
43419 * util/grub.d/00_header.in: Handle multiple terminals, based on
43420 environment setup by update-grub.
43421
43422 2007-06-23 Robert Millan <rmh@aybabtu.com>
43423
43424 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
43425
43426 2007-06-21 Robert Millan <rmh@aybabtu.com>
43427
43428 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
43429 indicate end of data section in kernel image.
43430 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
43431 GRUB_KERNEL_MACHINE_DATA_END.
43432
43433 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
43434 space for it.
43435 * kern/i386/efi/startup.S: Likewise.
43436
43437 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
43438 during image generation. Implement --prefix option to override this
43439 patch.
43440 * util/i386/efi/grub-mkimage.c: Likewise.
43441
43442 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
43443 code to make path relative to its root into a separate function.
43444
43445 * util/i386/pc/grub-install.in: Use newly provided
43446 make_system_path_relative_to_its_root() to convert ${grubdir}, then
43447 pass the result to grub-install --prefix.
43448
43449 2007-06-13 Robert Millan <rmh@aybabtu.com>
43450
43451 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
43452 DEFAULT_DEVICE_MAP.
43453 * util/grub-emu.c: Use above definitions from misc.h instead of
43454 defining them.
43455 * util/grub-mkdevicemap.c: Likewise.
43456 * util/i386/pc/grub-setup.c: Likewise.
43457 * util/grub-probe.c: Likewise.
43458 (probe): Abort with grub_util_error() when either
43459 grub_guess_root_device or grub_util_get_grub_dev fails.
43460
43461 2007-06-12 Robert Millan <rmh@aybabtu.com>
43462
43463 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
43464 "pager" assignment.
43465 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
43466 "pcdata".
43467 * util/grub-probe.c (probe): Likewise for "drive_name".
43468
43469 2007-06-11 Robert Millan <rmh@aybabtu.com>
43470
43471 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
43472 not just the cdrom one.
43473
43474 2007-06-11 Robert Millan <rmh@aybabtu.com>
43475
43476 * util/i386/pc/grub-mkrescue.in: Add "set -e".
43477 Add --pkglibdir=DIR option to override pkglibdir.
43478 Mention --image-type=TYPE in help output.
43479 Fix --grub-mkimage (it was a no-op).
43480 Abort gracefully when no parameter is given.
43481
43482 2007-06-11 Robert Millan <rmh@aybabtu.com>
43483
43484 * util/i386/pc/grub-mkrescue.in: New file.
43485 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
43486 * Makefile.in: Handle bin_SCRIPTS.
43487
43488 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
43489
43490 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
43491 list of video modes.
43492
43493 2007-06-06 Robert Millan <rmh@aybabtu.com>
43494
43495 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
43496 file doesn't exist, or if it is in a filesystem grub can't read.
43497
43498 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
43499 not abort if GRUB_DRIVE could not be defined. Rearrange generated
43500 header comment to fit in 80 columns when the variables are resolved.
43501
43502 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
43503 could be identified by update-grub. Remove redundant check for
43504 unifont.pff existence (since convert_system_path_to_grub_path now
43505 handles that).
43506
43507 2007-06-04 Robert Millan <rmh@aybabtu.com>
43508
43509 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
43510
43511 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
43512
43513 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
43514
43515 2007-06-04 Robert Millan <rmh@aybabtu.com>
43516
43517 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
43518
43519 * include/grub/partition.h: Declare grub_apple_partition_map_init and
43520 grub_apple_partition_map_fini.
43521
43522 * util/biosdisk.c
43523 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
43524 to access >2 TiB disks).
43525
43526 Print disk->total_sectors with %llu instead of %lu, since this
43527 variable is always 64-bit (prevents wrong disk size from being displayed
43528 on either >2 TiB disk or big-endian CPU).
43529
43530 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
43531 into a generic case that supports all (sane) partition maps.
43532
43533 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
43534 breaks big-endian.
43535
43536 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
43537 and grub_apple_partition_map_fini() after that.
43538
43539 2007-06-01 Robert Millan <rmh@aybabtu.com>
43540
43541 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
43542
43543 * util/grub.d/00_header.in: Only enable gfxterm when
43544 convert_system_path_to_grub_path() succeeds.
43545
43546 2007-05-20 Robert Millan <rmh@aybabtu.com>
43547
43548 * util/update-grub_lib.in: New file.
43549 * DISTLIST: Add update-grub_lib.in.
43550 * conf/common.rmk: Generate update-grub_lib and install it in
43551 $(lib_DATA).
43552 * Makefile.in: Add install routine for $(lib_DATA).
43553
43554 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
43555 function provided by update-grub_lib to support arbitrary paths of
43556 unifont.pff.
43557 * util/update-grub.in: Use convert_system_path_to_grub_path() to
43558 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
43559
43560 2007-05-19 Robert Millan <rmh@aybabtu.com>
43561
43562 * commands/i386/cpuid.c: New module.
43563 * DISTLIST: Add it.
43564 * conf/i386-efi.rmk: Enable cpuid.mod.
43565 * conf/i386-pc.rmk: Likewise.
43566
43567 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
43568
43569 * kern/disk.c (grub_disk_read): Check return value of
43570 grub_realloc().
43571
43572 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
43573
43574 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
43575 arrays.
43576 * disk/raid.c (grub_raid_open): Likewise.
43577
43578 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
43579
43580 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
43581 stack instead of on the heap.
43582
43583 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
43584 before doing a read on it.
43585
43586 * configure.ac: Only use -fno-stack-protector for the target
43587 environment.
43588
43589 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
43590
43591 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
43592 __attribute_ ((unused)) to mode_type argument.
43593
43594 * util/getroot.c (grub_guess_root_device): Fix #endif.
43595
43596 * kern/misc.c (memcmp): Fix prototype.
43597
43598 * include/grub/partition.h [GRUB_UTIL]
43599 (grub_gpt_partition_map_init): Add prototype.
43600 (grub_gpt_partition_map_fini): Likewise.
43601
43602 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
43603 at the right place.
43604
43605 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
43606 (grub_fat_read_data): Likewise.
43607 (grub_fat_find_dir): Likewise.
43608
43609 * font/manager.c (find_glyph): Make table a const.
43610 (grub_font_get_glyph): Remove bitmap from if statement.
43611
43612 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
43613
43614 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
43615 code, first search for device in /dev/mapper, then in /dev.
43616 (grub_util_get_grub_dev): New function.
43617 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
43618 prototype.
43619 * util/grub-probe.c (probe): Remove check for RAID, call
43620 grub_util_get_grub_dev() instead of
43621 grub_util_biosdisk_get_grub_dev().
43622 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
43623 grub_util_biosdisk_get_grub_dev().
43624 * util/i386/pc/grub-setup.c (main): Likewise.
43625
43626 2007-05-16 Robert Millan <rmh@aybabtu.com>
43627
43628 * DISTLIST: Update for the latest changes.
43629 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
43630 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
43631 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
43632 grub/util/biosdisk.h.
43633 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
43634 grub/util/biosdisk.h.
43635
43636 2007-05-16 Robert Millan <rmh@aybabtu.com>
43637
43638 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
43639
43640 2007-05-16 Robert Millan <rmh@aybabtu.com>
43641
43642 * util/i386/efi/grub-install.in: New.
43643 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
43644 newly added grub-install.
43645 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
43646 include.
43647 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
43648 grub/util/biosdisk.h.
43649 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
43650 grub/util/biosdisk.h.
43651
43652 2007-05-16 Robert Millan <rmh@aybabtu.com>
43653
43654 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
43655 * include/grub/util/biosdisk.h: ... here.
43656 * util/i386/pc/biosdisk.c: Moved to ...
43657 * util/biosdisk.c: ... here.
43658 * util/i386/pc/getroot.c: Moved to ...
43659 * util/getroot.c: ... here.
43660 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
43661 * util/grub-mkdevicemap.c: ... here.
43662 * util/i386/pc/grub-probe.c: Moved to ...
43663 * util/grub-probe.c: ... here.
43664
43665 2007-05-15 Robert Millan <rmh@aybabtu.com>
43666
43667 * util/update-grub.in: Remove duplicated line in grub.cfg header
43668 message.
43669
43670 2007-05-13 Robert Millan <rmh@aybabtu.com>
43671
43672 * util/update-grub.in: Fix a few assumptions about the devices holding
43673 /, /boot and /boot/grub being the same.
43674 * util/grub.d/00_header.in: Likewise.
43675 * util/grub.d/10_hurd.in: Likewise.
43676 * util/grub.d/10_linux.in: Likewise.
43677
43678 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
43679 patterns. Use that to define the `.old' suffix as older than `'.
43680
43681 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
43682
43683 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
43684 the grub.cfg header message.
43685
43686 2007-05-11 Robert Millan <rmh@aybabtu.com>
43687
43688 * util/update-grub.in: Create device.map if it doesn't already exist,
43689 before attempting to run grub-probe.
43690 Check for grub-probe and grub-mkdevicemap with the same code
43691 grub-install is using.
43692 Remove test mode.
43693
43694 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
43695
43696 * Makefile.in: Add the datarootdir autoconf variable.
43697
43698 2007-05-09 Robert Millan <rmh@aybabtu.com>
43699
43700 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
43701 fail gracefully if dev->disk->partition == NULL.
43702
43703 2007-05-07 Robert Millan <rmh@aybabtu.com>
43704
43705 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
43706 determine partition map module.
43707 * util/i386/pc/grub-install.in: Use this feature to decide which
43708 partition module to load, instead of hardcoding pc and gpt.
43709
43710 2007-05-07 Robert Millan <rmh@aybabtu.com>
43711
43712 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
43713 source directory differs from build directory.
43714
43715 2007-05-05 Robert Millan <rmh@aybabtu.com>
43716
43717 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
43718 initialisation.
43719
43720 2007-05-05 Robert Millan <rmh@aybabtu.com>
43721
43722 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
43723
43724 2007-05-05 Robert Millan <rmh@aybabtu.com>
43725
43726 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
43727 command-line arguments via ${GRUB_CMDLINE_LINUX}.
43728
43729 2007-05-05 Robert Millan <rmh@aybabtu.com>
43730
43731 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
43732 (grub_probe_SOURCES): Likewise.
43733 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
43734 GPT and initialize dos_part and bsd_part accordingly.
43735 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
43736 install_bsd_part.
43737 (main): Activate gpt module for use during partition identification,
43738 and deactivate it afterwards.
43739 * util/i386/pc/grub-install.in: Add gpt module to core.img.
43740 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
43741 partition identification, and deactivate it afterwards.
43742
43743 2007-05-05 Robert Millan <rmh@aybabtu.com>
43744
43745 * term/i386/pc/console.c (grub_console_fini): Call
43746 grub_term_set_current() before grub_term_unregister().
43747
43748 2007-05-04 Robert Millan <rmh@aybabtu.com>
43749
43750 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
43751 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
43752 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
43753 and update-grub_DATA.
43754 * conf/common.rmk: Build and install update-grub components.
43755 * conf/common.mk: Regenerate.
43756 * util/update-grub.in: New. Core of update-grub.
43757 * util/grub.d/00_header.in: New. Generates grub.cfg header.
43758 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
43759 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
43760 * util/grub.d/README: New. Document grub.d directory layout.
43761
43762 2007-05-01 Robert Millan <rmh@aybabtu.com>
43763
43764 * util/grub-emu.c: Move initialization functions
43765 grub_util_biosdisk_init() and grub_init_all() before
43766 grub_util_biosdisk_get_grub_dev(), which relies on them.
43767
43768 2007-04-19 Robert Millan <rmh@aybabtu.com>
43769
43770 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
43771 it is used later.
43772
43773 2007-04-18 Jerone Young <jerone@gmail.com>
43774
43775 * kernel/elf.c: Add missing parenthesis for conditional statement
43776 stanza.
43777
43778 2007-04-10 Jerone Young <jerone@gmail.com>
43779
43780 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
43781 continue on and look for device node with real device name.
43782
43783 2007-04-10 Jerone Young <jerone@gmail.com>
43784
43785 * configure.ac: Add argument for autoconf to use transformation
43786 ability.
43787 * Makefile.in: Add autoconf package transformation code.
43788 * util/i386/pc/grub-install.in: Likewise.
43789 * util/powerpc/ieee1275/grub-install.in: Likewise.
43790
43791 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
43792
43793 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
43794 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
43795 (EXT2_REVISION): Likewise.
43796 (EXT2_INODE_SIZE): Likewise.
43797 (struct grub_ext2_block_group): Added a missing member
43798 "used_dirs".
43799 (grub_ext2_read_inode): Divide by the inode size in a superblock
43800 instead of 128 to obtain INODES_PER_BLOCK.
43801 Use the macro EXT2_INODE_SIZE instead of directly using
43802 SBLOCK->INODE_SIZE.
43803
43804 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
43805
43806 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
43807 superblock instead of the structure size to compute an
43808 offset. This fixes the problem that GRUB could not read a
43809 filesystem when inode size is different from 128-byte.
43810
43811 2007-03-05 Marco Gerards <marco@gnu.org>
43812
43813 * normal/main.c (read_config_file): When "menu" is not set, create
43814 an initial context.
43815
43816 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
43817
43818 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
43819 (HEAP_LIMIT): New macro.
43820 (grub_claim_heap): Claim memory up to `heaplimit'.
43821
43822 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
43823
43824 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
43825 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
43826 (_start): Likewise.
43827 (grub_arch_modules_addr): Return address after `_end'.
43828 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
43829 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
43830 (add_segments): Calculate `_end' from phdr size and location.
43831 (ALIGN_UP): Moved to ...
43832 * include/grub/misc.h: here.
43833 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
43834 New macro.
43835 (GRUB_IEEE1275_MODULE_BASE): Removed.
43836
43837 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
43838
43839 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
43840 loop boundary.
43841
43842 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
43843
43844 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
43845 All users updated.
43846 (grub_elf64_load_hook_t): Likewise.
43847 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
43848 debug output.
43849
43850 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
43851
43852 * kern/mm.c: Update copyright.
43853 (grub_mm_debug): Correct syntax error.
43854 (grub_mm_dump_free): New function.
43855 (grub_debug_free): Call `grub_free'.
43856 * include/grub/mm.h: Update copyright.
43857 (grub_mm_dump_free): Add declaration.
43858
43859 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
43860
43861 * include/grub/ieee1275/ieee1275.h: Update copyright.
43862 * kern/powerpc/ieee1275/init.c: Likewise.
43863 * kern/powerpc/ieee1275/openfw.c: Likewise.
43864
43865 * loader/powerpc/ieee1275/linux.c: Likewise.
43866 * include/grub/elfload.h: Likewise.
43867 * kern/elf.c: Likewise.
43868 (grub_elf32_load): Pass `base' and `size' parameters. Update all
43869 callers.
43870 (grub_elf64_load): Likewise.
43871 (grub_elf32_load_segment): Move to a nested function.
43872 (grub_elf64_load_segment): Likewise.
43873
43874 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
43875
43876 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
43877 prototype.
43878 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
43879 (grub_heap_len): Likewise.
43880 (HEAP_SIZE): New macro.
43881 (grub_claim_heap): New function.
43882 (grub_machine_init): Don't claim heap directly. Call
43883 `grub_claim_heap'.
43884 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
43885 (grub_available_iterate): New function.
43886
43887 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
43888
43889 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
43890 * configure.ac: Use it for testing the HOST and TARGET compilers.
43891
43892 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
43893
43894 * Makefile.in (enable_grub_emu): New variable.
43895 * configure.ac (--enable-grub-emu): New option.
43896 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
43897 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
43898 * conf/i386-pc.rmk: Likewise.
43899 * conf/powerpc-ieee1275.rmk: Likewise.
43900 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
43901
43902 2006-12-12 Marco Gerards <marco@gnu.org>
43903
43904 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
43905
43906 * kern/env.c (grub_env_unset): Don't free the member `value' when
43907 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
43908 pointer.
43909
43910 * normal/main.c (current_menu): Removed.
43911 (free_menu): Unset the `menu' environment variable.
43912 (grub_normal_menu_addentry): Make use of the environment variable
43913 `menu', instead of using the global `current_menu'. Allocate
43914 memory for the sourcecode of this entry.
43915 (read_config_file): New argument `nested', changed all callers.
43916 Only in the case of a new context, initialize a new menu. Set the
43917 `menu' environment variable.
43918 (grub_normal_execute): Don't set and unset the environment
43919 variable `menu' here anymore. Only free the menu when leaving the
43920 context.
43921
43922 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
43923 leak.
43924
43925 2006-12-11 Marco Gerards <marco@gnu.org>
43926
43927 * normal/menu_entry.c (run): Fix off by one bug so the last line
43928 is executed. Move the loader check to outside the loop.
43929
43930 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
43931
43932 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
43933
43934 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
43935
43936 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
43937 the number of sectors. Reported by Andrey Shuvikov
43938 <mr_hyro@yahoo.com>.
43939
43940 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
43941
43942 * kern/disk.c (grub_disk_read): When there is a read error, always
43943 try to read only the necessary data.
43944
43945 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
43946 disk/raid.c.
43947 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
43948 prototype.
43949 [GRUB_UTIL] (grub_raid_fini): Likewise.
43950 [GRUB_UTIL] (grub_lvm_init): Likewise.
43951 [GRUB_UTIL] (grub_lvm_fini): Likewise.
43952 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
43953 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
43954 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
43955 and grub_raid_fini().
43956
43957 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
43958
43959 * include/grub/types.h (__unused): Rename to UNUSED.
43960 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
43961 (grub_elf64_size): Likewise.
43962
43963 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
43964
43965 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
43966 grub_error_push and grub_error_pop in the error-handling path.
43967 (grub_elf32_load_segment): Only call grub_file_read with non-zero
43968 length.
43969
43970 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
43971
43972 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
43973 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43974 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43975 (kernel_elf_SOURCES): Likewise.
43976 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
43977 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
43978 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
43979 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
43980 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
43981 (elf_mod_SOURCES): New variable.
43982 (elf_mod_CFLAGS): Likewise.
43983 (elf_mod_LDFLAGS): Likewise.
43984 * include/grub/types.h (__unused): New macro.
43985 * include/grub/elfload.h: New file.
43986 * kern/elf.c: Likewise.
43987 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
43988 (ELF32_LOADMASK): New macro.
43989 (ELF64_LOADMASK): Likewise.
43990 (vmlinux): Removed.
43991 (grub_linux_load32): New function.
43992 (grub_linux_load64): Likewise.
43993 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
43994 Use grub_elf_t instead of grub_file_t.
43995
43996 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
43997
43998 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
43999 `catch_result' to struct set_color_args.
44000
44001 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
44002
44003 * normal/menu.c: Include grub/script.h.
44004 * normal/menu_entry.c: Likewise.
44005 * include/grub/normal.h: Do not include grub/script.h.
44006
44007 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
44008
44009 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
44010
44011 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
44012
44013 * kern/disk.c (grub_disk_open): Print debug messages when opening a
44014 disk.
44015 (grub_disk_close): Print debug messages when closing a disk.
44016 (grub_disk_read): Print debug messages when disk read fails.
44017 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
44018 filesystem type.
44019 * kern/partition.c: Include misc.h.
44020 (grub_partition_iterate): Print debug messages when detecting
44021 partition type.
44022
44023 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
44024
44025 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
44026 is negative.
44027 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
44028
44029 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
44030
44031 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
44032 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
44033
44034 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
44035
44036 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
44037 instead of sizeof(lv). Patch by Michael Guntsche.
44038
44039 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
44040
44041 * disk/lvm.c: Rename VGS to VG_LIST.
44042 (grub_lvm_iterate): Change VGS->LV to VG-LV.
44043 (grub_lvm_open): Likewise.
44044 Thanks to Michael Guntsche for finding this bug.
44045
44046 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44047
44048 * configure.ac (AC_INIT): Bumped to 1.95.
44049
44050 2006-10-14 Robert Millan <rmh@aybabtu.com>
44051
44052 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
44053 with "/dev/.static/dev/md".
44054
44055 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
44056
44057 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
44058 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
44059 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
44060 DRIVE_NAME are always freed.
44061
44062 * util/i386/pc/biosdisk.c (make_device_name): Add one into
44063 DOS_PART, as a DOS partition is counted from one instead of zero
44064 now. Reported by Robert Millan.
44065
44066 2006-10-14 Robert Millan <rmh@aybabtu.com>
44067
44068 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
44069 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
44070 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
44071 string returned by grub_guess_root_device.
44072 * util/i386/pc/grub-setup.c: Likewise.
44073 * util/i386/pc/grub-probefs.c: Likewise.
44074
44075 * util/i386/pc/grub-probefs.c: Rename to ...
44076 * util/i386/pc/grub-probe.c: ... this.
44077 * DISTLIST: Remove grub-probefs, add grub-probe.
44078 * conf/i386-efi.rmk: Likewise.
44079 * conf/i386-pc.rmk: Likewise.
44080 * util/i386/pc/grub-install.in: Likewise.
44081
44082 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
44083 choose which information we want to print.
44084
44085 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
44086
44087 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
44088 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
44089 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
44090 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
44091 video/readers/tga.c and video/i386/pc/vbeutil.c.
44092
44093 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
44094
44095 Added support for RAID and LVM.
44096
44097 * disk/lvm.c: New file.
44098 * disk/raid.c: Likewise.
44099 * include/grub/lvm.h: Likewise.
44100 * include/grub/raid.h: Likewise.
44101 * include/grub/util/lvm.h: Likewise.
44102 * include/grub/util/raid.h: Likewise.
44103 * util/lvm.c: Likewise.
44104 * util/raid.c: Likewise.
44105
44106 * include/grub/disk.h (grub_disk_dev_id): Add
44107 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
44108 (grub_disk_get_size): New prototype.
44109 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
44110 returns a partition.
44111 (grub_disk_get_size): New function.
44112
44113 * kern/i386/pc/init.c (make_install_device): Copy the prefix
44114 verbatim if grub_install_dos_part is -2.
44115
44116 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
44117 and LVM devices.
44118
44119 * util/i386/pc/grub-setup.c (setup): New argument
44120 MUST_EMBED. Force embedding of GRUB when the argument is
44121 true. Close FILE before returning.
44122 (main): Add support for RAID and LVM.
44123
44124 * conf/common.rmk: Add RAID and LVM modules.
44125 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
44126 util/lvm.c.
44127 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
44128
44129 * kern/misc.c (grub_strstr): New function.
44130 * include/grub/misc.h (grub_strstr): New prototype.
44131
44132 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
44133
44134 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
44135
44136 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
44137
44138 * kern/misc.c (grub_strtoull): Guess the base only if not
44139 specified.
44140
44141 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
44142
44143 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
44144 PowerMac support.
44145
44146 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
44147
44148 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
44149
44150 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
44151 Remove `flags' argument. All callers changed.
44152 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
44153 (IEEE1275_IHANDLE_INVALID): New variable.
44154 (IEEE1275_CELL_INVALID): New variable.
44155 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
44156 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
44157 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
44158 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
44159 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
44160 codes from Open Firmware. All callers updated.
44161 (grub_ieee1275_next_property): Directly return Open Firmware return
44162 code.
44163 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
44164 Standardize error checking from `grub_ieee1275_get_property'.
44165 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
44166 `devalias' to `aliases'. Correct comments. Consolidate error paths.
44167
44168 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
44169
44170 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
44171 `instance_to_package_args' to `instance_to_path_args'.
44172
44173 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
44174 `grub_ieee1275_chosen'.
44175
44176 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
44177 `grub_ieee1275_interpret'.
44178
44179 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
44180
44181 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
44182
44183 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
44184
44185 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
44186 (__cmpdi): Likewise.
44187
44188 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
44189 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
44190 `grub_ssize_t'.
44191
44192 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
44193
44194 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
44195 to type `grub_ssize_t'.
44196 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
44197
44198 2006-09-22 Marco Gerards <marco@gnu.org>
44199
44200 * normal/script.c (grub_script_create_cmdmenu): Skip leading
44201 newlines.
44202
44203 2006-09-22 Marco Gerards <marco@gnu.org>
44204
44205 * commands/echo.c: New file.
44206
44207 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
44208
44209 * conf/common.rmk (echo_mod_SOURCES): New variable.
44210 (echo_mod_CFLAGS): Likewise.
44211 (echo_mod_LDFLAGS): Likewise.
44212
44213 2006-09-22 Marco Gerards <marco@gnu.org>
44214
44215 * normal/main.c (get_line): Malloc memory instead of using
44216 preallocated memory. Removed the arguments `cmdline' and
44217 `max_len'. Updated all callers.
44218
44219 2006-09-22 Marco Gerards <marco@gnu.org>
44220
44221 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
44222 (normal_mod_DEPENDENCIES): Likewise.
44223
44224 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
44225 (normal_mod_DEPENDENCIES): Likewise.
44226
44227 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
44228
44229 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
44230
44231 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
44232 programs.
44233 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
44234 (normal_mod_DEPENDENCIES): Likewise.
44235 * conf/i386-pc.mk: Regenerate.
44236 * conf/i386-efi.mk: Likewise
44237 * conf/common.mk: Likewise.
44238 * conf/powerpc-ieee1275.mk: Likewise.
44239 * conf/sparc64-ieee1275.mk: Likewise.
44240
44241 2006-09-22 Robert Millan <rmh@aybabtu.com>
44242
44243 Sync with i386 version.
44244 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
44245 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
44246
44247 2006-09-21 Robert Millan <rmh@aybabtu.com>
44248
44249 Import from GRUB Legacy (lib/device.c):
44250 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
44251 (init_device_map) [__linux__]: Add support for I2O devices.
44252
44253 2006-09-14 Marco Gerards <marco@gnu.org>
44254
44255 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
44256 `-melf_i386'.
44257
44258 2006-09-14 Robert Millan <rmh@aybabtu.com>
44259
44260 * util/i386/pc/grub-install.in: Skip menu.lst when removing
44261 /boot/grub/*.lst.
44262
44263 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
44264
44265 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
44266 before adding it to device.map.
44267
44268 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
44269
44270 * genmk.rb: Let GCC generate dependencies the first time it
44271 compiles a file; using the -MD option.
44272 * conf/common.mk: Regenerate.
44273 * conf/i386-pc.mk: Likewise.
44274 * conf/i386-efi.mk: Likewise.
44275 * conf/powerpc-ieee1275.mk: Likewise.
44276 * conf/sparc64-ieee1275.mk: Likewise.
44277
44278 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
44279
44280 Move the prototypes of grub_setjmp and grub_longjmp to
44281 cpu/setjmp.h, so that each architecture may specify different
44282 attributes.
44283
44284 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
44285 (grub_longjmp): Likewise.
44286 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
44287 (grub_longjmp): Likewise.
44288 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
44289 (grub_longjmp): Likewise.
44290
44291 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
44292 [!GRUB_UTIL] (grub_longjmp): Removed.
44293
44294 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
44295
44296 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
44297 "color!" method does not return any value.
44298
44299 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
44300
44301 * include/grub/bitmap.h: New file.
44302
44303 * include/grub/i386/pc/vbeutil.h: Likewise.
44304
44305 * video/bitmap.c: Likewise.
44306
44307 * video/readers/tga.c: Likewise.
44308
44309 * video/i386/pc/vbeutil.c: Likewise.
44310
44311 * commands/videotest.c: Code cleanup and updated to reflect to new
44312 video API.
44313
44314 * term/gfxterm.c: Likewise.
44315
44316 * video/video.c: Likewise.
44317
44318 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
44319 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
44320 (bitmap_mod_SOURCES): New entry.
44321 (bitmap_mod_CFLAGS): Likewise.
44322 (bitmap_mod_LDFLAGS): Likewise.
44323 (tga_mod_SOURCES): Likewise.
44324 (tga_mod_CFLAGS): Likewise.
44325 (tga_mod_LDFLAGS): Likewise.
44326
44327 * include/grub/video.h (grub_video_blit_operators): New enum type.
44328 (grub_video_render_target): Changed as forward declaration and moved
44329 actual definition to be video driver specific.
44330 (grub_video_adapter.blit_bitmap): Added blitting operator.
44331 (grub_video_adapter.blit_render_target): Likewise.
44332 (grub_video_blit_bitmap): Likewise.
44333 (grub_video_blit_render_target): Likewise.
44334
44335 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
44336 driver specific render target definition.
44337 (grub_video_vbe_map_rgba): Added driver internal helper.
44338 (grub_video_vbe_unmap_color): Updated to use
44339 grub_video_i386_vbeblit_info.
44340 (grub_video_vbe_get_video_ptr): Likewise.
44341
44342 * include/grub/i386/pc/vbeblit.h
44343 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
44344 grub_video_i386_vbeblit_info.
44345 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
44346 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
44347 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
44348 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
44349 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
44350 (grub_video_i386_vbeblit_index_index): Likewise.
44351 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
44352 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
44353 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
44354 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
44355 operator.
44356 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
44357 operator.
44358
44359 * video/i386/pc/vbeblit.c: Updated to reflect changes on
44360 include/grub/i386/pc/vbeblit.h.
44361
44362 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
44363 Updated to use grub_video_i386_vbeblit_info.
44364 (grub_video_i386_vbefill_R8G8B8): Likewise.
44365 (grub_video_i386_vbefill_index): Likewise.
44366 (grub_video_i386_vbefill): Added generic filler.
44367
44368 * video/i386/pc/vbefill.c: Updated to reflect changes on
44369 include/grub/i386/pc/vbefill.h.
44370
44371 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
44372 grub_video_i386_vbeblit_info.
44373 (grub_video_vbe_unmap_color): Likewise.
44374 (grub_video_vbe_blit_glyph): Likewise.
44375 (grub_video_vbe_scroll): Likewise.
44376 (grub_video_vbe_draw_pixel): Removed function.
44377 (grub_video_vbe_get_pixel): Likewise.
44378 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
44379 updated code to use it.
44380 (common_blitter): Added common blitter for render target and bitmap.
44381 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
44382 (grub_video_vbe_blit_render_target): Likewise.
44383
44384 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
44385
44386 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
44387 is in text mode if there is no console control protocol instance
44388 available.
44389
44390 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
44391
44392 * include/grub/video.h: Code cleanup.
44393
44394 * include/grub/i386/pc/vbe.h: Likewise.
44395
44396 * video/i386/pc/vbe.c: Likewise.
44397
44398 * video/i386/pc/vbeblit.c: Likewise.
44399
44400 * video/i386/pc/vbefill.c: Likewise.
44401
44402 * video/video.c: Likewise. Also added more comments.
44403
44404 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
44405
44406 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
44407 (struct grub_biosdisk_dap): Likewise.
44408
44409 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
44410 linkage settings for all functions.
44411
44412 2006-07-12 Marco Gerards <marco@gnu.org>
44413
44414 * configure.ac (--enable-mm-debug): Fix typo.
44415
44416 * genkernsyms.sh.in: Use proper quoting for `CC'.
44417
44418 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
44419
44420 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
44421 (normal_mod_ASFLAGS): Remove "-m32".
44422
44423 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
44424
44425 * util/misc.c: Include config.h.
44426 [!HAVE_MEMALIGN]: Do not include malloc.h.
44427 (grub_memalign): Use posix_memalign, if present. Then, use
44428 memalign, if present. Otherwise, emit an error.
44429
44430 * util/grub-emu.c: Do not include malloc.h.
44431
44432 * include/grub/util/misc.h: Include unistd.h. This is required for
44433 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
44434 D. Eades III <hde@foobar-qux.org>.
44435
44436 * configure.ac (AC_GNU_SOURCE): Added.
44437 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
44438 type.
44439
44440 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
44441
44442 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
44443 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
44444
44445 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
44446
44447 * include/grub/types.h (grub_host_addr_t): Rename to
44448 grub_target_addr_t.
44449 (grub_host_off_t): Rename to grub_target_off_t.
44450 (grub_host_size_t): Rename to grub_target_size_t.
44451 (grub_host_ssize_t): Rename to grub_target_ssize_t.
44452 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
44453
44454 * include/grub/kernel.h (struct grub_module_header): Change type
44455 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
44456 (grub_module_info): Likewise.
44457
44458 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
44459
44460 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
44461 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
44462 Velazquez <jesus.velazquez@gmail.com>.
44463
44464 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
44465
44466 Count partitions from 1 instead of 0 in the string representation
44467 of partitions. Still use 0-based internally.
44468
44469 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
44470 (sun_partition_map_iterate): Use grub_partition_t instead of
44471 struct grub_partition *. Cast DESC->START_CYLINDER to
44472 grub_uint64_t after converting the endian.
44473 (sun_partition_map_probe): Subtract 1 for PARTNUM.
44474 (sun_partition_map_get_name): Add 1 to P->INDEX.
44475
44476 * partmap/pc.c (grub_partition_parse): Subtract 1 for
44477 PCDATA->DOS_PART.
44478 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
44479
44480 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
44481 zero instead of one.
44482 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
44483 (gpt_partition_map_get_name): Add 1 into P->INDEX.
44484
44485 * partmap/apple.c (apple_partition_map_iterate): Change the type
44486 of POS to unsigned.
44487 (apple_partition_map_probe): Subtract 1 for PARTNUM.
44488 (apple_partition_map_get_name): Add 1 into P->INDEX.
44489
44490 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
44491 of POS to unsigned.
44492 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
44493 calculate the offset of a partition.
44494 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
44495 (amiga_partition_map_get_name): Add 1 into P->INDEX.
44496
44497 * partmap/acorn.c (acorn_partition_map_find): Change the type of
44498 SECTOR to grub_disk_addr_t.
44499 (acorn_partition_map_iterate): Likewise.
44500 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
44501 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
44502 top.
44503 (acorn_partition_map_get_name): Add 1 into P->INDEX.
44504
44505 * kern/i386/pc/init.c (make_install_device): Add 1 into
44506 GRUB_INSTALL_DOS_PART.
44507
44508 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
44509 conditional.
44510
44511 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
44512
44513 Clean up the code to support 64-bit addressing in disks and
44514 files. This change is not enough for filesystems yet.
44515
44516 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
44517 type of "start" to grub_uint64_t.
44518 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
44519 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
44520 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
44521 convert addresses.
44522
44523 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
44524 to grub_disk_addr_t.
44525
44526 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
44527 string.
44528
44529 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44530
44531 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
44532 to char *.
44533
44534 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
44535
44536 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
44537
44538 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
44539
44540 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
44541 to grub_off_t, to detect an error from grub_file_seek.
44542 (grub_multiboot_load_elf32): Likewise.
44543
44544 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
44545 maximum unsigned long value when an overflow is detected.
44546 (grub_strtoull): New function.
44547 (grub_divmod64): Likewise.
44548 (grub_lltoa): use grub_divmod64.
44549
44550 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
44551 grub_disk_addr_t.
44552 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
44553 the pointer to next character. Use grub_strtoull instead of
44554 grub_strtoul.
44555 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
44556 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
44557 respectively.
44558
44559 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
44560 return value is signed.
44561 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
44562 test if OFFSET is less than zero, as OFFSET is unsigned now.
44563
44564 * kern/disk.c (struct grub_disk_cache): Change the type of
44565 "sector" to grub_disk_addr_t.
44566 (grub_disk_cache_get_index): Change the type of SECTOR to
44567 grub_disk_addr_t. Calculate the hash with SECTOR casted to
44568 unsigned after shifting.
44569 (grub_disk_cache_invalidate): Change the type of SECTOR to
44570 grub_disk_addr_t.
44571 (grub_disk_cache_unlock): Likewise.
44572 (grub_disk_cache_store): Likewise.
44573 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
44574 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
44575 grub_disk_addr_t and grub_uint64_t, respectively.
44576 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
44577 body, as the value of OFFSET is tweaked by
44578 grub_disk_check_range. Change the types of START_SECTOR, LEN and
44579 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
44580 respectively.
44581 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
44582 body, as the value of OFFSET is tweaked by
44583 grub_disk_check_range. Change the types of LEN and N to
44584 grub_size_t.
44585
44586 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
44587 and "saved_offset" to grub_off_t.
44588 (test_header): Cast BUF to char *.
44589 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
44590 to char *.
44591 (grub_gzio_read): Change the types of OFFSET and SIZE to
44592 grub_off_t and grub_size_t, respectively.
44593
44594 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
44595 Removed.
44596 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
44597 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
44598 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
44599 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
44600 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
44601
44602 * include/grub/types.h (grub_off_t): Unconditionally set to
44603 grub_uint64_t.
44604 (grub_disk_addr_t): Changed to grub_uint64_t.
44605
44606 * include/grub/partition.h (struct grub_partition): Change the
44607 types of "start", "len" and "offset" to grub_disk_addr_t,
44608 grub_uint64_t and grub_disk_addr_t, respectively.
44609 (grub_partition_get_start): Return grub_disk_addr_t.
44610 (grub_partition_get_len): Return grub_uint64_t.
44611
44612 * include/grub/misc.h (grub_strtoull): New prototype.
44613 (grub_divmod64): Likewise.
44614
44615 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
44616 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
44617 grub_off_t, respectively.
44618 All callers and references changed.
44619
44620 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
44621 grub_size_t in "read".
44622 All callers and references changed.
44623
44624 * include/grub/file.h (struct grub_file): Change the types of
44625 "offset" and "size" to grub_off_t and grub_off_t,
44626 respectively. Change the type of SECTOR to grub_disk_addr_t in
44627 "read_hook".
44628 (grub_file_read): Change the type of LEN to grub_size_t.
44629 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
44630 grub_off_t.
44631 (grub_file_size): Return grub_off_t.
44632 (grub_file_tell): Likewise.
44633 All callers and references changed.
44634
44635 * include/grub/disk.h (struct grub_disk_dev): Change the types of
44636 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
44637 "write".
44638 (struct grub_disk): Change the type of "total_sectors" to
44639 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
44640 "read_hook".
44641 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
44642 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
44643 (grub_disk_write): Likewise.
44644 All callers and references changed.
44645
44646 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
44647 char * for grub_strncmp to silence gcc.
44648 (grub_iso9660_mount): Likewise.
44649 (grub_iso9660_mount): Likewise.
44650 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
44651 return statement.
44652 (grub_iso9660_iterate_dir): Likewise.
44653 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
44654
44655 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
44656 LEN to grub_disk_addr_t and grub_size_t, respectively.
44657
44658 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
44659
44660 * fs/jfs.c (grub_jfs_read_file): Likewise.
44661
44662 * fs/minix.c (grub_jfs_read_file): Likewise.
44663
44664 * fs/sfs.c (grub_jfs_read_file): Likewise.
44665
44666 * fs/ufs.c (grub_jfs_read_file): Likewise.
44667
44668 * fs/xfs.c (grub_jfs_read_file): Likewise.
44669
44670 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
44671 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
44672 respectively.
44673
44674 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
44675 BLKNR to -1 instead of returning GRUB_ERRNO.
44676 (grub_ext2_read_file): Change the types of SECTOR and
44677 LEN to grub_disk_addr_t and grub_size_t, respectively.
44678
44679 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
44680 LEN to grub_disk_addr_t and grub_size_t, respectively.
44681
44682 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
44683 grub_file_read.
44684
44685 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
44686 string. Do not cast SECTOR explicitly.
44687
44688 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
44689 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
44690 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
44691 grub_disk_addr_t and grub_size_t, respectively. If the sector is
44692 over 2TB and LBA mode is not supported, raise an error.
44693 (get_safe_sectors): New function.
44694 (grub_biosdisk_read): Use get_safe_sectors.
44695 (grub_biosdisk_write): Likewise.
44696
44697 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
44698 (grub_efidisk_write): Likewise.
44699
44700 * disk/loopback.c (delete_loopback): Cosmetic changes.
44701 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
44702 correctly.
44703 (grub_loopback_open): Likewise.
44704 (grub_loopback_read): Likewise. Also, change the type of POS to
44705 grub_off_t, and fix the usage of grub_memset.
44706
44707 * commands/i386/pc/play.c: Include grub/machine/time.h.
44708
44709 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
44710 print FILE->SIZE.
44711
44712 * commands/configfile.c: Include grub/env.h.
44713
44714 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
44715 GRUB_ERRNO directly instead. Change the type of POS to
44716 grub_off_t. Follow the coding standard.
44717
44718 * commands/blocklist.c: Include grub/partition.h.
44719 (grub_cmd_blocklist): Return an error if the underlying device is
44720 not a disk. Take the starting sector of a partition into account,
44721 if a partition is used.
44722
44723 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
44724 a length field.
44725 (lba_mode): Support 64-bit addresses.
44726 (chs_mode): Likewise.
44727 (copy_buffer): Adapted to the new offsets of a length field and a
44728 segment field.
44729 (blocklist_default_start): Allocate 64-bit space.
44730
44731 * boot/i386/pc/boot.S (force_lba): Removed.
44732 (boot_drive): Moved to under KERNEL_SECTOR.
44733 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
44734 space.
44735 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
44736 is useless.
44737 (lba_mode): Refactored to support a 64-bit address. More size
44738 optimization.
44739 (setup_sectors): Likewise.
44740
44741 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
44742
44743 * DISTLIST: Added include/grub/i386/linux.h. Removed
44744 include/grub/i386/pc/linux.h
44745
44746 * configure.ac (AC_INIT): Bumped to 1.94.
44747
44748 * config.guess: Updated from gnulib.
44749 * config.sub: Likewise.
44750 * install-sh: Likewise.
44751 * mkinstalldirs: Likewise.
44752
44753 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
44754
44755 * conf/common.rmk (grub_modules_init.lst): Depended on
44756 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
44757 MODSRCFILES.
44758
44759 * genmk.rb (PModule::rule): Reverted the previous change.
44760
44761 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
44762
44763 * conf/common.rmk (grub_modules_init.lst): Depends on
44764 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
44765 that the target does not exist before producing.
44766 (grub_modules_init.h): Remove the target before generating.
44767 (grub_emu_init.c): Likewise.
44768
44769 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
44770
44771 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
44772
44773 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
44774 for the target-specific tests. Make sure that we also have the
44775 up-to-date target variables for those tests.
44776
44777 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
44778
44779 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
44780 (PModule::rule): Likewise.
44781
44782 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
44783
44784 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
44785 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
44786 target-specific flags should be prefixed.
44787 (PModule::rule): Likewise.
44788
44789 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
44790
44791 * configure.ac (CMP): Check if cmp is available explicitly.
44792
44793 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
44794
44795 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
44796 (target_cpu): New variable.
44797 (pkglibdir): Use target_cpu instead of host_cpu.
44798
44799 * util/i386/pc/grub-install.in (host_cpu): Removed.
44800 (target_cpu): New variable.
44801 (pkglibdir): Use target_cpu instead of host_cpu.
44802
44803 * util/genmoddep.c: Removed.
44804
44805 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
44806 instead of GRUB_HOST_SIZEOF_VOID_P.
44807 * kern/dl.c: Likewise.
44808
44809 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
44810 ...
44811 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
44812 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
44813 (GRUB_TARGET_SIZEOF_LONG): ... this.
44814 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
44815 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
44816 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
44817 to ...
44818 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
44819 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
44820 (GRUB_TARGET_SIZEOF_LONG): ... this.
44821 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
44822 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
44823 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
44824 to ...
44825 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
44826 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
44827 (GRUB_TARGET_SIZEOF_LONG): ... this.
44828 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
44829 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
44830
44831 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
44832 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
44833 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
44834 instead of GRUB_HOST_SIZEOF_LONG.
44835 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
44836 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
44837 GRUB_CPU_WORDS_BIGENDIAN.
44838 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
44839 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
44840 grub_host_ssize_t.
44841
44842 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
44843 (genmoddep_SOURCES): Likewise.
44844 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
44845 (genmoddep_SOURCES): Likewise.
44846 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
44847 (genmoddep_SOURCES): Likewise.
44848 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
44849 Likewise.
44850 (genmoddep_SOURCES): Likewise.
44851
44852 * genmoddep.awk: New file.
44853
44854 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
44855 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
44856 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
44857 (PModule::rule): Likewise.
44858 (Program::rule): Likewise.
44859 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
44860 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
44861 respectively.
44862
44863 * configure.ac: Rewritten intensively to use host and target
44864 instead of build and host, respectively.
44865
44866 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
44867 (host_cpu): Removed.
44868 (target_cpu): New variable.
44869 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
44870 (BUILD_CC): Removed.
44871 (BUILD_CFLAGS): Likewise.
44872 (BUILD_CPPFLAGS): Likewise.
44873 (TARGET_CC): New variable.
44874 (TARGET_CFLAGS): Likewise.
44875 (TARGET_CPPFLAGS): Likewise.
44876 (TARGET_LDFLAGS): Likewise.
44877 (AWK): Likewise.
44878 (include): Use target_cpu instead of host_cpu.
44879 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
44880
44881 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
44882
44883 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
44884
44885 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
44886 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
44887 field 'false' to 'exec_on_false'.
44888 (grub_script_create_cmdif): Renamed argument names to reflect above
44889 changes.
44890
44891 * normal/execute.c (grub_script_execute_cmdif): Likewise.
44892
44893 * normal/script.c (grub_script_create_cmdif): Likewise.
44894
44895 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
44896
44897 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
44898 top.
44899 (grub_hfsplus_btree_recptr): Likewise.
44900 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
44901 FILEBLOCK both to pass a block number and store next block
44902 number.
44903 (grub_hfsplus_read_block): Rewritten heavily to support an extent
44904 overflow file correctly. Specify errors appropriately, because
44905 fshelp expects that GRUB_ERRNO is set when fails. Reuse
44906 grub_hfsplus_btree_recptr to get the pointer to a found key.
44907 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
44908 is found.
44909
44910 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
44911 linux.mod.
44912 (_linux_mod_SOURCES): New variable.
44913 (_linux_mod_CFLAGS): Likewise.
44914 (_linux_mod_LDFLAGS): Likewise.
44915 (linux_mod_SOURCES): Likewise.
44916 (linux_mod_CFLAGS): Likewise.
44917 (linux_mod_LDFLAGS): Likewise.
44918
44919 * DISTLIST: Added loader/i386/efi/linux.c,
44920 loader/i386/efi/linux_normal.c and
44921 include/grub/i386/efi/loader.h.
44922
44923 * loader/i386/efi/linux.c: New file.
44924 * loader/i386/efi/linux_normal.c: Likewise.
44925 * include/grub/i386/efi/loader.h: Likewise.
44926
44927 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
44928
44929 * commands/blocklist.c: New file.
44930
44931 * DISTLIST: Added commands/blocklist.c.
44932
44933 * term/efi/console.c (grub_console_highlight_color): Use a lighter
44934 color for the background, and a darker color for the foreground.
44935 (grub_console_checkkey): Return READ_KEY.
44936 (grub_console_cls): Set the background to
44937 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
44938
44939 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
44940
44941 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
44942 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
44943
44944 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
44945 prototype.
44946
44947 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
44948 BG. The spec is wrong again.
44949
44950 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
44951 prototype.
44952 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
44953
44954 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
44955 commands/blocklist.c.
44956 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44957
44958 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
44959 (blocklist_mod_SOURCES): New variable.
44960 (blocklist_mod_CFLAGS): Likewise.
44961 (blocklist_mod_LDFLAGS): Likewise.
44962
44963 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
44964
44965 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
44966 duplication.
44967 (lba_mode): Use %eax more intensively to reduce the code size.
44968
44969 2006-05-20 Marco Gerards <marco@gnu.org>
44970
44971 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
44972
44973 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
44974 for `menuentry'.
44975 (script): Accept leading newlines.
44976 (newlines): New rule to describe 0 or more newlines.
44977 (commands): Accept `command' with trailing newline. Fixed the
44978 order in which arguments were passed to `grub_script_add_cmd'.
44979 Accept commands separated by newlines.
44980 (function): Changed to accept newlines.
44981 (menuentry) Rewritten.
44982
44983 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
44984 front of the list, instead of to the end.
44985
44986 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
44987
44988 * util/i386/pc/grub-install.in (bindir): New variable.
44989 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
44990 Shaver <lbgwjl@gmail.com>.
44991
44992 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
44993
44994 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
44995 grub/machine/linux.h
44996 * loader/i386/pc/linux.c: Likewise.
44997
44998 * include/grub/i386/pc/linux.h: Moved to ...
44999 * include/grub/i386/linux.h: ... here.
45000
45001 * include/grub/i386/linux.h (struct linux_kernel_params): New
45002 struct.
45003
45004 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
45005
45006 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
45007 checking.
45008 (grub_video_vbe_blit_glyph): Likewise.
45009 (grub_video_vbe_blit_bitmap): Likewise.
45010 (grub_video_vbe_blit_render_target): Likewise.
45011
45012 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
45013
45014 * configure.ac (--with-platform): Properly quote the square
45015 brackets.
45016
45017 2006-05-08 Marco Gerards <marco@gnu.org>
45018
45019 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
45020 this...
45021 (kernel_elf_HEADERS): ...to this. Updated all users.
45022 (grubof_symlist.c): Renamed from this...
45023 (kernel_elf_symlist.c): ...to this. Updated all users.
45024 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
45025 (grubof_SOURCES): Renamed from this...
45026 (kernel_elf_SOURCES): ...to this.
45027 (grubof_HEADERS): Renamed from this...
45028 (kernel_elf_HEADERS): ...to this.
45029 (grubof_CFLAGS): Renamed from this...
45030 (kernel_elf_CFLAGS): ...to this.
45031 (grubof_ASFLAGS): Renamed from this...
45032 (kernel_elf_ASFLAGS): ...to this.
45033 (grubof_LDFLAGS): Renamed from this...
45034 (kernel_elf_LDFLAGS): ...to this.
45035
45036 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
45037 this...
45038 (kernel_elf_HEADERS): ...to this. Updated all users.
45039 (grubof_symlist.c): Renamed from this...
45040 (kernel_elf_symlist.c): ...to this. Updated all users.
45041 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
45042 (grubof_SOURCES): Renamed from this...
45043 (kernel_elf_SOURCES): ...to this.
45044 (grubof_HEADERS): Renamed from this...
45045 (kernel_elf_HEADERS): ...to this.
45046 (grubof_CFLAGS): Renamed from this...
45047 (kernel_elf_CFLAGS): ...to this.
45048 (grubof_ASFLAGS): Renamed from this...
45049 (kernel_elf_ASFLAGS): ...to this.
45050 (grubof_LDFLAGS): Renamed from this...
45051 (kernel_elf_LDFLAGS): ...to this.
45052
45053 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
45054 `kernel.elf' instead of `grubof'.
45055
45056 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
45057
45058 Add --with-platform to configure. Use pkglibdir instead of
45059 pkgdatadir. This is reported by Roger Leigh.
45060
45061 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
45062 (host_vendor): Likewise.
45063 (host_os): Likewise.
45064 (pkgdatadir): Likewise.
45065 (platform): New variable.
45066 (pkglibdir): Likewise.
45067 Use PKGLIBDIR instead of PKGDATADIR.
45068
45069 * util/i386/pc/grub-install.in (datadir): Removed.
45070 (host_vendor): Likewise.
45071 (host_os): Likewise.
45072 (pkgdatadir): Likewise.
45073 (platform): New variable.
45074 (pkglibdir): Likewise.
45075 Use PKGLIBDIR instead of PKGDATADIR.
45076
45077 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
45078 instead of GRUB_DATADIR.
45079 (main): Likewise.
45080 * util/i386/pc/grub-mkimage.c (usage): Likewise.
45081 (main): Likewise.
45082 * util/i386/efi/grub-mkimage.c (usage): Likewise.
45083 (main): Likewise.
45084
45085 * configure.ac (--with-platform): New option.
45086 Use PLATFORM instead of HOST_VENDOR to specify a platform.
45087
45088 * Makefile.in: Include a makefile based on PLATFORM instead of
45089 HOST_VENDOR.
45090 (pkgdatadir): Not appended by the machine type.
45091 (pkglibdir): Appended by the machine type.
45092 (host_vendor): Removed.
45093 (platform): New variable.
45094 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
45095 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
45096 (uninstall): Likewise.
45097
45098 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
45099
45100 Use the environment context in the menu. Remove the commands
45101 "default" and "timeout", and use variables instead.
45102
45103 * normal/menu.c: Include grub/env.h.
45104 (print_entry): Cast TITLE to silence gcc.
45105 (get_timeout): New function.
45106 (set_timeout): Likewise.
45107 (get_entry_number): Likewise.
45108 (run_menu): Use a default entry, a fallback entry and a timeout
45109 in the environment variables "default", "fallback" and
45110 "timeout". Also, tweak the default entry if it is not within the
45111 current menu entries.
45112 (grub_menu_run): Use a fallback entry in the environment variable
45113 "fallback".
45114
45115 * normal/main.c (read_config_file): Do not initialize
45116 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
45117 NEWMENU->TIMEOUT.
45118 (grub_normal_execute): Use a data slot to store the menu.
45119
45120 * include/grub/normal.h (struct grub_menu): Removed default_entry,
45121 fallback_entry and timeout.
45122 (struct grub_menu_list): Removed.
45123 (grub_menu_list_t): Likewise.
45124 (struct grub_context): Likewise.
45125 (grub_context_t): Likewise.
45126 (grub_context_get): Likewise.
45127 (grub_context_get_current_menu): Likewise.
45128 (grub_context_push_menu): Likewise.
45129 (grub_context_pop_menu): Likewise.
45130 (grub_default_init): Likewise.
45131 (grub_default_fini): Likewise.
45132 (grub_timeout_init): Likewise.
45133 (grub_timeout_fini): Likewise.
45134
45135 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
45136 and timeout.mod.
45137 (normal_mod_SOURCES): Removed normal/context.c.
45138
45139 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
45140 commands/default.c, commands/timeout.c and normal/context.c.
45141 (normal_mod_SOURCES): Removed normal/context.c.
45142
45143 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
45144 commands/timeout.c and normal/context.c.
45145 (normal_mod_SOURCES): Removed normal/context.c.
45146
45147 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
45148 commands/default.c, commands/timeout.c and normal/context.c.
45149 (normal_mod_SOURCES): Removed normal/context.c.
45150
45151 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
45152 timeout.mod.
45153 (default_mod_SOURCES): Removed.
45154 (default_mod_CFLAGS): Likewise.
45155 (default_mod_LDFLAGS): Likewise.
45156 (timeout_mod_SOURCES): Removed.
45157 (timeout_mod_CFLAGS): Likewise.
45158 (timeout_mod_LDFLAGS): Likewise.
45159
45160 * DISTLIST: Removed commands/default.c, commands/timeout.c and
45161 normal/context.c.
45162
45163 * commands/default.c: Removed.
45164 * commands/timeout.c: Likewise.
45165 * normal/context.c: Likewise.
45166
45167 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
45168
45169 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
45170
45171 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
45172
45173 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
45174 "next" to "prev" for readability.
45175 (struct grub_env_sorted_var): New struct.
45176 (grub_env_context): Renamed to ...
45177 (initial_context): ... this.
45178 (grub_env_var_context): Renamed to ...
45179 (current_context): ... this.
45180 (grub_env_find): Look only at CURRENT_CONTEXT.
45181 (grub_env_context_open): Rewritten to copy exported variables from
45182 previous context.
45183 (grub_env_context_close): Rewritten according to the new
45184 scheme. Also, add an assertion to prevent the initial context from
45185 removed.
45186 (grub_env_insert): Removed the code for the sorted list.
45187 (grub_env_remove): Likewise.
45188 (grub_env_export): Simply mark the variable with
45189 GRUB_ENV_VAR_GLOBAL.
45190 (grub_env_set): A cosmetic change for naming consistency.
45191 (grub_env_get): Likewise.
45192 (grub_env_unset): Likewise.
45193 (grub_env_iterate): Rewritten to sort variables within this
45194 function.
45195 (grub_register_variable_hook): Fixed for naming consistency. Call
45196 grub_env_find again, only if NAME is not found at the first time.
45197 (mangle_data_slot_name): New function.
45198 (grub_env_set_data_slot): Likewise.
45199 (grub_env_get_data_slot): Likewise.
45200 (grub_env_unset_data_slot): Likewise.
45201
45202 * include/grub/env.h (grub_env_var_type): New enum.
45203 (GRUB_ENV_VAR_LOCAL): New constant.
45204 (GRUB_ENV_VAR_GLOBAL): Likewise.
45205 (GRUB_ENV_VAR_DATA): Likewise.
45206 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
45207 "type".
45208 (grub_env_set): Replace VAR with NAME for consistency.
45209 (grub_register_variable_hook): Likewise.
45210 (grub_env_export): Specify the name of the argument.
45211 (grub_env_set_data_slot): New prototype.
45212 (grub_env_get_data_slot): Likewise.
45213 (grub_env_unset_data_slot): Likewise.
45214
45215 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
45216
45217 Extend the loader so that GRUB can accept a loader which comes
45218 back to GRUB when a loaded image exits. Also, this change adds
45219 support for a chainloader on EFI.
45220
45221 * term/efi/console.c: Include grub/misc.h.
45222 (grub_console_checkkey): Display a scan code on the top for
45223 debugging. This will be removed once the EFI port gets stable.
45224 Correct the scan code mapping.
45225
45226 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
45227 allocate memory from larger regions, in order to reduce the number
45228 of allocated regions. Otherwise, the MacOSX loader panics.
45229 (filter_memory_map): Avoid less than 1MB for compatibility with
45230 other loaders.
45231 (add_memory_regions): Allocate from the tail of a region, if
45232 possible, to avoid allocating a region near to 1MB, for the MacOSX
45233 loader.
45234
45235 * kern/efi/init.c (grub_efi_set_prefix): Specify
45236 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
45237
45238 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
45239 argument IMAGE_HANDLE and specify it to get a loaded image.
45240 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
45241 grub_efi_get_loaded_image.
45242 (grub_efi_get_filename): Divide the length by the size of
45243 grub_efi_char16_t.
45244 (grub_efi_get_device_path): New function.
45245 (grub_efi_print_device_path): Print End Device Path nodes. Divide
45246 the length by the size of grub_efi_char16_t for a file path device
45247 path node.
45248
45249 * kern/loader.c (grub_loader_noreturn): New variable.
45250 (grub_loader_set): Accept a new argument NORETURN. Set
45251 GRUB_LOADER_NORETURN to NORETURN.
45252 All callers changed.
45253 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
45254 grub_machine_fini.
45255
45256 * include/grub/efi/efi.h (grub_efi_get_device_path): New
45257 prototype.
45258 (grub_efi_get_loaded_image): Take an argument to specify an image
45259 handle.
45260
45261 * include/grub/loader.h (grub_loader_set): Added one more argument
45262 NORETURN.
45263
45264 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
45265 instead of grub_efi_open_protocol.
45266 (grub_efidisk_get_device_name): Likewise.
45267 (grub_efidisk_close): Print a newline.
45268 (grub_efidisk_get_device_handle): Fixed to use
45269 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
45270 GRUB_EFI_DEVICE_PATH_TYPE.
45271
45272 * disk/efi/efidisk.c (device_path_guid): Moved to ...
45273 * kern/efi/efi.c (device_path_guid): ... here.
45274
45275 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
45276 chain.mod.
45277 (kernel_mod_HEADERS): Added efi/disk.h.
45278 (_chain_mod_SOURCES): New variable.
45279 (_chain_mod_CFLAGS): Likewise.
45280 (_chain_mod_LDFLAGS): Likewise.
45281 (chain_mod_SOURCES): Likewise.
45282 (chain_mod_CFLAGS): Likewise.
45283 (chain_mod_LDFLAGS): Likewise.
45284
45285 * DISTLIST: Added include/grub/efi/chainloader.h,
45286 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
45287
45288 * include/grub/efi/chainloader.h: New file.
45289 * loader/efi/chainloader.c: Likewise.
45290 * loader/efi/chainloader_normal.c: Likewise.
45291
45292 2006-04-30 Marco Gerards <marco@gnu.org>
45293
45294 * commands/configfile.c (grub_cmd_source): New function.
45295 (GRUB_MOD_INIT): Register the commands `source' and `.'.
45296 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
45297
45298 2006-04-30 Marco Gerards <marco@gnu.org>
45299
45300 * normal/execute.c (grub_script_execute_cmd): Change the return
45301 type to `grub_err_t'. Correctly return the error.
45302 (grub_script_execute_cmdline): In case a command line is not a
45303 command or a function, try to interpret it as an assignment.
45304
45305 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
45306
45307 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
45308 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
45309 skip a node whose name is obviously invalid as UTF-16,
45310 i.e. contains a NUL character. Stop the iteration when the last
45311 directory entry is found. Instead of using the return value of
45312 grub_hfsplus_btree_iterate_node, store the value in RET and use
45313 it, because the iterator can be stopped by the last directory
45314 entry.
45315
45316 2006-04-30 Marco Gerards <marco@gnu.org>
45317
45318 * include/grub/env.h (grub_env_export): New prototype. Reported
45319 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
45320
45321 2006-04-30 Marco Gerards <marco@gnu.org>
45322
45323 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
45324 size of the extents in a catalog file record.
45325
45326 2006-04-29 Marco Gerards <marco@gnu.org>
45327
45328 * commands/configfile.c (grub_cmd_configfile): Execute the
45329 configfile within its own context.
45330
45331 * include/grub/env.h (grub_env_context_open): New prototype.
45332 (grub_env_context_close): Likewise.
45333
45334 * kern/env.c (grub_env): Removed.
45335 (grub_env_sorted): Likewise.
45336 (grub_env_context): New variable.
45337 (grub_env_var_context): Likewise.
45338 (grub_env_find): Search both the active context and the global
45339 context.
45340 (grub_env_context_open): New function.
45341 (grub_env_context_close): Likewise.
45342 (grub_env_insert): Likewise.
45343 (grub_env_remove): Likewise.
45344 (grub_env_export): Likewise.
45345 (grub_env_set): Changed to use helper functions to avoid code
45346 duplication.
45347 (grub_env_iterate): Rewritten so both the current context and the
45348 global context are being used.
45349
45350 * normal/command.c (export_command): New function.
45351 (grub_command_init): Register the `export' function.
45352
45353 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
45354
45355 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
45356 explicitly to suppress gcc's warnings.
45357 * fs/fat.c (grub_fat_find_dir): Likewise.
45358 (grub_fat_label): Likewise.
45359 * fs/xfs.c (grub_xfs_read_inode): Likewise.
45360 (grub_xfs_mount): Likewise.
45361 (grub_xfs_label): Likewise.
45362 * fs/affs.c (grub_affs_mount): Likewise.
45363 (grub_affs_label): Likewise.
45364 (grub_affs_iterate_dir): Likewise.
45365 * fs/sfs.c (grub_sfs_mount): Likewise.
45366 (grub_sfs_iterate_dir): Likewise.
45367 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
45368 * fs/hfs.c (grub_hfs_mount): Likewise.
45369 (grub_hfs_cmp_catkeys): Likewise.
45370 (grub_hfs_find_dir): Likewise.
45371 (grub_hfs_dir): Likewise.
45372 (grub_hfs_label): Likewise.
45373 * fs/jfs.c (grub_jfs_mount): Likewise.
45374 (grub_jfs_opendir): Likewise.
45375 (grub_jfs_getent): Likewise.
45376 (grub_jfs_lookup_symlink): Likewise.
45377 (grub_jfs_label): Likewise.
45378 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
45379 (grub_hfsplus_iterate_dir): Likewise.
45380 (grub_hfsplus_btree_iterate_node): Made static.
45381
45382 * util/grub-emu.c (prefix): New variable.
45383 (grub_machine_set_prefix): New function.
45384 (main): Do not set the environment variable "prefix" here. Only
45385 set PREFIX, which is used later by grub_machine_set_prefix.
45386
45387 * include/grub/video.h: Do not include grub/symbol.h.
45388 (grub_video_register): Not exported. This symbol is not defined in
45389 the kernel.
45390 (grub_video_unregister): Likewise.
45391 (grub_video_iterate): Likewise.
45392 (grub_video_setup): Likewise.
45393 (grub_video_restore): Likewise.
45394 (grub_video_get_info): Likewise.
45395 (grub_video_get_blit_format): Likewise.
45396 (grub_video_set_palette): Likewise.
45397 (grub_video_get_palette): Likewise.
45398 (grub_video_set_viewport): Likewise.
45399 (grub_video_get_viewport): Likewise.
45400 (grub_video_map_color): Likewise.
45401 (grub_video_map_rgb): Likewise.
45402 (grub_video_map_rgba): Likewise.
45403 (grub_video_fill_rect): Likewise.
45404 (grub_video_blit_glyph): Likewise.
45405 (grub_video_blit_bitmap): Likewise.
45406 (grub_video_blit_render_target): Likewise.
45407 (grub_video_scroll): Likewise.
45408 (grub_video_swap_buffers): Likewise.
45409 (grub_video_create_render_target): Likewise.
45410 (grub_video_delete_render_target): Likewise.
45411 (grub_video_set_active_render_target): Likewise.
45412
45413 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
45414 Undefined.
45415 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
45416
45417 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
45418 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
45419 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
45420 instead of $(srcdir)/genkernsyms.sh.
45421
45422 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
45423 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
45424 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
45425 instead of $(srcdir)/genkernsyms.sh.
45426
45427 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
45428 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
45429 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
45430 instead of $(srcdir)/genkernsyms.sh.
45431
45432 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
45433 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
45434 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
45435 instead of $(srcdir)/genkernsyms.sh.
45436
45437 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
45438 genkernsyms.sh.
45439
45440 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
45441 genkernsyms.sh.
45442 (gensymlist.sh): New target.
45443 (genkernsyms.sh): Likewise.
45444
45445 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
45446 genkernsyms.sh.in and gensymlist.sh.in.
45447
45448 * genkernsyms.sh: Removed.
45449 * gensymlist.sh: Likewise.
45450
45451 * genkernsyms.sh.in: New file.
45452 * gensymlist.sh.in: Likewise.
45453
45454 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
45455
45456 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
45457 clobber "prefix", since we may have already set it manually.
45458
45459 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
45460
45461 * kern/misc.c (abort): New alias for grub_abort.
45462
45463 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
45464
45465 A new machine-specific function "grub_machine_set_prefix" is
45466 defined. This is called after loading modules, so that a prefix
45467 initialization can use modules. Also, this change adds an
45468 intensive debugging feature for the memory manager via the
45469 configure option "--enable-mm-debug".
45470
45471 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
45472 PART.LEN.
45473
45474 * kern/sparc64/ieee1275/init.c (abort): Removed.
45475 (grub_stop): Likewise.
45476 (grub_exit): New function.
45477 (grub_set_prefix): Renamed to ...
45478 (grub_machine_set_prefix): ... this.
45479 (grub_machine_init): Do not call grub_set_prefix.
45480
45481 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
45482 (grub_machine_set_prefix): ... this.
45483 (grub_machine_init): Do not call grub_set_prefix.
45484
45485 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
45486 (grub_machine_init): Do not set the prefix here.
45487
45488 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
45489
45490 * kern/efi/init.c: Include grub/mm.h.
45491 (grub_efi_set_prefix): New function.
45492
45493 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
45494 (grub_efi_get_filename): New function.
45495 (grub_print_device_path): Renamed to ...
45496 (grub_efi_print_device_path): ... this.
45497
45498 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
45499 [MM_DEBUG] (grub_realloc): Likewise.
45500 [MM_DEBUG] (grub_free): Likewise.
45501 [MM_DEBUG] (grub_memalign): Likewise.
45502 [MM_DEBUG] (grub_mm_debug): New variable.
45503 [MM_DEBUG] (grub_debug_malloc): New function.
45504 [MM_DEBUG] (grub_debug_free): New function.
45505 [MM_DEBUG] (grub_debug_realloc): New function.
45506 [MM_DEBUG] (grub_debug_memalign): New function.
45507
45508 * kern/misc.c (grub_abort): Print a newline to distinguish
45509 the message.
45510
45511 * kern/main.c (grub_main): Call grub_machine_set_prefix and
45512 grub_set_root_dev after loading modules. This is necessary when
45513 setting a prefix depends on modules.
45514
45515 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
45516 (grub_efi_print_device_path): ... this.
45517 (grub_efi_get_filename): New prototype.
45518 (grub_efi_set_prefix): Likewise.
45519
45520 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
45521 and grub/disk.h.
45522 (grub_efidisk_get_device_handle): New prototype.
45523 (grub_efidisk_get_device_name): Likewise.
45524
45525 * include/grub/mm.h: Include config.h.
45526 (MM_DEBUG): Removed.
45527 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
45528 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
45529 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
45530 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
45531 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
45532 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
45533 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
45534 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
45535 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
45536
45537 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
45538
45539 * disk/efi/efidisk.c: Include grub/partition.h.
45540 (iterate_child_devices): New function.
45541 (add_device): First, compare only last device path nodes, so that
45542 devices are sorted by the types.
45543 (grub_efidisk_get_device_handle): New function.
45544 (grub_efidisk_get_device_name): Likewise.
45545
45546 * configure.ac (--enable-mm-debug): New option to enable the
45547 memory manager debugging feature. This makes the binary much
45548 bigger, so is disabled by default.
45549
45550 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
45551
45552 Use grub_abort instead of grub_stop, and grub_exit must be
45553 define in each architecture now. Also, this change adds support
45554 for EFI disks.
45555
45556 * util/i386/pc/grub-probefs.c: Include grub/term.h.
45557 (grub_getkey): New function.
45558 (grub_term_get_current): Likewise.
45559
45560 * util/i386/pc/grub-setup.c: Include grub/term.h.
45561 (grub_getkey): New function.
45562 (grub_term_get_current): Likewise.
45563
45564 * util/misc.c (grub_stop): Renamed to ...
45565 (grub_exit): ... this.
45566
45567 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
45568 (grub_exit): ... this.
45569 (grub_machine_init): Use grub_abort instead of abort.
45570 (grub_stop): Removed.
45571
45572 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
45573 abort.
45574
45575 * kern/i386/pc/startup.S (grub_exit): New function.
45576 (cold_reboot): New label.
45577
45578 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
45579 (grub_efi_init): Call grub_efidisk_init.
45580 (grub_efi_fini): Call grub_efidisk_fini.
45581
45582 * kern/efi/efi.c: Include grub/mm.h.
45583 (grub_efi_console_control_guid): Renamed to ...
45584 (console_control_guid): ... this.
45585 (grub_efi_loaded_image_guid): Renamed to ...
45586 (loaded_image_guid): ... this.
45587 (grub_efi_locate_handle): New function.
45588 (grub_efi_open_protocol): Likewise.
45589 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
45590 GRUB_EFI_CONSOLE_CONTROL_GUID.
45591 (grub_efi_exit): Removed.
45592 (grub_stop): Likewise.
45593 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
45594 (grub_exit): New function.
45595 (grub_print_device_path): Likewise.
45596
45597 * kern/rescue.c (grub_rescue_cmd_exit): New function.
45598 (grub_enter_rescue_mode): Register "exit".
45599
45600 * kern/misc.c (grub_real_dprintf): A cosmetic change.
45601 (grub_abort): New function.
45602
45603 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
45604
45605 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
45606
45607 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
45608
45609 * include/grub/efi/efi.h (grub_efi_exit): Removed.
45610 (grub_print_device_path): New prototype.
45611 (grub_efi_locate_handle): Likewise.
45612 (grub_efi_open_protocol): Likewise.
45613
45614 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
45615 * disk/efi/efidisk.c: Likewise.
45616
45617 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
45618
45619 * include/grub/efi/console_control.h
45620 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
45621
45622 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
45623 last 8 bytes as an array.
45624 (GRUB_EFI_DISK_IO_GUID): New macro.
45625 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
45626 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
45627 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
45628 grub_uint8_t.
45629 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
45630 (struct grub_efi_device_path): Rename the member "sub_type" to
45631 "subtype".
45632 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
45633 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
45634 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
45635 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
45636 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
45637 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
45638 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
45639 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
45640 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
45641 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
45642 (struct grub_efi_pci_device_path): New structure.
45643 (grub_efi_pci_device_path_t): New type.
45644 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
45645 (struct grub_efi_pccard_device_path): New structure.
45646 (grub_efi_pccard_device_path_t): New type.
45647 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
45648 (struct grub_efi_memory_mapped_device_path): New structure.
45649 (grub_efi_memory_mapped_device_path_t): New type.
45650 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
45651 (struct grub_efi_vendor_device_path): New structure.
45652 (grub_efi_vendor_device_path_t): New type.
45653 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
45654 (struct grub_efi_controller_device_path): New structure.
45655 (grub_efi_controller_device_path_t): New type.
45656 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
45657 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
45658 (struct grub_efi_acpi_device_path): New structure.
45659 (grub_efi_acpi_device_path_t): New type.
45660 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
45661 (struct grub_efi_expanded_acpi_device_path): New structure.
45662 (grub_efi_expanded_acpi_device_path_t): New type.
45663 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
45664 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
45665 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
45666 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
45667 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
45668 (struct grub_efi_atapi_device_path): New structure.
45669 (grub_efi_atapi_device_path_t): New type.
45670 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
45671 (struct grub_efi_fibre_channel_device_path): New structure.
45672 (grub_efi_fibre_channel_device_path_t): New type.
45673 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
45674 (struct grub_efi_1394_device_path): New structure.
45675 (grub_efi_1394_device_path_t): New type.
45676 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
45677 (struct grub_efi_usb_device_path): New structure.
45678 (grub_efi_usb_device_path_t): New type.
45679 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
45680 (struct grub_efi_usb_class_device_path): New structure.
45681 (grub_efi_usb_class_device_path_t): New type.
45682 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
45683 (struct grub_efi_i2o_device_path): New structure.
45684 (grub_efi_i2o_device_path_t): New type.
45685 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
45686 (struct grub_efi_mac_address_device_path): New structure.
45687 (grub_efi_mac_address_device_path_t): New type.
45688 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
45689 (struct grub_efi_ipv4_device_path): New structure.
45690 (grub_efi_ipv4_device_path_t): New type.
45691 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
45692 (struct grub_efi_ipv6_device_path): New structure.
45693 (grub_efi_ipv6_device_path_t): New type.
45694 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
45695 (struct grub_efi_infiniband_device_path): New structure.
45696 (grub_efi_infiniband_device_path_t): New type.
45697 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
45698 (struct grub_efi_uart_device_path): New structure.
45699 (grub_efi_uart_device_path_t): New type.
45700 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
45701 (struct grub_efi_vendor_messaging_device_path): New structure.
45702 (grub_efi_vendor_messaging_device_path_t): New type.
45703 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
45704 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
45705 (struct grub_efi_hard_drive_device_path): New structure.
45706 (grub_efi_hard_drive_device_path_t): New type.
45707 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
45708 (struct grub_efi_cdrom_device_path): New structure.
45709 (grub_efi_cdrom_device_path_t): New type.
45710 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
45711 (struct grub_efi_vendor_media_device_path): New structure.
45712 (grub_efi_vendor_media_device_path_t): New type.
45713 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
45714 (struct grub_efi_file_path_device_path): New structure.
45715 (grub_efi_file_path_device_path_t): New type.
45716 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
45717 (struct grub_efi_protocol_device_path): New structure.
45718 (grub_efi_protocol_device_path_t): New type.
45719 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
45720 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
45721 (struct grub_efi_bios_device_path): New structure.
45722 (grub_efi_bios_device_path_t): New type.
45723 (struct grub_efi_disk_io): New structure.
45724 (grub_efi_disk_io_t): New type.
45725 (struct grub_efi_block_io_media): New structure.
45726 (grub_efi_block_io_media_t): New type.
45727 (struct grub_efi_block_io): New structure.
45728 (grub_efi_block_io_t): New type.
45729
45730 * include/grub/misc.h (grub_stop): Removed.
45731 (grub_exit): New prototype.
45732 (grub_abort): Likewise.
45733
45734 * include/grub/disk.h (enum grub_disk_dev_id): Added
45735 GRUB_DISK_DEVICE_EFIDISK_ID.
45736
45737 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
45738 disk/efi/efidisk.c.
45739 (kernel_syms.lst): Remove the target if an error occurs.
45740
45741 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
45742
45743 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
45744 as it was simply too buggy.
45745
45746 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
45747
45748 * kern/misc.c (grub_lltoa): New function.
45749 (grub_vsprintf): Added support for the long long suffix,
45750 i.e. "ll".
45751
45752 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
45753
45754 * Makefile.in (LDFLAGS): Add variable.
45755 (LD): Remove variable.
45756 * configure.ac: Add -m32 to LDFLAGS.
45757 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
45758 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
45759 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
45760 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
45761 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
45762 variables.
45763 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
45764 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
45765 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
45766
45767 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
45768
45769 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
45770 length for unknown glyph.
45771
45772 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
45773
45774 Add support for pre-loaded modules into the EFI port.
45775
45776 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
45777 completely. Accept one more argument DIR. The caller has changed.
45778
45779 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
45780
45781 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
45782 (grub_efi_loaded_image_guid): New variable.
45783 (grub_efi_get_loaded_image): New function.
45784 (grub_arch_modules_addr): Likewise.
45785
45786 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
45787 prototype.
45788
45789 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
45790 (struct grub_efi_loaded_image): New structure.
45791 (grub_efi_loaded_image_t): New type.
45792
45793 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
45794
45795 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
45796 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
45797 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
45798
45799 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
45800
45801 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
45802
45803 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
45804
45805 * DISTLIST: Added include/grub/efi/console.h,
45806 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
45807 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
45808
45809 * include/grub/efi/console.h: New file.
45810 * include/grub/efi/time.h: Likewise.
45811 * include/grub/i386/efi/kernel.h: Likewise.
45812 * kern/efi/init.c: Likewise.
45813 * kern/efi/mm.c: Likewise.
45814 * term/efi/console.c: Likewise.
45815
45816 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
45817 (grub_stop): Removed.
45818 (grub_get_rtc): Likewise.
45819 (grub_machine_init): Simply call grub_efi_init.
45820 (grub_machine_fini): Call grub_efi_fini.
45821
45822 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
45823 (grub_efi_output_string): Removed.
45824 (grub_efi_stall): New function.
45825 (grub_stop): Likewise.
45826 (grub_get_rtc): Likewise.
45827
45828 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
45829 (grub_efi_stall): New prototype.
45830 (grub_efi_allocate_pages): Likewise.
45831 (grub_efi_free_pages): Likewise.
45832 (grub_efi_get_memory_map): Likewise.
45833 (grub_efi_mm_init): Likewise.
45834 (grub_efi_mm_fini): Likewise.
45835 (grub_efi_init): Likewise.
45836 (grub_efi_fini): Likewise.
45837
45838 * include/grub/i386/efi/time.h: Do not include
45839 grub/symbol.h. Include grub/efi/time.h.
45840 (GRUB_TICKS_PER_SECOND): Removed.
45841 (grub_get_rtc): Likewise.
45842
45843 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
45844 Added padding. The EFI spec is buggy.
45845 (GRUB_EFI_BLACK): New macro.
45846 (GRUB_EFI_BLUE): Likewise.
45847 (GRUB_EFI_GREEN): Likewise.
45848 (GRUB_EFI_CYAN): Likewise.
45849 (GRUB_EFI_RED): Likewise.
45850 (GRUB_EFI_MAGENTA): Likewise.
45851 (GRUB_EFI_BROWN): Likewise.
45852 (GRUB_EFI_LIGHTGRAY): Likewise.
45853 (GRUB_EFI_BRIGHT): Likewise.
45854 (GRUB_EFI_DARKGRAY): Likewise.
45855 (GRUB_EFI_LIGHTBLUE): Likewise.
45856 (GRUB_EFI_LIGHTGREEN): Likewise.
45857 (GRUB_EFI_LIGHTCYAN): Likewise.
45858 (GRUB_EFI_LIGHTRED): Likewise.
45859 (GRUB_EFI_LIGHTMAGENTA): Likewise.
45860 (GRUB_EFI_YELLOW): Likewise.
45861 (GRUB_EFI_WHITE): Likewise.
45862 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
45863 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
45864 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
45865 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
45866 (GRUB_EFI_BACKGROUND_RED): Likewise.
45867 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
45868 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
45869 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
45870 (GRUB_EFI_TEXT_ATTR): Likewise.
45871
45872 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
45873 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
45874 (kernel_mod_HEADERS): Added efi/time.h.
45875
45876 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
45877
45878 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
45879 include/grub/efi/api.h, include/grub/efi/console_control.h,
45880 include/grub/efi/efi.h, include/grub/efi/pe32.h,
45881 include/grub/i386/efi/time.h, kern/efi/efi.c,
45882 kern/i386/efi/init.c, kern/i386/efi/startup.S,
45883 and util/i386/efi/grub-mkimage.c.
45884
45885 * Makefile.in (RMKFILES): Added i386-efi.rmk.
45886
45887 * genmk.rb (PModule#rule): Do not export symbols if
45888 #{prefix}_EXPORTS is set to "no".
45889
45890 * conf/i386-efi.mk: New file.
45891 * conf/i386-efi.rmk: Likewise.
45892 * include/grub/efi/api.h: Likewise.
45893 * include/grub/efi/console_control.h: Likewise.
45894 * include/grub/efi/efi.h: Likewise.
45895 * include/grub/efi/pe32.h: Likewise.
45896 * include/grub/i386/efi/time.h: Likewise.
45897 * kern/efi/efi.c: Likewise.
45898 * kern/i386/efi/init.c: Likewise.
45899 * kern/i386/efi/startup.S: Likewise.
45900 * util/i386/efi/grub-mkimage.c: Likewise.
45901
45902 2006-04-17 Marco Gerards <marco@gnu.org>
45903
45904 * include/grub/script.h: Include <grub/parser.h> and
45905 "grub_script.tab.h".
45906 (struct grub_lexer_param): New struct.
45907 (struct grub_parser_param): Likewise.
45908 (grub_script_create_arglist): Pass the state in an argument.
45909 (grub_script_add_arglist): Likewise.
45910 (grub_script_create_cmdline): Likewise.
45911 (grub_script_create_cmdblock): Likewise.
45912 (grub_script_create_cmdif): Likewise.
45913 (grub_script_create_cmdmenu): Likewise.
45914 (grub_script_add_cmd): Likewise.
45915 (grub_script_arg_add): Likewise.
45916 (grub_script_lexer_ref): Likewise.
45917 (grub_script_lexer_deref): Likewise.
45918 (grub_script_lexer_record_start): Likewise.
45919 (grub_script_lexer_record_stop): Likewise.
45920 (grub_script_mem_record): Likewise.
45921 (grub_script_mem_record_stop): Likewise.
45922 (grub_script_malloc): Likewise.
45923 (grub_script_yylex): Likewise.
45924 (grub_script_yyparse): Likewise.
45925 (grub_script_yyerror): Likewise.
45926 (grub_script_yylex): Likewise.
45927 (grub_script_lexer_init): Return the state.
45928
45929 * normal/lexer.c (grub_script_lexer_state): Removed variable.
45930 (grub_script_lexer_done): Likewise.
45931 (grub_script_lexer_getline): Likewise.
45932 (grub_script_lexer_refs): Likewise.
45933 (script): Likewise.
45934 (newscript): Likewise.
45935 (record): Likewise.
45936 (recording): Likewise.
45937 (recordpos): Likewise.
45938 (recordlen): Likewise.
45939 (grub_script_lexer_init): Return the state instead of setting
45940 global variables.
45941 (grub_script_lexer_ref): Use the newly added argument for state
45942 instead of globals.
45943 (grub_script_lexer_deref): Likewise.
45944 (grub_script_lexer_record_start): Likewise.
45945 (grub_script_lexer_record_stop): Likewise.
45946 (recordchar): Likewise.
45947 (nextchar): Likewise.
45948 (grub_script_yylex2): Likewise.
45949 (grub_script_yylex): Likewise.
45950 (grub_script_yyerror): Likewise.
45951
45952 * normal/parser.y (func_mem): Removed variable.
45953 (menu_entry): Likewise.
45954 (err): Likewise.
45955 (%lex-param): New parser option.
45956 (%parse-param): Likewise.
45957 (script): Always return the AST.
45958 (argument): Pass the state around.
45959 (arguments): Likewise.
45960 (grubcmd): Likewise.
45961 (commands): Likewise.
45962 (function): Likewise.
45963 (menuentry): Likewise.
45964 (if_statement): Likewise.
45965 (if): Likewise.
45966
45967 * normal/script.c (grub_script_memused): Removed variable.
45968 (grub_script_parsed): Likewise.
45969 (grub_script_malloc): Added a state argument. Use that instead of
45970 global variables.
45971 (grub_script_mem_record): Likewise.
45972 (grub_script_mem_record_stop): Likewise.
45973 (grub_script_arg_add): Likewise.
45974 (grub_script_add_arglist): Likewise.
45975 (grub_script_create_cmdline): Likewise.
45976 (grub_script_create_cmdif): Likewise.
45977 (grub_script_create_cmdmenu): Likewise.
45978 (grub_script_add_cmd): Likewise.
45979 (grub_script_parse): Setup the state before calling the parser.
45980
45981 2006-04-16 Marco Gerards <marco@gnu.org>
45982
45983 * normal/command.c (grub_command_init): Remove the title command.
45984
45985 * normal/lexer.c (grub_script_yylex): Renamed from this...
45986 (grub_script_yylex2): ... to this.
45987 (grub_script_yylex): New function. Temporary
45988 introduced to filter some tokens.
45989 (grub_script_yyerror): Print a newline.
45990
45991 * normal/main.c (read_config_file): Output information about the
45992 lines that contain errors. Wait for a key after all lines have
45993 been processed. Don't return an empty menu.
45994
45995 * normal/parser.y (func_mem): Don't initialize.
45996 (menu_entry): Likewise.
45997 (err): New variable.
45998 (script): Don't return anything when an error was encountered.
45999 (ws, returns): Removed rules.
46000 (argument): Disabled concatenated variable support.
46001 (arguments): Remove explicit separators.
46002 (grubcmd): Likewise.
46003 (function): Likewise.
46004 (menuentry): Likewise.
46005 (if): Likewise.
46006 (commands): Likewise. Add error handling.
46007
46008 * normal/script.c (grub_script_create_cmdline): If
46009 `grub_script_parsed' is 0, assume the parser encountered an error.
46010
46011 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
46012
46013 * configure.ac: Add support for EFI. Fix the typo
46014 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
46015
46016 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
46017
46018 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
46019 foreign multibyte characters should be shown correctly.
46020
46021 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
46022
46023 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
46024 calculation.
46025 (read_config_file): Made it to close file before returning.
46026
46027 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
46028
46029 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
46030 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
46031 video/i386/pc/vbefill.c.
46032
46033 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
46034 video/i386/pc/vbefill.c.
46035
46036 * include/grub/video.h (grub_video_blit_format): New enum.
46037 (grub_video_mode_info): Added new member blit_format.
46038 (grub_video_get_blit_format): New function prototype.
46039
46040 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
46041 function prototype.
46042 (grub_video_vbe_map_rgb): Likewise.
46043 (grub_video_vbe_unmap_color): Likewise.
46044
46045 * include/grub/i386/pc/vbeblit.h: New file.
46046
46047 * include/grub/i386/pc/vbefill.h: New file.
46048
46049 * video/video.c (grub_video_get_blit_format): New function.
46050 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
46051 (grub_video_vbe_map_rgb): Likewise.
46052 (grub_video_vbe_unmap_color): Likewise.
46053
46054 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
46055 optimized fills.
46056 (grub_video_vbe_blit_render_target): Changed to use more optimized
46057 blits.
46058 (grub_video_vbe_setup): Added detection for optimized settings.
46059 (grub_video_vbe_create_render_target): Likewise.
46060
46061 * video/i386/pc/vbeblit.c: New file.
46062
46063 * video/i386/pc/vbefill.c: New file.
46064
46065 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
46066
46067 * font/manager.c (grub_font_get_glyph): Removed font fixup from
46068 here...
46069
46070 * util/unifont2pff.rb: ... and moved it to here. Improved argument
46071 parsing to support both hex and dec ranges. If filename was missing
46072 show usage information.
46073
46074 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
46075
46076 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
46077 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
46078
46079 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
46080 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
46081 (video_mod_SOURCES): Added.
46082 (video_mod_CFLAGS): Likewise.
46083 (video_mod_LDFLAGS): Likewise.
46084 (gfxterm_mod_SOURCES): Likewise.
46085 (gfxterm_mod_CFLAGS): Likewise.
46086 (gfxterm_mod_LDFLAGS): Likewise.
46087 (videotest_mod_SOURCES): Likewise.
46088 (videotest_mod_CFLAGS): Likewise.
46089 (videotest_mod_LDFLAGS): Likewise.
46090 (vesafb_mod_SOURCES): Removed.
46091 (vesafb_mod_CFLAGS): Likewise.
46092 (vesafb_mod_LDFLAGS): Likewise.
46093 (vga_mod_SOURCES): Likewise.
46094 (vga_mod_CFLAGS): Likewise.
46095 (vga_mod_LDFLAGS): Likewise.
46096
46097 * commands/videotest.c: New file.
46098
46099 * font/manager.c (fill_with_default_glyph): Modified to use
46100 grub_font_glyph.
46101 (grub_font_get_glyph): Likewise.
46102 (fontmanager): Renamed from this...
46103 (font_manager): ... to this.
46104
46105 * include/grub/font.h (grub_font_glyph): Added new structure.
46106 (grub_font_get_glyph): Modified to use grub_font_glyph.
46107
46108 * include/grub/misc.h (grub_abs): Added as inline function.
46109
46110 * include/grub/video.h: New file.
46111
46112 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
46113 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
46114 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
46115 (grub_vbe_get_controller_info): Renamed from this...
46116 (grub_vbe_bios_get_controller_info): ... to this.
46117 (grub_vbe_get_mode_info): Renamed from this...
46118 (grub_vbe_bios_get_mode_info): ... to this.
46119 (grub_vbe_set_mode): Renamed from this...
46120 (grub_vbe_bios_set_mode): ... to this.
46121 (grub_vbe_get_mode): Renamed from this...
46122 (grub_vbe_bios_get_mode): ... to this.
46123 (grub_vbe_set_memory_window): Renamed from this...
46124 (grub_vbe_bios_set_memory_window): ... to this.
46125 (grub_vbe_get_memory_window): Renamed from this...
46126 (grub_vbe_bios_get_memory_window): ... to this.
46127 (grub_vbe_set_scanline_length): Renamed from this...
46128 (grub_vbe_set_scanline_length): ... to this.
46129 (grub_vbe_get_scanline_length): Renamed from this...
46130 (grub_vbe_bios_get_scanline_length): ... to this.
46131 (grub_vbe_set_display_start): Renamed from this...
46132 (grub_vbe_bios_set_display_start): ... to this.
46133 (grub_vbe_get_display_start): Renamed from this...
46134 (grub_vbe_bios_get_display_start): ... to this.
46135 (grub_vbe_set_palette_data): Renamed from this...
46136 (grub_vbe_bios_set_palette_data): ... to this.
46137 (grub_vbe_set_pixel_rgb): Removed.
46138 (grub_vbe_set_pixel_index): Likewise.
46139
46140 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
46141 from this...
46142 (grub_vbe_bios_get_controller_info): ... to this.
46143 (grub_vbe_get_mode_info): Renamed from this...
46144 (grub_vbe_bios_get_mode_info): ... to this.
46145 (grub_vbe_set_mode): Renamed from this...
46146 (grub_vbe_bios_set_mode): ... to this.
46147 (grub_vbe_get_mode): Renamed from this...
46148 (grub_vbe_bios_get_mode): ... to this.
46149 (grub_vbe_set_memory_window): Renamed from this...
46150 (grub_vbe_bios_set_memory_window): ... to this.
46151 (grub_vbe_get_memory_window): Renamed from this...
46152 (grub_vbe_bios_get_memory_window): ... to this.
46153 (grub_vbe_set_scanline_length): Renamed from this...
46154 (grub_vbe_set_scanline_length): ... to this.
46155 (grub_vbe_get_scanline_length): Renamed from this...
46156 (grub_vbe_bios_get_scanline_length): ... to this.
46157 (grub_vbe_set_display_start): Renamed from this...
46158 (grub_vbe_bios_set_display_start): ... to this.
46159 (grub_vbe_get_display_start): Renamed from this...
46160 (grub_vbe_bios_get_display_start): ... to this.
46161 (grub_vbe_set_palette_data): Renamed from this...
46162 (grub_vbe_bios_set_palette_data): ... to this.
46163 (grub_vbe_bios_get_controller_info): Fixed problem with registers
46164 getting corrupted after calling it. Added more pushes and pops.
46165 (grub_vbe_bios_set_mode): Likewise.
46166 (grub_vbe_bios_get_mode): Likewise.
46167 (grub_vbe_bios_get_memory_window): Likewise.
46168 (grub_vbe_bios_set_scanline_length): Likewise.
46169 (grub_vbe_bios_get_scanline_length): Likewise.
46170 (grub_vbe_bios_get_display_start): Likewise.
46171 (grub_vbe_bios_set_palette_data): Likewise.
46172
46173 * normal/cmdline.c (cl_set_pos): Refresh the screen.
46174 (cl_insert): Likewise.
46175 (cl_delete): Likewise.
46176
46177 * term/gfxterm.c: New file.
46178
46179 * term/i386/pc/vesafb.c: Removed file.
46180
46181 * video/video.c: New file.
46182
46183 * video/i386/pc/vbe.c (real2pm): Added new function.
46184 (grub_video_vbe_draw_pixel): Likewise.
46185 (grub_video_vbe_get_video_ptr): Likewise.
46186 (grub_video_vbe_get_pixel): Likewise
46187 (grub_video_vbe_init): Likewise.
46188 (grub_video_vbe_fini): Likewise.
46189 (grub_video_vbe_setup): Likewise.
46190 (grub_video_vbe_get_info): Likewise.
46191 (grub_video_vbe_set_palette): Likewise.
46192 (grub_video_vbe_get_palette): Likewise.
46193 (grub_video_vbe_set_viewport): Likewise.
46194 (grub_video_vbe_get_viewport): Likewise.
46195 (grub_video_vbe_map_color): Likewise.
46196 (grub_video_vbe_map_rgb): Likewise.
46197 (grub_video_vbe_map_rgba): Likewise.
46198 (grub_video_vbe_unmap_color): Likewise.
46199 (grub_video_vbe_fill_rect): Likewise.
46200 (grub_video_vbe_blit_glyph): Likewise.
46201 (grub_video_vbe_blit_bitmap): Likewise.
46202 (grub_video_vbe_blit_render_target): Likewise.
46203 (grub_video_vbe_scroll): Likewise.
46204 (grub_video_vbe_swap_buffers): Likewise.
46205 (grub_video_vbe_create_render_target): Likewise.
46206 (grub_video_vbe_delete_render_target): Likewise.
46207 (grub_video_vbe_set_active_render_target): Likewise.
46208 (grub_vbe_set_pixel_rgb): Remove function.
46209 (grub_vbe_set_pixel_index): Likewise.
46210 (index_color_mode): Remove static variable.
46211 (active_mode): Likewise.
46212 (framebuffer): Likewise.
46213 (bytes_per_scan_line): Likewise.
46214 (grub_video_vbe_adapter): Added new static variable.
46215 (framebuffer): Likewise.
46216 (render_target): Likewise.
46217 (initial_mode): Likewise.
46218 (mode_in_use): Likewise.
46219 (mode_list): Likewise.
46220
46221 2006-03-10 Marco Gerards <marco@gnu.org>
46222
46223 * configure.ac (AC_INIT): Bumped to 1.93.
46224
46225 * DISTLIST: Added `include/grub/hfs.h'.
46226
46227 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
46228
46229 * boot/i386/pc/boot.S (general_error): Before looping, try INT
46230 18H, which might help the BIOS falling back to next boot media.
46231
46232 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
46233
46234 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
46235 Poe Chen <poe.poechen@gmail.com>.
46236
46237 2006-01-17 Marco Gerards <marco@gnu.org>
46238
46239 * include/grub/normal.h: Include <grub/script.h>.
46240 (grub_command_list): Removed struct.
46241 (grub_command_list_t): Removed type.
46242 (grub_menu_entry): Remove members `num' and `command_list'. Add
46243 members `commands' and `sourcecode'.
46244 * include/grub/script.h: Add inclusion guards.
46245 (grub_script_cmd_menuentry): New struct.
46246 (grub_script_execute_menuentry): New prototype.
46247 (grub_script_lexer_record_start): Likewise.
46248 (grub_script_lexer_record_stop): Likewise.
46249 * normal/execute.c (grub_script_execute_menuentry): New function.
46250 * normal/lexer.c (record, recording, recordpos, recordlen): New
46251 variables.
46252 (grub_script_lexer_record_start): New function.
46253 (grub_script_lexer_record_stop): Likewise.
46254 (recordchar): Likewise.
46255 (nextchar): Likewise.
46256 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
46257 2048 as the buffer size. Add the tokens `menuentry' and `@'.
46258 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
46259 (current_menu): New variable.
46260 (free_menu): Mainly rewritten.
46261 (grub_normal_menu_addentry): New function.
46262 (read_config_file): Rewritten.
46263 * normal/menu.c (run_menu_entry): Mainly rewritten.
46264 * normal/menu_entry.c (make_screen): Rewritten the code to insert
46265 the menu entry.
46266 (run): Mainly rewritten.
46267 * normal/parser.y (menu_entry): New variable.
46268 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
46269 (menuentry): New rule.
46270 (command): Add `menuentry'.
46271 (if_statement): Allow additional returns before `fi'.
46272 * normal/script.c (grub_script_create_cmdmenu): New function.
46273
46274 2006-01-03 Marco Gerards <marco@gnu.org>
46275
46276 * INSTALL: GNU Bison is required.
46277 * configure.ac: Rewritten the test to detect Bison.
46278 * Makefile.in (YACC): New variable. Reported by Xun Sun
46279 <xun.sun.cn@gmail.com>.
46280
46281 2006-01-03 Marco Gerards <marco@gnu.org>
46282
46283 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
46284 the HFS+ filesystem to filesystem blocks.
46285 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
46286 GCC warning is silenced.
46287
46288 2006-01-03 Marco Gerards <marco@gnu.org>
46289
46290 * partmap/apple.c (apple_partition_map_iterate): Convert the data
46291 read from disk from big endian to host byte order.
46292
46293 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
46294
46295 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
46296 documentation.
46297 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
46298 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
46299 embedded HFS+ filesystem.
46300 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
46301 (grub_hfs_sblock): Move from here...
46302 * include/grub/hfs.h: To here... New file.
46303 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
46304 documentation.
46305 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
46306 New macros.
46307 (grub_hfsplus_volheader): Change type of member `magic' to
46308 `grub_uint16_t'.
46309 (grub_hfsplus_data): Add new member `embedded_offset'.
46310 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
46311 returned block.
46312 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
46313 Calculate the offset.
46314
46315 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
46316
46317 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
46318 Removed.
46319 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
46320
46321 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
46322
46323 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
46324 ENV->NAME is NULL after allocating ENV->VALUE.
46325
46326 2005-12-25 Marco Gerards <marco@gnu.org>
46327
46328 * kern/env.c (grub_env_set): Rewritten the error handling code.
46329
46330 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
46331
46332 * geninit.sh: Made more robust, and more portable.
46333
46334 2005-12-25 Marco Gerards <marco@gnu.org>
46335
46336 Add support for Apple HFS+ filesystems.
46337
46338 * fs/hfsplus.c: New file.
46339
46340 * DISTLIST: Added `fs/hfsplus.c'.
46341
46342 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
46343 (hfsplus_mod_SOURCES): New variable.
46344 (hfsplus_mod_CFLAGS): Likewise.
46345 (hfsplus_mod_LDFLAGS): Likewise.
46346 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
46347 (grub_setup_SOURCES): Likewise.
46348 (grub_mkdevicemap_SOURCES): Likewise.
46349 (grub_emu_SOURCES): Likewise.
46350 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46351
46352 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
46353
46354 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
46355
46356 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
46357
46358 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
46359 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
46360 include/grub/parser.h, include/grub/script.h, kern/parser.c,
46361 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
46362 normal/lexer.c, normal/parser.y, normal/script.c, and
46363 partmap/gpt.c.
46364 Removed kern/sparc64/cache.c.
46365
46366 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
46367 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
46368 grub_emu_init.c.
46369
46370 * configure.ac (AC_INIT): Bumped to 1.92.
46371
46372 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
46373
46374 * kern/err.c (grub_error_push): Added new function to support error
46375 stacks.
46376 (grub_error_pop): Likewise.
46377 (grub_error_stack_items): New local variable to support error stacks.
46378 (grub_error_stack_pos): Likewise.
46379 (grub_error_stack_assert): Likewise.
46380 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
46381 stack depth.
46382 (grub_print_error): Added support to print errors from error stack.
46383
46384 * include/grub/err.h (grub_error_push): Added function prototype.
46385 (grub_error_pop): Likewise.
46386
46387 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
46388
46389 * configure.ac: Accept `powerpc64' as host_cpu.
46390 (amd64): Rename to `biarch32'.
46391
46392 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
46393 non-cacheline-aligned addresses.
46394
46395 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
46396 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
46397 if `size' is non-zero.
46398
46399 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
46400
46401 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
46402 and `cd' to make sure the filename is not prefixed with a
46403 directory name.
46404 (pkgdata_MODULES): Add `gpt.mod'.
46405 (gpt_mod_SOURCES): New variable.
46406 (gpt_mod_CFLAGS): Likewise.
46407 (gpt_mod_LDFLAGS): Likewise.
46408
46409 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
46410
46411 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
46412 New macro.
46413
46414 * partmap/gpt.c: New file.
46415
46416 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
46417 GPT partition map is detected.
46418
46419 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
46420
46421 * commands/i386/pc/play.c: New file.
46422 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
46423 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
46424 macros.
46425
46426 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
46427
46428 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
46429 ((unused))' to silence gcc warning.
46430
46431 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
46432
46433 * configure.ac: Correct `AC_PROG_YACC' test.
46434
46435 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
46436
46437 * util/powerpc/ieee1275/grub-install.in: Run the mount point
46438 check before installing files.
46439
46440 2005-11-22 Mike Small <smallm@panix.com>
46441
46442 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
46443 number regex so multidigit numbers are recognized correctly.
46444
46445 2005-11-22 Mike Small <smallm@panix.com>
46446
46447 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
46448 debugging message before attempting to claim memory.
46449 (grub_rescue_cmd_initrd): Add a claim debugging message and try
46450 multiple addresses in case of failure.
46451
46452 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
46453
46454 * term/tparm.c (get_space): Remove empty `if' statement.
46455
46456 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
46457
46458 * kern/parser.c (check_varstate): Rename `state' to 's'.
46459
46460 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
46461
46462 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
46463 variable definitions to the beginning of each function. Sort stack
46464 variables by size.
46465 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
46466 `buf' argument to `char *'.
46467
46468 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
46469
46470 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
46471 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
46472 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
46473 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
46474 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
46475 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
46476 configfile.mod, search.mod, gzio.mod and test.mod.
46477 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
46478 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
46479 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
46480 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
46481 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
46482 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
46483 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
46484 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
46485 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
46486 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
46487 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
46488 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
46489 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
46490 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
46491 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
46492 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
46493 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
46494 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
46495 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
46496 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
46497 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
46498 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
46499 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
46500
46501 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
46502 `grep --include'.
46503 (pkgdata_MODULES): Add test.mod.
46504
46505 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46506
46507 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
46508 appending to variables with "+=".
46509 (PModule): Use full pathname to generate *.lst filenames.
46510
46511 * Makefile.in: Fixed list rules moved from genmk.rb.
46512 (.DELETE_ON_ERROR): New special target.
46513 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
46514
46515 * conf/i386-pc.rmk: Include conf/common.mk.
46516 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
46517 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
46518 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
46519 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
46520 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
46521 configfile.mod, search.mod, gzio.mod and test.mod.
46522 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
46523 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
46524 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
46525 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
46526 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
46527 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
46528 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
46529 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
46530 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
46531 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
46532 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
46533 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
46534 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
46535 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
46536 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
46537 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
46538 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
46539 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
46540 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
46541 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
46542 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
46543 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
46544 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
46545 here...
46546 * conf/common.rmk: ... to here. New file.
46547
46548 * conf/common.mk: New file.
46549
46550 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
46551
46552 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
46553 (grub_script.tab.c): ... here.
46554
46555 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
46556 (grub_script.tab.c): ... here.
46557
46558 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
46559 (grub_script.tab.c): ... here.
46560
46561 * normal/command.c (grub_command_find): Fixed a memory leak of
46562 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
46563
46564 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46565
46566 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
46567 "@" which marks the start of a comment on ARM.
46568 (VARIABLE): Likewise.
46569
46570 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46571
46572 Add support for Linux/ADFS partition tables.
46573
46574 * partmap/acorn.c: New file.
46575
46576 * include/grub/acorn_filecore.h: Likewise.
46577
46578 * DISTLIST: Added `partmap/acorn.c' and
46579 `include/grub/acorn_filecore.h'.
46580
46581 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46582 `partmap/acorn.c'.
46583 (pkgdata_MODULES): Add `acorn.mod'.
46584 (acorn_mod_SOURCES): New variable.
46585 (acorn_mod_CFLAGS): Likewise.
46586
46587 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
46588 `partmap/acorn.c'.
46589 (pkgdata_MODULES): Add `acorn.mod'.
46590 (acorn_mod_SOURCES): New variable.
46591 (acorn_mod_CFLAGS): Likewise.
46592
46593 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
46594 (pkgdata_MODULES): Add `acorn.mod'.
46595 (acorn_mod_SOURCES): New variable.
46596 (acorn_mod_CFLAGS): Likewise.
46597 (acorn_mod_LDFLAGS): Likewise.
46598
46599 * include/types.h (grub_disk_addr_t): New typedef.
46600
46601 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
46602
46603 * geninit.sh: New file.
46604
46605 * geninitheader.sh: Likewise.
46606
46607 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
46608 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
46609 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
46610 * commands/configfile.c (grub_configfile_init)
46611 (grub_configfile_fini): Likewise.
46612 * commands/default.c (grub_default_init, grub_default_fini):
46613 Likewise.
46614 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
46615 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
46616 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
46617 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
46618 Likewise.
46619 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
46620 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
46621 Likewise.
46622 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
46623 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
46624 Likewise.
46625 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
46626 Likewise.
46627 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
46628 Likewise.
46629 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
46630 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
46631 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
46632 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
46633 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
46634 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
46635 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
46636 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
46637 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
46638 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
46639 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
46640 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
46641 * partmap/amiga.c (grub_amiga_partition_map_init)
46642 (grub_amiga_partition_map_fini): Likewise.
46643 * partmap/apple.c (grub_apple_partition_map_init)
46644 (grub_apple_partition_map_fini): Likewise.
46645 * partmap/pc.c (grub_pc_partition_map_init)
46646 (grub_pc_partition_map_fini): Likewise.
46647 * partmap/sun.c (grub_sun_partition_map_init,
46648 grub_sun_partition_map_fini): Likewise.
46649 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
46650 Likewise.
46651
46652 * util/grub-emu.c: Include <grub_modules_init.h>.
46653 (main): Don't initialize and de-initialize any modules directly,
46654 use `grub_init_all' and `grub_fini_all' instead.
46655
46656 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
46657 `grub_vesafb_mod_init'.
46658 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
46659 all users.
46660 * term/i386/pc/vga.c (grub_vga_init): Renamed to
46661 `grub_vga_mod_init'. Updated all users.
46662 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
46663
46664 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
46665 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
46666 rules.
46667
46668 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
46669 Generate a function to initialize the module in utilities.
46670 Updated all callers.
46671 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
46672 initialize the module in utilities. Updated all callers.
46673
46674 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
46675
46676 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
46677 escape sequence and a literal ^L to clear the screen.
46678
46679 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
46680 when returning from Open Firmware.
46681
46682 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
46683
46684 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
46685 (grub_ofconsole_height): Likewise.
46686 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
46687 manually insert a '\n'.
46688 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
46689 `grub_ofconsole_height'. Return early if these are already set.
46690
46691 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
46692
46693 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
46694 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
46695 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
46696 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
46697 and `normal/script.c'.
46698 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
46699 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
46700 (test_mod_SOURCES): New variable.
46701 (test_mod_CFLAGS): Likewise.
46702 (test_mod_LDFLAGS): Likewise.
46703 (pkgdata_MODULES): Add `test.mod'.
46704 (grub_script.tab.c): New rule.
46705 (grub_script.tab.h): Likewise.
46706
46707 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
46708
46709 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46710 `commands/test.c', `normal/execute.c', `normal/lexer.c',
46711 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
46712 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
46713 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
46714 (test_mod_SOURCES): New variable.
46715 (test_mod_CFLAGS): Likewise.
46716 (pkgdata_MODULES): Add `test.mod'.
46717 (grub_script.tab.c): New rule.
46718 (grub_script.tab.h): Likewise.
46719
46720 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
46721
46722 Add initial scripting support.
46723
46724 * commands/test.c: New file.
46725 * include/grub/script.h: Likewise.
46726 * normal/execute.c: Likewise.
46727 * normal/function.c: Likewise.
46728 * normal/lexer.c: Likewise.
46729 * normal/parser.y: Likewise.
46730 * normal/script.c: Likewise.
46731
46732 * configure.ac: Add `AC_PROG_YACC' test.
46733
46734 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
46735 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
46736 `normal/function.c' and `normal/script.c'.
46737 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
46738 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
46739 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
46740 variables.
46741 (pkgdata_MODULES): Add `test.mod'.
46742 (grub_script.tab.c): New rule.
46743 (grub_script.tab.h): Likewise.
46744
46745 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
46746
46747 * include/grub/normal.h (grub_test_init): New prototype.
46748 (grub_test_fini): Likewise.
46749
46750 * normal/command.c: Include <grub/script.h>.
46751 (grub_command_execute): Rewritten.
46752
46753 * util/grub-emu.c (main): Call `grub_test_init' and
46754 `grub_test_fini'.
46755
46756 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
46757
46758 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
46759 to 0.
46760 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
46761 there are no pending characters.
46762
46763 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
46764
46765 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
46766 `grub_strndup' to drop device arguments. Replace unnecessary
46767 `grub_strndup' with `grub_strdup'.
46768
46769 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
46770
46771 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
46772 `debug' environment variable has been set.
46773
46774 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
46775
46776 * Makefile.in (install-local): Use $(DATA).
46777 (uninstall): Likewise.
46778 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
46779 (sbin_UTILITIES): ... to here.
46780 (sbin_SCRIPTS): New variable.
46781 (grub_install_SOURCES): New variable.
46782 * util/powerpc/ieee1275/grub-install.in: New file.
46783 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
46784 variable.
46785 (add_segments): Call `grub_util_get_path'.
46786
46787 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
46788
46789 From Timothy Baldwin:
46790 * commands/ls.c (grub_ls_list_files): Close FILE with
46791 grub_file_close.
46792 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
46793
46794 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
46795
46796 * include/grub/parser.h: New file.
46797
46798 * kern/parser.c: Likewise.
46799
46800 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
46801 (grub_setup_SOURCES): Likewise.
46802 (grub_probefs_SOURCES): Likewise.
46803 (grub_emu_SOURCES): Likewise.
46804 (kernel_img_HEADERS): Add `parser.h'.
46805
46806 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
46807 (grub_emu_SOURCES): Add `kern/parser.c'.
46808 (grubof_SOURCES): Likewise.
46809
46810 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
46811 (grubof_SOURCES): Add `kern/parser.c'.
46812
46813 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
46814
46815 * kern/misc.c (grub_split_cmdline): Removed function.
46816
46817 * kern/rescue.c: Include <grub/parser.h>.
46818 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
46819 of `grub_split_cmdline'.
46820
46821 * normal/command.c: Include <grub/parser.h>.
46822 (grub_command_execute): Use `grub_parser_split_cmdline' instead
46823 of `grub_split_cmdline'.
46824
46825 * normal/completion.c: Include <grub/parser.h>.
46826 (cmdline_state): New variable.
46827 (iterate_dir): End the filename with a quote depending on the
46828 command line state.
46829 (get_state): new function.
46830 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
46831 split the arguments and determine the current argument. When the
46832 argument string is not quoted, escape all spaces.
46833
46834 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
46835
46836 * normal/sparc64/setjmp.S: New file.
46837
46838 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
46839
46840 * include/grub/sparc64/libgcc.h: New file.
46841 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
46842 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
46843 normal/sparc64/setjmp.c.
46844
46845 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
46846
46847 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
46848 * kern/sparc64/cache.S: New file.
46849 * kern/sparc64/cache.c: Removed.
46850 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
46851 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
46852 -mtune=ultrasparc.
46853 (COMMON_LDFLAGS): Add -melf64_sparc.
46854 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
46855 (grubof_SOURCES): Use cache.S instead of cache.c.
46856 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
46857 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
46858 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
46859 commented though.
46860 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
46861 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
46862 (linux_mod_CFLAGS): Commented out.
46863 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
46864 out because module isn't built.
46865 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
46866 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
46867 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
46868 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
46869 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
46870 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
46871 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
46872 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
46873 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
46874 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
46875 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
46876 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
46877 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
46878 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
46879
46880 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
46881
46882 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
46883 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
46884 longer, because HFS should not be used on PC.
46885
46886 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46887
46888 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
46889 consistently within the loop.
46890
46891 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
46892
46893 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
46894 directory can not be read.
46895
46896 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
46897
46898 * configure.ac (AC_INIT): Increase the version number to 1.91.
46899
46900 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
46901 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
46902 term/i386/pc/serial.c.
46903
46904 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
46905
46906 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
46907 file size must be permitted.
46908
46909 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
46910 between %ah and %al.
46911
46912 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
46913
46914 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
46915 grub_uint64_t.
46916 Call the hook with a NUL-terminated filename.
46917 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
46918 grub_cpu_to_be32.
46919
46920 * kern/term.c (cursor_state): New variable.
46921 (grub_term_set_current): Reset the cursor state on a new
46922 terminal.
46923 (grub_setcursor): Rewritten to use CURSOR_STATE.
46924 (grub_getcursor): New function.
46925
46926 * include/grub/term.h (grub_getcursor): New prototype.
46927
46928 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
46929 integers on ARM. Reported by Timothy Baldwin
46930 <T.E.Baldwin99@members.leeds.ac.uk>.
46931
46932 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
46933
46934 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
46935 allocated.
46936 (grub_sfs_dir): Likewise.
46937
46938 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
46939
46940 Add support for the SFS filesystem.
46941
46942 * fs/sfs.c: New file.
46943
46944 * DISTLIST: Added `fs/sfs.c'.
46945
46946 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
46947 (grub_probefs_SOURCES): Likewise.
46948 (grub_emu_SOURCES): Likewise.
46949 (pkgdata_MODULES): Add `sfs.mod'.
46950 (sfs_mod_SOURCES): New variable.
46951 (sfs_mod_CFLAGS): Likewise.
46952 (sfs_mod_LDFLAGS): Likewise.
46953
46954 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
46955 (pkgdata_MODULES): Add `sfs.mod'.
46956 (sfs_mod_SOURCES): New variable.
46957 (sfs_mod_CFLAGS): Likewise.
46958
46959 * util/grub-emu.c (main): Call `grub_sfs_init' and
46960 `grub_sfs_fini'.
46961
46962 * include/grub/fs.h (grub_sfs_init): New prototype.
46963 (grub_sfs_fini): Likewise.
46964
46965 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
46966
46967 Add support for the AFFS filesystem.
46968
46969 * fs/affs.c: New file.
46970
46971 * DISTLIST: Added `fs/affs.c'.
46972
46973 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
46974 (grub_probefs_SOURCES): Likewise.
46975 (grub_emu_SOURCES): Likewise.
46976 (pkgdata_MODULES): Add `affs.mod'.
46977 (affs_mod_SOURCES): New variable.
46978 (affs_mod_CFLAGS): Likewise.
46979 (affs_mod_LDFLAGS): Likewise.
46980
46981 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
46982 (pkgdata_MODULES): Add `affs.mod'.
46983 (affs_mod_SOURCES): New variable.
46984 (affs_mod_CFLAGS): Likewise.
46985
46986 * util/grub-emu.c (main): Call `grub_affs_init' and
46987 `grub_affs_fini'.
46988
46989 * include/grub/fs.h (grub_affs_init): New prototype.
46990 (grub_affs_fini): Likewise.
46991
46992 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
46993
46994 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
46995
46996 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
46997
46998 * configure.ac: Accept `x86_64' as host_cpu. In that case add
46999 `-m32' to CFLAGS.
47000
47001 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
47002 linking.
47003
47004 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
47005 (COMMON_LDFLAGS): New variable.
47006 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
47007 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
47008 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
47009 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
47010 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
47011 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
47012 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
47013 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
47014 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
47015 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
47016 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
47017 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
47018 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
47019 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
47020 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
47021 variables.
47022 (normal_mod_ASFLAGS): Add `-m32'.
47023
47024 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
47025 (grub_host_size_t, grub_host_ssize_t): New types.
47026 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
47027 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
47028 `GRUB_HOST_SIZEOF_VOID_P'.
47029
47030 * include/grub/kernel.h (struct grub_module_header): Type of
47031 member offset changed to `grub_host_off_t'. Type of member size
47032 changed to `grub_host_size_t'.
47033 (struct grub_module_info): Type of member offset changed to
47034 `grub_host_off_t'. Type of member size changed to
47035 `grub_host_size_t'.
47036
47037 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
47038
47039 Make GRUB's kernel compliant to Multiboot Specification.
47040
47041 * kern/i386/pc/startup.S (multiboot_header): New label.
47042 (multiboot_entry): Likewise.
47043 (multiboot_trampoline): Likewise.
47044
47045 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
47046 Increased to 0x4A0.
47047
47048 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
47049 put parentheses after a question mark.
47050 [!GRUB_UTIL] (my_mod): New variable.
47051
47052 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
47053
47054 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
47055
47056 Adds support for the XFS filesystem. Btrees are not supported
47057 yet.
47058
47059 * fs/xfs.c: New file.
47060
47061 * DISTLIST: Added `fs/xfs.c'.
47062
47063 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
47064 (grub_probefs_SOURCES): Likewise.
47065 (grub_emu_SOURCES): Likewise.
47066 (pkgdata_MODULES): Add `xfs.mod'.
47067 (xfs_mod_SOURCES): New variable.
47068 (xfs_mod_CFLAGS): Likewise.
47069
47070 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
47071 (pkgdata_MODULES): Add `xfs.mod'.
47072 (xfs_mod_SOURCES): New variable.
47073 (xfs_mod_CFLAGS): Likewise.
47074
47075 * util/grub-emu.c (main): Call `grub_xfs_init' and
47076 `grub_xfs_fini'.
47077
47078 * include/grub/fs.h (grub_xfs_init): New prototype.
47079 (grub_xfs_fini): Likewise.
47080
47081
47082 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
47083
47084 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
47085 color modes, allow greater than 16 colors to be configured as
47086 a default palette.
47087
47088 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47089
47090 * normal/completion.c (complete_arguments): Add the qualifier
47091 const into OPTIONS.
47092
47093 From Omniflux <omniflux+lists@omniflux.com>:
47094 * include/grub/terminfo.h: New file.
47095 * include/grub/tparm.h: Likewise.
47096 * include/grub/i386/pc/serial.h: Likewise.
47097 * term/terminfo.c: Likewise.
47098 * term/tparm.c: Likewise.
47099 * term/i386/pc/serial.c: Likewise.
47100 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
47101 serial.mod.
47102 (terminfo_mod_SOURCES): New variable.
47103 (terminfo_mod_CFLAGS): Likewise.
47104 (serial_mod_SOURCES): Likewise.
47105 (serial_mod_CFLAGS): Likewise.
47106
47107 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
47108
47109 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
47110 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
47111 and kern/powerpc/ieee1275/cmain.c, respectively.
47112
47113 * boot/powerpc/ieee1275/crt0.S: Moved to ...
47114 * kern/powerpc/ieee1275/crt0.S: ... here.
47115
47116 * boot/powerpc/ieee1275/cmain.c: Moved to ...
47117 * kern/powerpc/ieee1275/cmain.c: ... here.
47118
47119 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
47120 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
47121 instead of boot/powerpc/ieee1275/crt0.S and
47122 boot/powerpc/ieee1275/cmain.c, respectively.
47123
47124 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
47125 sectors. It was not used anyway.
47126
47127 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
47128
47129 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
47130 `unused parameter' warning.
47131
47132 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
47133
47134 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
47135 function.
47136 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
47137 getcharwidth.
47138
47139 2005-08-28 Marco Gerards <metgerards@student.han.nl>
47140
47141 * include/grub/normal.h (enum grub_completion_type): Added
47142 `GRUB_COMPLETION_TYPE_ARGUMENT'.
47143
47144 * normal/cmdline.c (print_completion): Handle
47145 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
47146 * normal/menu_entry.c (store_completion): Likewise.
47147
47148 * normal/completion.c (complete_arguments): New function.
47149 (grub_normal_do_completion): Call `complete_arguments' when the
47150 current words start with a dash.
47151
47152 2005-08-27 Marco Gerards <metgerards@student.han.nl>
47153
47154 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
47155 `gzio.mod' instead of `io.mod').
47156
47157 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
47158
47159 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
47160 (DISTDIRS): Added io and video.
47161 Rewrite the search routine to make an output consistently.
47162
47163 * DISTLIST: Added conf/sparc64-ieee1275.mk,
47164 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
47165 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
47166 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
47167 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
47168 util/powerpc/ieee1275/misc.c.
47169
47170 * include/grub/gzio.h: New file.
47171 * io/gzio.c: Likewise.
47172
47173 * kern/file.c (grub_file_close): Call grub_device_close only if
47174 FILE->DEVICE is not NULL.
47175
47176 * include/grub/mm.h [!NULL] (NULL): New macro.
47177
47178 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
47179
47180 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
47181 (pkgdata_MODULES): Added gzio.mod.
47182 (gzio_mod_SOURCES): New variable.
47183 (gzio_mod_CFLAGS): Likewise.
47184
47185 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
47186 (pkgdata_MODULES): Added gzio.mod.
47187 (gzio_mod_SOURCES): New variable.
47188 (gzio_mod_CFLAGS): Likewise.
47189
47190 * commands/cat.c: Include grub/gzio.h.
47191 (grub_cmd_cat): Use grub_gzfile_open instead of
47192 grub_file_open.
47193
47194 * commands/cmp.c: Include grub/gzio.h.
47195 (grub_cmd_cmp): Use grub_gzfile_open instead of
47196 grub_file_open.
47197
47198 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
47199 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
47200 grub_file_open.
47201 (grub_rescue_cmd_module): Likewise.
47202
47203 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
47204
47205 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
47206 kern/sparc64/ieee1275/init.c because it contains _start.
47207 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
47208
47209 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
47210
47211 * configure.ac: Add support for sparc64 host with ieee1275
47212 firmware.
47213 * configure: Generated from configure.ac.
47214 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
47215 instead of int.
47216 (grub_ofdisk_read): Likewise.
47217 (grub_ofdisk_open): Use %p to print pointer values, and cast the
47218 pointers as (void *) to remove a warning.
47219 (grub_ofdisk_close): Likewise.
47220 (grub_ofdisk_read): Likewise.
47221 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
47222 returns, so make it return void to remove a warning.
47223 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
47224 Corresponding prototype change.
47225 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
47226 values, and cast the pointers as (void *) to remove a warning.
47227 (grub_mm_dump): Likewise.
47228 * conf/sparc64-ieee1275.mk: New file.
47229 * conf/sparc64-ieee1275.rmk: Likewise.
47230 * include/grub/sparc64/setjmp.h: Likewise.
47231 * include/grub/sparc64/types.h: Likewise.
47232 * include/grub/sparc64/ieee1275/console.h: Likewise.
47233 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
47234 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
47235 * include/grub/sparc64/ieee1275/time.h: Likewise.
47236 * kern/sparc64/cache.c: Likewise.
47237 * kern/sparc64/dl.c: Likewise.
47238 * kern/sparc64/ieee1275/init.c: Likewise.
47239 * kern/sparc64/ieee1275/openfw.c: Likewise.
47240
47241 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
47242
47243 * util/console.c (grub_ncurses_putchar): If C is greater than
47244 0x7f, set C to a question mark.
47245 (grub_ncurses_getcharwidth): New function.
47246 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
47247 getcharwidth.
47248
47249 * normal/menu.c (print_entry): Made aware of Unicode. First,
47250 convert TITLE to UCS-4, and predict the cursor position by
47251 grub_getcharwidth.
47252
47253 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
47254 const to SRC.
47255 * kern/misc.c (grub_utf16_to_utf8): Likewise.
47256
47257 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
47258
47259 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
47260 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
47261 grub_strcat.
47262
47263 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
47264 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
47265 grub_strcpy and grub_strlen. Take it into account that a space
47266 character is inserted as a delimiter.
47267
47268 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
47269
47270 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
47271 invalid magic in the error.
47272
47273 * commands/search.c: New file.
47274
47275 * util/grub-emu.c (main): Call grub_search_init and
47276 grub_search_fini.
47277
47278 * kern/rescue.c (grub_rescue_print_disks): Removed.
47279 (grub_rescue_print_devices): New function.
47280 (grub_rescue_cmd_ls): Use grub_device_iterate with
47281 grub_rescue_print_devices instead of grub_disk_dev_iterate with
47282 grub_rescue_print_disks.
47283
47284 * kern/partition.c (grub_partition_iterate): Return the result of
47285 PARTMAP->ITERATE instead of GRUB_ERRNO.
47286
47287 * kern/device.c: Include grub/partition.h.
47288 (grub_device_iterate): New function.
47289
47290 * include/grub/partition.h (grub_partition_iterate): Return int
47291 instead of grub_err_t.
47292
47293 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
47294 prototype.
47295 [GRUB_UTIL] (grub_search_fini): Likewise.
47296
47297 * include/grub/device.h (grub_device_iterate): New prototype.
47298
47299 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
47300 commands/search.c.
47301 (pkgdata_MODULES): Added search.mod.
47302 (search_mod_SOURCES): New variable.
47303 (search_mod_CFLAGS): Likewise.
47304
47305 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
47306 (pkgdata_MODULES): Added search.mod.
47307 (search_mod_SOURCES): New variable.
47308 (search_mod_CFLAGS): Likewise.
47309
47310 * commands/ls.c (grub_ls_list_disks): Renamed to ...
47311 (grub_ls_list_devices): ... this, and use grub_device_iterate.
47312 All callers changed.
47313
47314 * DISTLIST: Added commands/search.c.
47315
47316 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
47317
47318 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
47319 conversion.
47320 (grub_getcharwidth): New function.
47321
47322 * kern/misc.c (grub_utf8_to_ucs4): New function.
47323
47324 * include/grub/term.h (struct grub_term): Added a new member
47325 "getcharwidth".
47326 (grub_getcharwidth): New prototype.
47327
47328 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
47329
47330 * term/i386/pc/console.c (map_char): New function. Segregated from
47331 grub_console_putchar.
47332 (grub_console_putchar): Use map_char.
47333 (grub_console_getcharwidth): New function.
47334 (grub_console_term): Specified grub_console_getcharwidth as
47335 getcharwidth.
47336
47337 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
47338 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
47339
47340 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
47341 GRUB_ERRNO.
47342 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
47343 on grub_strtoul completely.
47344 (write_char): Declare local variables in the beginning of the
47345 function.
47346 (grub_vesafb_getcharwidth): New function.
47347 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
47348 getcharwidth.
47349
47350 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
47351
47352 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
47353 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
47354 commands/i386/pc/vbetest.c.
47355
47356 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
47357 call grub_vbe_get_controller_info again, because the returned
47358 information is volatile.
47359 (grub_vbe_set_video_mode): Mostly rewritten.
47360 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
47361 grub_vbe_status_t correctly.
47362 (grub_vbe_get_video_mode_info): Likewise.
47363 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
47364 several if statements.
47365
47366 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
47367 * commands/i386/pc/vbeinfo.c: ... this.
47368
47369 * commands/i386/pc/vbe_test.c: Renamed to ...
47370 * commands/i386/pc/vbetest.c: ... this.
47371
47372 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
47373 ...
47374 (grub_cmd_vbeinfo): ... this. Save video modes before
47375 iterating. Skip a video mode, if it is not available, not enough
47376 information is given or it is monochrome. Show the memory
47377 model. Leave the interpretation of MODEVAR to grub_strtoul
47378 completely.
47379 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
47380 (GRUB_MOD_FINI): Likewise.
47381
47382 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
47383 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
47384 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
47385 duplicated grub_env_get. Leave the interpretation of MODEVAR to
47386 grub_strtoul completely.
47387 (real2pm): Removed.
47388 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
47389 (GRUB_MOD_FINI): Likewise.
47390
47391 * normal/misc.c: Include grub/mm.h.
47392
47393 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
47394 vbe_list_modes with vbetest.mod and vbeinfo.mod.
47395 (vbe_list_modes_mod_SOURCES): Removed.
47396 (vbe_list_modes_mod_CFLAGS): Likewise.
47397 (vbe_test_mod_SOURCES): Likewise.
47398 (vbe_test_mod_CFLAGS): Likewise.
47399 (vbeinfo_mod_SOURCES): New variable.
47400 (vbeinfo_mod_CFLAGS): Likewise.
47401 (vbetest_mod_SOURCES): Likewise.
47402 (vbetest_mod_CFLAGS): Likewise.
47403
47404 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
47405
47406 * normal/misc.c: New file.
47407
47408 * DISTLIST: Added normal/misc.c.
47409
47410 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
47411 DISK to HOOK. Call HOOK with DISK.
47412 * partmap/apple.c (apple_partition_map_iterate): Likewise.
47413 * partmap/pc.c (pc_partition_map_iterate): Likewise.
47414 * partmap/sun.c (sun_partition_map_iterate): Likewise.
47415
47416 * normal/menu_entry.c (struct screen): Added a new member
47417 "completion_shown".
47418 (completion_buffer): New global variable.
47419 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
47420 (store_completion): New function.
47421 (complete): Likewise.
47422 (clear_completions): Likewise.
47423 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
47424 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
47425 a tab, call complete.
47426
47427 * normal/completion.c (disk_dev): Removed.
47428 (print_simple_completion): Likewise.
47429 (print_partition_completion): Likewise.
47430 (print_func): New global variable.
47431 (add_completion): Do not take the arguments WHAT or PRINT any
47432 longer. Added a new argument TYPE. Instead of printing directly,
47433 call PRINT_FUNC if not NULL.
47434 All callers changed.
47435 (complete_device): Use a local variable DEV instead of
47436 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
47437 (grub_normal_do_completion): Take a new argument HOOK. Do not
47438 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
47439 empty string, return NULL instead.
47440 All callers changed.
47441
47442 * normal/cmdline.c (print_completion): New function.
47443
47444 * kern/partition.c (grub_partition_iterate): Add an argument DISK
47445 to HOOK.
47446 All callers changed.
47447
47448 * kern/disk.c (grub_print_partinfo): Removed.
47449
47450 * include/grub/partition.h (struct grub_partition_map): Add a new
47451 argument DISK into HOOK of ITERATE.
47452 (grub_partition_iterate): Add a new argument DISK to HOOK.
47453
47454 * include/grub/normal.h (enum grub_completion_type): New enum.
47455 (grub_completion_type_t): New type.
47456 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
47457 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
47458 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
47459 (GRUB_COMPLETION_TYPE_FILE): Likewise.
47460 (grub_normal_do_completion): Added a new argument HOOK.
47461 (grub_normal_print_device_info): New prototype.
47462
47463 * include/grub/disk.h (grub_print_partinfo): Removed.
47464
47465 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
47466 (normal_mod_SOURCES): Likewise.
47467 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47468 (normal_mod_SOURCES): Likewise.
47469
47470 * commands/ls.c (grub_ls_list_disks): Use
47471 grub_normal_print_device_info instead of grub_print_partinfo. Free
47472 PNAME.
47473 (grub_ls_list_files): Use grub_normal_print_device_info instead of
47474 duplicating the code.
47475
47476 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
47477
47478 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
47479 follow GCS more precisely.
47480 * commands/i386/pc/vbe_test.c: Likewise.
47481 * include/grub/i386/pc/vbe.h: Likewise.
47482 * term/i386/pc/vesafb.c: Likewise.
47483 * video/i386/pc/vbe.c: Likewise.
47484
47485 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
47486
47487 * DISTLIST: Added term/i386/pc/vesafb.c
47488 DISTLIST: Added video/i386/pc/vbe.c
47489 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
47490 DISTLIST: Added commands/i386/pc/vbe_test.c.
47491 * commands/i386/pc/vbe_list_modes.c: New file.
47492 * commands/i386/pc/vbe_test.c: Likewise.
47493 * term/i386/pc/vesafb.c: Likewise.
47494 * video/i386/pc/vbe.c: Likewise.
47495 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
47496 (grub_vbe_probe) Added prototype.
47497 (grub_vbe_set_video_mode) Likewise.
47498 (grub_vbe_get_video_mode) Likewise.
47499 (grub_vbe_get_video_mode_info) Likewise.
47500 (grub_vbe_set_pixel_rgb) Likewise.
47501 (grub_vbe_set_pixel_index) Likewise.
47502 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
47503 (pkgdata_MODULES): Added vesafb.mod.
47504 (pkgdata_MODULES): Added vbe_list_modes.mod.
47505 (pkgdata_MODULES): Added vbe_test.mod.
47506 (vbe_mod_SOURCES): Added.
47507 (vbe_mod_CFLAGS): Likewise.
47508 (vesafb_mod_SOURCES): Likewise.
47509 (vesafb_mod_CFLAGS): Likewise.
47510 (vbe_list_modes_mod_SOURCES): Likewise.
47511 (vbe_list_modes_mod_CFLAGS): Likewise.
47512 (vbe_test_mod_SOURCES): Likewise.
47513 (vbe_test_mod_CFLAGS): Likewise.
47514
47515 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
47516
47517 * normal/command.c (grub_command_execute): If INTERACTIVE is
47518 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
47519 CMDLINE. Disable the pager if INTERACTIVE is true.
47520 All callers are changed.
47521
47522 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
47523 before reading a config file.
47524 * normal/main.c (read_config_file): Even if a command is not
47525 found, register it if it is within an entry.
47526
47527 * util/grub-emu.c: Include sys/types.h and unistd.h.
47528 (options): Added --hold.
47529 (struct arguments): Added a new member "hold".
47530 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
47531 missing.
47532 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
47533 cleared by a debugger, if it is not zero.
47534
47535 * include/grub/normal.h (grub_command_execute): Add an argument
47536 INTERACTIVE.
47537
47538 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
47539
47540 * DISTLIST: Added include/grub/i386/pc/vbe.h.
47541
47542 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
47543
47544 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
47545 program with another one, because the old one didn't detect a bug
47546 in gcc-3.4. Always use regparm 2, because the new test is still
47547 not enough for gcc-4.0. Someone must investigate a simple test
47548 case which detects a bug in gcc-4.0.
47549
47550 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
47551
47552 * DISTLIST: Added normal/completion.c.
47553
47554 * normal/completion.c: New file.
47555
47556 * term/i386/pc/console.c (grub_console_getwh): New function.
47557 (grub_console_term): Assign grub_console_getwh to getwh.
47558
47559 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
47560 function is defined in normal/completion.c as
47561 grub_normal_do_completion.
47562 (grub_cmdline_get): Use grub_normal_do_completion instead of
47563 grub_tab_complete.
47564
47565 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
47566 returns non-zero, otherwise return 0.
47567 (grub_partition_iterate): First, probe the partition map. Then,
47568 call ITERATE only for this partition map.
47569
47570 * kern/misc.c (grub_strncmp): Rewritten.
47571
47572 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
47573 returns non-zero. Otherwise return 0.
47574
47575 * include/grub/partition.h (grub_partition_map_iterate): Return
47576 int instead of void.
47577
47578 * include/grub/normal.h (grub_normal_do_completion): New prototype.
47579
47580 * include/grub/misc.h (grub_strncmp): Change the type of N to
47581 grub_size_t.
47582
47583 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
47584 of void.
47585
47586 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
47587 unsigned explicitly before comparing it with I.
47588
47589 * kern/main.c (grub_env_write_root): Add the attribute unused into
47590 VAR.
47591
47592 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
47593 normal/completion.c.
47594 (normal_mod_SOURCES): Likewise.
47595 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
47596 (normal_mod_SOURCES): Likewise.
47597
47598 * normal/command.c (grub_iterate_commands): If ITERATE returns
47599 non-zero, return one immediately.
47600
47601 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
47602
47603 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
47604 * kern/i386/pc/startup.S: Updated Global Descriptor table's
47605 descriptions.
47606 (grub_vbe_get_controller_info): New function.
47607 (grub_vbe_get_mode_info): Likewise.
47608 (grub_vbe_set_mode): Likewise.
47609 (grub_vbe_get_mode): Likewise.
47610 (grub_vbe_set_memory_window): Likewise.
47611 (grub_vbe_get_memory_window): Likewise.
47612 (grub_vbe_set_scanline_length): Likewise.
47613 (grub_vbe_get_scanline_length): Likewise.
47614 (grub_vbe_set_display_start): Likewise.
47615 (grub_vbe_get_display_start): Likewise.
47616 (grub_vbe_set_palette_data): Likewise.
47617 * include/grub/i386/pc/vbe.h: New file.
47618
47619 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
47620
47621 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
47622 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
47623 * DISTLIST: Likewise.
47624 * kern/ieee1275/of.c: Moved to ...
47625 * kern/ieee1275/ieee1275.c: ... here.
47626
47627 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
47628
47629 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
47630 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
47631 Pass 0 as `end' parameter to grub_strtoul().
47632
47633 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
47634
47635 * include/grub/powerpc/ieee1275/console.h: Do not include
47636 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
47637 ifdef.
47638 (grub_console_cur_color): Remove i386-specific prototype.
47639 (grub_console_real_putchar): Likewise.
47640 (grub_console_checkkey): Likewise.
47641 (grub_console_getkey): Likewise.
47642 (grub_console_getxy): Likewise.
47643 (grub_console_gotoxy): Likewise.
47644 (grub_console_cls): Likewise.
47645 (grub_console_setcursor): Likewise.
47646 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
47647 Include <grub/machine/console.h>.
47648 * term/ieee1275/ofconsole.c: Likewise.
47649
47650 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
47651
47652 * Makefile.in (LIBLZO): New variable.
47653
47654 * configure.ac: Check for LZO version 2.
47655
47656 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
47657 lzo/lzo1x.h instead of lzo1x.h.
47658
47659 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
47660 of -llzo.
47661
47662 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
47663 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
47664
47665 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
47666 copying the data from PARTITION to P.
47667
47668 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
47669
47670 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
47671 negative, unload the module.
47672
47673 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
47674 map is "pc_partition_map" but not "pc".
47675 (usage): Fix the description. The options are --boot-image and
47676 --core-image but not --boot-file or --core-file.
47677 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
47678 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
47679 DEFAULT_DIRECTORY.
47680
47681 * util/i386/pc/grub-install.in: Do not specify --boot-file or
47682 --core-file. Specify INSTALL_DEVICE as an argument.
47683
47684 * util/console.c: Include config.h.
47685 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
47686 [HAVE_NCURSES_H]: Include ncurses.h.
47687 [HAVE_CURSES_H]: Include curses.h.
47688 [!A_NORMAL] (A_NORMAL): Defined as zero.
47689 [!A_STANDOUT] (A_STANDOUT): Likewise.
47690
47691 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
47692 -lncurses.
47693 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
47694
47695 * configure.ac: Check for curses libraries and headers.
47696
47697 * Makefile.in (LIBCURSES): New variable.
47698
47699 * genmk.rb (Script::rule): Set the executable bits.
47700
47701 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
47702 name of the PC partition map is "pc_partition_map" but not "pc".
47703
47704 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
47705
47706 * util/i386/pc/grub-install.in (grub_probefs): New variable.
47707 (modules): Likewise.
47708 (usage): Added descriptions for --modules and --grub-probefs.
47709 Handle --modules and --grub-probefs. Save the arguments in MODULES
47710 and GRUB_PROBEFS, respectively.
47711 Auto-detect a filesystem module against GRUBDIR. If the result is
47712 empty and modules are not specified explicitly, abort the
47713 installation. Add the result to MODULES.
47714
47715 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
47716 disk/powerpc/ieee1275/ofdisk.c,
47717 include/grub/powerpc/ieee1275/init.h and
47718 term/powerpc/ieee1275/ofconsole.c.
47719 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
47720 term/ieee1275/ofconsole.c.
47721
47722 * include/grub/powerpc/ieee1275/console.h: Resurrected.
47723
47724 * COPYING: Upgraded to the latest version. Only the address of the
47725 FSF office has changed.
47726
47727 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
47728
47729 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
47730 kern/ieee1275.c with kern/ieee1275/of.c.
47731
47732 * kern/ieee1275.c: Moved to ...
47733 * kern/ieee1275/of.c: ... here.
47734
47735 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
47736
47737 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
47738 readability.
47739
47740 * config.guess: Updated to the latest version from gnulib.
47741 * config.sub: Likewise.
47742 * install.sh: Likewise.
47743 * mkinstalldirs: Likewise.
47744
47745 * include/grub/console.h: Removed. This file is arch-specific. Do
47746 not put this in include/grub.
47747
47748 * include/grub/i386/pc/console.h: Resurrected.
47749
47750 * util/console.c: Include grub/machine/console.h instead of
47751 grub/console.h.
47752 * util/grub-emu.c: Likewise.
47753
47754 2005-08-04 Marco Gerards <metgerards@student.han.nl>
47755
47756 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
47757 hardcoded value.
47758
47759 From Vincent Pelletier <subdino2004@yahoo.fr>
47760 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
47761 Redefined to use grub_getwh.
47762 (grub_term): New member named getwh.
47763 (grub_getwh): New prototype.
47764 * kern/term.c (grub_getwh): New function.
47765 * term/i386/pc/console.c (grub_console_getwh): New function.
47766 (grub_console_term): New member `getwh'.
47767 * term/i386/pc/vga.c (grub_vga_getwh): New function.
47768 (grub_vga_term): New member `getwh'.
47769 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
47770 grub_ssize_t.
47771 (grub_ofconsole_getw): New function.
47772 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
47773 (grub_ofconsole_term): New field named getwh and new initial
47774 value.
47775
47776 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
47777
47778 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
47779 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
47780 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
47781 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
47782 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
47783 of <grub/machine/ieee1275.h>.
47784 * commands/ieee1275/reboot.c: Likewise.
47785 * boot/powerpc/ieee1275/ieee1275.c: Move ...
47786 * kern/ieee1275.c: ... to here. All users updated. Change all
47787 parameter structs to use new type `grub_ieee1275_cell_t'.
47788 * term/powerpc/ieee1275/ofconsole.c: Move ...
47789 * term/ieee1275/ofconsole.c: ... to here. All users updated.
47790 * disk/powerpc/ieee1275/ofdisk.c: Move ...
47791 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
47792 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
47793 to return int.
47794 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
47795 Remove unused prototypes. All users updated.
47796 * include/grub/powerpc/ieee1275/console.h: Removed.
47797 * include/grub/powerpc/ieee1275/ieee1275.h: Define
47798 `grub_ieee1275_cell_t'.
47799 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
47800 Cast comparisons with -1 to the correct type.
47801 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
47802 type to match `grub_ieee1275_entry_fn'.
47803
47804 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
47805
47806 * DISTLIST: Added util/i386/pc/grub-probefs.c.
47807
47808 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
47809 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
47810 partmap/sun.c.
47811 (grub_probefs_SOURCES): New variable.
47812
47813 * util/i386/pc/grub-probefs.c: New file.
47814
47815 * util/i386/pc/grub-setup.c (main): Call
47816 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
47817 grub_hfs_init and grub_jfs_init to initialize the system. Call
47818 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
47819 grub_pc_partition_map_fini to finish the system.
47820
47821 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
47822
47823 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
47824 function.
47825 (grub_multiboot_load_elf32): Likewise.
47826 (grub_multiboot_is_elf64): Likewise.
47827 (grub_multiboot_load_elf64): Likewise.
47828 (grub_multiboot_load_elf): Likewise.
47829 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
47830 an ELF32 or ELF64 file.
47831 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
47832
47833 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
47834 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
47835 NULL before calling FS->LABEL.
47836 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
47837 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
47838 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
47839 before calling FS->LABEL.
47840
47841 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
47842
47843 * util/i386/pc/grub-install.in (datadir): New variable.
47844 (libdir): Removed.
47845 (pkgdatadir): New variable.
47846 (pkglibdir): Removed.
47847
47848 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
47849
47850 * DISTLIST: Added util/i386/pc/grub-install.in.
47851
47852 * util/i386/pc/grub-install.in: New file.
47853
47854 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
47855 (grub_install_SOURCES): Likewise.
47856
47857 * genmk.rb: Added support for scripts.
47858 (Script): New class.
47859 (scripts): New variable.
47860
47861 * Makefile.in (install-local): Install sbin_SCRIPTS by
47862 INSTALL_SCRIPT.
47863 (uninstall): Remove sbin_SCRIPTS.
47864
47865 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
47866 device, try to get a GRUB device by
47867 grub_util_biosdisk_get_grub_dev.
47868 Free DEST_DEV.
47869
47870 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
47871 description for --device-map.
47872
47873 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
47874
47875 Change the semantics of variable hooks. They now return strings
47876 instead of error values.
47877
47878 * util/i386/pc/grub-setup.c: Include grub/env.h.
47879 (setup): Use grub_device_set_root instead of grub_env_set.
47880
47881 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
47882 grub_env_get instead of grub_device_set_root and
47883 grub_device_get_root, respectively.
47884
47885 * kern/main.c (grub_env_write_root): New function.
47886 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
47887 grub_env_set instead of grub_device_set_root.
47888
47889 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
47890 many variables.
47891 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
47892 rather than calling ENV->WRITE_HOOK afterwards.
47893 (grub_env_get): Return the result of ENV->READ_HOOK rather than
47894 passing a pointer of a pointer.
47895 (grub_register_variable_hook): Change the types of "read_hook" and
47896 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
47897 respectively.
47898 Allocate the default empty string on the heap, because this string
47899 may be freed later.
47900
47901 * kern/device.c: Include grub/env.h.
47902 (grub_device_set_root): Removed.
47903 (grub_device_get_root): Likewise.
47904 (grub_device_open): Use grub_env_get instead of
47905 grub_device_get_root.
47906
47907 * include/grub/env.h (grub_env_read_hook_t): New type.
47908 (grub_env_write_hook_t): Likewise.
47909 (grub_env_var): Change the types of "read_hook" and "write_hook"
47910 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
47911 (grub_register_variable_hook): Likewise.
47912
47913 * include/grub/device.h (grub_device_set_root): Removed.
47914 (grub_device_set_root): Likewise.
47915
47916 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
47917 make sure that DIRNAME terminates with '/', so that
47918 grub_fat_find_dir will fail if PATH is not a directory.
47919
47920 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
47921 from DIRNAME.
47922 Use the qualifier auto for print_files and print_files_long.
47923 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
47924 as a regular file.
47925 Put a newline only if there is no error.
47926 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
47927 used.
47928
47929 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
47930
47931 * kern/partition.c (grub_partition_probe): Initialize PART to
47932 NULL. Otherwise, when no partition map is registered, this returns
47933 a garbage.
47934
47935 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
47936
47937 * partmap/apple.c (apple_partition_map_iterate): Check if POS
47938 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
47939 valid.
47940
47941 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
47942
47943 * commands/ls.c (grub_ls_list_disks): Print the filesystem
47944 information on each device, if it does not have partitions. Print
47945 "Device" instead of "Disk", because this function is not specific
47946 to disk devices.
47947
47948 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
47949 static to ensure that it is put on the memory rather than a
47950 register.
47951
47952 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
47953
47954 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
47955 (grub_cat_init): Likewise.
47956 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
47957 (options): Likewise.
47958 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
47959 (grub_configfile_init): Likewise.
47960 * font/manager.c (GRUB_MOD_INIT): Likewise.
47961 * commands/help.c (GRUB_MOD_INIT): Likewise.
47962 (grub_help_init): Likewise.
47963 * normal/command.c (grub_command_init): Likewise.
47964 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
47965 * disk/loopback.c (grub_loop_init): Likewise.
47966 (GRUB_MOD_INIT): Likewise.
47967 * commands/ls.c (grub_ls_init): Likewise.
47968 (GRUB_MOD_INIT): Likewise.
47969 (options): Likewise.
47970 * commands/boot.c (grub_boot_init): Likewise.
47971 (GRUB_MOD_INIT): Likewise.
47972 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
47973 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
47974 (GRUB_MOD_INIT): Likewise.
47975 * commands/cmp.c (grub_cmp_init): Likewise.
47976 (GRUB_MOD_INIT): Likewise.
47977
47978 * normal/arg.c: Use <> instead of "" to include header files.
47979 (SHORT_ARG_HELP): New macro.
47980 (SHORT_ARG_USAGE): Likewise.
47981 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
47982 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
47983 descriptions.
47984 (find_short): Check if C is 'h' or 'u' explicitly.
47985 (grub_arg_show_help): Use space characters instead of tabs. Treat
47986 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
47987 are shown with --help and --usage only if they are not used for
47988 the command itself.
47989 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
47990 'h' and 'u'.
47991
47992 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
47993 const into "longarg". Change the type of "shortarg" to int.
47994
47995 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
47996
47997 * boot/i386/pc/boot.S (boot_drive_check): New label.
47998
47999 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
48000 macro.
48001
48002 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
48003 which do not pass a boot drive correctly. Copied from GRUB Legacy.
48004
48005 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
48006
48007 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
48008 When turning off Gate A20, skip the check and return immediately,
48009 because this is not fatal usually.
48010
48011 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
48012
48013 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
48014 be 0x7C00 instead of 0x8000.
48015
48016 * boot/i386/pc/pxeboot.S: Rewritten.
48017
48018 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
48019 EXT_C.
48020 (gate_a20_check_state): Read a byte from 0x108000. Invert the
48021 result.
48022
48023 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
48024
48025 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
48026 robustness. This routine now supports a BIOS call and System
48027 Control Port A to modify the gate A20.
48028
48029 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
48030 Increased to 0x440.
48031
48032 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
48033
48034 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
48035 device path and resulting ihandle.
48036 (grub_ofdisk_close): dprintf the ihandle being closed.
48037 (grub_ofdisk_read): dprintf function parameters.
48038 * kern/mm.c (grub_mm_init_region): Likewise.
48039 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
48040 (grub_linux_boot): dprintf the Linux entry point, initrd address and
48041 size, and boot arguments.
48042 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
48043 before loading into memory.
48044 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
48045 before loading into memory.
48046
48047 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
48048
48049 * kern/mm.c: Added much documentation.
48050 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
48051 8, set to 5 instead of 8.
48052
48053 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
48054
48055 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
48056
48057 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
48058 (grub_mkdevicemap_SOURCES): New variable.
48059
48060 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
48061 lib/device.c of GRUB Legacy.
48062
48063 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
48064
48065 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
48066 instead of PATH is NULL.
48067
48068 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
48069
48070 * commands/cmp.c (BUFFER_SIZE): New macro.
48071 (grub_cmd_cmp): Close the right file at the right time. Compare
48072 only data just read. Don't report files of different size as
48073 identical. Dynamically allocate buffers. Move variable
48074 declarations at the beginning of function.
48075
48076 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
48077
48078 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
48079 reverse.
48080
48081 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
48082
48083 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
48084 when backspace is pressed at beginning of line.
48085
48086 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
48087
48088 * DISTLIST: Added genfslist.sh.
48089
48090 * normal/main.c (fs_module_list): New variable.
48091 (autoload_fs_module): New function.
48092 (read_fs_list): Likewise.
48093 (grub_normal_execute): Call read_fs_list.
48094
48095 * kern/fs.c (grub_fs_autoload_hook): New variable.
48096 (grub_fs_probe): Added support for auto-loading.
48097
48098 * include/grub/normal.h (struct grub_fs_module_list): New struct.
48099 (grub_fs_module_list_t): New type.
48100
48101 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
48102 (grub_fs_autoload_hook): New prototype.
48103
48104 * genfslist.sh: New file.
48105
48106 * genmk.rb: Added a rule to generate a filesystem list.
48107
48108 2005-06-30 Marco Gerards <metgerards@student.han.nl>
48109
48110 * configure.ac: Fix the test for cross-compiling.
48111
48112 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
48113 define GRUB_UTIL anymore.
48114
48115 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
48116 so this function works on other systems than just big endian.
48117 (load_modules): Likewise.
48118 (add_segments): Likewise.
48119
48120 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
48121
48122 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
48123 contains `l' modifier, get a long from va_arg().
48124
48125 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
48126
48127 * kern/mm.c (grub_free): If the next free block which is being
48128 merged is the first free block, set the first block to the block
48129 being freed.
48130 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
48131
48132 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
48133
48134 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
48135 `grub_ieee1275_chosen'.
48136
48137 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
48138
48139 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
48140 (grub_ieee1275_chosen): New variable.
48141 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
48142 `chosen'.
48143 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
48144 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
48145 Rename first argument to `phandle' for consistency.
48146 (grub_ieee1275_get_property_length): Likewise.
48147 (grub_ieee1275_next_property): Likewise. Change type of first argument
48148 to grub_ieee1275_phandle_t.
48149 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
48150 Move export next to declaration.
48151 (grub_ieee1275_chosen): New variable.
48152 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
48153 Correct cosmetic typo.
48154 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
48155 `grub_ieee1275_chosen'.
48156 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
48157 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
48158 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
48159 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
48160 `grub_ieee1275_chosen'.
48161
48162 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
48163
48164 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
48165 /chosen/bootargs.
48166 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
48167 /chosen/bootargs as "variable=value" pairs.
48168
48169 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
48170
48171 * include/grub/misc.h (grub_dprintf): New macro.
48172 (grub_real_dprintf): New prototype.
48173 (grub_strword): Likewise.
48174 (grub_iswordseparator): Likewise.
48175 * kern/misc.c (grub_real_dprintf): New function.
48176 (grub_strword): Likewise.
48177 (grub_iswordseparator): Likewise.
48178
48179 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
48180
48181 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
48182 (roundup): Remove macro.
48183 (grub_ieee1275_flags): Make static.
48184 (grub_ieee1275_realmode): Remove.
48185 (grub_ieee1275_test_flag): New function.
48186 (grub_ieee1275_set_flag): Likewise.
48187 (find_options): Rename to `grub_ieee1275_find_options'; update
48188 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
48189 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
48190 (cmain): New prototype.
48191 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
48192 `grub_ieee1275_flags' directly.
48193 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
48194 machine/biosdisk.h.
48195 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
48196 Don't include grub/machine/init.h.
48197 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
48198 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
48199 Remove prototype.
48200 (grub_ieee1275_realmode): Likewise.
48201 (grub_ieee1275_flag): New enum.
48202 (grub_ieee1275_test_flag): New prototype.
48203 (grub_ieee1275_set_flag): New prototype.
48204 * include/grub/powerpc/ieee1275/init.h: Remove file.
48205 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
48206 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
48207 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
48208 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
48209 comment.
48210 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
48211 `grub_ieee1275_test_flag'.
48212 (grub_ieee1275_encode_devname): Likewise.
48213
48214 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
48215
48216 * include/grub/powerpc/ieee1275/ieee1275.h
48217 (grub_ieee1275_encode_devname): New prototype.
48218 (grub_ieee1275_get_filename): Likewise.
48219 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
48220 function.
48221 (grub_set_prefix): Likewise.
48222 (grub_machine_init): Call grub_set_prefix.
48223 * kern/powerpc/ieee1275/openfw.c: Fix typos.
48224 (grub_parse_type): New enum.
48225 (grub_ieee1275_get_devargs): New function.
48226 (grub_ieee1275_get_devname): Likewise.
48227 (grub_ieee1275_parse_args): Likewise.
48228 (grub_ieee1275_get_filename): Likewise.
48229 (grub_ieee1275_encode_devname): Likewise.
48230
48231 2005-03-30 Marco Gerards <metgerards@student.han.nl>
48232
48233 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
48234 `grub_loader_unset'.
48235
48236 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
48237
48238 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
48239 instead of grub_ieee1275_interpret.
48240 (grub_halt_init): New function.
48241 (grub_halt_fini): Likewise.
48242 (GRUB_MOD_INIT): Correct message grammar.
48243 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
48244 instead of grub_ieee1275_interpret.
48245 (grub_reboot_init): New function.
48246 (grub_reboot_fini): Likewise.
48247 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
48248 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
48249 util/i386/pc/misc.c with commands/ieee1275/halt.c,
48250 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
48251 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
48252 function.
48253 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
48254 Add prototype.
48255 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
48256 prototype.
48257 (grub_halt): Likewise.
48258 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
48259 (cmain): Remove __attribute__((unused)).
48260 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
48261 (grub_heap_len): Likewise.
48262 (grub_machine_fini): New function.
48263 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
48264 (grub_halt): Likewise.
48265 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
48266 function.
48267 * util/powerpc/ieee1275/misc.c: New file.
48268
48269 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48270
48271 * DISTLIST: New file.
48272 * gendistlist.sh: Likewise.
48273
48274 * Makefile.in (COMMON_DISTFILES): Removed.
48275 (BOOT_DISTFILES): Likewise.
48276 (CONF_DISTFILES): Likewise.
48277 (DISK_DISTFILES): Likewise.
48278 (FS_DISTFILES): Likewise.
48279 (INCLUDE_DISTFILES): Likewise.
48280 (KERN_DISTFILES): Likewise.
48281 (LOADER_DISTFILES): Likewise.
48282 (TERM_DISTFILES): Likewise.
48283 (UTIL_DISTFILES): Likewise.
48284 (DISTFILES): Likewise.
48285 (uninstall): Uninstall files in $(pkgdata_DATA).
48286 (DISTLIST): New target.
48287 (distdir): Use the contents of the file DISTLIST to get a list of
48288 distributed files.
48289
48290 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48291
48292 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
48293 descriptor. This is ported from GRUB Legacy.
48294
48295 * gencmdlist.sh: Added an extra semicolon to make it work with
48296 old sed versions. Reported by Robert Bihlmeyer
48297 <robbe@orcus.priv.at>.
48298
48299 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
48300
48301 Automatic loading of commands is supported.
48302
48303 * normal/main.c (read_command_list): New function.
48304 (grub_normal_execute): Call read_command_list.
48305
48306 * normal/command.c (grub_register_command): Return zero or CMD.
48307 Allocate CMD->NAME from the heap.
48308 Initialize CMD->MODULE_NAME to zero.
48309 Find the same name as well. If the same command is found and it is
48310 a dummy command, overwrite members. If it is not a dummy command,
48311 return zero.
48312 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
48313 (grub_command_find): If a dummy command is found, load a module
48314 and retry to find a command only once.
48315
48316 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
48317 make sure that each command is loaded.
48318
48319 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
48320 macro.
48321 (struct grub_command): Remove const from the member `name'.
48322 Add a new member `module_name'.
48323 (grub_register_command): Return grub_command_t.
48324
48325 * commands/help.c (grub_cmd_help): Call grub_command_find to make
48326 sure that each command is loaded.
48327
48328 * genmk.rb (PModule::rule): Specify a module name without the
48329 suffix ".mod" to gencmdlist.sh.
48330
48331 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
48332
48333 * gencmdlist.sh: New file.
48334
48335 * genmk.rb (PModule::rule): Generate a rule for a command list.
48336 Clean command.lst.
48337 Generate command.lst from $(COMMANDFILES).
48338
48339 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
48340 (DATA): Added $(pkgdata_DATA).
48341 (install-local): Install files in $(pkgdata_DATA).
48342
48343 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
48344
48345 * term/i386/pc/vga.c (debug_command): Removed.
48346 (GRUB_MOD_INIT): Do not register the command "debug".
48347
48348 From Hollis Blanchard:
48349 * commands/configfile.c: New file.
48350 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
48351 commands/configfile.c.
48352 (pkgdata_MODULES): Added configfile.mod.
48353 (configfile_mod_SOURCES): New variable.
48354 (configfile_mod_CFLAGS): Likewise.
48355 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
48356 commands/configfile.c.
48357 (pkgdata_MODULES): Added configfile.mod.
48358 (configfile_mod_SOURCES): New variable.
48359 (configfile_mod_CFLAGS): Likewise.
48360 * util/grub-emu.c (main): Call grub_configfile_init and
48361 grub_configfile_fini.
48362 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
48363 prototype.
48364 [GRUB_UTIL] (grub_configfile_fini): Likewise.
48365
48366 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
48367
48368 * normal/arg.c (grub_arg_show_help): Do not show the bug report
48369 address.
48370
48371 * commands/help.c (grub_cmd_help): Do not print newlines after
48372 the last command in print_command_help.
48373
48374 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
48375
48376 * commands/default.h: New file.
48377 * commands/timeout.h: Likewise.
48378 * normal/context.c: Likewise.
48379
48380 * util/misc.c: Do not include sys/times.h.
48381 Include sys/time.h and grub/machine/time.h.
48382 (grub_get_rtc): Rewritten with gettimeofday.
48383
48384 * util/grub-emu.c (main): Call grub_default_init and
48385 grub_timeout_init before grub_normal_init, and call
48386 grub_timeout_fini and grub_default_fini after grub_main.
48387
48388 * util/console.c (grub_ncurses_checkkey): Return the read
48389 character or -1.
48390
48391 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
48392 timeouts.
48393
48394 * normal/main.c (read_config_file): Push MENU. If this fails,
48395 print an error and wait for a user input.
48396 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
48397 If a menu is empty or an error occurs, pop MENU.
48398 (grub_normal_execute): Pop and free MENU after grub_menu_run
48399 returns.
48400
48401 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
48402
48403 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
48404 include time.h.
48405 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
48406 without GRUB_UTIL.
48407 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
48408 time.h.
48409 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
48410 without GRUB_UTIL.
48411
48412 * include/grub/normal.h (struct grub_menu_list): New struct.
48413 (grub_menu_list_t): New type.
48414 (struct grub_context): New struct.
48415 (grub_context_t): New type.
48416 (grub_register_command): Got rid of EXPORT_FUNC.
48417 (grub_unregister_command): Likewise.
48418 (grub_context_get): New prototype.
48419 (grub_context_get_current_menu): Likewise.
48420 (grub_context_push_menu): Likewise.
48421 (grub_context_pop_menu): Likewise.
48422 [GRUB_UTIL] (grub_default_init): Likewise.
48423 [GRUB_UTIL] (grub_default_fini): Likewise.
48424 [GRUB_UTIL] (grub_timeout_init): Likewise.
48425 [GRUB_UTIL] (grub_timeout_fini): Likewise.
48426
48427 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
48428 commands/timeout.c and normal/context.c.
48429 (pkgdata_MODULES): Added default.mod and timeout.mod.
48430 (normal_mod_SOURCES): Added normal/context.c.
48431 (default_mod_SOURCES): New variable.
48432 (default_mod_CFLAGS): Likewise.
48433 (timeout_mod_SOURCES): Likewise.
48434 (timeout_mod_CFLAGS): Likewise.
48435 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
48436 conf/i386-pc.rmk.
48437 (pkgdata_MODULES): Added default.mod and timeout.mod.
48438 (normal_mod_SOURCES): Added normal/context.c.
48439 (default_mod_SOURCES): New variable.
48440 (default_mod_CFLAGS): Likewise.
48441 (timeout_mod_SOURCES): Likewise.
48442 (timeout_mod_CFLAGS): Likewise.
48443
48444 * Makefile.in (all-local): Added $(MKFILES).
48445
48446 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
48447
48448 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
48449 (grub_emu_SOURCES): Likewise.
48450 (pkgdata_MODULES): Add `sun.mod'.
48451 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
48452 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
48453 `partmap/sun.c'.
48454 (pkgdata_MODULES): Add `sun.mod'.
48455 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
48456 * include/grub/partition.h (grub_sun_partition_map_init): New
48457 prototype.
48458 (grub_sun_partition_map_fini): Likewise.
48459 * partmap/sun.c: New file.
48460 * util/grub-emu.c (main): Initialize and de-initialize the sun
48461 partitionmap support.
48462
48463 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
48464
48465 This implements an Emacs-like menu entry editor.
48466
48467 * normal/menu_entry.c: New file.
48468
48469 * util/console.c (grub_ncurses_putchar): Translate some Unicode
48470 characters to ASCII.
48471 (saved_char): New variable.
48472 (grub_ncurses_checkkey): Rewritten completely.
48473 (grub_ncurses_getkey): Likewise.
48474 (grub_ncurses_init): Call raw instead of cbreak.
48475
48476 * normal/menu.c (print_entry): Do not put a space.
48477 (init_page): Renamed to ...
48478 (grub_menu_init_page): ... this. All callers changed.
48479 (edit_menu_entry): Removed.
48480 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
48481
48482 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
48483
48484 * kern/misc.c (grub_vprintf): Call grub_refresh.
48485
48486 * normal/menu.c (DISP_LEFT): Renamed to ...
48487 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
48488 * normal/menu.c (DISP_UP): Renamed to ...
48489 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
48490 * normal/menu.c (DISP_RIGHT): Renamed to ...
48491 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
48492 * normal/menu.c (DISP_DOWN): Renamed to ...
48493 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
48494 * normal/menu.c (DISP_HLINE): Renamed to ...
48495 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
48496 * normal/menu.c (DISP_VLINE): Renamed to ...
48497 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
48498 * normal/menu.c (DISP_UL): Renamed to ...
48499 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
48500 * normal/menu.c (DISP_UR): Renamed to ...
48501 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
48502 * normal/menu.c (DISP_LL): Renamed to ...
48503 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
48504 * normal/menu.c (DISP_LR): Renamed to ...
48505 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
48506 * normal/menu.c (TERM_WIDTH): Renamed to ...
48507 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
48508 * normal/menu.c (TERM_HEIGHT): Renamed to ...
48509 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
48510 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
48511 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
48512 * normal/menu.c (TERM_MARGIN): Renamed to ...
48513 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
48514 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
48515 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
48516 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
48517 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
48518 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
48519 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
48520 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
48521 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
48522 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
48523 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
48524 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
48525 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
48526 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
48527 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
48528 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
48529 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
48530 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
48531 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
48532 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
48533 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
48534 All callers changed.
48535
48536 * include/grub/normal.h: New prototype.
48537
48538 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
48539 normal/menu_entry.c.
48540 (normal_mod_SOURCES): Likewise.
48541 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48542 (normal_mod_SOURCES): Likewise.
48543
48544 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
48545
48546 * include/grub/normal.h (grub_halt_init): New prototype.
48547 (grub_halt_fini): Likewise.
48548 (grub_reboot_init): Likewise.
48549 (grub_reboot_fini): Likewise.
48550
48551 * util/grub-emu.c: Include signal.h.
48552 (main_env): New global variable.
48553 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
48554 catch C-c.
48555 (grub_machine_fini): New function.
48556 (main): Call grub_halt_init and grub_reboot_init before
48557 grub_main, and grub_reboot_fini and grub_halt_fini after it.
48558 Call setjmp with MAIN_ENV to go back afterwards.
48559 Call grub_machine_fini right before return.
48560
48561 * include/grub/util/misc.h: Include setjmp.h.
48562 (main_env): New prototype.
48563
48564 * include/grub/kernel.h (grub_machine_fini): New prototype.
48565 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
48566 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
48567
48568 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
48569 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
48570 * term/i386/pc/console.c (grub_console_fini): Likewise.
48571
48572 * util/i386/pc/misc.c: New file.
48573
48574 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
48575 util/i386/pc/misc.c, commands/i386/pc/halt.c and
48576 commands/i386/pc/reboot.c.
48577
48578 2005-02-14 Guillem Jover <guillem@hadrons.org>
48579
48580 * include/grub/dl.h (grub_dl_check_header): New prototype.
48581 (grub_arch_dl_check_header): Change return type to grub_err_t,
48582 remove size parameter and export function. Update all callers.
48583 * kern/dl.c (grub_dl_check_header): New function.
48584 (grub_dl_load_core): Use `grub_dl_check_header' instead of
48585 `grub_arch_dl_check_header'. Check ELF type. Check if sections
48586 are inside the core.
48587 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
48588 independent ELF header checks.
48589 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
48590 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
48591 `grub_dl_check_header' instead of explicit checks. Check for the
48592 ELF type.
48593 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
48594 `grub_dl_check_header' instead of explicit checks. Remove arch
48595 specific ELF header checks.
48596
48597 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
48598 argument SIZE.
48599
48600 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
48601
48602 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
48603 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
48604
48605 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
48606
48607 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
48608 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
48609 (part_map_iterate): Clear `grub_errno' and return 0 if
48610 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
48611 * partmap/amiga.c (amiga_partition_map_iterate): Return
48612 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
48613 * partmap/apple.c (apple_partition_map_iterate): Likewise.
48614
48615 2005-02-01 Guillem Jover <guillem@hadrons.org>
48616
48617 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
48618 help info.
48619
48620 2005-01-31 Marco Gerards <metgerards@student.han.nl>
48621
48622 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
48623 Removed prototype.
48624 (grub_rescue_cmd_linux): New prototype.
48625 (grub_rescue_cmd_initrd): Likewise.
48626 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
48627 `bi_rec'.
48628 (grub_linux_release_mem): Release the memory for the initrd.
48629 (grub_load_linux): Renamed from this...
48630 (grub_rescue_cmd_linux): ...To this. Changed all callers.
48631 Changed `entry' not to be static. Loop over memory regions to
48632 find another one when the default fails.
48633 (grub_rescue_cmd_initrd): New function.
48634 (grub_linux_init): Remove function.
48635 (grub_linux_fini): Likewise.
48636 (GRUB_MOD_INIT): Register `initrd'.
48637 (GRUB_MOD_FINI): Unregister `initrd'.
48638 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
48639 Function removed.
48640 (grub_linux_normal_fini): Likewise.
48641 (GRUB_MOD_INIT): Register `initrd'.
48642 (GRUB_MOD_FINI): Unregister `initrd'.
48643
48644 2005-01-31 Marco Gerards <metgerards@student.han.nl>
48645
48646 * commands/help.c: New file.
48647 * normal/arg.c (show_help): Renamed to...
48648 (grub_arg_show_help): ... this.
48649 * commands/i386/pc/halt.c: New file.
48650 * commands/i386/pc/reboot.c: Likewise.
48651 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
48652 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
48653 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
48654 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
48655 variables.
48656 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
48657 `commands/help.c'.
48658 (pkgdata_MODULES): Add `help.mod'.
48659 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
48660 * grub/i386/pc/init.h (grub_reboot): New prototype.
48661 (grub_halt): Likewise.
48662 * include/grub/normal.h (grub_arg_show_help): New prototype.
48663 (grub_help_init): Likewise.
48664 (grub_help_fini): Likewise.
48665 * util/grub-emu.c (main): Initialize and deinitialize the help
48666 command.
48667
48668 * normal/cmdline.c (grub_cmdline_get): Doc fix.
48669
48670 * normal/command.c (grub_command_init): Fixed the description of
48671 the `set' and `unset' commands.
48672
48673 2005-01-31 Marco Gerards <metgerards@student.han.nl>
48674
48675 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
48676 function.
48677 * commands/ieee1275/halt.c: New file.
48678 * commands/ieee1275/reboot.c: Likewise.
48679 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
48680 `__attribute__ ((unused))'. Some GCS related fixed.
48681 (grub_suspend_init) [GRUB_UTIL]: Function removed.
48682 (grub_suspend_fini): Likewise.
48683 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
48684 and `halt.mod'.
48685 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
48686 (halt_mod_CFLAGS): New variables.
48687 * include/grub/powerpc/ieee1275/ieee1275.h
48688 (grub_ieee1275_interpret): New prototype.
48689
48690 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
48691
48692 * include/grub/misc.h (memmove): New prototype.
48693 (memcpy): Likewise.
48694
48695 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
48696
48697 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
48698 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
48699
48700 2005-01-22 Marco Gerards <metgerards@student.han.nl>
48701
48702 * kern/misc.c (grub_strndup): Function rewritten.
48703
48704 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
48705
48706 * normal/menu.c (TERM_WIDTH): Macro redefined.
48707 (TERM_TOP_BORDER_Y): Likewise.
48708 (draw_border): Replaced while-loop by a for-loop. Make the number
48709 of lines consistent with the number of lines displayed in
48710 print_entries. Added a margin below the rectangle.
48711 (print_entry): Make the entry fit in the rectangle.
48712 (print_entries): Display the scroll arrows next to the right
48713 border.
48714
48715 2005-01-21 Marco Gerards <metgerards@student.han.nl>
48716
48717 * fs/minix.c (grub_minix_find_file): Reserve more space for
48718 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
48719 `grub_strncpy' to copy `path' into it.
48720
48721 2005-01-21 Marco Gerards <metgerards@student.han.nl>
48722
48723 Add the loopback device, a device via which files can be accessed
48724 as devices.
48725
48726 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
48727 (pkgdata_MODULES): Add loopback.mod.
48728 (loopback_mod_SOURCES): New variable.
48729 (loopback_mod_CFLAGS): Likewise.
48730 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
48731 `disk/loopback.c'.
48732 (pkgdata_MODULES): Add loopback.mod.
48733 (loopback_mod_SOURCES): New variable.
48734 (loopback_mod_CFLAGS): Likewise.
48735 * disk/loopback.c: new file.
48736 * include/grub/normal.h (grub_loop_init): New prototype.
48737 (grub_loop_fini): New prototype.
48738 * util/grub-emu.c (main): Initialize and de-initialize loopback
48739 support.
48740 * include/grub/disk.h (grub_disk_dev_id): Add
48741 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
48742
48743 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
48744
48745 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
48746 function.
48747 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
48748 (suspend_mod_SOURCES): New variable.
48749 (suspend_mod_CFLAGS): Likewise.
48750 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
48751 New prototype.
48752 * commands/ieee1275/suspend.c: New file.
48753
48754 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
48755
48756 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
48757 ((unused))' to `__attribute__ ((used))'.
48758 (GRUB_MOD_FINI): Likewise.
48759 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
48760 * genmk.rb (PModule): Assign space to common symbols when linking
48761 modules.
48762
48763 2005-01-20 Marco Gerards <metgerards@student.han.nl>
48764
48765 * include/grub/mm.h (grub_mm_init_region): Change the type of the
48766 `unsigned' arguments to `grub_size_t'.
48767 (grub_malloc): Likewise.
48768 (grub_realloc): Likewise.
48769 (grub_memalign): Likewise.
48770 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
48771 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
48772 * util/misc.c (grub_malloc): Likewise.
48773 (grub_realloc): Likewise.
48774 * kern/mm.c (get_header_from_pointer): Change the casts to
48775 `unsigned' into a cast to `grub_size_t'.
48776
48777 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
48778 point to `currnode' when `currnode' is changed.
48779
48780 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
48781 Schottelius <nico-linux@schottelius.org>.
48782
48783 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
48784
48785 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
48786 (note_path): Remove variable.
48787 (GRUB_IEEE1275_NOTE_NAME): New macro.
48788 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
48789 (grub_ieee1275_note_hdr): New structure.
48790 (grub_ieee1275_note_desc): Likewise.
48791 (grub_ieee1275_note): Likewise.
48792 (load_note): Remove `dir' argument. All callers updated. Remove
48793 `note_img' and `path'. Do not load a file from `note_path'.
48794 Initialize a struct grub_ieee1275_note and write that to `out'.
48795 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
48796
48797 2005-01-05 Marco Gerards <metgerards@student.han.nl>
48798
48799 * util/misc.c (grub_util_read_image): Revert last change. It
48800 called `grub_util_read_at', which seeks from the beginning of the
48801 file.
48802
48803 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
48804
48805 * TODO: Add note about endianness in grub-mkimage.
48806 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
48807 section.
48808 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
48809 (grub_mkimage_SOURCES): New target.
48810 * include/grub/kernel.h (grub_start_addr): Remove variable.
48811 (grub_end_addr): Likewise.
48812 (grub_total_module_size): Likewise.
48813 (grub_kernel_image_size): Likewise.
48814 (GRUB_MODULE_MAGIC): New constant.
48815 (grub_module_info): New structure.
48816 (grub_arch_modules_addr): New prototype.
48817 (grub_get_end_addr): Remove prototype.
48818 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
48819 * include/grub/powerpc/ieee1275/kernel.h: New file.
48820 * include/grub/util/misc.h (grub_util_get_fp_size): New
48821 prototype.
48822 (grub_util_read_at): Likewise.
48823 (grub_util_write_image_at): Likewise.
48824 * kern/main.c (grub_get_end_addr): Remove function.
48825 (grub_load_modules): Call grub_arch_modules_addr instead of using
48826 grub_end_addr. Look for a grub_module_info struct in memory. Use
48827 the grub_module_info fields instead of calling grub_get_end_addr
48828 as loop conditions. Move grub_add_unused_region code here.
48829 (grub_add_unused_region): Remove function.
48830 * kern/i386/pc/init.c: Include grub/cache.h.
48831 (grub_machine_init): Remove call to grub_get_end_addr. Remove
48832 one call to add_mem_region.
48833 (grub_arch_modules_addr): New function.
48834 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
48835 (grub_total_module_size): Likewise.
48836 Include grub/machine/kernel.h.
48837 (grub_arch_modules_addr): New function.
48838 * util/grub-emu.c (grub_end_addr): Remove variable.
48839 (grub_total_module_size): Likewise.
48840 (grub_arch_modules_addr): New function.
48841 * util/misc.c: Include unistd.h.
48842 (grub_util_get_fp_size): New function.
48843 (grub_util_read_at): Likewise.
48844 (grub_util_write_image_at): Likewise.
48845 (grub_util_read_image): Call grub_util_read_at.
48846 (grub_util_write_image): Call grub_util_write_image_at.
48847 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
48848 additional memory in kernel_img for a struct grub_module_info.
48849 Fill in that grub_module_info.
48850 * util/powerpc/ieee1275/grub-mkimage.c: New file.
48851
48852 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
48853
48854 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
48855 New function.
48856 * include/grub/powerpc/ieee1275/ieee1275.h
48857 (grub_ieee1275_milliseconds): New prototype.
48858 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
48859 Change to 1000.
48860 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
48861 grub_ieee1275_milliseconds.
48862
48863 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
48864
48865 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
48866 variable.
48867 (find_options): New function.
48868 (cmain): Call find_options.
48869 * include/grub/powerpc/ieee1275/ieee1275.h
48870 (grub_ieee1275_realmode): New extern variable.
48871 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
48872 grub_map if grub_ieee1275_realmode is false.
48873
48874 2004-12-29 Marco Gerards <metgerards@student.han.nl>
48875
48876 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
48877 lines are inserted and make it work like readline. Reported by
48878 Vincent Pelletier <subdino2004@yahoo.fr>.
48879
48880 2004-12-28 Marco Gerards <metgerards@student.han.nl>
48881
48882 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
48883
48884 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
48885 `kern/powerpc/cache.S'.
48886
48887 2004-12-27 Marco Gerards <metgerards@student.han.nl>
48888
48889 * genmk.rb: Handle the `Program' class in the main loop. Written
48890 by Johan Rydberg <jrydberg@gnu.org>.
48891 (Program): New class.
48892 (programs): New variable.
48893 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
48894 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
48895 instead of "grub/kernel.h". Include <grub/machine/init.h>.
48896 (help_arch): Function removed.
48897 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
48898 `powerpc/libgcc.h' and `loader.h'.
48899 (pkgdata_PROGRAMS): New variable.
48900 (sbin_UTILITIES): Variable removed.
48901 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
48902 (grubof_SOURCES): Variable re-defined so it only includes the
48903 core functionality.
48904 (grubof_CFLAGS): Remove `-DGRUBOF'.
48905 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
48906 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
48907 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
48908 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
48909 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
48910 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
48911 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
48912 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
48913 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
48914 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
48915 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
48916 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
48917 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
48918 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
48919 (pc_mod_CFLAGS): New variables.
48920 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
48921 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
48922 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
48923 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
48924 Moved from here...
48925 * include/grub/i386/pc/init.h (grub_os_area_addr)
48926 (rub_os_area_size): ... to here.
48927 * include/grub/powerpc/ieee1275/ieee1275.h
48928 (grub_ieee1275_entry_fn): Export symbol.
48929 * include/grub/powerpc/ieee1275/init.h: New file.
48930 * include/grub/powerpc/libgcc.h: Likewise.
48931 * include/grub/cache.h: Likewise.
48932 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
48933 <hollis@penguinppc.org>.
48934 * kern/dl.c: Include <grub/cache.h>.
48935 (grub_dl_flush_cache): New function.
48936 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
48937 for this module.
48938 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
48939 (grub_console_init): Removed prototypes.
48940 (grub_machine_init): Don't initialize the modules anymore.
48941 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
48942 static.
48943 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
48944 Macro undef removed.
48945 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
48946 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
48947 relocation `R_PPC_REL32'. Return an error when the relocation is
48948 unknown.
48949 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
48950 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
48951 * util/misc.c (grub_arch_sync_caches): Likewise.
48952
48953 2004-12-19 Marco Gerards <metgerards@student.han.nl>
48954
48955 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
48956 `symlist.c', add `grubof_symlist.c'.
48957 (symlist.c): Variable removed.
48958 (grubof_HEADERS): Variable added.
48959 (grubof_symlist.c): New target.
48960 (kernel_syms.lst): Use `grubof_HEADERS' instead of
48961 `kernel_img_HEADERS'.
48962 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
48963 * kern/powerpc/dl.c: New file.
48964 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
48965 Function removed.
48966 (grub_arch_dl_relocate_symbols): Likewise.
48967 (grub_register_exported_symbols): Likewise.
48968
48969 2004-12-13 Marco Gerards <metgerards@student.han.nl>
48970
48971 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
48972 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
48973 to fail instead. Reported by Vincent Pelletier
48974 <subdino2004@yahoo.fr>.
48975
48976 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
48977 it is not allocated. Reported by Vincent Pelletier
48978 <subdino2004@yahoo.fr>.
48979
48980 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
48981 output so the output looks better.
48982
48983 2004-12-04 Marco Gerards <metgerards@student.han.nl>
48984
48985 Modulize the partition map support and add support for the amiga
48986 partition map.
48987
48988 * commands/ls.c: Include <grub/partition.h> instead of
48989 <grub/machine/partition.h>.
48990 * kern/disk.c: Likewise.
48991 * kern/rescue.c: Likewise.
48992 * loader/i386/pc/chainloader.c: Likewise.
48993 * normal/cmdline.c: Likewise.
48994 * kern/powerpc/ieee1275/init.c: Likewise.
48995 (grub_machine_init): Call `grub_pc_partition_map_init',
48996 `grub_amiga_partition_map_init' and
48997 `grub_apple_partition_map_init'.
48998 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
48999 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
49000 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
49001 `partition.h' and `pc_partition.h'.
49002 (grub_setup_SOURCES): Remove
49003 `disk/i386/pc/partition.c'. Add `kern/partition.c',
49004 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
49005 (grub_emu_SOURCES): Likewise.
49006 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
49007 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
49008 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
49009 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
49010 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
49011 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
49012 (grubof_SOURCES): Likewise.
49013 * disk/i386/pc/partition.c: File removed.
49014 * disk/powerpc/ieee1275/partition.c: Likewise.
49015 * include/grub/powerpc/ieee1275/partition.h: Likewise.
49016 * include/grub/i386/pc/partition.h: Likewise.
49017 * kern/partition.c: New file.
49018 * partmap/amiga.c: Likewise.
49019 * partmap/apple.c: Likewise.
49020 * partmap/pc.c: Likewise.
49021 * include/grub/partition.h: Likewise..
49022 * include/grub/pc_partition.h: Likewise.
49023 * util/grub-emu.c: Include <grub/partition.h> instead of
49024 <grub/machine/partition.h>.
49025 (main): Call `grub_pc_partition_map_init',
49026 `grub_amiga_partition_map_init' and
49027 `grub_apple_partition_map_init' and deinitialize afterwards.
49028 * util/i386/pc/biosdisk.c: Include `#include
49029 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
49030 `<grub/machine/partition.h>'.
49031 * util/i386/pc/grub-setup.c: Likewise.
49032 * util/i386/pc/biosdisk.c: Likewise.
49033 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
49034 partition information in case of a PC partition.
49035 * util/i386/pc/grub-setup.c: Include `#include
49036 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
49037 `<grub/machine/partition.h>'.
49038 (setup): Only access the PC specific partition information in case
49039 of a PC partition.
49040
49041 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
49042
49043 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
49044 (grub_longjmp): Likewise.
49045 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
49046 20.
49047 * normal/powerpc/setjmp.S: New file.
49048 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
49049 `normal/powerpc/setjmp.S'.
49050 (grubof_CFLAGS): Add `-DGRUBOF'.
49051 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
49052 [GRUB_UTIL && !GRUBOF].
49053
49054 2004-11-16 Marco Gerards <metgerards@student.han.nl>
49055
49056 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
49057 property named `name'. Correctly handle the error returned by
49058 `grub_ieee1275_finddevice' if a device can not be opened.
49059
49060 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
49061
49062 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
49063 `actual' for negativity.
49064 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
49065 kern/fshelp.c.
49066
49067 2004-11-01 Marco Gerards <metgerards@student.han.nl>
49068
49069 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
49070 (PAGE_OFFSET): New macro.
49071 (CRTC_ADDR_PORT): Likewise.
49072 (CRTC_DATA_PORT): Likewise.
49073 (START_ADDR_HIGH_REGISTER): Likewise.
49074 (START_ADDR_LOW_REGISTER): Likewise.
49075 (GRAPHICS_ADDR_PORT): Likewise.
49076 (GRAPHICS_DATA_PORT): Likewise.
49077 (READ_MAP_REGISTER): Likewise.
49078 (INPUT_STATUS1_REGISTER): Likewise.
49079 (INPUT_STATUS1_VERTR_BIT): Likewise.
49080 (page): New variable.
49081 (wait_vretrace): New function.
49082 (set_read_map): Likewise.
49083 (set_start_address): Likewise.
49084 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
49085 the right page.
49086 (check_vga_mem): Take the page into account.
49087 (write_char): Likewise.
49088 (write_cursor): Likewise.
49089 (scroll_up): Likewise. Copy the page to the page that is not
49090 shown and switch between both pages.
49091 (grub_vga_putchar): Fix off by one error.
49092 (grub_vga_cls): Wait for the vertical retrace. Take the page into
49093 account.
49094
49095 2004-11-01 Marco Gerards <metgerards@student.han.nl>
49096
49097 Add support for iso9660 (including rockridge).
49098
49099 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
49100 (iso9660_mod_SOURCES): New variable.
49101 (iso9660_mod_CFLAGS): Likewise.
49102 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
49103 * include/grub/fs.h (grub_iso9660_init): New prototype.
49104 * util/grub-emu.c (main): Call `grub_iso9660_init'.
49105 * fs/iso9660.c: New file.
49106
49107 * include/grub/misc.h (grub_strncat): New prototype.
49108 * kern/misc.c (grub_strncat): New function.
49109
49110 * fs/hfs.c (grub_hfs_mount): Translate the error
49111 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
49112 * fs/jfs.c (grub_jfs_mount): Likewise.
49113 * fs/ufs.c (grub_ufs_mount): Likewise.
49114
49115 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
49116
49117 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
49118 which initialized BAT registers.
49119 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
49120 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
49121 Move from here...
49122 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
49123 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
49124 ... to here.
49125 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
49126 (grub_mapclaim): Likewise.
49127 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
49128 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
49129 hand.
49130
49131 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
49132
49133 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
49134 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
49135 -ffreestanding and -msoft-float.
49136
49137 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
49138
49139 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
49140 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
49141 set in grub_ieee1275_flags.
49142
49143 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
49144
49145 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
49146 prototype.
49147 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
49148 grub_console_init first.
49149 Change the memory range used for grub_ieee1275_claim and
49150 grub_mm_init_region.
49151 Print an error message if the claim fails.
49152 Include <grub/misc.h>.
49153
49154 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
49155
49156 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
49157 Call grub_children_iterate for device nodes of type `scsi',
49158 `ide', or `ata'.
49159 (grub_ofdisk_open): Remove manual device alias resolution.
49160 Fix memory leak when device cannot be opened.
49161 * include/grub/powerpc/ieee1275/ieee1275.h
49162 (grub_children_iterate): New prototype.
49163 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
49164 New function.
49165 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
49166 Return -1 if args.size was -1.
49167
49168 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
49169
49170 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
49171 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
49172 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
49173 Open Firmware's memory for it; claim memory from _start to _end.
49174 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
49175 (_end): New extern.
49176 (_start): Zero BSS from __bss_start to _end.
49177 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
49178 New extern.
49179 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
49180
49181 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
49182
49183 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
49184 -1 if args.base was -1.
49185
49186 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
49187
49188 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
49189 escape sequence instead of a literal ^L. Also call
49190 grub_ofconsole_gotoxy.
49191
49192 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
49193
49194 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
49195 void * arguments to grub_addr_t. All callers updated. Also make
49196 the `result' argument optional.
49197 (grub_ieee1275_release): change void * arguments to grub_addr_t.
49198 All callers updated.
49199
49200 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
49201
49202 * commands/ls.c (grub_ls_list_files): Use the string following the
49203 initial ')', if present, as the filesystem path.
49204 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
49205
49206 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
49207
49208 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
49209
49210 Make the source code of the menu interface more readable.
49211
49212 * normal/menu.c: Include grub/mm.h.
49213 (TERM_WIDTH): New macro.
49214 (TERM_HEIGHT): Likewise.
49215 (TERM_INFO_HEIGHT): Likewise.
49216 (TERM_MARGIN): Likewise.
49217 (TERM_SCROLL_WIDTH): Likewise.
49218 (TERM_TOP_BORDER_Y): Likewise.
49219 (TERM_LEFT_BORDER_X): Likewise.
49220 (TERM_BORDER_WIDTH): Likewise.
49221 (TERM_MESSAGE_HEIGHT): Likewise.
49222 (TERM_BORDER_HEIGHT): Likewise.
49223 (TERM_NUM_ENTRIES): Likewise.
49224 (TERM_FIRST_ENTRY_Y): Likewise.
49225 (TERM_ENTRY_WIDTH): Likewise.
49226 (TERM_CURSOR_X): Likewise.
49227 (draw_border): Use macros instead of magic numbers.
49228 (print_entry): Likewise.
49229 (print_entries): Likewise.
49230 (run_menu): Likewise. Also, handle the key 'e'.
49231 (run_menu_entry): Ignore empty command lines.
49232 (print_message): Added a new argument EDIT. If EDIT is true,
49233 print a different message.
49234 (init_page): Likewise.
49235 (edit_menu_entry): New function. Not implemented yet.
49236
49237 2004-09-17 Marco Gerards <metgerards@student.han.nl>
49238
49239 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
49240 can be loaded from normal mode.
49241
49242 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
49243 `multiboot.mod'.
49244 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
49245 (multiboot_mod_CFLAGS): New variables.
49246 * loader/i386/pc/linux_normal.c: New file.
49247 * loader/i386/pc/multiboot_normal.c: Likewise.
49248
49249 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
49250 attribute `unused'.
49251
49252 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
49253 `fdiro' to read the mode information from instead of `diro'.
49254
49255 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
49256 looking up a symlink.
49257
49258 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
49259 macro.
49260 * normal/command.c (grub_command_execute): Don't parse the
49261 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
49262 flags of the command.
49263
49264 * normal/menu.c (grub_menu_run): Fix typo.
49265
49266 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
49267
49268 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
49269
49270 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
49271 `y + 1' instead of `y - 1'.
49272
49273 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
49274
49275 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
49276
49277 From Hollis Blanchard <hollis@penguinppc.org>:
49278 * kern/misc.c (memmove): New alias for grub_memmove.
49279 (memcmp): New alias for grub_memcmp.
49280 (memset): New alias for grub_memset.
49281 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
49282 Change "int handle" to "grub_ieee1275_phandle_t handle".
49283 * include/grub/powerpc/ieee1275/ieee1275.h
49284 (grub_ieee1275_get_property): Likewise.
49285
49286 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
49287
49288 Added normal mode command `chainloader' as module chain.mod, which
49289 depends on normal.mod and _chain.mod.
49290
49291 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
49292 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
49293 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
49294 Deleted prototype.
49295 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
49296 but arguments parsing moved to ...
49297 (grub_chainloader_cmd): ... here. New function.
49298 * include/grub/i386/pc/chainloader.h: New file.
49299 * loader/i386/pc/chainloader_normal.c: Likewise.
49300
49301 2004-09-11 Marco Gerards <metgerards@student.han.nl>
49302
49303 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
49304 (grub_mkimage_LDFLAGS): Likewise.
49305 (grub_emu_SOURCES): Likewise.
49306 (kernel_img_HEADERS): Added fshelp.h.
49307 * fs/ext2.c: Include <grub/fshelp.h>.
49308 (FILETYPE_REG): New macro.
49309 (FILETYPE_INO_REG): Likewise.
49310 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
49311 Changed all users.
49312 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
49313 all users.
49314 (grub_fshelp_node): New struct.
49315 (grub_ext2_data): Added member `diropen'. Changed member `inode'
49316 to a pointer.
49317 (grub_ext2_get_file_block): Removed function.
49318 (grub_ext2_read_block): New function.
49319 (grub_ext2_read_file): Replaced parameter `data' by `node'.
49320 This function was written.
49321 (grub_ext2_mount): Read the root inode. Create a diropen struct.
49322 (grub_ext2_find_file): Removed function.
49323 (grub_ext2_read_symlink): New function.
49324 (grub_ext2_iterate_dir): Likewise.
49325 (grub_ext2_open): Rewritten.
49326 (grub_ext2_dir): Rewritten.
49327 * include/grub/fshelp.h: New file.
49328 * fs/fshelp.c: Likewise.
49329
49330 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
49331
49332 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
49333 (print_message): Add a missing newline.
49334 (run_menu): Added timeout support.
49335 (run_menu_entry): New local function.
49336 (grub_menu_run): Added support for booting.
49337
49338 * kern/loader.c (grub_loader_is_loaded): New function.
49339
49340 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
49341 (grub_get_rtc): Exported.
49342
49343 * include/grub/i386/pc/time.h: Include grub/symbol.h.
49344 (grub_get_rtc): Exported.
49345
49346 * include/grub/normal.h (struct grub_command_list): Remove
49347 constant from the member `command'.
49348
49349 * include/grub/loader.h (grub_loader_is_loaded): Declared.
49350
49351 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
49352
49353 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
49354
49355 2004-08-28 Marco Gerards <metgerards@student.han.nl>
49356
49357 Add support for the JFS filesystem.
49358
49359 * fs/jfs.c: New file.
49360 * include/grub/fs.h (grub_jfs_init): New prototype.
49361 (grub_jfs_fini): New prototype.
49362 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
49363 (grub_emu_SOURCES): Likewise.
49364 (pkgdata_MODULES): Add jfs.mod.
49365 (jfs_mod_SOURCES): New variable.
49366 (jfs_mod_CFLAGS): Likewise.
49367 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
49368 (grubof_SOURCES): Likewise.
49369 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
49370
49371 * fs/fat.c (grub_fat_find_dir): Convert the filename little
49372 endian to the host endian.
49373 (grub_fat_utf16_to_utf8): Move function from there...
49374 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
49375 the endianness of the source string anymore.
49376 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
49377
49378 2004-08-24 Marco Gerards <metgerards@student.han.nl>
49379
49380 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
49381 (grub_boot_fini) [GRUB_UTIL]: Likewise.
49382 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
49383 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
49384
49385 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
49386 (grub_hfs_iterate_dir): Make the function static. Add prototypes
49387 for `node_found' and `it_dir'.
49388 (grub_hfs_dir): Add prototype for `dir_hook'.
49389
49390 * fs/minix.c (grub_minix_get_file_block): Add prototype for
49391 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
49392 and `indir32' to silence a gcc warning.
49393
49394 * include/grub/fs.h (grub_hfs_init): New prototype.
49395 (grub_hfs_fini): Likewise.
49396
49397
49398 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
49399
49400 Each disk device has its own id now. This is useful to make use
49401 of multiple disk devices.
49402
49403 * include/grub/disk.h (grub_disk_dev_id): New enum.
49404 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
49405 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
49406
49407 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
49408 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
49409
49410 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
49411 GRUB_DISK_DEVICE_OFDISK_ID as an id.
49412
49413 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
49414 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
49415
49416 * include/grub/disk.h (struct grub_disk_dev): Added a new member
49417 "id" which is used by the cache manager.
49418
49419 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
49420 of just "GRUB".
49421
49422 2004-08-18 Marco Gerards <metgerards@student.han.nl>
49423
49424 * fs/hfs.c: New file.
49425 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
49426 (grub_emu_SOURCES): Likewise.
49427 (pkgdata_MODULES): Add hfs.mod.
49428 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
49429 (grubof_SOURCES): Likewise.
49430 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
49431
49432 * include/grub/misc.h (grub_strncasecmp): Add prototype.
49433 * kern/misc.c (grub_strncasecmp): Add function.
49434
49435 2004-08-14 Marco Gerards <metgerards@student.han.nl>
49436
49437 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
49438 with parentheses.
49439
49440 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
49441 (grub_ext2_dir): In case the directory entry type is unknown, read
49442 it from the inode.
49443
49444 2004-08-02 Peter Bruin <pjbruin@dds.nl>
49445
49446 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
49447 grub_load_linux instead of grub_rescue_cmd_linux as second
49448 argument of grub_rescue_register_command.
49449
49450 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
49451
49452 2004-07-27 Marco Gerards <metgerards@student.han.nl>
49453
49454 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
49455 function.
49456 * commands/boot.c: Remove the check for `GRUB_UTIL'.
49457 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
49458 `loader/powerpc/ieee1275/linux.c',
49459 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
49460 * include/grub/powerpc/ieee1275/ieee1275.h
49461 (grub_ieee1275_release): New prototype.
49462 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
49463 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
49464 normal, boot, linux and linux_normal.
49465 * loader/powerpc/ieee1275/linux.c: New file.
49466 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
49467
49468 2004-07-12 Marco Gerards <metgerards@student.han.nl>
49469
49470 * normal/arg.c (grub_arg_parse): Correct error handling after
49471 reallocating the argumentlist (check if `argl' is not null instead
49472 of checking if `args' is not null).
49473 * kern/mm.c (grub_realloc): Return the same pointer when using the
49474 same region, instead of returning the header address.
49475
49476 2004-07-11 Marco Gerards <metgerards@student.han.nl>
49477
49478 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
49479 one block instead of two when looking for the initial partition.
49480 (grub_partition_probe): Initialize the local variable `p' with 0.
49481 Use base 10 for the grub_strtoul call.
49482 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
49483 need for one local variable.
49484 (grub_strtoul): Don't add the new value to `num', instead of that
49485 just assign it.
49486
49487 2004-07-11 Marco Gerards <metgerards@student.han.nl>
49488
49489 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
49490 (pxeboot_img_SOURCES): New variable.
49491 (pxeboot_img_ASFLAGS): Likewise.
49492 (pxeboot_img_LDFLAGS): Likewise.
49493 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
49494 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
49495 <lode_leroy@hotmail.com>.
49496
49497 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
49498
49499 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
49500 there was no input.
49501
49502 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
49503
49504 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
49505 the history buffer logic.
49506
49507 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
49508
49509 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
49510 (FILETYPE_INO_SYMLINK): New macros.
49511 (grub_ext2_find_file): Check if the node is a directory using the
49512 inode stat information instead of using the filetype in the
49513 dirent. Exclude the first character of an absolute symlink.
49514 (grub_ext2_dir): Mask out the filetype part of the mode member of
49515 the inode.
49516
49517 2004-05-24 Marco Gerards <metgerards@student.han.nl>
49518
49519 Add support for UFS version 1 and 2. Add support for the minix
49520 filesystem version 1 and 2, both the variants with 14 and 30 long
49521 filenames.
49522
49523 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
49524 fs/minix.c.
49525 (grub_emu_SOURCES): Likewise.
49526 (pkgdata_MODULES): Add ufs.mod and minix.mod.
49527 (ufs_mod_SOURCES): New variable.
49528 (ufs_mod_CFLAGS): Likewise.
49529 (minix_mod_SOURCES): Likewise.
49530 (minix_mod_CFLAGS): Likewise.
49531 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
49532 fs/minix.c.
49533 (grubof_SOURCES): Likewise.
49534 * fs/ufs.c: New file.
49535 * fs/minix.c: New file.
49536 * include/grub/fs.h (grub_ufs_init): New prototype.
49537 (grub_ufs_fini): Likewise.
49538 (grub_minix_init): Likewise.
49539 (grub_minix_fini): Likewise.
49540 * util/grub-emu.c (main): Initialize and deinitialize UFS and
49541 minix fs.
49542
49543 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
49544
49545 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
49546 commands/ls.c, commands/terminal.c, commands/boot.c,
49547 commands/cmp.c and commands/cat.c.
49548 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
49549
49550 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
49551 "env.h"
49552
49553 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
49554
49555 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
49556 and grub_, respectively. Because the conversion is trivial and
49557 mechanical, I omit the details here. Please refer to the CVS
49558 if you need more information.
49559
49560 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
49561
49562 * include/pupa: Renamed to ...
49563 * include/grub: ... this.
49564 * util/i386/pc/pupa-mkimage.c: Renamed to ...
49565 * util/i386/pc/grub-mkimage.c: ... this.
49566 * util/i386/pc/pupa-setup.c: Renamed to ...
49567 * util/i386/pc/grub-setup.c: ... this.
49568 * util/pupa-emu.c: Renamed to ...
49569 * util/grub-emu.c: ... this.
49570
49571 2004-03-29 Marco Gerards <metgerards@student.han.nl>
49572
49573 Add support for the newworld apple macintosh (PPC). This has been
49574 tested on the powerbook 2000 only. It only adds support for
49575 generic ieee1275 functions, console and disk support. This should
49576 be easy to port to other architectures with support for Open
49577 Firmware.
49578
49579 * configure.ac: Accept the powerpc as host_cpu. In the case of
49580 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
49581 specific tests are only executed while building for the i386.
49582 Inverse test for crosscompile.
49583 * genmk.rb (Utility): Allow assembler files.
49584 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
49585 * conf/powerpc-ieee1275.rmk: New file.
49586 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
49587 * disk/powerpc/ieee1275/partition.c: Likewise.
49588 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
49589 * include/pupa/powerpc/ieee1275/console.h: Likewise.
49590 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
49591 * include/pupa/powerpc/ieee1275/time.h: Likewise.
49592 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
49593 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
49594 * include/pupa/powerpc/ieee1275/loader.h
49595 * include/pupa/powerpc/setjmp.h: Likewise.
49596 * include/pupa/powerpc/types.h: Likewise.
49597 * kern/powerpc/ieee1275/init.c: Likewise.
49598 * kern/powerpc/ieee1275/openfw.c: Likewise.
49599 * term/powerpc/ieee1275/ofconsole.c: Likewise.
49600
49601 These files were written by Johan Rydberg
49602 (jrydberg@night.trouble.net) and I only modified them slightly.
49603
49604 * boot/powerpc/ieee1275/cmain.c: New file.
49605 * boot/powerpc/ieee1275/crt0.S: Likewise.
49606 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
49607 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
49608
49609 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
49610
49611 * Makefile.in: Update copyright.
49612 * genmodsrc.sh: Likewise.
49613 * gensymlist.sh: Likewise.
49614 * term/i386/pc/vga.c: Indent correctly.
49615
49616 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
49617 bugreporting address.
49618 * util/i386/pc/pupa-setup.c (usage): Likewise,
49619 (main): Call pupa_ext2_init and pupa_ext2_fini.
49620
49621 * fs/fat.c (log2): Renamed to ...
49622 (fat_log2): ... this.
49623 All callers changed.
49624 * kern/misc.c (memcpy): Alias to pupa_memmove.
49625 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
49626 lvalue cast.
49627 * util/console.c (pupa_ncurses_fini): Return 0.
49628
49629 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
49630 Move fail label here.
49631 [__GNU__]: Don't warn when using stat.
49632 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
49633 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
49634 long int. Use strtol instead of strtoul.
49635
49636 2004-03-14 Marco Gerards <metgerards@student.han.nl>
49637
49638 * commands/boot.c: New file.
49639 * commands/cat.c: Likewise.
49640 * commands/cmp.c: Likewise.
49641 * commands/ls.c: Likewise.
49642 * commands/terminal.c: Likewise.
49643 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
49644 (pupa_register_command): Changed interface to match the new
49645 argument parser.
49646 (pupa_command_execute): Changed (almost rewritten) so it uses
49647 pupa_split_command. Added support for setting variables using the
49648 syntax `foo=bar'.
49649 (rescue_command): Changed to work with the new argument parser.
49650 (terminal_command): Moved from here to commands/terminal.c.
49651 (set_command): New function.
49652 (unset_command): New function.
49653 (insmod_command): New function.
49654 (rmmod_command): New function.
49655 (lsmod_command): New function.
49656 (pupa_command_init): Don't initialize the command terminal
49657 anymore. Initialize the commands set, unset, insmod, rmmod and
49658 lsmod.
49659 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
49660 (kernel_img_HEADERS): Add arg.h and env.h.
49661 (pupa_mkimage_LDFLAGS): Add kern/env.c.
49662 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
49663 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
49664 normal/arg.c.
49665 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
49666 terminal.mod.
49667 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
49668 (boot_mod_SOURCES): New variable.
49669 (terminal_mod_SOURCES): Likewise.
49670 (ls_mod_SOURCES): Likewise.
49671 (cmp_mod_SOURCES): Likewise.
49672 (cat_mod_SOURCES): Likewise.
49673
49674 * normal/arg.c: New file.
49675 * kern/env.c: Likewise.
49676 * include/pupa/arg.h: Likewise.
49677 * include/pupa/env.h: Likewise.
49678 * font/manager.c (font_command): Changed to match argument parsing
49679 interface changes.
49680 (PUPA_MOD_INIT): Likewise.
49681 * hello/hello.c (pupa_cmd_hello): Likewise.
49682 (PUPA_MOD_INIT): Likewise.
49683 * include/pupa/disk.h: Include <pupa/device.h>.
49684 (pupa_print_partinfo): New prototype.
49685 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
49686 (pupa_dl_get_prefix): Likewise.
49687 * include/pupa/misc.h: Include <pupa/err.h>.
49688 (pupa_isgraph): New prototype.
49689 (pupa_isdigit): Likewise.
49690 (pupa_split_cmdline): Likewise.
49691 * include/pupa/normal.h: Include <pupa/arg.h>.
49692 (pupa_command): Changed the prototype of the member `func' to
49693 match the argument parsing interface. Added member `options'.
49694 (pupa_register_command): Updated to match function.
49695 (pupa_arg_parse): New prototype.
49696 (pupa_hello_init) [PUPA_UTIL]: New prototype.
49697 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
49698 (pupa_ls_init) [PUPA_UTIL]: Likewise.
49699 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
49700 (pupa_cat_init) [PUPA_UTIL]: Likewise.
49701 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
49702 (pupa_boot_init) [PUPA_UTIL]: Likewise.
49703 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
49704 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
49705 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
49706 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
49707 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
49708 * kern/disk.c: Include <pupa/file.h>.
49709 (pupa_print_partinfo): New function.
49710 * kern/dl.c: Include <pupa/env.h>.
49711 (pupa_dl_dir): Variable removed.
49712 (pupa_dl_load): Use the environment variable `prefix' instead of
49713 the variable pupa_dl_dir.
49714 (pupa_dl_set_prefix): Function removed.
49715 (pupa_dl_get_prefix): Likewise.
49716 * kern/i386/pc/init.c: Include <pupa/env.h>.
49717 (pupa_machine_init): Use the environment variable `prefix' instead of
49718 using pupa_dl_set_prefix to set the prefix.
49719 * kern/main.c: Include <pupa/env.h>.
49720 (pupa_set_root_dev): Use the environment variable `prefix' instead of
49721 using pupa_dl_get_prefix to get the prefix.
49722 * kern/misc.c: Include <pupa/env.h>.
49723 (pupa_isdigit): New function.
49724 (pupa_isgraph): Likewise.
49725 (pupa_ftoa): Likewise.
49726 (pupa_vsprintf): Added support for printing values of the type
49727 `double'. Make it possible to format variable output when using
49728 formatting like `%1.2%f'.
49729 (pupa_split_cmdline): New function.
49730 * kern/rescue.c: Include <pupa/env.h>.
49731 (next_word): Removed function.
49732 (pupa_rescue_cmd_prefix): Likewise.
49733 (pupa_rescue_cmd_set): New function.
49734 (pupa_rescue_cmd_unset): New function.
49735 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
49736 split the command line instead of splitting it here. Added
49737 support for setting variables using the syntax `foo=bar'. Don't
49738 initialize the prefix command anymore. Initialized the set and
49739 unset commands.
49740 * normal/cmdline.c: Include <pupa/env.h>.
49741 (pupa_tab_complete): Added prototypes for print_simple_completion,
49742 print_partition_completion, add_completion, iterate_commands,
49743 iterate_dev, iterate_part and iterate_dir. Moved code to print
49744 partition information from here to kern/disk.c.
49745 (pupa_cmdline_run): Don't check if the function exists anymore.
49746 * normal/main.c: Include <pupa/env.h>.
49747 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
49748 instead of using pupa_dl_get_prefix to get the prefix.
49749 * term/i386/pc/vga.c: Include <pupa/arg.h>.
49750 (check_vga_mem): Cast pointers to `void *' to silence a gcc
49751 warning.
49752 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
49753 (pupa_vga_setcolor): Declare unused variables with `__attribute__
49754 ((unused))' to silence a gcc warning.
49755 (pupa_vga_setcolor): Likewise.
49756 (debug_command): Changed to match argument parsing
49757 interface changes.
49758 * util/pupa-emu.c: Include <pupa/env.h>.
49759 (options): Added 0's for unused fields to silence a gcc warning.
49760 (argp): Likewise.
49761 (main): Use the environment variable `prefix' instead of using
49762 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
49763 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
49764 and terminal.
49765
49766 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
49767 * util/misc.c: Include <malloc.h>.
49768 (pupa_malloc): Rewritten so errors are correctly reported.
49769 (pupa_realloc): Likewise.
49770 (pupa_memalign): Likewise.
49771 (pupa_mm_init_region): Declare unused variables with
49772 `__attribute__ ((unused))' to silence a gcc warning.
49773 * normal/i386/setjmp.S: Remove tab at the end of the file to
49774 silence a gcc warning.
49775 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
49776 variables with `__attribute__ ((unused))' to silence a gcc
49777 warning.
49778 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
49779 local variable i unsigned to silence a gcc warning.
49780
49781 * kern/term.c: Include <pupa/misc.h>.
49782 (pupa_more_lines): New variable.
49783 (pupa_more): Likewise.
49784 (pupa_putcode): When the pager is active pause at the end of every
49785 screen.
49786 (pupa_set_more): New function.
49787 * include/pupa/term.h (pupa_set_more): New prototype.
49788
49789
49790 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
49791
49792 Now this project is GRUB 2 rather than PUPA. The location of
49793 the CVS repository was moved to GRUB's.
49794
49795 * configure.ac: Use bug-grub as the reporting address.
49796 Use GRUB instead of PUPA.
49797 Change the version number to 1.90.
49798
49799 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
49800
49801 * genkernsyms.sh: Updated copyright information.
49802 * genmk.rb: Likewise.
49803 * genmodsrc.sh: Likewise.
49804 * gensymlist.sh: Likewise.
49805 * boot/i386/pc/boot.S: Likewise.
49806 * boot/i386/pc/diskboot.S: Likewise.
49807 * disk/i386/pc/biosdisk.c: Likewise.
49808 * disk/i386/pc/partition.c: Likewise.
49809 * font/manager.c: Likewise.
49810 * fs/ext2.c: Likewise.
49811 * fs/fat.c: Likewise.
49812 * include/pupa/boot.h: Likewise.
49813 * include/pupa/device.h: Likewise.
49814 * include/pupa/disk.h: Likewise.
49815 * include/pupa/dl.h: Likewise.
49816 * include/pupa/elf.h: Likewise.
49817 * include/pupa/err.h: Likewise.
49818 * include/pupa/file.h: Likewise.
49819 * include/pupa/font.h: Likewise.
49820 * include/pupa/fs.h: Likewise.
49821 * include/pupa/kernel.h: Likewise.
49822 * include/pupa/loader.h: Likewise.
49823 * include/pupa/misc.h: Likewise.
49824 * include/pupa/mm.h: Likewise.
49825 * include/pupa/net.h: Likewise.
49826 * include/pupa/normal.h: Likewise.
49827 * include/pupa/rescue.h: Likewise.
49828 * include/pupa/setjmp.h: Likewise.
49829 * include/pupa/symbol.h: Likewise.
49830 * include/pupa/term.h: Likewise.
49831 * include/pupa/types.h: Likewise.
49832 * include/pupa/i386/setjmp.h: Likewise.
49833 * include/pupa/i386/types.h: Likewise.
49834 * include/pupa/i386/pc/biosdisk.h: Likewise.
49835 * include/pupa/i386/pc/boot.h: Likewise.
49836 * include/pupa/i386/pc/console.h: Likewise.
49837 * include/pupa/i386/pc/init.h: Likewise.
49838 * include/pupa/i386/pc/kernel.h: Likewise.
49839 * include/pupa/i386/pc/linux.h: Likewise.
49840 * include/pupa/i386/pc/loader.h: Likewise.
49841 * include/pupa/i386/pc/memory.h: Likewise.
49842 * include/pupa/i386/pc/multiboot.h: Likewise.
49843 * include/pupa/i386/pc/partition.h: Likewise.
49844 * include/pupa/i386/pc/time.h: Likewise.
49845 * include/pupa/i386/pc/vga.h: Likewise.
49846 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
49847 * include/pupa/util/getroot.h: Likewise.
49848 * include/pupa/util/misc.h: Likewise.
49849 * include/pupa/util/resolve.h: Likewise.
49850 * kern/device.c: Likewise.
49851 * kern/disk.c: Likewise.
49852 * kern/dl.c: Likewise.
49853 * kern/err.c: Likewise.
49854 * kern/file.c: Likewise.
49855 * kern/fs.c: Likewise.
49856 * kern/loader.c: Likewise.
49857 * kern/main.c: Likewise.
49858 * kern/misc.c: Likewise.
49859 * kern/mm.c: Likewise.
49860 * kern/rescue.c: Likewise.
49861 * kern/term.c: Likewise.
49862 * kern/i386/dl.c: Likewise.
49863 * kern/i386/pc/init.c: Likewise.
49864 * kern/i386/pc/lzo1x.S: Likewise.
49865 * kern/i386/pc/startup.S: Likewise.
49866 * loader/i386/pc/chainloader.c: Likewise.
49867 * loader/i386/pc/linux.c: Likewise.
49868 * loader/i386/pc/multiboot.c: Likewise.
49869 * normal/cmdline.c: Likewise.
49870 * normal/command.c: Likewise.
49871 * normal/main.c: Likewise.
49872 * normal/menu.c: Likewise.
49873 * normal/i386/setjmp.S: Likewise.
49874 * term/i386/pc/console.c: Likewise.
49875 * term/i386/pc/vga.c: Likewise.
49876 * util/console.c: Likewise.
49877 * util/genmoddep.c: Likewise.
49878 * util/misc.c: Likewise.
49879 * util/pupa-emu.c: Likewise.
49880 * util/resolve.c: Likewise.
49881 * util/unifont2pff.rb: Likewise.
49882 * util/i386/pc/biosdisk.c: Likewise.
49883 * util/i386/pc/getroot.c: Likewise.
49884 * util/i386/pc/pupa-mkimage.c: Likewise.
49885 * util/i386/pc/pupa-setup.c: Likewise.
49886
49887 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
49888
49889 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
49890 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
49891 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
49892 reading and reset it after reading.
49893 (pupa_ext2_close): Return PUPA_ERR_NONE.
49894
49895 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
49896 Correct value.
49897 (struct linux_kernel_header): Add kernel_version and
49898 initrd_addr_max.
49899 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
49900 pupa_file_read succeeds.
49901 (pupa_rescue_cmd_initrd): Implement.
49902
49903 2003-12-03 Marco Gerards <metgerards@student.han.nl>
49904
49905 * fs/ext2.c (pupa_ext2_label): New function.
49906 (pupa_ext2_fs): Added label.
49907 * fs/fat.c (pupa_fat_label): New function.
49908 (pupa_fat_fs): Added label.
49909 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
49910
49911 * kern/misc.c (pupa_strndup): New function.
49912 * include/pupa/misc.h (pupa_strndup): New prototype.
49913
49914 * include/pupa/normal.h: Include <pupa/err.h>.
49915 (pupa_set_history): New prototype.
49916 (pupa_iterate_commands): New prototype.
49917 * normal/cmdline.c: Include <pupa/machine/partition.h>,
49918 <pupa/disk.h>, <pupa/file.h>.
49919 (hist_size): New variable.
49920 (hist_lines): Likewise.
49921 (hist_end): Likewise.
49922 (hist_used): Likewise.
49923 (pupa_set_history): New function.
49924 (pupa_history_get): Likewise.
49925 (pupa_history_add): Likewise.
49926 (pupa_history_replace): Likewise.
49927 (pupa_tab_complete): Likewise.
49928 (pupa_cmdline_run): Added tab completion and history buffer. Tab
49929 completion shows partitionnames while completing partitions, this
49930 feature was suggested by Jeff Bailey.
49931 * normal/command.c (pupa_iterate_commands): New function.
49932 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
49933 (pupa_normal_init): Initialize history buffer.
49934 (PUPA_MOD_INIT): Likewise.
49935 (pupa_normal_fini): Free the history buffer.
49936 (PUPA_MOD_FINI): Likewise.
49937
49938 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
49939 key.
49940
49941 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
49942 * configure.ac [i386]: Check for regparam bug.
49943 (NESTED_FUNC_ATTR) [! i386]: Defined.
49944
49945 2003-11-17 Marco Gerards <metgerards@student.han.nl>
49946
49947 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
49948 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
49949 (pupa_emu_SOURCES): New variable.
49950 (pupa_emu_LDFLAGS): Likewise.
49951 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
49952 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
49953 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
49954 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
49955 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
49956 (pupa_jmp_buf): New typedef.
49957 (pupa_setjmp) [PUPA_UTIL]: New macro.
49958 (pupa_longjmp) [PUPA_UTIL]: Likewise.
49959 * include/pupa/term.h (struct pupa_term): New member `refresh'.
49960 (pupa_refresh): New prototype.
49961 * include/pupa/util/getroot.h: New file.
49962 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
49963 it.
49964 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
49965 (pupa_rescue_cmd_cat): Likewise.
49966 (pupa_rescue_cmd_ls): Likewise.
49967 (pupa_rescue_cmd_testload): Likewise.
49968 (pupa_rescue_cmd_lsmod): Likewise.
49969 * normal/cmdline.c (pupa_cmdline_get): Likewise.
49970 * normal/menu.c (run_menu): Likewise.
49971 * kern/term.c (pupa_cls): Likewise.
49972 (pupa_refresh): New function.
49973 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
49974 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
49975 * util/console.c: New file.
49976
49977 * util/i386/pc/getroot.c: New file.
49978 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
49979 (pupa_putchar): New function.
49980 (pupa_refresh): Likewise.
49981 (xgetcwd): Function moved to ...
49982 (strip_extra_slashes): Likewise.
49983 (get_prefix): Likewise.
49984 * util/i386/pc/getroot.c: ... here.
49985 (find_root_device): Function moved and renamed to...
49986 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
49987 Changed all callers.
49988 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
49989 and renamed to...
49990 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
49991 Changed all callers.
49992 * util/misc.c (pupa_memalign): New function.
49993 (pupa_mm_init_region): Likewise.
49994 (pupa_register_exported_symbols): Likewise.
49995 (pupa_putchar): Function removed.
49996 * util/pupa-emu.c: New file.
49997
49998 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
49999
50000 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
50001 (_multiboot_mod_SOURCES): New variable.
50002 (_multiboot_mod_CFLAGS): Likewise.
50003 * loader/i386/pc/multiboot.c: New file.
50004 * include/pupa/i386/pc/multiboot.h: Likewise.
50005 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
50006 (pupa_multiboot_real_boot): New function.
50007 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
50008 (pupa_multiboot_real_boot): New prototype.
50009 (pupa_rescue_cmd_multiboot): Likewise
50010 (pupa_rescue_cmd_module): Likewise.
50011
50012 * kern/loader.c (pupa_loader_set): Continue when
50013 pupa_loader_unload_func() fails.
50014 (pupa_loader_unset): New function.
50015 * include/pupa/loader.h (pupa_loader_unset): New prototype.
50016
50017 * kern/misc.c (pupa_stpcpy): New function.
50018 * include/pupa/misc.h (pupa_stpcpy): New prototype.
50019
50020 2003-11-12 Marco Gerards <metgerards@student.han.nl>
50021
50022 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
50023 for available extensions.
50024
50025 * include/pupa/i386/pc/time.h: New file.
50026 * kern/disk.c: Include <pupa/machine/time.h>.
50027 (PUPA_CACHE_TIMEOUT): New macro.
50028 (pupa_last_time): New variable.
50029 (pupa_disk_open): Flush the cache when there was a timeout.
50030 (pupa_disk_close): Reset the timer.
50031 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
50032 pupa_currticks.
50033 * util/misc.c: Include <sys/times.h>
50034 (pupa_get_rtc): New function.
50035
50036 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
50037
50038 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
50039 as blocks.
50040 (pupa_ext2_get_file_block): Use blocks member.
50041
50042 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
50043 first block. Return -1 instead of pupa_errno on error.
50044
50045 2003-10-27 Marco Gerards <metgerards@student.han.nl>
50046
50047 * README: In the pupa-mkimage example use _chain instead of chain
50048 and ext2 instead of fat.
50049 * TODO: Replace ext2fs with jfs as an example. Add an item for
50050 adding journal playback for ext2fs.
50051 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
50052 (pkgdata_MODULES): Added ext2.mod.
50053 (ext2_mod_SOURCES): New variable.
50054 (ext2_mod_CFLAGS): Likewise.
50055 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
50056 * include/pupa/misc.h (pupa_strncpy): New prototype.
50057 (pupa_strcat): Likewise.
50058 (pupa_strncmp): Likewise.
50059 * kern/misc.c (pupa_strcat): Enable function.
50060 (pupa_strncpy): New function.
50061 (pupa_strncmp): Likewise.
50062 * fs/ext2.c: New file.
50063
50064 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
50065 when the read failed before retrying.
50066 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
50067 (_FILE_OFFSET_BITS): Likewise.
50068 * configure.ac: Added AC_SYS_LARGEFILE.
50069
50070 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
50071
50072 * genmk.rb (PModule#rule): Make sure to get only symbol names
50073 from the output of nm.
50074 Reported by Robert Millan <rmh.grub@aybabtu.com>.
50075
50076 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
50077
50078 I forgot to check in these changes for a long time. This adds
50079 incomplete support for VGA console, and this is still very
50080 buggy. Also, a lot of consideration is required for I18N,
50081 UNICODE, and VGA font issues. Therefore, assume that this is
50082 such that "better than nothing".
50083
50084 * font/manager.c: New file.
50085 * include/pupa/font.h: Likewise.
50086 * include/pupa/i386/pc/vga.h: Likewise.
50087 * term/i386/pc/vga.c: Likewise.
50088 * util/unifont2pff.rb: Likewise.
50089
50090 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
50091 (pkgdata_MODULES): Added vga.mod and font.mod.
50092 (vga_mod_SOURCES): New variables.
50093 (vga_mod_CFLAGS): Likewise.
50094 (font_mod_SOURCES): Likewise.
50095 (font_mod_CFLAGS): Likewise.
50096
50097 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
50098
50099 * include/pupa/term.h: Include pupa/err.h.
50100 (struct pupa_term): Added init and fini.
50101 Changed the argument of putchar to pupa_uint32_t.
50102
50103 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
50104 (pupa_console_real_putchar): New prototype.
50105 (pupa_console_putchar): Removed.
50106 (pupa_console_checkkey): Exported.
50107 (pupa_console_getkey): Likewise.
50108
50109 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
50110 characters.
50111
50112 * kern/term.c (pupa_term_set_current): Rewritten.
50113 (pupa_putchar): Likewise.
50114 (pupa_putcode): New function.
50115
50116 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
50117 (pupa_console_real_putchar): ... this.
50118 (pupa_vga_set_mode): New function.
50119 (pupa_vga_get_font): Likewise.
50120
50121 * normal/command.c: Include pupa/term.h.
50122 (terminal_command): New function.
50123 (pupa_command_init): Register the command "terminal".
50124
50125 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
50126 (DISP_UP): Likewise.
50127 (DISP_RIGHT): Likewise.
50128 (DISP_DOWN): Likewise.
50129 (DISP_HLINE): Likewise.
50130 (DISP_VLINE): Likewise.
50131 (DISP_UL): Likewise.
50132 (DISP_UR): Likewise.
50133 (DISP_LL): Likewise.
50134 (DISP_LR): Likewise.
50135
50136 * term/i386/pc/console.c (pupa_console_putchar): New function.
50137
50138 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
50139
50140 * util/resolve.c (pupa_util_resolve_dependencies): BUG
50141 FIX. Reverse the path_list.
50142
50143 * include/pupa/normal.h: Export pupa_register_command and
50144 pupa_unregister_command.
50145
50146 * hello/hello.c (pupa_cmd_hello): New module.
50147 * conf/i386-pc.rmk: Added hello.mod.
50148
50149 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
50150
50151 * kern/i386/pc/lzo1x.S: New file.
50152
50153 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
50154 (compress_kernel): New variable.
50155 (generate_image): Heavily modified to support compressing a
50156 large part of the core image.
50157
50158 * util/misc.c (pupa_util_read_image): Fix a file descriptor
50159 leak.
50160 (pupa_util_load_image): New function.
50161
50162 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
50163 (pupa_compressed_size): New variable.
50164 (codestart): Enable Gate A20 here.
50165 Decompress the compressed part of the core image.
50166 Rearrange the code to put functions and variables which are
50167 required for initialization in the non-compressed part.
50168 Include lzo1x.S.
50169
50170 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
50171 here.
50172
50173 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
50174
50175 * include/pupa/i386/pc/kernel.h
50176 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
50177 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
50178 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
50179 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
50180 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
50181
50182 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
50183
50184 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
50185 (Utility#rule): Likewise.
50186
50187 * configure.ac: Check if LZO is available.
50188
50189 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
50190
50191 * include/pupa/normal.h: New file.
50192 * include/pupa/setjmp.h: Likewise.
50193 * include/pupa/i386/setjmp.h: Likewise.
50194 * normal/cmdline.c: Likewise.
50195 * normal/command.c: Likewise.
50196 * normal/main.c: Likewise.
50197 * normal/menu.c: Likewise.
50198 * normal/i386/setjmp.S: Likewise.
50199
50200 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
50201 (pupa_rescue_cmd_initrd): Likewise.
50202
50203 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
50204 Likewise.
50205
50206 * kern/i386/pc/startup.S (translation_table): New variable.
50207 (translate_keycode): New function.
50208 (pupa_console_getkey): Call translate_keycode.
50209
50210 * kern/rescue.c (attempt_normal_mode): New function.
50211 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
50212 it failed, print a message.
50213
50214 * kern/mm.c (pupa_real_malloc): Print more information when a
50215 free magic is broken.
50216 (pupa_free): If the first free header is not free actually, set
50217 it to P.
50218
50219 * kern/main.c (pupa_load_normal_mode): Just load the module
50220 "normal".
50221 (pupa_main): Don't print the message
50222 "Entering into rescue mode..." here.
50223
50224 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
50225 Declared.
50226 (pupa_rescue_cmd_initrd): Likewise.
50227 (pupa_rescue_cmd_initrd): Likewise.
50228
50229 * include/pupa/symbol.h (FUNCTION): Specify the type.
50230 (VARIABLE): Likewise.
50231
50232 * include/pupa/err.h (pupa_err_t): Added
50233 PUPA_ERR_UNKNOWN_COMMAND.
50234
50235 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
50236 (pupa_dl_get_prefix): Likewise.
50237
50238 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
50239 Added _chain.mod and _linux.mod instead of chain.mod and
50240 linux.mod.
50241 (chain_mod_SOURCES): Renamed to ...
50242 (_chain_mod_SOURCES): ... this.
50243 (chain_mod_CFLAGS): Renamed to ...
50244 (_chain_mod_CFLAGS): ... this.
50245 (linux_mod_SOURCES): Renamed to ...
50246 (_linux_mod_SOURCES): ... this.
50247 (linux_mod_CFLAGS): Renamed to ...
50248 (_linux_mod_CFLAGS): ... this.
50249 (normal_mod_SOURCES): New variable.
50250 (normal_mod_CFLAGS): Likewise.
50251 (normal_mod_ASFLAGS): Likewise.
50252
50253 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
50254
50255 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
50256 possible.
50257
50258 * kern/dl.c (pupa_dl_ref): Refer depending modules
50259 recursively.
50260 (pupa_dl_unref): Unrefer depending modules recursively.
50261 Don't call pupa_dl_unload implicitly, because PUPA can crash if
50262 a module is unloaded before one depending on that module is
50263 unloaded.
50264 (pupa_dl_unload): Unload depending modules explicitly,
50265 if possible.
50266
50267 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
50268
50269 * include/pupa/i386/pc/linux.h: New file.
50270 * loader/i386/pc/linux.c: Likewise.
50271
50272 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
50273 Removed.
50274 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
50275 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
50276 of PUPA_CHAINLOADER_BOOT_SECTOR.
50277
50278 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
50279 (pupa_linux_prot_size): New variable.
50280 (pupa_linux_tmp_addr): Likewise.
50281 (pupa_linux_real_addr): Likewise.
50282 (pupa_linux_boot_zimage): New function.
50283 (pupa_linux_boot_bzimage): Likewise.
50284
50285 * kern/i386/pc/init.c (struct mem_region): New structure.
50286 (MAX_REGIONS): New macro.
50287 (mem_regions): New variable.
50288 (num_regions): Likewise.
50289 (pupa_os_area_addr): Likewise.
50290 (pupa_os_area_size): Likewise.
50291 (pupa_lower_mem): Likewise.
50292 (pupa_upper_mem): Likewise.
50293 (add_mem_region): New function.
50294 (compact_mem_regions): Likewise.
50295 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
50296 the size of the conventional memory and that of so-called upper
50297 memory (before the first memory hole).
50298 Instead of adding each found region to free memory, use
50299 add_mem_region and add them after removing overlaps.
50300 Also, add only 1/4 of the upper memory to free memory. The rest
50301 is used for loading OS images. Maybe this is ad hoc, but this
50302 makes it much easier to relocate OS images when booting.
50303
50304 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
50305 (pupa_enter_rescue_mode): Don't register initrd and module.
50306
50307 * kern/mm.c: Include pupa/dl.h.
50308
50309 * kern/main.c: Include pupa/file.h and pupa/device.h.
50310
50311 * kern/loader.c (pupa_loader_load_module_func): Removed.
50312 (pupa_loader_load_module): Likewise.
50313
50314 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
50315 ``.o''.
50316
50317 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
50318 (pupa_linux_tmp_addr): Likewise.
50319 (pupa_linux_real_addr): Likewise.
50320 (pupa_linux_boot_zimage): Likewise.
50321 (pupa_linux_boot_bzimage): Likewise.
50322
50323 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
50324 (pupa_upper_mem): Likewise.
50325 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
50326 module is too dangerous.
50327
50328 * include/pupa/loader.h (pupa_os_area_addr): Declared.
50329 (pupa_os_area_size): Likewise.
50330 (pupa_loader_set): Remove the first argument. Loader doesn't
50331 manage modules or initrd any longer.
50332 (pupa_loader_load_module): Removed.
50333
50334 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
50335 (linux_mod_SOURCES): New variable.
50336 (linux_mod_CFLAGS): Likewise.
50337
50338 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
50339
50340 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
50341 the length of a blocklist correctly.
50342
50343 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
50344 Use ioctl only if the OS file is a block device.
50345 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
50346 not very useful for normal files.
50347
50348 * kern/main.c (pupa_set_root_dev): New function.
50349 (pupa_load_normal_mode): Likewise.
50350 (pupa_main): Call those above.
50351
50352 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
50353 pupa_uint16_t.
50354
50355 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
50356
50357 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
50358
50359 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
50360 (setup): Configure the installed partition information and the
50361 dl prefix.
50362
50363 * loader/i386/pc/chainloader.c (my_mod): New variable.
50364 (pupa_chainloader_unload): New function.
50365 (pupa_rescue_cmd_chainloader): Refer itself.
50366 (PUPA_MOD_INIT): Save its own module in MY_MOD.
50367
50368 * kern/i386/pc/startup.S (install_partition): Removed.
50369 (version_string): Likewise.
50370 (config_file): Likewise.
50371 (pupa_install_dos_part): New variable.
50372 (pupa_install_bsd_part): Likewise.
50373 (pupa_prefix): Likewise.
50374 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
50375
50376 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
50377 and pupa/misc.h.
50378 (make_install_device): New function.
50379 (pupa_machine_init): Set the dl prefix.
50380
50381 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
50382 (buf): Renamed to ...
50383 (linebuf): ... this.
50384 (pupa_rescue_cmd_prefix): New function.
50385 (pupa_rescue_cmd_insmod): Likewise.
50386 (pupa_rescue_cmd_rmmod): Likewise.
50387 (pupa_rescue_cmd_lsmod): Likewise.
50388 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
50389 rmmod and lsmod.
50390
50391 * kern/mm.c (pupa_memalign): If failed even after invalidating
50392 disk caches, unload unneeded modules and retry.
50393
50394 * kern/misc.c (pupa_memmove): New function.
50395 (pupa_memcpy): Removed.
50396 (pupa_strcpy): New function.
50397 (pupa_itoa): Made static.
50398
50399 * kern/dl.c (pupa_dl_iterate): New function.
50400 (pupa_dl_ref): Likewise.
50401 (pupa_dl_unref): Likewise.
50402 (pupa_dl_unload): Return if succeeded or not.
50403 (pupa_dl_unload_unneeded): New function.
50404 (pupa_dl_unload_all): Likewise.
50405 (pupa_dl_init): Renamed to ...
50406 (pupa_dl_set_prefix): ... this.
50407 (pupa_dl_get_prefix): New function.
50408
50409 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
50410 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
50411 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
50412 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
50413 (pupa_install_dos_part): Declared.
50414 (pupa_install_bsd_part): Likewise.
50415 (pupa_prefix): Likewise.
50416 (pupa_boot_drive): Likewise.
50417
50418 * include/pupa/types.h: Fix a typo.
50419
50420 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
50421 pupa_memmove.
50422 (pupa_memmove): Declared.
50423 (pupa_strcpy): Likewise.
50424
50425 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
50426 pupa_mod_init takes one argument, its own module.
50427 (pupa_dl_unload_unneeded): Declared.
50428 (pupa_dl_unload_all): Likewise.
50429 (pupa_dl_ref): Likewise.
50430 (pupa_dl_unref): Likewise.
50431 (pupa_dl_iterate): Likewise.
50432 (pupa_dl_init): Renamed to ...
50433 (pupa_dl_set_prefix): ... this.
50434 (pupa_dl_get_prefix): Declared.
50435
50436 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
50437 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
50438 unloaded.
50439 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
50440 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
50441
50442 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
50443 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
50444
50445 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
50446
50447 * util/i386/pc/pupa-setup.c (setup): Define the internal
50448 function find_first_partition_start at the top level, because GCC
50449 3.0.x cannot compile internal functions in deeper scopes
50450 correctly.
50451 (find_root_device): Use lstat instead of stat.
50452 Don't follow symbolic links.
50453 Fix the path-constructing code.
50454
50455 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
50456 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
50457 by a BLKGETSIZE ioctl first, because block devices don't fill
50458 the member st_mode of the structure stat on Linux.
50459 [__linux__] (linux_find_partition): Use a temporary buffer
50460 REAL_DEV for the working space. Copy it to DEV before returning.
50461 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
50462 buffer cache consistent.
50463 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
50464 strncmp. The previous value was merely wrong.
50465 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
50466
50467 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
50468 FAT size is 12. The previous value was merely wrong.
50469
50470 * kern/main.c (pupa_main): Don't split the starting message from
50471 newlines.
50472
50473 * kern/term.c (pupa_putchar): Put CR after LF instead of before
50474 LF, because BIOS goes crazy about character attributes in this
50475 case.
50476
50477 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
50478
50479 * include/i386/pc/util/biosdisk.h: New file.
50480 * util/i386/pc/biosdisk.c: Likewise.
50481 * util/i386/pc/pupa-setup.c: Likewise.
50482
50483 * Makefile.in (INCLUDE_DISTFILES): Added
50484 include/pupa/i386/pc/util/biosdisk.h.
50485 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
50486 directory util/i386/pc.
50487 (install-local): Added a rule for sbin_UTILITIES.
50488 (uninstall): Likewise.
50489
50490 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
50491
50492 * util/misc.c (xrealloc): New function.
50493 (pupa_malloc): Likewise.
50494 (pupa_free): Likewise.
50495 (pupa_realloc): Likewise.
50496 (pupa_stop): Likewise.
50497 (pupa_putchar): Likewise.
50498
50499 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
50500
50501 * include/pupa/util/misc.h (xrealloc): Declared.
50502
50503 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
50504 macro.
50505 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
50506 (PUPA_BOOT_MACHINE_BPB_END): ... this.
50507
50508 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
50509 [PUPA_UTIL] (pupa_fat_fini): Likewise.
50510
50511 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
50512 way should be implemented.
50513 [PUPA_UTIL] (pupa_fat_fini): Likewise.
50514
50515 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
50516 the size of NAME for safety.
50517 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
50518 0x88.
50519
50520 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
50521 (pupa_setup_SOURCES): Likewise.
50522
50523 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
50524
50525 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
50526
50527 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
50528 bunch of pushl's from pusha, because this destroys the return
50529 value.
50530
50531 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
50532
50533 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
50534 This means that any missing prototypes could be fatal. Also, you
50535 must take care when writing assembly code. See the comments at
50536 the beginning of startup.S, for more details.
50537
50538 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
50539 compilation mechanism.
50540 (pupa_chainloader_real_boot): Likewise.
50541 (pupa_biosdisk_rw_int13_extensions): Likewise.
50542 (pupa_biosdisk_rw_standard): Likewise.
50543 (pupa_biosdisk_check_int13_extensions): Likewise.
50544 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
50545 (pupa_biosdisk_get_diskinfo_standard): Likewise.
50546 (pupa_get_memsize): Likewise.
50547 (pupa_get_mmap_entry): Likewise.
50548 (pupa_console_putchar): Likewise.
50549 (pupa_console_setcursor): Likewise.
50550 (pupa_getrtsecs): Use pushl instead of push.
50551
50552 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
50553 memory instead of the stack for a mmap entry, because some
50554 BIOSes may ignore the maximum size and overflow.
50555
50556 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
50557
50558 * genmk.rb (PModule#rule): Compile automatically generated
50559 sources with module-specific CFLAGS as well as other sources.
50560
50561 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
50562
50563 * configure.ac: Check ld.
50564 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
50565 respectively, before checking endianness and sizes.
50566
50567 * Makefile.in (LD): New variable.
50568
50569 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
50570
50571 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
50572
50573 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
50574
50575 * Changelog: New file.
50576